##// END OF EJS Templates
quieter notebook server output for js test suite
Paul Ivanov -
Show More
@@ -194,11 +194,15 b' class JSController(TestController):'
194 TestController.cleanup(self)
194 TestController.cleanup(self)
195
195
196
196
197 def run_webapp(q, nbdir):
197 def run_webapp(q, nbdir, loglevel=0):
198 """start the IPython Notebook, and pass port back to the queue"""
198 """start the IPython Notebook, and pass port back to the queue"""
199 import IPython.html.notebookapp as nbapp
199 import IPython.html.notebookapp as nbapp
200 server = nbapp.NotebookApp()
200 server = nbapp.NotebookApp()
201 server.initialize(['--no-browser', '--notebook-dir='+nbdir])
201 args = ['--no-browser']
202 args.append('--notebook-dir='+nbdir)
203 args.append('--profile-dir='+nbdir)
204 args.append('--log-level='+str(loglevel))
205 server.initialize(args)
202 # communicate the port number to the parent process
206 # communicate the port number to the parent process
203 q.put(server.port)
207 q.put(server.port)
204 server.start()
208 server.start()
General Comments 0
You need to be logged in to leave comments. Login now