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

pykx and jupyterq #79

Open
kimtang opened this issue Jun 16, 2024 · 1 comment
Open

pykx and jupyterq #79

kimtang opened this issue Jun 16, 2024 · 1 comment

Comments

@kimtang
Copy link

kimtang commented Jun 16, 2024

Looks like pykx and jupyterq do not work well together. Is there a way to fix it?

Thanks,
Kim


(pykx308) λ jupyter console --kernel=qpk
'2024.06.17T05:42:32.193 type
[6] C:\edev\software\anaconda3\envs\pykx308\Lib\site-packages\pykx\lib\jupyterq_pyzmq.q:17: {(x?".")#x}
^
[5] C:\edev\software\anaconda3\envs\pykx308\Lib\site-packages\pykx\lib\jupyterq_pyzmq.q:17: zsock.fd:$[17<="I"${(x?".")#x}pyzmq[:pyzmq_version][]; / file descriptor for zeromq socke, need v>=17 for fileno
^
{"i"$zsocks[x][:fileno][]};
[2] C:\edev\private\jupyterq\jupyterq_windows-1.1.11\jupyterq_kernel.q:94: \l jupyterq_pyzmq.q
/ zero mq messaging
^
'2024.06.17T05:42:32.194 cleanz
[0] C:\edev\private\jupyterq\jupyterq_windows-1.1.11\jupyterq_kernel.q:32: .z.exit:{cleanz;cleans}
^
Traceback (most recent call last):
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\ptshell.py", line 434, in init_kernel_info
reply = self.client.get_shell_msg(timeout=1)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_core\utils_init_.py", line 173, in wrapped
return loop.run_until_complete(inner)
File "C:\edev\software\anaconda3\envs\pykx308\lib\asyncio\base_events.py", line 616, in run_until_complete
return future.result()
File "C:\edev\software\anaconda3\envs\pykx308\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:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_client\channels.py", line 233, in get_msg
raise Empty
_queue.Empty

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

Traceback (most recent call last):
File "C:\edev\software\anaconda3\envs\pykx308\Scripts\jupyter-console-script.py", line 10, in
sys.exit(main())
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_core\application.py", line 280, in launch_instance
super().launch_instance(argv=argv, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\application.py", line 1074, in launch_instance
app.initialize(argv)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\application.py", line 118, in inner
return method(app, *args, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\app.py", line 136, in initialize
self.init_shell()
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\app.py", line 106, in init_shell
self.shell = ZMQTerminalInteractiveShell.instance(parent=self,
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\traitlets\config\configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
File "C:\edev\software\anaconda3\envs\pykx308\lib\site-packages\jupyter_console\ptshell.py", line 352, in init
self.init_kernel_info()
File "C:\edev\software\anaconda3\envs\pykx308\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

@cmccarthy1
Copy link
Contributor

Hi @kimtang

Currently there are no hard timelines for PyKX to be integrated such that it works with JupyterQ. The work for this would require both embedPy and PyKX to work alongside each other which at present isn't straightforward. Hopefully we will be in a position to support either PyKX or embedPy backed operations of JupyterQ but at the present time there isn't a timeline for that.

Conor

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

No branches or pull requests

2 participants