Skip to content

Kernel dies when trying to plot an image with matplotlib #6219

Closed
@astro-jingtao

Description

@astro-jingtao

Describe the bug
Kernel dies when running plt.plot([0,1], [0,1])

To Reproduce
run this code

import matplotlib.pyplot as plt
plt.plot([0,1], [0,1])

Expected behavior
I expected matplotlib to plot the image

Desktop (please complete the following information):

  • OS: windows 10
  • Browser chrome
    image

Additional context
From the console log of jupyter notebook:

ERROR:asyncio:Exception in callback <TaskWakeupMethWrapper object at 0x000001C6AC984F10>(<Future finis...d8a"\r\n\r\n'>)
handle: <Handle <TaskWakeupMethWrapper object at 0x000001C6AC984F10>(<Future finis...d8a"\r\n\r\n'>)>
Traceback (most recent call last):
  File "C:\Users\[myusername]\anaconda3\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
RuntimeError: Cannot enter into task <Task pending name='Task-10' coro=<HTTP1ServerConnection._server_request_loop() running at C:\Users\[myusername]\anaconda3\lib\site-packages\tornado\http1connection.py:823> wait_for=<Future finished result=b'GET /custom...fd8a"\r\n\r\n'> cb=[IOLoop.add_future.<locals>.<lambda>() at C:\Users\[myusername]\anaconda3\lib\site-packages\tornado\ioloop.py:688]> while another task <Task pending name='Task-147' coro=<KernelManager._async_start_kernel() running at C:\Users\[myusername]\anaconda3\lib\site-packages\jupyter_client\manager.py:336>> is being executed.

I have checked issue 6089 and 3709, not my case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions