Skip to content

Commit

Permalink
Improve documentation: Instructions for development and test setups (#…
Browse files Browse the repository at this point in the history
…130)

* improve readme

* use cd, because not going back up

* separate the contribution instructions from the readme

and keep it virtual environment tool neutral
  • Loading branch information
ZelphirKaltstahl authored Feb 23, 2021
1 parent e5ee26d commit a82794a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Development Install

``` shell
git clone https://github.com/jupyterlab/jupyterlab_server.git
cd jupyterlab_server
pip install -e .
```

# Testing

It is probably best to create a virtual environment to create a local test setup. There are multiple tools for creating a Python virtual environment out there from which you can choose the one you like best.

To create a local test setup run the following commands (inside your virtual environment, if you chose to create one):

``` shell
git clone https://github.com/jupyterlab/jupyterlab_server.git
cd jupyterlab_server
pip install -e .[test] # install test dependencies
pytest
```
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ https://github.com/jupyterlab/jupyterlab_server
`pip install jupyterlab_server`

## Usage

The application author creates a JupyterLab build on their machine
using the core JupyterLab application. They can then serve their
files by subclassing the `LabServerApp` with the appropriate
configuration and creating a Python entry point that launches the app.


## Development Install
## Contribution

```
git clone https://github.com/jupyterlab/jupyterlab_server.git
cd jupyterlab_server
pip install -e .
```
Please see `CONTRIBUTING.md` for details.

0 comments on commit a82794a

Please sign in to comment.