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 Server, 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.
Once you have installed the dependencies mentioned above, use the following steps:
pip install --upgrade setuptools pip git clone https://github.com/jupyter/jupyter_server cd jupyter_server pip install -e .
If you are using a system-wide Python installation and you only want to install the server for you,
you can add --user
to the install commands.
Once you have done this, you can launch the master branch of Jupyter server from any directory in your system with:
jupyter server
If you do not see that your Jupyter Server is not running on dev mode, it's possible that you are running other instances of Jupyter Server. You can try the following steps:
- Uninstall all instances of the jupyter_server package. These include any installations you made using pip or conda
- Run
python3 -m pip install -e .
in the jupyter_server repository to install the jupyter_server from there - Run
npm run build
to make sure the Javascript and CSS are updated and compiled - Launch with
python3 -m jupyter_server --port 8989
, and check that the browser is pointing tolocalhost:8989
(rather than the default 8888). You don't necessarily have to launch with port 8989, as long as you use a port that is neither the default nor in use, then it should be fine. - Verify the installation with the steps in the previous section.
Install dependencies:
pip install -e .[test]
To run the Python tests, use:
nosetests
If you want coverage statistics as well, you can run:
nosetests --with-coverage --cover-package=jupyter_server jupyter_server
To build the documentation you'll need Sphinx, pandoc and a few other packages.
To install (and activate) a conda environment named server_docs
containing all the necessary packages (except pandoc), use:
conda env create -f docs/environment.yml source activate server_docs # Linux and OS X activate notebook_docs # Windows
If you want to install the necessary packages with pip
instead:
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:
make linkcheck
Windows users can find make.bat
in the docs
folder.
You should also have a look at the Project Jupyter Documentation Guide.