mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Revert "Enabled IPython Server output for Travis debugging"
This reverts commit eb7ee3f61335a7147fcfc1b1907d41f163bb0b41.
This commit is contained in:
parent
74fccf47b3
commit
07b3a7639d
@ -206,16 +206,13 @@ def run_webapp(q, nbdir, loglevel=0):
|
||||
import os
|
||||
import IPython.html.notebookapp as nbapp
|
||||
import sys
|
||||
#sys.stdout = open(str(os.getpid()) + ".out", "w")
|
||||
#sys.stderr = open(str(os.getpid()) + ".err", "w")
|
||||
print("hello")
|
||||
# sys.stderr = open(os.devnull, 'w')
|
||||
sys.stderr = open(os.devnull, 'w')
|
||||
os.environ["IPYTHONDIR"] = nbdir
|
||||
server = nbapp.NotebookApp()
|
||||
args = ['--no-browser']
|
||||
args.append('--notebook-dir='+nbdir)
|
||||
args.append('--profile-dir='+nbdir)
|
||||
#args.append('--log-level='+str(loglevel))
|
||||
args.append('--log-level='+str(loglevel))
|
||||
server.initialize(args)
|
||||
# communicate the port number to the parent process
|
||||
q.put(server.port)
|
||||
|
Loading…
x
Reference in New Issue
Block a user