From 5fbfc30a08bc246d2ac31f0ab1caec93b0b40b79 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Thu, 26 Sep 2013 14:51:26 -0700 Subject: [PATCH] quieter notebook server output for js test suite --- IPython/testing/iptestcontroller.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/IPython/testing/iptestcontroller.py b/IPython/testing/iptestcontroller.py index 775aed09a..64e4eb4f4 100644 --- a/IPython/testing/iptestcontroller.py +++ b/IPython/testing/iptestcontroller.py @@ -194,11 +194,15 @@ class JSController(TestController): TestController.cleanup(self) -def run_webapp(q, nbdir): +def run_webapp(q, nbdir, loglevel=0): """start the IPython Notebook, and pass port back to the queue""" import IPython.html.notebookapp as nbapp server = nbapp.NotebookApp() - server.initialize(['--no-browser', '--notebook-dir='+nbdir]) + args = ['--no-browser'] + args.append('--notebook-dir='+nbdir) + args.append('--profile-dir='+nbdir) + args.append('--log-level='+str(loglevel)) + server.initialize(args) # communicate the port number to the parent process q.put(server.port) server.start()