Skip to content

Colab CLI 0.6.0 crashes with jupyter-kernel-client 1.0.0 #94

Description

@GeneCodeSavvy

google-colab-cli 0.6.0 depends on jupyter-kernel-client without an upper
version bound but still calls the removed KernelClient API.

Reproduction

echo "print('Hello')" | colab exec

Error

AttributeError: module 'jupyter_kernel_client' has no attribute 'KernelClient'

Environment:

  • google-colab-cli==0.6.0
  • jupyter-kernel-client==1.0.0
  • Python 3.12

Pinning jupyter-kernel-client==0.9.0 fixes it.

Suggested fix: support the 1.x API or temporarily constrain the dependency to
jupyter-kernel-client<1

should I open a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions