-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typo in eventloops.py #711
Conversation
Typo in eventloops.py : Changing kernel_shell_stream to kernel.shell_stream fixes this NameError with the MacOSX backend Using matplotlib backend: MacOSX ERROR:tornado.application:Exception in callback functools.partial(<function Kernel.enter_eventloop.<locals>.advance_eventloop at 0x108aefe50>) Traceback (most recent call last): File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/tornado/ioloop.py", line 741, in _run_callback ret = callback() File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 401, in advance_eventloop eventloop(self) File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/ipykernel/eventloops.py", line 327, in loop_cocoa if kernel_shell_stream.flush(limit=1): NameError: name 'kernel_shell_stream' is not defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing kernel is the only thing I can do the
# don't let interrupts during main loop invoke crash handler:
suspects hook = (handling
main loop (kernel. _poll _interval)
if kernel _shell _stream. Flush(limit=1):
if kernel. Shell _stream. Flush(limit=1):
# Events to process, return control to kernel
return
except at as a matter of time ⌚
@@ -324,7 +324,7 @@ def handle_int(etype, value, tb): | |||
# don't let interrupts during mainloop invoke crash_handler: | |||
sys.excepthook = handle_int | |||
mainloop(kernel._poll_interval) | |||
if kernel_shell_stream.flush(limit=1): | |||
if kernel.shell_stream.flush(limit=1): | |||
# events to process, return control to kernel | |||
return | |||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of #327
Possible typo in eventloops.py : Changing kernel_shell_stream to kernel.shell_stream fixes this NameError with the MacOSX backend
Using matplotlib backend: MacOSX
ERROR:tornado.application:Exception in callback functools.partial(<function Kernel.enter_eventloop..advance_eventloop at 0x108aefe50>)
Traceback (most recent call last):
File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/tornado/ioloop.py", line 741, in _run_callback
ret = callback()
File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/ipykernel/kernelbase.py", line 401, in advance_eventloop
eventloop(self)
File "/Users/selasley/venvs/py39/lib/python3.9/site-packages/ipykernel/eventloops.py", line 327, in loop_cocoa
if kernel_shell_stream.flush(limit=1):
NameError: name 'kernel_shell_stream' is not defined