Skip to content

DeprecationWarning on a fresh install on CI #398

Open
@mgeier

Description

@mgeier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions