Paths for Jupyter files¶
Specific directories¶
-
jupyter_core.paths.jupyter_config_dir()¶ Get the Jupyter config directory for this platform and user.
Returns JUPYTER_CONFIG_DIR if defined, else ~/.jupyter
-
jupyter_core.paths.jupyter_data_dir()¶ Get the config directory for Jupyter data files.
These are non-transient, non-configuration files.
Returns JUPYTER_DATA_DIR if defined, else a platform-appropriate path.
-
jupyter_core.paths.jupyter_runtime_dir()¶ Return the runtime dir for transient jupyter files.
Returns JUPYTER_RUNTIME_DIR if defined.
The default is now (data_dir)/runtime on all platforms; we no longer use XDG_RUNTIME_DIR after various problems.
Search paths¶
-
jupyter_core.paths.jupyter_config_path()¶ Return the search path for Jupyter config files as a list.
-
jupyter_core.paths.jupyter_path(*subdirs)¶ Return a list of directories to search for data files
JUPYTER_PATH environment variable has highest priority.
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']