Skip to content

Instantly share code, notes, and snippets.

@parente
Last active February 3, 2019 15:36
Show Gist options
  • Save parente/a9e81a787ece496b1e57bacb80345a54 to your computer and use it in GitHub Desktop.
Save parente/a9e81a787ece496b1e57bacb80345a54 to your computer and use it in GitHub Desktop.
Jupyter Tidbit: Config, Data, and Runtime Paths

Summary

You can get a list of standard paths Jupyter tools use for configuration, static assets, and temporary runtime files by running the command jupyter --paths.

Example

When I run jupyter --paths on my laptop, I see the following output:

config:
    /Users/parente/.jupyter
    /Users/parente/miniconda3/envs/jupyter/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /Users/parente/Library/Jupyter
    /Users/parente/miniconda3/envs/jupyter/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /Users/parente/Library/Jupyter/runtime

Why is this useful?

You can use the list of paths to locate and troubleshoot errant extensions and configuration values. You can also use the programmatic equivalents (e.g., import jupyter_core.paths in Python, var jp = require('jupyter-paths') in JavaScript) to read/write appropriate configs and data when building your own Jupyter compatible tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment