DEV Community

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

Posted on

3 1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay