Skip to content

Breaking change in ipykernel 6.18.0 with traitlets #1026

@kylebarron

Description

@kylebarron

We use a CI setup derived from here in the widget-ts-cookiecutter repo, and our CI tests started failing today with ipykernel 6.18.0.

Specifically, we get an exception of

>       if obj._cross_validation_lock is False:
E       AttributeError: 'MockComm' object has no attribute '_cross_validation_lock'

/opt/hostedtoolcache/Python/3.8.14/x64/lib/python3.8/site-packages/traitlets/traitlets.py:722: AttributeError

which is coming from traitlets here.

This is a private method, so maybe traitlets was in the wrong for relying on it. Presumably this happens now because of the comm changes in ipykernel in 6.18. Should I make an issue in traitlets instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions