- Install latest anaconda
- Install jupyter with
conda update --prefix ~/anaconda3 anaconda
and thenconda install jupyter
to ensure you have >6.2.0. With earlier versions than 6.1.6, the inline terminals will not function due to a patch of the Jupyter core that prevented the instantiation of new terminals with only a socket connection. - run
npm i
in thejupytergraffiti
dir. - Install Graffiti using conda:
conda install -c willkessler jupytergraffiti
to set it up to run on jupyter start. You will be overwriting the shipped files in its extension directory in the next step. - The
build_for_pip
directory can be used to build and install a minified version of the plugin to the following directory:~/anaconda3/share/jupyter/nbextensions/jupytergraffiti
. cdbuild_for_pip && python setup.py npm_run_build
. - To make local dev easier, set up
watchexec
(https://github.com/watchexec/watchexec) . Thencd jupytergraffiti/js
andwatchexec --exts js "cd ../../build_for_pip && python setup.py npm_run_build"
to run the build command any time a js file changes.