Launching from a Python script fails since 1.12.0

Hi! Pre 1.12.0 I was able to launch Streamlit like this:

    sys.argv = ["streamlit", "run", "streamlit_file.py", "--server.port=80"]
    sys.exit(stcli.main())

But since the last release this has stopped working. I didnt see a mention of this in the change log, can you let me know if this was removed intentionally or if there is another way to launch it from my python script?

Thanks!

Hi @Steve_Rosam,

Thanks for posting!

streamlit.cli has moved to streamlit.web.cli – check out this thread

Caroline :balloon:

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