Update app2.py
Browse files
app2.py
CHANGED
@@ -30,7 +30,7 @@ def notbook():
|
|
30 |
|
31 |
# 启动 ngrok 进程
|
32 |
ngrok_process = subprocess.Popen(ngrok_command, shell=True)
|
33 |
-
|
34 |
# 启动 Jupyter 进程
|
35 |
jupyter_process = subprocess.Popen(jupyter_command, shell=True)
|
36 |
#os.system(f"ngrok tunnel --authtoken={ngrok_token} --region=ap http://localhost:8888 & python jupyter-lab --ServerApp.shutdown_no_activity_timeout=1800 --TerminalManager.cull_inactive_timeout=1800 --TerminalManager.cull_interval=300 --MappingKernelManager.cull_idle_timeout=1800 --MappingKernelManager.cull_interval=300 --MappingKernelManager.cull_connected=True --MappingKernelManager.cull_busy=True --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8888 --LabApp.token= --LabApp.allow_origin=* --LabApp.base_url=")
|
|
|
30 |
|
31 |
# 启动 ngrok 进程
|
32 |
ngrok_process = subprocess.Popen(ngrok_command, shell=True)
|
33 |
+
ngrok_process2 = subprocess.Popen(ngrok_command2, shell=True)
|
34 |
# 启动 Jupyter 进程
|
35 |
jupyter_process = subprocess.Popen(jupyter_command, shell=True)
|
36 |
#os.system(f"ngrok tunnel --authtoken={ngrok_token} --region=ap http://localhost:8888 & python jupyter-lab --ServerApp.shutdown_no_activity_timeout=1800 --TerminalManager.cull_inactive_timeout=1800 --TerminalManager.cull_interval=300 --MappingKernelManager.cull_idle_timeout=1800 --MappingKernelManager.cull_interval=300 --MappingKernelManager.cull_connected=True --MappingKernelManager.cull_busy=True --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8888 --LabApp.token= --LabApp.allow_origin=* --LabApp.base_url=")
|