auto disable zrok tunnel
Browse files
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -110,7 +110,11 @@
|
|
110 |
"\n",
|
111 |
" start_colab = float(open(f'{webui_path}/static/colabTimer.txt', 'r').read())\n",
|
112 |
" time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]\n",
|
113 |
-
" print(f\"\\n⌚️ \\033[0mYou have been conducting this session for - \\033[33m{time_since_start}\\033[0m\\n\\n\")"
|
|
|
|
|
|
|
|
|
114 |
]
|
115 |
}
|
116 |
]
|
|
|
110 |
"\n",
|
111 |
" start_colab = float(open(f'{webui_path}/static/colabTimer.txt', 'r').read())\n",
|
112 |
" time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]\n",
|
113 |
+
" print(f\"\\n⌚️ \\033[0mYou have been conducting this session for - \\033[33m{time_since_start}\\033[0m\\n\\n\")\n",
|
114 |
+
"\n",
|
115 |
+
" ''' del zrok tunnel '''\n",
|
116 |
+
" if zrok_token:\n",
|
117 |
+
" !zrok disable &> /dev/null"
|
118 |
]
|
119 |
}
|
120 |
]
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -110,7 +110,11 @@
|
|
110 |
"\n",
|
111 |
" start_colab = float(open(f'{webui_path}/static/colabTimer.txt', 'r').read())\n",
|
112 |
" time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]\n",
|
113 |
-
" print(f\"\\n⌚️ \\033[0mВы проводите эту сессию в течение - \\033[33m{time_since_start}\\033[0m\\n\\n\")"
|
|
|
|
|
|
|
|
|
114 |
]
|
115 |
}
|
116 |
]
|
|
|
110 |
"\n",
|
111 |
" start_colab = float(open(f'{webui_path}/static/colabTimer.txt', 'r').read())\n",
|
112 |
" time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]\n",
|
113 |
+
" print(f\"\\n⌚️ \\033[0mВы проводите эту сессию в течение - \\033[33m{time_since_start}\\033[0m\\n\\n\")\n",
|
114 |
+
"\n",
|
115 |
+
" ''' del zrok tunnel '''\n",
|
116 |
+
" if zrok_token:\n",
|
117 |
+
" !zrok disable &> /dev/null"
|
118 |
]
|
119 |
}
|
120 |
]
|
files_cells/python/en/launch_en.py
CHANGED
@@ -88,3 +88,7 @@ with tunnel:
|
|
88 |
time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]
|
89 |
print(f"\n⌚️ \033[0mYou have been conducting this session for - \033[33m{time_since_start}\033[0m\n\n")
|
90 |
|
|
|
|
|
|
|
|
|
|
88 |
time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]
|
89 |
print(f"\n⌚️ \033[0mYou have been conducting this session for - \033[33m{time_since_start}\033[0m\n\n")
|
90 |
|
91 |
+
''' del zrok tunnel '''
|
92 |
+
if zrok_token:
|
93 |
+
get_ipython().system('zrok disable &> /dev/null')
|
94 |
+
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -88,3 +88,7 @@ with tunnel:
|
|
88 |
time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]
|
89 |
print(f"\n⌚️ \033[0mВы проводите эту сессию в течение - \033[33m{time_since_start}\033[0m\n\n")
|
90 |
|
|
|
|
|
|
|
|
|
|
88 |
time_since_start = str(timedelta(seconds=time.time()-start_colab)).split('.')[0]
|
89 |
print(f"\n⌚️ \033[0mВы проводите эту сессию в течение - \033[33m{time_since_start}\033[0m\n\n")
|
90 |
|
91 |
+
''' del zrok tunnel '''
|
92 |
+
if zrok_token:
|
93 |
+
get_ipython().system('zrok disable &> /dev/null')
|
94 |
+
|