DEV Community

loading...
Cover image for Streamlit Code Running from Jupyter Notebook

Streamlit Code Running from Jupyter Notebook

Surendra Reddy
Product owner, Developer and Automation Tester
・1 min read

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

Discussion (0)