-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
Breaking change in ipykernel 6.18.0 with traitlets #1026
Comments
Specifically, in 6.17.1, the
while in 6.18, the class hierarchy is
so at least in our tests, it looks like traitlets is expecting the comm object to have properties defined on both |
cc @martinRenou, it looks like a change is needed in the comm package |
cc @ccordoba12, looks like you might need a temporary pin |
I think the Comm implementation in ipykernel should derive from I think @martinRenou has an implementation of that. |
I just yanked 6.18.0. We can release 6.18.1 once we sort this out. |
@martinRenou I think if the intent is to use the comm package directly in |
On a possibly related note (I need to dig more into it, as Kyle did), we now get the following error when importing the HoloViews extension in a notebook:
ipykernel 6.18.0 has been released on conda-forge, can it be labelled as broken? |
Thanks for pinging me @blink1073 I'll push on the new comm package to make sure to fix those. |
@kylebarron would you be able to provide the entire traceback for your error I'd be curious to understand why
@maartenbreddels I fear this will not be sufficient and we'll need to inherit from
@maximlt Do you know why the |
The removal of |
It appears this happens whenever a new traitlets item is being set on a comm subclass? Here's a minimal repro case: from ipykernel.comm import Comm
from traitlets import Unicode
class MockComm(Comm):
comm_id = Unicode("a-b-c-d")
MockComm()
Maybe setting a traitlets value on a subclass like this wasn't supposed to work and isn't the intended API? |
This should fix those issues ipython/comm#6 |
Closing in favor of #1043 |
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
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?
The text was updated successfully, but these errors were encountered: