Jupyter/Base16mpl
From charlesreid1
Repo: https://github.com/benjaminaschultz/base16-ipython-matplotlibrc
Instructions
The instructions from the repo say to copy the base16_mplrc directory into the ipython extensions directory. However, these instructions are several years out of date and don't work out of the box with Jupyter.
Directories in Jupyter
Start by finding the data directories where Jupyter is searching for extensions.
Run jupyter with the --paths flag:
jupyter --paths
This will list all of the config and data paths that Jupyter is using.
Custom Config and Data Paths
As mentioned on the Jupyter/Base16 page and the Jupyter/Profiles page, a new config path can be added by setting $JUPYTER_CONFIG_DIR before generating a config directory or running a notebook server:
JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook --generate-config JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook
Likewise, to set a path for Jupyter to load extensions from, set the $JUPYTER_PATH variable:
JUPYTER_PATH=~/jupyter_data jupyter notebook
Loading Extension
To load this extension in the notebook, do one of the following two things:
(a) Copy the dir base16-ipython-mplrc/base16-mplrc-themes and the file base16-ipython-mplrc/base16_mplrc.py to a path in the data directory, e.g., ~/Library/Jupyter/. Once in the notebook, executing the notebook magic %load_ext base16_mplrc
(b) Modify the config file to automatically load the extension$JUPYTER_CONFIG_DIR/jupyter_notebook_config.py to include the following:
c.InteractiveShellApp.extensions = [ 'base16_mplrc' ]
(method a not working, method b untested)