Paths for Jupyter files¶
Specific directories¶
-
jupyter_core.paths.jupyter_config_dir() → str¶ Get the Jupyter config directory for this platform and user.
Returns JUPYTER_CONFIG_DIR if defined, otherwise the appropriate directory for the platform.
Search paths¶
-
jupyter_core.paths.jupyter_config_path() → List[str]¶ Return the search path for Jupyter config files as a list.
If the JUPYTER_PREFER_ENV_PATH environment variable is set, the environment-level directories will have priority over user-level directories.
If the Python site.ENABLE_USER_SITE variable is True, we also add the appropriate Python user site subdirectory to the user-level directories.
-
jupyter_core.paths.jupyter_path(*subdirs: str) → List[str]¶ Return a list of directories to search for data files
JUPYTER_PATH environment variable has highest priority.
If the JUPYTER_PREFER_ENV_PATH environment variable is set, the environment-level directories will have priority over user-level directories.
If the Python site.ENABLE_USER_SITE variable is True, we also add the appropriate Python user site subdirectory to the user-level directories.
If
*subdirsare given, that subdirectory will be added to each element.Examples:
>>> jupyter_path() ['~/.local/jupyter', '/usr/local/share/jupyter'] >>> jupyter_path('kernels') ['~/.local/jupyter/kernels', '/usr/local/share/jupyter/kernels']