From 43dedca2ddb4ddae83e4c8ba2e9e528a46c562af Mon Sep 17 00:00:00 2001 From: Tim Daniel Metzler Date: Thu, 24 Oct 2024 16:03:43 +0200 Subject: [PATCH] Add cell-extension --- e2xgrader/__init__.py | 6 +++- package.json | 2 +- pyproject.toml | 1 + yarn.lock | 76 +++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 81 insertions(+), 4 deletions(-) diff --git a/e2xgrader/__init__.py b/e2xgrader/__init__.py index 08fb3b61..7c4af003 100644 --- a/e2xgrader/__init__.py +++ b/e2xgrader/__init__.py @@ -29,7 +29,11 @@ def _jupyter_labextension_paths(): { "src": "static/labextensions/@e2xgrader/labextension", "dest": "@e2xgrader/labextension", - } + }, + { + "src": "static/labextensions/@e2xgrader/cell-extension", + "dest": "@e2xgrader/cell-extension", + }, ] diff --git a/package.json b/package.json index e1bc18ac..141bcdfd 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "stylelint:check": "lerna run stylelint:check", "test": "jest --coverage", "watch": "run-p watch:labextension", - "watch:labextension": "lerna exec --stream --scope @e2xgrader/labextension -- jlpm watch" + "watch:labextension": "lerna exec --stream --scope @e2xgrader/labextension --scope @e2xgrader/cell-extension -- jlpm watch" }, "repository": { "type": "git", diff --git a/pyproject.toml b/pyproject.toml index 3d2f38be..dbddb2b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,6 +87,7 @@ include = ["/e2xgrader"] [tool.hatch.build.targets.wheel.shared-data] "etc/jupyter/jupyter_server_config.d" = "etc/jupyter/jupyter_server_config.d" "e2xgrader/static/labextensions/@e2xgrader/labextension" = "share/jupyter/labextensions/@e2xgrader/labextension" +"e2xgrader/static/labextensions/@e2xgrader/cell-extension" = "share/jupyter/labextensions/@e2xgrader/cell-extension" "install.json" = "share/jupyter/labextensions/@e2xgrader/labextension/install.json" [tool.jupyter-releaser.options] diff --git a/yarn.lock b/yarn.lock index 67b61efe..6f60a05e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1603,13 +1603,50 @@ __metadata: languageName: node linkType: hard +"@e2xgrader/cell-extension@workspace:packages/cell-extension": + version: 0.0.0-use.local + resolution: "@e2xgrader/cell-extension@workspace:packages/cell-extension" + dependencies: + "@e2xgrader/cells": ^0.1.0 + "@e2xgrader/settings": ^0.1.0 + "@jupyterlab/application": ^4.0.0 + "@jupyterlab/builder": ^4.0.0 + "@jupyterlab/cells": ^4.2.5 + "@jupyterlab/notebook": ^4.2.5 + "@jupyterlab/settingregistry": ^4.0.0 + "@jupyterlab/testutils": ^4.0.0 + "@types/jest": ^29.2.0 + "@types/json-schema": ^7.0.11 + "@types/react": ^18.0.26 + "@types/react-addons-linked-state-mixin": ^0.14.22 + "@typescript-eslint/eslint-plugin": ^6.1.0 + "@typescript-eslint/parser": ^6.1.0 + css-loader: ^6.7.1 + eslint: ^8.36.0 + eslint-config-prettier: ^8.8.0 + eslint-plugin-prettier: ^5.0.0 + jest: ^29.2.0 + npm-run-all: ^4.1.5 + prettier: ^3.0.0 + rimraf: ^5.0.1 + source-map-loader: ^1.0.2 + style-loader: ^3.3.1 + stylelint: ^15.10.1 + stylelint-config-recommended: ^13.0.0 + stylelint-config-standard: ^34.0.0 + stylelint-csstree-validator: ^3.0.0 + stylelint-prettier: ^4.0.0 + typescript: ~5.0.2 + yjs: ^13.5.0 + languageName: unknown + linkType: soft + "@e2xgrader/cells@^0.1.0, @e2xgrader/cells@workspace:packages/cells": version: 0.0.0-use.local resolution: "@e2xgrader/cells@workspace:packages/cells" dependencies: "@jupyterlab/builder": ^4.0.0 - "@jupyterlab/cells": ^4.2.5 - "@jupyterlab/rendermime": ^4.2.5 + "@jupyterlab/settingregistry": ^4.2.5 "@jupyterlab/testutils": ^4.0.0 "@types/jest": ^29.2.0 "@types/json-schema": ^7.0.11 @@ -1703,6 +1740,41 @@ __metadata: languageName: unknown linkType: soft +"@e2xgrader/settings@^0.1.0, @e2xgrader/settings@workspace:packages/settings": + version: 0.0.0-use.local + resolution: "@e2xgrader/settings@workspace:packages/settings" + dependencies: + "@jupyterlab/builder": ^4.0.0 + "@jupyterlab/cells": ^4.2.5 + "@jupyterlab/rendermime": ^4.2.5 + "@jupyterlab/settingregistry": ^4.2.5 + "@jupyterlab/testutils": ^4.0.0 + "@types/jest": ^29.2.0 + "@types/json-schema": ^7.0.11 + "@types/react": ^18.0.26 + "@types/react-addons-linked-state-mixin": ^0.14.22 + "@typescript-eslint/eslint-plugin": ^6.1.0 + "@typescript-eslint/parser": ^6.1.0 + css-loader: ^6.7.1 + eslint: ^8.36.0 + eslint-config-prettier: ^8.8.0 + eslint-plugin-prettier: ^5.0.0 + jest: ^29.2.0 + npm-run-all: ^4.1.5 + prettier: ^3.0.0 + rimraf: ^5.0.1 + source-map-loader: ^1.0.2 + style-loader: ^3.3.1 + stylelint: ^15.10.1 + stylelint-config-recommended: ^13.0.0 + stylelint-config-standard: ^34.0.0 + stylelint-csstree-validator: ^3.0.0 + stylelint-prettier: ^4.0.0 + typescript: ~5.0.2 + yjs: ^13.5.0 + languageName: unknown + linkType: soft + "@eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0": version: 4.4.0 resolution: "@eslint-community/eslint-utils@npm:4.4.0"