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

Jupyter support is broken in v1.40.3 #22231

Closed
ryanmiville opened this issue Feb 2, 2024 · 2 comments · Fixed by #22240
Closed

Jupyter support is broken in v1.40.3 #22231

ryanmiville opened this issue Feb 2, 2024 · 2 comments · Fixed by #22240
Labels
bug Something isn't working high priority jupyter

Comments

@ryanmiville
Copy link

Upgrading to 1.40.3 broke Jupyter support for me. I uninstalled and reinstalled the kernel, but it was still broken until I downgraded back to 1.40.2

RUST_BACKTRACE=1 jupyter console --kernel deno
Warning "deno jupyter" is unstable and might change in the future.
JS PANIC: Unknown or disabled op 'op_jupyter_broadcast'

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.40.3
Args: ["/Users/ryan.miville/.deno/bin/deno", "jupyter", "--kernel", "--conn", "/Users/ryan.miville/Library/Jupyter/runtime/kernel-35171.json"]

thread 'main' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_core-0.256.0/ops_builtin.rs:117:3:
JS PANIC: Unknown or disabled op 'op_jupyter_broadcast'
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: deno_core::ops_builtin::op_panic::v8_fn_ptr_metrics
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/jupyter_console/ptshell.py", line 434, in init_kernel_info
    reply = self.client.get_shell_msg(timeout=1)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jupyter_core/utils/__init__.py", line 166, in wrapped
    return loop.run_until_complete(inner)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jupyter_client/client.py", line 139, in _async_get_shell_msg
    return await ensure_async(self.shell_channel.get_msg(*args, **kwargs))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/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 "/usr/local/bin/jupyter-console", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jupyter_core/application.py", line 285, in launch_instance
    return super().launch_instance(argv=argv, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/traitlets/config/application.py", line 1045, in launch_instance
    app.initialize(argv)
  File "/usr/local/lib/python3.11/site-packages/traitlets/config/application.py", line 113, in inner
    return method(app, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jupyter_console/app.py", line 136, in initialize
    self.init_shell()
  File "/usr/local/lib/python3.11/site-packages/jupyter_console/app.py", line 106, in init_shell
    self.shell = ZMQTerminalInteractiveShell.instance(parent=self,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/traitlets/config/configurable.py", line 555, in instance
    inst = cls(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jupyter_console/ptshell.py", line 352, in __init__
    self.init_kernel_info()
  File "/usr/local/lib/python3.11/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
@maxdow
Copy link

maxdow commented Feb 2, 2024

Same error here, Vscode last version and win 10. Deno 1.40.2 is working

@bartlomieju
Copy link
Member

Thanks for the report and sorry for the problem. I fixed it in #22240, you should be able to upgrade to a canary version in a few hours (deno upgrade --canary) or stay on v1.40.2 until v1.40.4 is released next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority jupyter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants