diff --git a/jupyterlab/package.json b/jupyterlab/package.json index 2ff25756d..d2e7da9b9 100644 --- a/jupyterlab/package.json +++ b/jupyterlab/package.json @@ -1,6 +1,6 @@ { "name": "jupyterlab-jupytext-extensions", - "version": "1.3.9", + "version": "1.4.0", "private": true, "files": [], "workspaces": [ diff --git a/jupyterlab/CHANGELOG.md b/jupyterlab/packages/jupyterlab-jupytext-extension/CHANGELOG.md similarity index 82% rename from jupyterlab/CHANGELOG.md rename to jupyterlab/packages/jupyterlab-jupytext-extension/CHANGELOG.md index 7e5d3aba1..80c447e7d 100644 --- a/jupyterlab/CHANGELOG.md +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/CHANGELOG.md @@ -1,3 +1,17 @@ +# 1.4.0 (2023-10-22) + +- This version of the JupyterLab extension requires JupyterLab 4.x. + +# 1.3.11 (2023-10-22) + +- This version is the same as 1.3.10. It was re-published to include the README that was missing in 1.3.10. + +# 1.3.10 (2023-10-22) + +- The server extension for `jupytext` has been moved from core Jupytext to the (Python) `jupyterlab-jupytext` extension. +- The Jupyter Lab extension is now compatible with the [JupyterLab RISE](https://github.com/jupyterlab-contrib/rise) extension. Many thanks to [Frédéric Collonval](https://github.com/fcollonval) for his PR ([#1126](https://github.com/mwouts/jupytext/pull/1126))! +- This version of the JupyterLab extension is compatible with JupyterLab 4.x. Many thanks to [Thierry Parmentelat](https://github.com/parmentelat) for his PRs! ([#1092](https://github.com/mwouts/jupytext/pull/1092), [#1109](https://github.com/mwouts/jupytext/pull/1109)) + # 1.3.9 (2022-06-02) - We updated the `yarn.lock` file for the jupyter lab extension to address security vulnerabilities ([#904](https://github.com/mwouts/jupytext/issues/904), [#925](https://github.com/mwouts/jupytext/issues/925), [#935](https://github.com/mwouts/jupytext/issues/935), [#939](https://github.com/mwouts/jupytext/issues/939), [#984](https://github.com/mwouts/jupytext/issues/984), [#1005](https://github.com/mwouts/jupytext/issues/1005), [#1011](https://github.com/mwouts/jupytext/issues/1011), [#1030](https://github.com/mwouts/jupytext/issues/1030), [#1036](https://github.com/mwouts/jupytext/issues/1036), [#1052](https://github.com/mwouts/jupytext/pull/1052)) diff --git a/jupyterlab/README.md b/jupyterlab/packages/jupyterlab-jupytext-extension/README.md similarity index 81% rename from jupyterlab/README.md rename to jupyterlab/packages/jupyterlab-jupytext-extension/README.md index c06fbac16..7c29efcc2 100644 --- a/jupyterlab/README.md +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/README.md @@ -24,12 +24,12 @@ jupyter labextension install jupyterlab-jupytext@1.1.1 # for JupyterLab 1.x We assume that you have activated the conda environment described in [CONTRIBUTING.md](https://github.com/mwouts/jupytext/blob/main/CONTRIBUTING.md). -Then you can rebuild the Jupytext python package (with `BUILD_JUPYTERLAB_EXTENSION=1 python setup.py sdist bdist_wheel`) and reinstall it (`pip install dist/jupytext-x.x.x-py3-none-any.whl`). +Then you can rebuild the Jupytext python package (with `python -m build`) and reinstall it (`pip install dist/jupytext-x.x.x-py3-none-any.whl`). Alternatively, if you prefer to develop iteratively, you could install a development version of the extension with ```bash -BUILD_JUPYTERLAB_EXTENSION=1 jupyter labextension develop . --overwrite +jupyter labextension develop . --overwrite ``` Read more on this on the [JupyterLab documentation](https://jupyterlab.readthedocs.io/en/latest/extension/extension_dev.html#developing-a-prebuilt-extension). @@ -38,24 +38,15 @@ Read more on this on the [JupyterLab documentation](https://jupyterlab.readthedo Please note that the main purpose of updating the extension on [npm](https://www.npmjs.com) is to keep the npm documentation up-to-date, since the extension is made available within the Python package itself. -Make sure you have `nodejs>=12` installed, bump the version in `package.json`, and then: +Make sure you have `nodejs>=18` installed, bump the version in `package.json`, and then: ```bash -# Go to the extension folder -cd packages/labextension - -# Cleanup -rm -rf lib node_modules yarn.lock - -# Install JupyterLab's plugin manager -jlpm install - # Package the extension -npm pack +npm pack --pack-destination dist jupyterlab/packages/jupyterlab-jupytext-extension # Test the extension locally -jupyter labextension install jupyterlab-jupytext-xxx.tgz +jupyter labextension install dist/jupyterlab-jupytext-xxx.tgz # Publish the package on npm with -npm publish --access=public +npm publish --access=public jupyterlab/packages/jupyterlab-jupytext-extension/ ``` diff --git a/jupyterlab/jupytext_commands.png b/jupyterlab/packages/jupyterlab-jupytext-extension/jupytext_commands.png similarity index 100% rename from jupyterlab/jupytext_commands.png rename to jupyterlab/packages/jupyterlab-jupytext-extension/jupytext_commands.png diff --git a/jupyterlab/packages/jupyterlab-jupytext-extension/package.json b/jupyterlab/packages/jupyterlab-jupytext-extension/package.json index bafba8aad..8b1c9c6d0 100644 --- a/jupyterlab/packages/jupyterlab-jupytext-extension/package.json +++ b/jupyterlab/packages/jupyterlab-jupytext-extension/package.json @@ -1,6 +1,6 @@ { "name": "jupyterlab-jupytext", - "version": "1.3.9", + "version": "1.4.0", "description": "Save Jupyter Notebooks as Scripts or Markdown files that work well with version control & external text editors", "keywords": [ "jupyter",