Skip to content
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

Merged
merged 1 commit into from
Jul 6, 2021
Merged

Fix typo in eventloops.py #711

merged 1 commit into from
Jul 6, 2021

Conversation

selasley
Copy link
Contributor

@selasley selasley commented Jul 2, 2021

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

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
@blink1073 blink1073 added this to the 6.0.x milestone Jul 5, 2021
@blink1073 blink1073 added the bug label Jul 5, 2021
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Carreau Carreau merged commit b2f1a79 into ipython:master Jul 6, 2021
Copy link

@beaveis beaveis left a 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:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of #327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants