# https://discuss.streamlit.io/t/cannot-debug-streamlit-in-pycharm-2023-3-3/61581/2 try: from streamlit.web import bootstrap except ImportError: from streamlit import bootstrap real_script = 'app.py' bootstrap.run(real_script, f'pycharm_runner.py {real_script}', [], {})