Skip to content

Instantly share code, notes, and snippets.

@parente parente/README.md Secret
Last active Feb 3, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.