jupyter / jupyter_console

Jupyter Terminal Console

Home Page:http://jupyter-console.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jupyter console doesn't work with xeus-cling xcpp17 kernel

Waerden001 opened this issue · comments

Install xeus-cling in a clean conda enviroment xcpp11 and xcpp14 works fine with jupyter console, however xcpp17 doesn't work.
To reproduce the issue

conda create -n cling
conda install jupyter 
conda install -c conda-forge xeus-cling

Then run jupyter console with xeus-cling kernels

jupyter console --kernel xcpp11

and

jupyter console --kernel xcpp14 

work as expected. However

jupyter console --kernel xcpp17

gives error information

Traceback (most recent call last):
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_console/ptshell.py", line 432, in init_kernel_info
    reply = self.client.get_shell_msg(timeout=1)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_client/client.py", line 78, in get_shell_msg
    return self.shell_channel.get_msg(*args, **kwargs)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_client/blocking/channels.py", line 54, in get_msg
    raise Empty
_queue.Empty

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/swang/intelpython3/envs/cling/bin/jupyter-console", line 10, in <module>
    sys.exit(main())
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_core/application.py", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/traitlets/config/application.py", line 844, in launch_instance
    app.initialize(argv)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/traitlets/config/application.py", line 87, in inner
    return method(app, *args, **kwargs)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_console/app.py", line 136, in initialize
    self.init_shell()
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_console/app.py", line 106, in init_shell
    self.shell = ZMQTerminalInteractiveShell.instance(parent=self,
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/traitlets/config/configurable.py", line 537, in instance
    inst = cls(*args, **kwargs)
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_console/ptshell.py", line 350, in __init__
    self.init_kernel_info()
  File "/home/swang/intelpython3/envs/cling/lib/python3.9/site-packages/jupyter_console/ptshell.py", line 435, in init_kernel_info
    raise RuntimeError("Kernel didn't respond to kernel_info_request") from e
RuntimeError: Kernel didn't respond to kernel_info_request

I wonder if there's any way to fix this?