Hey @Lior_D, @fedegaucho, @coxi,
Yeah, kmcgrady is correct that we don’t really support using
bootstrap in this way (because it’s just undocumented internals of Streamlit, which are all subject to change – as you’re seeing here :)).
However! We do support debugging Streamlit apps interactively. You can achieve this without using bootstrap. I do this with PyCharm - you can see it in this “Intro to Custom Components” youtube video, starting at about the 10 minute mark. The tl;dr is that you debug
streamlit run myscript.py, rather than
You can see that “Script path” is set to
<some_virtualenv_path>/bin/streamlit, and the “parameters” are set to
run <scriptname.py>. (To discover the path to
bin/streamlit within my virtual environment, I just ran
which streamlit inside a shell with my virtualenv activated.)
When I set a breakpoint inside my script, PyCharm just works in the way you’d hope!
(I don’t use VSCode, but I imagine this should work there as well.)
Does this solve what you’re trying to do with