Skip to content

Commit ee9bd1e

Browse files
authored
Merge pull request #271 from rolweber/developer-readme
#268: README on setting up the development environment
2 parents b334d1a + 8ede2a1 commit ee9bd1e

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Contributing
22

33
We follow the [IPython Contributing Guide](https://github.com/ipython/ipython/blob/master/CONTRIBUTING.md).
4+
5+
See the [README](https://github.com/jupyter/jupyter_client/blob/master/README.md) on how to set up a development environment.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,37 @@ It also provides the `jupyter kernelspec` entrypoint
1010
for installing kernelspecs for use with Jupyter frontends.
1111

1212
[Jupyter protocol]: https://jupyter-client.readthedocs.io/en/latest/messaging.html
13+
14+
15+
# Development Setup
16+
17+
The [Jupyter Contributor Guides](http://jupyter.readthedocs.io/en/latest/contributor/content-contributor.html) provide extensive information on contributing code or documentation to Jupyter projects. The limited instructions below for setting up a development environment are for your convenience.
18+
19+
## Coding
20+
21+
You'll need Python and `pip` on the search path. Clone the Jupyter Client git repository to your computer, for example in `/my/project/jupyter_client`.
22+
Now create an [editable install](https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs)
23+
and download the dependencies of code and test suite by executing:
24+
25+
cd /my/projects/jupyter_client/
26+
pip install -e .[test]
27+
py.test
28+
29+
The last command runs the test suite to verify the setup. During development, you can pass filenames to `py.test`, and it will execute only those tests.
30+
31+
## Documentation
32+
33+
The documentation of Jupyter Client is generated from the files in `docs/` using Sphinx. Instructions for setting up Sphinx with a selection of optional modules are in the [Documentation Guide](http://jupyter.readthedocs.io/en/latest/contrib_docs/index.html). You'll also need the `make` command.
34+
For a minimal Sphinx installation to process the Jupyter Client docs, execute:
35+
36+
pip install sphinx sphinx_rtd_theme
37+
38+
The following commands build the documentation in HTML format and check for broken links:
39+
40+
cd /my/projects/jupyter_client/docs/
41+
make html linkcheck
42+
43+
Point your browser to the following URL to access the generated documentation:
44+
45+
_file:///my/projects/jupyter\_client/docs/\_build/html/index.html_
46+

0 commit comments

Comments
 (0)