fix: disable Streamlit dev shortcuts to prevent Ctrl+C triggering Clear Caches on Windows (#309)
This commit is contained in:
1 parent
1416f70efb
commit
6a4db9a140
1 file changed
+1
-1
+1
-1
@@ -18,7 +18,7 @@ def get_screen_width():
|
||||
|
||||
def start_streamlit(port):
|
||||
global proc
|
||||
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true"]
|
||||
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true", "--client.toolbarMode", "viewer"]
|
||||
proc = subprocess.Popen(cmd)
|
||||
atexit.register(proc.kill)
|
||||
|
||||
|
||||
Reference in new issue
Block a user