Skip to content

Commit 16052ec

Browse files
authored
Merge branch 'master' into fix-switch-new-branch
2 parents 97d1058 + b83568a commit 16052ec

27 files changed

+1948
-393
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ before_install:
99
- nvm install 10
1010
install: pip install pytest "jupyterlab~=1.1"
1111
script:
12+
# Build the sdist (identical to what will be uploaded to eg pypi on release)
1213
- python setup.py sdist
13-
# Install the extension ensuring the cache is unused
14+
# Install the extension from the sdist ensuring the cache is unused
1415
- pip install jupyterlab_git[test] --pre --no-index --find-links=dist --no-deps --no-cache-dir -v
15-
# Install the extension dependencies
16+
# Install the extension dependencies based on the current setup.py
1617
- pip install jupyterlab_git[test]
1718
- jupyter labextension list
1819
- jupyter lab build

MANIFEST.in

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@ include README.md
33

44
include setupbase.py
55

6-
include package.json
7-
include *.config.js
8-
include setupJest.js
9-
include ts*.json
10-
include jupyterlab_git/labextension/*.tgz
11-
12-
# Tests
13-
graft tests
14-
prune tests/build
15-
16-
# Javascript files
17-
graft schema
18-
graft src
19-
graft style
20-
prune **/node_modules
21-
prune lib
22-
236
# Patterns to exclude from any directory
247
global-exclude *~
258
global-exclude *.pyc

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ A JupyterLab extension for version control using git
77

88
![](http://g.recordit.co/N9Ikzbyk8P.gif)
99

10+
To see the extension in action, open the example notebook included in the Binder [demo](https://mybinder.org/v2/gh/jupyterlab/jupyterlab-git/master?urlpath=lab).
11+
1012
## Prerequisites
1113

1214
- JupyterLab
@@ -24,6 +26,14 @@ pip install --upgrade jupyterlab-git
2426
jupyter lab build
2527
```
2628

29+
### Troubleshooting
30+
31+
- When you run JupyterLab, if you can see the Git sidepanel UI but you cannot get it to work, you may need to explicitly enable the serverextension by running:
32+
33+
```bash
34+
jupyter serverextension enable --py jupyterlab_git
35+
```
36+
2737
## Development
2838

2939
### Contributing
@@ -55,17 +65,19 @@ If you would like to be listed, please submit a pull request with your informati
5565
Requires node 4+ and npm 4+
5666

5767
```bash
68+
# Install new-ish JupyterLab
69+
pip install -U jupyterlab
70+
5871
# Clone the repo to your local environment
5972
git clone https://github.com/jupyterlab/jupyterlab-git.git
6073
cd jupyterlab-git
61-
# Install JupyterLab
62-
pip install jupyterlab
63-
# Install Javascript dependencies
64-
jlpm install
65-
# Install the server extension in development mode
74+
75+
# Install the server extension in development mode and enable it
6676
pip install -e .[test]
6777
jupyter serverextension enable --py jupyterlab_git
68-
# Link your development version of the extension with JupyterLab
78+
79+
# Build the labextension and dev-mode link it to jlab
80+
jlpm build
6981
jupyter labextension link .
7082
```
7183

@@ -81,4 +93,4 @@ To execute the tests
8193
```bash
8294
pytest jupyterlab_git
8395
jlpm run test
84-
```
96+
```

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
"sourceMap": "inline",
23
presets: [
34
[
45
'@babel/preset-env',

0 commit comments

Comments
 (0)