Support run from witihin python

related to this topic

Streamlit supports running the app via cli streamlit run

Why it’s not supported, and documented, to do it within python?

It’s possible doing

from streamlit import config as _config
from streamlit.web.bootstrap import run
_config.set_option("server.headless", True)
run('', args=[], flag_options=[], is_hello=False)

But method run it’s not stable, nor documented.
It’s an internal method

Hi @iuiu

This sounds like a feature request, perhaps you can create a request by filing an issue here:

Hope this helps!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.