-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DeprecationWarning: ShellWidget._syntax_style_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead #14534
Comments
Hi @juliangilbey, Did you installed all the dependencies for the test suite? |
Yes I have, at least as far as I know; and this does not appear to be a dependency warning or error. I have traitlets 5.0.5 installed. I don't know enough about traitlets or what magic it does to properly diagnose this issue. But spyder/plugins/ipythonconsole/plugin.py imports from traitlets, which presumably has an impact on lots of things. The particular code in traitlets.py that raises this warning is in the function # Now static ones
magic_name = '_%s_changed' % name
if event.type == "change" and hasattr(self, magic_name):
class_value = getattr(self.__class__, magic_name)
if not isinstance(class_value, ObserveHandler):
_deprecated_method(class_value, self.__class__, magic_name,
"use @observe and @unobserve instead.") So it seems that the name of this function, But I may be talking nonsense. |
In my environment I have trailets version 5.0.5, can you update that dependency to see if this fixes the warning? |
I too have traitlets version 5.0.5. |
FYI: I'm still getting this warning when running the tests in spyder 5.2.0:
|
Maybe the reimplementation over the Spyder side of |
Yes, that fixed it - well done! I'll make a PR for this. |
I received the following warning when running the test suite:
The text was updated successfully, but these errors were encountered: