jupyter console doesn't work on my computer anymore

81 Views Asked by At

I sometimes use jupyter console to try out things in python. I'm running arch linux and installed everything through the arch repos.

I hadn't ran jupyter console in quite some time, but while trying to launch it, i can't get it to work anymore. Here is the error :

Jupyter console 6.5.1

Python 3.10.9 (main, Dec 19 2022, 17:35:49) [GCC 12.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.10.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: 
Task exception was never retrieved
future: <Task finished name='Task-7' coro=<ZMQTerminalInteractiveShell.handle_external_iopub() done, defined at /usr/lib/python3.10/site-packages/jupyter_console/ptshell.py:839> exception=TypeError("object int can't be used in 'await' expression")>
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/jupyter_console/ptshell.py", line 842, in handle_external_iopub
    poll_result = await self.client.iopub_channel.socket.poll(500)
TypeError: object int can't be used in 'await' expression
Shutting down kernel

I tried reinstalling everything through pacman in case I accidentally changed something I shouldn't, but it changed nothing. Any tips on what could be wrong ?

1

There are 1 best solutions below

1
Brandon Johnson On

I don't have enough rep to comment but I do not have the same issue. I can launch Jupyter QT Console just fine, and I have the same python version and IPython version. Just thought I would share, even though I don't use Jupyter Console. I do all my .ipynb in vscode and all other coding in neovim. I don't know if there is a difference between the console you are talking about and QT console, but Jupyter QT Console works fine for me, just unbearably light theme :).