DEV Community

Cover image for Streamlit Code Running from Jupyter Notebook
Surendra Reddy
Surendra Reddy

Posted on

Streamlit Code Running from Jupyter Notebook

3 Simple Steps

...

  • Launch(Open) command prompt
  • Run the command,
    • jupyter nbconvert –to script JupyterNotebookName.ipynb
    • awk ‘!/ipython/’ JupyterNotebookName.py > temp.py && mv temp.py app.py && rm JupyterNotebookName.py
    • streamlit run app.py
  • Open the url http://localhost:8501 (Browser)

References

Notebook: https://github.com/SurendraRedd/StreamlitProjects/blob/master/Streamlit.ipynb

App: https://github.com/SurendraRedd/StreamlitProjects/blob/master/app.py

Top comments (0)