Show More
@@ -16,14 +16,17 b' Authors:' | |||
|
16 | 16 | # Imports |
|
17 | 17 | #----------------------------------------------------------------------------- |
|
18 | 18 | |
|
19 | # stdlib | |
|
19 | 20 | import errno |
|
20 | 21 | import logging |
|
21 | 22 | import os |
|
22 | 23 | import signal |
|
23 | 24 | import socket |
|
24 | 25 | import sys |
|
26 | import threading | |
|
25 | 27 | import webbrowser |
|
26 | 28 | |
|
29 | # Third party | |
|
27 | 30 | import zmq |
|
28 | 31 | |
|
29 | 32 | # Install the pyzmq ioloop. This has to be done before anything else from |
@@ -35,6 +38,7 b' tornado.ioloop.IOLoop = ioloop.IOLoop' | |||
|
35 | 38 | from tornado import httpserver |
|
36 | 39 | from tornado import web |
|
37 | 40 | |
|
41 | # Our own libraries | |
|
38 | 42 | from .kernelmanager import MappingKernelManager |
|
39 | 43 | from .handlers import (LoginHandler, |
|
40 | 44 | ProjectDashboardHandler, NewHandler, NamedNotebookHandler, |
@@ -301,7 +305,10 b' class NotebookApp(BaseIPythonApplication):' | |||
|
301 | 305 | self.port)) |
|
302 | 306 | if self.open_browser: |
|
303 | 307 | ip = self.ip or '127.0.0.1' |
|
304 |
webbrowser.open("%s://%s:%i" % (proto, ip, self.port), |
|
|
308 | b = lambda : webbrowser.open("%s://%s:%i" % (proto, ip, self.port), | |
|
309 | new=2) | |
|
310 | threading.Thread(target=b).start() | |
|
311 | ||
|
305 | 312 | ioloop.IOLoop.instance().start() |
|
306 | 313 | |
|
307 | 314 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now