mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
add ioloop.install to backported patches
This commit is contained in:
parent
e5e200eaa7
commit
86e3e953da
@ -35,13 +35,7 @@ import zmq
|
||||
# Install the pyzmq ioloop. This has to be done before anything else from
|
||||
# tornado is imported.
|
||||
from zmq.eventloop import ioloop
|
||||
# FIXME: ioloop.install is new in pyzmq-2.1.7, so remove this conditional
|
||||
# when pyzmq dependency is updated beyond that.
|
||||
if hasattr(ioloop, 'install'):
|
||||
ioloop.install()
|
||||
else:
|
||||
import tornado.ioloop
|
||||
tornado.ioloop.IOLoop = ioloop.IOLoop
|
||||
|
||||
from tornado import httpserver
|
||||
from tornado import web
|
||||
|
Loading…
Reference in New Issue
Block a user