Skip to content

Connect to helium kernel from jupyter #161

@klonuo

Description

@klonuo

Hi I wanted to connect to kernel started from helium:

❯ jupyter console --existing                                                                                                                                                                                                                          
Traceback (most recent call last):                                                                                                                                                                                                                    
  File "C:\Python312\Lib\site-packages\jupyter_console\ptshell.py", line 434, in init_kernel_info                                                                                                                                                     
    reply = self.client.get_shell_msg(timeout=1)                                                                                                                                                                                                      
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                      
  File "C:\Python312\Lib\site-packages\jupyter_core\utils\__init__.py", line 165, in wrapped                                                                                                                                                          
    return loop.run_until_complete(inner)                                                                                                                                                                                                             
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                             
  File "C:\Python312\Lib\asyncio\base_events.py", line 691, in run_until_complete                                                                                                                                                                     
    return future.result()                                                                                                                                                                                                                            
           ^^^^^^^^^^^^^^^                                                                                                                                                                                                                            
  File "C:\Python312\Lib\site-packages\jupyter_client\client.py", line 143, in _async_get_shell_msg                                                                                                                                                   
    return await ensure_async(self.shell_channel.get_msg(*args, **kwargs))                                                                                                                                                                            
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                             
  File "C:\Python312\Lib\site-packages\jupyter_client\channels.py", line 232, in get_msg                                                                                                                                                              
    raise Empty
_queue.Empty

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

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python312\Scripts\jupyter-console.EXE\__main__.py", line 7, in <module>
  File "C:\Python312\Lib\site-packages\jupyter_core\application.py", line 283, in launch_instance
    super().launch_instance(argv=argv, **kwargs)
  File "C:\Python312\Lib\site-packages\traitlets\config\application.py", line 1074, in launch_instance
    app.initialize(argv)
  File "C:\Python312\Lib\site-packages\traitlets\config\application.py", line 118, in inner
    return method(app, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\jupyter_console\app.py", line 136, in initialize
    self.init_shell()
  File "C:\Python312\Lib\site-packages\jupyter_console\app.py", line 106, in init_shell
    self.shell = ZMQTerminalInteractiveShell.instance(parent=self,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\traitlets\config\configurable.py", line 583, in instance
    inst = cls(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\jupyter_console\ptshell.py", line 352, in __init__
    self.init_kernel_info()
  File "C:\Python312\Lib\site-packages\jupyter_console\ptshell.py", line 437, 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

Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions