-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.0.1 of the jupyterlab-jupytext extension
- A click on a selected format toggles the pairing (#289) - The extension now uses `JupyterFrontEnd` and `JupyterFrontEndPlugin` from `@jupyterlab/application` rather than `JupyterLab` and `JupyterLabPlugin` for compatibility with JupyterLab 1.0.
- Loading branch information
Showing
7 changed files
with
86 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 1.0.1 (2019-07-18) | ||
|
||
- A click on a selected format toggle the pairing (#289) | ||
- Use `JupyterFrontEnd` and `JupyterFrontEndPlugin` from `@jupyterlab/application` rather than `JupyterLab` and `JupyterLabPlugin` for compatibility with JupyterLab 1.0. | ||
|
||
# 1.0.0 (2019-07-06) | ||
|
||
- First extension compatible with JupyterLab 1.0 | ||
|
||
# 0.19.0 (2019-07-06) | ||
|
||
- Last extension compatible with JupyterLab 0.35 | ||
|
||
# 0.1.0 (2018-10-02) | ||
|
||
- Initial release of the extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,39 +20,51 @@ jupyter labextension install [email protected] | |
|
||
# How to develop this extension | ||
|
||
We developed the extension following the [xkcd extension tutorial](https://jupyterlab.readthedocs.io/en/stable/developer/xkcd_extension_tutorial.html). Follow the instructions there to create a conda environment in which you will be able to develop the extension. In that environment, install JupyterLab's plugin manager, and the extension with | ||
We assume that you have activated the conda environment described in [CONTRIBUTING.md](https://github.com/mwouts/jupytext/blob/master/CONTRIBUTING.md). In addition to that environment, you will need `npm`. Install it with | ||
|
||
```bash | ||
conda install nodejs | ||
``` | ||
|
||
In that environment, install JupyterLab's plugin manager, and the extension with | ||
```bash | ||
# Go to the extension folder | ||
cd packages/labextension | ||
|
||
# Cleanup | ||
rm lib node_modules yarn.lock | ||
|
||
# Install JupyterLab's plugin manager | ||
jlpm install | ||
|
||
# Package the extension | ||
npm pack | ||
``` | ||
|
||
Then you can rebuild the Jupytext python package (with `python setup.py sdist bdist_wheel`) and reinstall it (`pip install dist\jupytext-XXX.tar.gz`). | ||
|
||
Alternatively, if you prefer to develop iteratively, you could install a development version of the extension with | ||
|
||
```bash | ||
jupyter labextension install . --no-build | ||
``` | ||
|
||
Then, in another shell on the same environment, start JupyterLab: | ||
Then start JupyterLab in watch mode in another shell on the same environment: | ||
```bash | ||
jupyter lab --watch | ||
``` | ||
|
||
Finally, make changes to the extension and rebuild it (in the first shell) with: | ||
And finally, make changes to the extension and rebuild it (in the first shell) with: | ||
```bash | ||
jlpm run build | ||
``` | ||
|
||
Refresh the JupyterLab interface and see your changes in action. | ||
|
||
# How to publish a new version of the extension | ||
|
||
Bump the version in `package.json`. | ||
|
||
Build the new version of `jupyterlab-jupytext-xxx.tgz` with | ||
|
||
```bash | ||
npm pack | ||
``` | ||
Bump the version in `package.json`, rebuild the extension with `npm pack`. Include the new extension in Git and `setup.py`, and delete the previous version. | ||
|
||
and remove any previous version. That package will be included in the Jupytext Python package. | ||
|
||
If you wish, you may also update the package on npm with | ||
If you wish, you can also publish the package on [npm](https://www.npmjs.com) with | ||
|
||
```bash | ||
npm publish --access=public | ||
``` | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters