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

Deprecation Warning for Jupyter #328

Open
Pydes-boop opened this issue Aug 12, 2024 · 0 comments
Open

Deprecation Warning for Jupyter #328

Pydes-boop opened this issue Aug 12, 2024 · 0 comments

Comments

@Pydes-boop
Copy link

Pydes-boop commented Aug 12, 2024

Im currently running some oct2py scripts in my testing setup using pytest, which is when i noticed that pytest generally throws me a warning for my tests whenever im using oct2py.

/home/USER/.local/lib/python3.8/site-packages/metakernel/_metakernel.py:20: 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_config_path, jupyter_config_dir

This is apparently caused by the dependency on jupyter-core.

The warning/error can be reproduced by creating a simple script:

import oct2py

oc = oct2py.Oct2Py()
x = oc.zeros(3, 3)
print(x, x.dtype)

and running it with enabled warnings: python3 -W default oct2py_warning.py

This is on the current version oct2py 5.7.1

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

No branches or pull requests

1 participant