Support run from witihin python

Hi,
related to this topic

Streamlit supports running the app via cli streamlit run your_app.py

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('your_app.py', 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!