jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook
https://ipywidgets.readthedocs.io
BSD 3-Clause "New" or "Revised" License
3.1k stars 946 forks source link

fix: get_metadata deprecated since traitlets 4.1 #3894

Open ManonMarchand opened 3 months ago

ManonMarchand commented 3 months ago

Hello,

This is a very tiny PR, but I get a deprecation warning raised by this line from the traitlets library when using a custom ipywidget:

https://github.com/ipython/traitlets/blob/cb672eb5ba235fdfee6407bd7f1b1985de934e7c/traitlets/traitlets.py#L833

Here is a fix that should remove it?

Edit: I explicitly allow anyone to edit anything I might have done wrong, I have no idea why the tests are failing

github-actions[bot] commented 3 months ago

Binder :point_left: Launch a binder notebook on branch _ManonMarchand/ipywidgets/fix-getmetadata