Skip to content

Commit ba8bc11

Browse files
committed
initial commit
0 parents  commit ba8bc11

File tree

4 files changed

+851
-0
lines changed

4 files changed

+851
-0
lines changed

Dockerfile

Whitespace-only changes.

jupyter_get.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from notebook import notebookapp
2+
import time
3+
4+
count = 0
5+
is_failed = False
6+
7+
time.sleep(1)
8+
notebooks = list(notebookapp.list_running_servers())
9+
10+
while len(notebooks) == 0:
11+
count += 1
12+
#print(count)
13+
#if (count == 500):
14+
# is_failed = True
15+
# break
16+
notebooks = list(notebookapp.list_running_servers())
17+
pass
18+
19+
if (is_failed is not True):
20+
note = notebooks[0]
21+
print(note.get('token', ''))

0 commit comments

Comments
 (0)