Original post here, short version below:
Hey there, I created a library streamlit-jupyter to allow for seamless creation of streamlit apps in jupyter notebooks.
Install
pip install streamlit_jupyter
How to use it
Take a look at our example notebook
The main idea is for you experiment and develop in your notebook,
visually see all the pieces, and then convert the notebook to .py
to
be run by streamlit
start by importing streamlit and patching it with streamlit-jupyter:
import streamlit as st
from streamlit_jupyter import StreamlitPatcher, tqdm
StreamlitPatcher().jupyter() # register streamlit with jupyter-compatible wrappers
And now develop your notebook as usual, but with the ability to use
Streamlit widgets and components.