Skip to content
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

Fix unintentional deprecation warnings #3650

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

jasongrout
Copy link
Member

@jasongrout jasongrout commented Dec 13, 2022

We missed a traitlet setup function that is called when the class is setup.

Fixes #3648

With these changes:

$ python -c "import warnings; warnings.resetwarnings(); import ipywidgets"
/private/var/folders/l0/km7g2yss183d7nrskwl4xgbc0000gn/T/tmpenv.Moiql2qU/env/lib/python3.11/site-packages/jupyter_client/connect.py:27: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
given by the platformdirs library.  To remove this warning and
see the appropriate new directories, set the environment variable
`JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
The use of platformdirs will be the default in `jupyter_core` v6
  from jupyter_core.paths import jupyter_data_dir

We missed a traitlet setup function that is called when the class is setup.

Fixes jupyter-widgets#3648
@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch jasongrout/ipywidgets/deprecationwarnings

@jasongrout jasongrout merged commit c326759 into jupyter-widgets:master Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warnings on import
2 participants