Show More
@@ -206,13 +206,16 b' def run_webapp(q, nbdir, loglevel=0):' | |||||
206 | import os |
|
206 | import os | |
207 | import IPython.html.notebookapp as nbapp |
|
207 | import IPython.html.notebookapp as nbapp | |
208 | import sys |
|
208 | import sys | |
209 |
sys.std |
|
209 | #sys.stdout = open(str(os.getpid()) + ".out", "w") | |
|
210 | #sys.stderr = open(str(os.getpid()) + ".err", "w") | |||
|
211 | print("hello") | |||
|
212 | # sys.stderr = open(os.devnull, 'w') | |||
210 | os.environ["IPYTHONDIR"] = nbdir |
|
213 | os.environ["IPYTHONDIR"] = nbdir | |
211 | server = nbapp.NotebookApp() |
|
214 | server = nbapp.NotebookApp() | |
212 | args = ['--no-browser'] |
|
215 | args = ['--no-browser'] | |
213 | args.append('--notebook-dir='+nbdir) |
|
216 | args.append('--notebook-dir='+nbdir) | |
214 | args.append('--profile-dir='+nbdir) |
|
217 | args.append('--profile-dir='+nbdir) | |
215 | args.append('--log-level='+str(loglevel)) |
|
218 | #args.append('--log-level='+str(loglevel)) | |
216 | server.initialize(args) |
|
219 | server.initialize(args) | |
217 | # communicate the port number to the parent process |
|
220 | # communicate the port number to the parent process | |
218 | q.put(server.port) |
|
221 | q.put(server.port) |
General Comments 0
You need to be logged in to leave comments.
Login now