Skip to content

Commit

Permalink
explicit jupyter lab build
Browse files Browse the repository at this point in the history
Install the bundled extension rather than the one from npm

#259 #276
  • Loading branch information
mwouts committed Jul 1, 2019
1 parent 872c658 commit b6eb8f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ In JupyterLab, Jupytext adds a set of commands to the command palette:

![JupyterLab extension](https://raw.githubusercontent.com/mwouts/jupyterlab-jupytext/master/jupytext_commands.png)

If you don't see these commands, install the extension manually with
The Jupytext extension for JupyterLab is bundled with Jupytext. Installing Jupytext will trigger a build of JupyterLab the next time you open it. If you prefer, you can trigger the build manually with
```
jupyter labextension install jupyterlab-jupytext
jupyter lab build
```
(the above requires `npm`, run `conda install nodejs` first if you don't have `npm`).

## Using Jupytext

Expand Down
10 changes: 8 additions & 2 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
# Stop everything if one command fails
set -e

# Install the bash kernel
python -m bash_kernel.install

# Trust our notebook
jupyter trust demo/World\ population.ipynb

# Set up extensions for JupyterLab and Notebook
jupyter labextension install jupyterlab-jupytext
# Build jupyter lab to include the Jupytext extension
jupyter lab build

# Create the notebook for our jupytext demo
jupytext demo/get_started.md --to ipynb --update-metadata '{"jupytext":null}'

# Remove the markdown representation
# the demo starts with just the ipynb file
rm demo/get_started.md
5 changes: 2 additions & 3 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ In JupyterLab, Jupytext adds a set of commands to the command palette:

![JupyterLab extension](https://raw.githubusercontent.com/mwouts/jupyterlab-jupytext/master/jupytext_commands.png)

If you don't see these commands, install the extension manually with
The Jupytext extension for JupyterLab is bundled with Jupytext. Installing Jupytext will trigger a build of JupyterLab the next time you open it. If you prefer, you can trigger the build manually with
```
jupyter labextension install jupyterlab-jupytext
jupyter lab build
```
(the above requires `npm`, run `conda install nodejs` first if you don't have `npm`).

0 comments on commit b6eb8f6

Please sign in to comment.