##// END OF EJS Templates
use ipc for notebook js tests...
MinRK -
Show More
@@ -221,9 +221,14 b' def run_webapp(q, ipydir, nbdir, loglevel=0):'
221 sys.stderr = open(os.devnull, 'w')
221 sys.stderr = open(os.devnull, 'w')
222 server = nbapp.NotebookApp()
222 server = nbapp.NotebookApp()
223 args = ['--no-browser']
223 args = ['--no-browser']
224 args.extend(['--ipython-dir', ipydir])
224 args.extend(['--ipython-dir', ipydir,
225 args.extend(['--notebook-dir', nbdir])
225 '--notebook-dir', nbdir,
226 args.extend(['--log-level', str(loglevel)])
226 '--log-level', str(loglevel),
227 ])
228 # ipc doesn't work on Windows, and darwin has crazy-long temp paths,
229 # which run afoul of ipc's maximum path length.
230 if sys.platform.startswith('linux'):
231 args.append('--KernelManager.transport=ipc')
227 server.initialize(args)
232 server.initialize(args)
228 # communicate the port number to the parent process
233 # communicate the port number to the parent process
229 q.put(server.port)
234 q.put(server.port)
General Comments 0
You need to be logged in to leave comments. Login now