From 6f365be7aa452998f553084204e129068195a6f3 Mon Sep 17 00:00:00 2001 From: tomondre Date: Tue, 29 Jul 2025 09:55:45 +0200 Subject: [PATCH 1/4] fix: improve backward compatibility --- reana_jupyterlab/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reana_jupyterlab/__init__.py b/reana_jupyterlab/__init__.py index d346e27..2cd3f1e 100644 --- a/reana_jupyterlab/__init__.py +++ b/reana_jupyterlab/__init__.py @@ -18,4 +18,11 @@ def _jupyter_labextension_paths(): def _jupyter_server_extension_points(): # pragma: no cover return [{ "module": "reana_jupyterlab.server" - }] \ No newline at end of file + }] + +# Import and expose the server extension loading function for backward compatibility +# Fixes `X Validation failed: validation failed` error + +from .server import _load_jupyter_server_extension + +load_jupyter_server_extension = _load_jupyter_server_extension From 038f993e66397aebb4887762d380add63b47fedf Mon Sep 17 00:00:00 2001 From: tomondre Date: Tue, 29 Jul 2025 09:56:00 +0200 Subject: [PATCH 2/4] docs: enhance installation instructions --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 044a64f..e600d8c 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Reana JupyterLab plugin provides a set of tools to interact with the [Reana](htt ## Installation guide for users To install the extension, run the following command: ```bash -pip install reana-jupyterlab +python -m pip install reana-jupyterlab ``` In case you want to run the tests, install the extension with the following command: ```bash -pip install reana-jupyterlab[dev] +python -m pip install reana-jupyterlab[dev] ``` ### Docker image @@ -52,17 +52,18 @@ Build the extension jlpm run build ``` -Install the extension (including the testing dependencies) +Install the extension in editable mode and include the development dependencies: ```bash -python -m pip install .[dev] +python -m pip install -e . +python -m pip install ".[dev]" ``` Enable the server extension ```bash -jupyter server extension enable --py reana_jupyterlab +python -m jupyter server extension enable --py reana_jupyterlab.server ``` Finally, open a JupyterLab instance. The extension should be available in the JupyterLab sidebar. ```bash -jupyter lab -``` \ No newline at end of file +python -m jupyter lab +``` From 699e4f00153414d4fafe232b1ad1ef03c18b77a8 Mon Sep 17 00:00:00 2001 From: tomondre Date: Tue, 29 Jul 2025 11:16:46 +0200 Subject: [PATCH 3/4] docs: update JupyterLab command to include autoreload option --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e600d8c..40c396d 100644 --- a/README.md +++ b/README.md @@ -65,5 +65,5 @@ python -m jupyter server extension enable --py reana_jupyterlab.server Finally, open a JupyterLab instance. The extension should be available in the JupyterLab sidebar. ```bash -python -m jupyter lab +python -m jupyter lab --autoreload ``` From c82cf91b78c4c2ea2dc87b3415639806f4f424b8 Mon Sep 17 00:00:00 2001 From: tomondre Date: Tue, 29 Jul 2025 11:39:51 +0200 Subject: [PATCH 4/4] docs: add instructions to enable watch mode for automatic rebuilds --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 40c396d..fcddc8d 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,11 @@ Build the extension jlpm run build ``` +Enable watch mode in a separate terminal to automatically rebuild the extension on changes: +```bash +jlpm watch +``` + Install the extension in editable mode and include the development dependencies: ```bash python -m pip install -e .