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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

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

Okay