ACCA225 commited on
Commit
fa292bd
1 Parent(s): 7da8d22

Update app3.py

Browse files
Files changed (1) hide show
  1. app3.py +3 -3
app3.py CHANGED
@@ -26,13 +26,13 @@ def notbook():
26
  os.system("pip install pyngrok")
27
  # 构建命令字符串
28
  ngrok_command = f"ngrok http 8889 --authtoken=2cdw5pJsqgsq1igQKeHIpNwTNG7_7LQD3jojKKQ7PzcnNkok5"
29
- ngrok_command2 = f"ngrok tunnel --label edge=edghts_2doueG9BDi9rCXUGnsSsNbTab8H --authtoken=2douOsr61tUyYwMVF3lfj9uZGoa_6FPJ2x1xhKPbL6z4euKkM --region=ap http://localhost:8889"
30
- jupyter_command = "jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8889 --LabApp.token= --LabApp.base_url=/8889/"
31
 
32
  # 启动 ngrok 进程
33
  #ngrok_process = subprocess.Popen(ngrok_command, shell=True)
34
  #time.sleep(30)
35
- #ngrok_process2 = subprocess.Popen(ngrok_command2, shell=True)
36
  # 启动 Jupyter 进程
37
  jupyter_process = subprocess.Popen(jupyter_command, shell=True)
38
  #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=")
 
26
  os.system("pip install pyngrok")
27
  # 构建命令字符串
28
  ngrok_command = f"ngrok http 8889 --authtoken=2cdw5pJsqgsq1igQKeHIpNwTNG7_7LQD3jojKKQ7PzcnNkok5"
29
+ ngrok_command2 = f"ngrok tunnel --label edge=edghts_2cUdHbbxvMVOXsl0krDIc1SBv58 --authtoken=2bgnVJhlLqxUZhS1WyeaAtQA12F_6nQXrapUved4QSxYFn1cD --region=ap http://localhost:8889"
30
+ jupyter_command = "jupyter-lab --no-browser --ip=0.0.0.0 --allow-root --notebook-dir=/ --port=8889 --LabApp.allow_origin=* --LabApp.token= --LabApp.base_url=/8889"
31
 
32
  # 启动 ngrok 进程
33
  #ngrok_process = subprocess.Popen(ngrok_command, shell=True)
34
  #time.sleep(30)
35
+ ngrok_process2 = subprocess.Popen(ngrok_command2, shell=True)
36
  # 启动 Jupyter 进程
37
  jupyter_process = subprocess.Popen(jupyter_command, shell=True)
38
  #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=")