Revert "Enabled IPython Server output for Travis debugging"

This reverts commit eb7ee3f61335a7147fcfc1b1907d41f163bb0b41.
This commit is contained in:
Jonathan Frederic 2014-01-03 12:22:09 -08:00 committed by Jonathan Frederic
parent 74fccf47b3
commit 07b3a7639d

View File

@ -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)