File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 18
18
TypeVar ,
19
19
)
20
20
21
- import zmq
22
21
from IPython import get_ipython
23
- from tornado .queues import QueueEmpty
24
22
25
23
from ._async_thread import AsyncThread
26
24
27
25
T = TypeVar ("T" )
28
26
27
+ ZMQ_POLLOUT = 2 # zmq.POLLOUT without zmq dependency
28
+
29
29
30
30
class KernelWrapper :
31
31
_current : Optional ["KernelWrapper" ] = None
@@ -96,7 +96,7 @@ async def replay(self):
96
96
sys .stderr .flush ()
97
97
if shell_stream is not None : # 6+
98
98
kernel ._publish_status ("idle" , "shell" )
99
- shell_stream .flush (zmq . POLLOUT )
99
+ shell_stream .flush (ZMQ_POLLOUT )
100
100
else :
101
101
kernel ._publish_status ("idle" )
102
102
@@ -105,7 +105,7 @@ async def do_one_iteration(self):
105
105
rr = self ._kernel .do_one_iteration ()
106
106
if isawaitable (rr ):
107
107
await rr
108
- except QueueEmpty :
108
+ except Exception : # pylint: disable=broad-except
109
109
# it's probably a bug in ipykernel,
110
110
# .do_one_iteration() should not throw
111
111
return
Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ setup_requires =
36
36
setuptools
37
37
install_requires =
38
38
ipython
39
- tornado
40
- pyzmq
41
39
42
40
43
41
[options.extras_require]
You can’t perform that action at this time.
0 commit comments