DeprecationWarning: ShellWidget._syntax_style_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead
See original GitHub issueI received the following warning when running the test suite:
spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py::test_banners
<<<PACKAGEDIR>>>/spyder/plugins/ipythonconsole/widgets/shell.py:789: DeprecationWarning: ShellWidget._syntax_style_changed is deprecated in traitlets 4.1: use @observe and @unobserve instead.
def _syntax_style_changed(self):
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
IntersectionObserver.unobserve() - Web APIs | MDN
The IntersectionObserver method unobserve() instructs the IntersectionObserver to stop observing the specified target element.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, that fixed it - well done! I’ll make a PR for this.
Maybe the reimplementation over the Spyder side of
_syntax_style_changed
(originally defined at QtConsole: https://github.com/jupyter/qtconsole/blob/fa1a7f898e7d402ac9bb64a652db5dc509e1f649/qtconsole/jupyter_widget.py#L594-L595) also needs to be decorated with@observe('syntax_style')
(and checking seems like over the Spyder side thekwarg
is missing). Could you check if that helps @juliangilbey ? Thanks!