File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -152,34 +152,6 @@ def tmp(*parts):
152152
153153 started = Event ()
154154 def start_thread ():
155- if 'asyncio' in sys .modules :
156- import asyncio
157- asyncio .set_event_loop (asyncio .new_event_loop ())
158- bind_args = cls .get_bind_args ()
159- app = cls .notebook = NotebookApp (
160- port_retries = 0 ,
161- open_browser = False ,
162- config_dir = cls .config_dir ,
163- data_dir = cls .data_dir ,
164- runtime_dir = cls .runtime_dir ,
165- notebook_dir = cls .notebook_dir ,
166- base_url = cls .url_prefix ,
167- config = config ,
168- allow_root = True ,
169- token = cls .token ,
170- ** bind_args
171- )
172- # don't register signal handler during tests
173- app .init_signal = lambda : None
174- # clear log handlers and propagate to root for nose to capture it
175- # needs to be redone after initialize, which reconfigures logging
176- app .log .propagate = True
177- app .log .handlers = []
178- app .initialize (argv = cls .get_argv ())
179- app .log .propagate = True
180- app .log .handlers = []
181- loop = IOLoop .current ()
182- loop .add_callback (started .set )
183155 try :
184156 app = cls .notebook = NotebookApp (
185157 port = cls .port ,
You can’t perform that action at this time.
0 commit comments