jupyter_core icon indicating copy to clipboard operation
jupyter_core copied to clipboard

DeprecationWarning on a fresh install on CI

Open mgeier opened this issue 10 months ago • 2 comments

When invoking nbconvert on CI with warnings turned into errors (e.g. https://github.com/mgeier/nbsphinx/actions/runs/8581467203/job/23518524054), I'm getting this warning/error:

Exception occurred:
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 90, in deprecation
    warnings.warn(message, DeprecationWarning, stacklevel=stacklevel + 1)
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

I would expect the module to work out-of-the-box if freshly installed. Am I supposed to run jupyter --paths each time in CI?

mgeier avatar Apr 06 '24 13:04 mgeier