Hey
What if Streamlit supported ipywidgets natively? Even complex ones such as bqplot, pythreejs, ipyleaflet and some moreā¦
Well, that would be great, that would even be a real killer feature, but itās not quite there unfortunately Embedding simple widgets was straightforward with this tutorial from ipywidgets documentation. But so far:
- I can interact with widgets but I donāt retrieve any value to use in Streamlit
- Embedding the aforementioned complex widgets need more work, especially to manage JS dependencies with those CORS issues and JS loaded from
localhost:8501/
for some reason
I was even wondering if spawning an ipython kernel would be better to be as compatible as possible, but Iām not sure of thatā¦
All of this is still exploratory, but hereās a screenshot showing how simple widget renders into Streamlit.