kale
kale copied to clipboard
The extension "kubeflow-kale-labextension" does not yet support the current version of JupyterLab.
Kale extension does not work with current version of JupiterLab 3.0.16 on Kubeflow (GCP).
is there a workaround for this and what is the ETA for Kale extension to be compatible with JupiterLab 3.0.16?
+1 on above request for JupyterLab v3 support. I've tried following the jupyter documentation for migrating extensions from 2.x to 3.x, and it fixes some (but not all) of the build errors.
pip install jupyter-packaging cookiecutter python -m jupyterlab.upgrade_extension .
[UPDATED (again)] I manually updated a few additional react related packages in package.json to v17 (see below), and only remaining build error was:
src/lib/RPCUtils.tsx:315:19 - error TS1243: 'async' modifier cannot be used with 'abstract' modifier.
315 public abstract async showDialog(refresh: boolean): Promise
;
so I removed the async from line 315 src/lib/RPCUtils.tsx. The extension now builds and can be installed (btw, the Contribute section in the README has "jplm labextension install ." not "jupyter labextension install ."). However, when I open the examples in Jupyter Lab, I keep getting this popup

Here's my package.json
{ "name": "kubeflow-kale-labextension", "version": "0.7.0", "description": "Convert Notebooks to Kubeflow pipelines with Kale", "keywords": [ "jupyter", "jupyterlab", "jupyterlab-extension" ], "homepage": "https://github.com/kubeflow-kale/kale", "bugs": { "url": "https://github.com/kubeflow-kale/kale/issues" }, "license": "BSD-3-Clause", "author": "Stefano Fioravanzo [email protected]", "files": [ "lib//*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", "style//.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", "style/index.js" ], "main": "lib/index.js", "types": "lib/index.d.ts", "directories": { "lib": "lib/" }, "repository": { "type": "git", "url": "https://github.com/kubeflow-kale/kale.git" }, "scripts": { "build": "tsc", "clean": "rimraf lib", "format": "pretty-quick --pattern 'labextension/**/.{ts,js,tsx,jsx,scss,css,html,md,json}'", "format:check": "jlpm format --check", "format:check:staged": "jlpm format:check --staged", "format:staged": "jlpm format --staged", "prepublishOnly": "npm run build", "watch": "tsc -w --listEmittedFiles" }, "dependencies": { "@jupyterlab/application": "^3.1.6", "@jupyterlab/apputils": "^3.1.6", "@jupyterlab/coreutils": "^5.1.6", "@jupyterlab/notebook": "^3.1.6", "@lumino/widgets": "^1.19.0", "@material-ui/core": "^4.4.3", "@material-ui/icons": "^4.4.3", "@types/js-yaml": "^3.12.4", "@types/node": "^14.0.20", "@types/react-dom": "^16.9.0", "js-yaml": "^3.14.0", "react": "^17.0.1", "react-dom": "^17.0.1", "react-sanitized-html": "^2.0.0", "use-debounce": "^3.0.1" }, "devDependencies": { "@jupyterlab/builder": "^3.1.0", "@typescript-eslint/eslint-plugin": "^4.8.1", "@typescript-eslint/parser": "^4.8.1", "eslint": "^7.14.0", "eslint-config-prettier": "^6.15.0", "eslint-plugin-prettier": "^3.1.4", "husky": "^4.2.3", "npm-run-all": "^4.1.5", "prettier": "^2.1.1", "pretty-quick": "^2.0.1", "rimraf": "^3.0.2", "typescript": "~4.1.3" }, "resolutions": { "@types/react": "^17.0.1" }, "publishConfig": { "access": "public" }, "jupyterlab": { "extension": true, "outputDir": "kubeflow-kale-labextension/labextension" }, "husky": { "hooks": { "pre-commit": "jlpm format:check:staged" } }, "styleModule": "style/index.js" }
Any update on this issue? It seems impractical for people to downgrade their jupyterlab to 3.0.0 at this moment
Looks like we have a Kale which works on Jupyterlab 3.0 + but is with Arrikto