UNPKG

@jupyterlite/xeus-python-kernel

Version:

A Python kernel for JupyterLite, powered by Xeus

224 lines (223 loc) 8.14 kB
{ "name": "@jupyterlite/xeus-python-kernel", "version": "1.0.0", "description": "A Python kernel for JupyterLite, powered by Xeus", "keywords": [ "jupyter", "jupyterlab", "jupyterlite-extension", "jupyterlite" ], "homepage": "https://github.com/jupyterlite/xeus-python-kernel", "bugs": { "url": "https://github.com/jupyterlite/xeus-python-kernel/issues" }, "license": "BSD-3-Clause", "author": "JupyterLite Contributors", "files": [ "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf,wasm}", "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}" ], "main": "lib/index.js", "types": "lib/index.d.ts", "style": "style/index.css", "repository": { "type": "git", "url": "https://github.com/jupyterlite/xeus-python-kernel.git" }, "scripts": { "copy-files": "copyfiles -u 1 src/xpython_wasm.wasm src/xpython_wasm.js src/python_data.js src/*.tar.gz src/*.js src/*.json lib", "build:worker": "webpack --config worker.webpack.config.js --mode=development", "build": "jlpm run build:xeus-python && jlpm run build:lib && jlpm run build:worker && jlpm run copy-files && jlpm run build:labextension:dev", "build:xeus-python": "python jupyterlite_xeus_python/build.py --output-path src --build-worker", "build:worker:prod": "webpack --config worker.webpack.config.js --mode=production", "build:prod": "jlpm run clean && jlpm run build:xeus-python && jlpm run build:lib:prod && jlpm run build:worker:prod && jlpm run copy-files && jlpm run build:labextension", "build:labextension": "jupyter labextension build .", "build:labextension:dev": "jupyter labextension build --development True .", "build:lib": "tsc --sourceMap", "build:lib:prod": "tsc", "clean": "jlpm clean:lib", "clean:lib": "rimraf lib tsconfig.tsbuildinfo", "clean:lintcache": "rimraf .eslintcache .stylelintcache", "clean:labextension": "rimraf jupyterlite_xeus_python/labextension jupyterlite_xeus_python/_version.py", "clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache", "eslint": "jlpm eslint:check --fix", "eslint:check": "eslint . --cache --ext .ts,.tsx", "install:extension": "jlpm build", "lint": "jlpm stylelint && jlpm prettier && jlpm eslint && jlpm lint:py", "lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check && jlpm lint:py:check", "lint:py": "jlpm lint:py:black && jlpm lint:py:ruff --fix-only", "lint:py:check": "jlpm lint:py:black:check && jlpm lint:py:ruff:check", "lint:py:black": "black .", "lint:py:black:check": "black . --check", "lint:py:ruff": "ruff .", "lint:py:ruff:check": "ruff check .", "prettier": "jlpm prettier:base --write --list-different", "prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"", "prettier:check": "jlpm prettier:base --check", "stylelint": "jlpm stylelint:check --fix", "stylelint:check": "stylelint --cache \"style/**/*.css\"", "watch": "run-p watch:src watch:labextension", "watch:src": "tsc -w --sourceMap", "watch:labextension": "jupyter labextension watch ." }, "dependencies": { "@jupyterlab/coreutils": "^6", "@jupyterlab/services": "^7", "@jupyterlite/contents": "^0.2.0-alpha.1", "@jupyterlite/kernel": "^0.2.0-alpha.1", "@jupyterlite/server": "^0.2.0-alpha.1", "@lumino/coreutils": "^2", "@lumino/signaling": "^2", "comlink": "^4.3.1" }, "devDependencies": { "@jupyterlab/builder": "^4.0.5", "@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", "copy-webpack-plugin": "^9.0.1", "copyfiles": "^2.4.1", "eslint": "^8.36.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^5.0.0", "file-loader": "^6.2.0", "npm-run-all": "^4.1.5", "prettier": "^3.0.0", "rimraf": "^5.0.1", "shx": "^0.3.0", "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", "webpack": "^5.87.0", "webpack-cli": "^5.1.4", "yjs": "^13.5.0" }, "sideEffects": [ "style/*.css", "style/index.js" ], "styleModule": "style/index.js", "publishConfig": { "access": "public" }, "jupyterlab": { "extension": true, "outputDir": "jupyterlite_xeus_python/labextension", "webpackConfig": "./webpack.config.js", "sharedPackages": { "@jupyterlite/kernel": { "bundled": false, "singleton": true }, "@jupyterlite/server": { "bundled": false, "singleton": true }, "@jupyterlite/contents": { "bundled": false, "singleton": true } } }, "jupyterlite": { "liteExtension": true }, "eslintIgnore": [ "node_modules", "dist", "coverage", "**/*.d.ts" ], "eslintConfig": { "extends": [ "eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended" ], "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.json", "sourceType": "module" }, "plugins": [ "@typescript-eslint" ], "rules": { "@typescript-eslint/naming-convention": [ "error", { "selector": "interface", "format": [ "PascalCase" ], "custom": { "regex": "^I[A-Z]", "match": true } } ], "@typescript-eslint/no-unused-vars": [ "warn", { "args": "none" } ], "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-namespace": "off", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/quotes": [ "error", "single", { "avoidEscape": true, "allowTemplateLiterals": false } ], "curly": [ "error", "all" ], "eqeqeq": "error", "prefer-arrow-callback": "error" } }, "prettier": { "singleQuote": true, "trailingComma": "none", "arrowParens": "avoid", "endOfLine": "auto", "overrides": [ { "files": "package.json", "options": { "tabWidth": 4 } } ] }, "stylelint": { "extends": [ "stylelint-config-recommended", "stylelint-config-standard", "stylelint-prettier/recommended" ], "plugins": [ "stylelint-csstree-validator" ], "rules": { "csstree/validator": true, "property-no-vendor-prefix": null, "selector-no-vendor-prefix": null, "value-no-vendor-prefix": null } } }