Contributing to the Jupyter Notebook¶
If you’re reading this section, you’re probably interested in contributing to Jupyter. Welcome and thanks for your interest in contributing!
Please take a look at the Contributor documentation, familiarize yourself with using the Jupyter Notebook, and introduce yourself on the mailing list and share what area of the project you are interested in working on.
For general documentation about contributing to Jupyter projects, see the Project Jupyter Contributor Documentation.
Setting Up a Development Environment¶
Installing Node.js and npm¶
Building the Notebook from its GitHub source code requires some tools to
specifically Node.js and Node’s package manager,
It should be node version ≥ 6.0.
If you use
conda, you can get them with:
conda install -c conda-forge nodejs
If you use Homebrew on Mac OS X:
brew install node
Installation on Linux may vary, but be aware that the nodejs or npm packages included in the system package repository may be too old to work properly.
You can also use the installer from the Node.js website.
Installing the Jupyter Notebook¶
Once you have installed the dependencies mentioned above, use the following steps:
pip install --upgrade setuptools pip git clone https://github.com/jupyter/notebook cd notebook pip install -e .
If you are using a system-wide Python installation and you only want to install the notebook for you,
you can add
--user to the install commands.
Once you have done this, you can launch the master branch of Jupyter notebook from any directory in your system with:
npm run build
IMPORTANT: Don’t forget to run
npm run build after switching branches.
When switching between branches of different versions (e.g.
pip install -e .. If you have tried the above and still
find that the notebook is not reflecting the current source code, try cleaning
the repo with
git clean -xfd and reinstalling with
pip install -e ..
npm run build:watch
git-hooks/README.md for more details.
pip install -e .[test]
To run the Python tests, use:
If you want coverage statistics as well, you can run:
nosetests --with-coverage --cover-package=notebook notebook
npm install -g casperjs phantomjs-prebuilt
python -m notebook.jstest [group]
[group] is an optional argument that is a path relative to
For example, to run all tests in
python -m notebook.jstest notebook
or to run just
python -m notebook.jstest notebook/deletecell.js
Building the Documentation¶
To install (and activate) a conda environment named
containing all the necessary packages (except pandoc), use:
conda env create -f docs/environment.yml source activate notebook_docs # Linux and OS X activate notebook_docs # Windows
If you want to install the necessary packages with
pip install -r docs/doc-requirements.txt
Once you have installed the required packages, you can build the docs with:
cd docs make html
After that, the generated HTML files will be available at
build/html/index.html. You may view the docs in your browser.
You can automatically check if all hyperlinks are still valid:
Windows users can find
make.bat in the
You should also have a look at the Project Jupyter Documentation Guide.