Skip to content

Commit 50a919e

Browse files
committed
new labextension from fork of dask-labextension
url: https://github.com/dask/dask-labextension commit: f6141455d770ed7de564fc4aa403b9964cd4e617 License: BSD-3-Clause so far, just lots of find/replace Dask/IPP, and excluding the dashboards
1 parent 300c50b commit 50a919e

23 files changed

+2009
-0
lines changed

.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
coverage
4+
**/*.d.ts
5+
tests

.eslintrc.js

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
commonjs: true,
6+
node: true,
7+
},
8+
root: true,
9+
extends: [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/eslint-recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier/@typescript-eslint",
14+
"plugin:react/recommended",
15+
],
16+
parser: "@typescript-eslint/parser",
17+
parserOptions: {
18+
project: "tsconfig.eslint.json",
19+
},
20+
plugins: ["@typescript-eslint"],
21+
rules: {
22+
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
23+
"@typescript-eslint/naming-convention": [
24+
"error",
25+
{
26+
selector: "interface",
27+
format: ["PascalCase"],
28+
custom: {
29+
regex: "^I[A-Z]",
30+
match: true,
31+
},
32+
},
33+
],
34+
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
35+
"@typescript-eslint/no-use-before-define": "off",
36+
"@typescript-eslint/camelcase": "off",
37+
"@typescript-eslint/no-explicit-any": "off",
38+
"@typescript-eslint/no-non-null-assertion": "off",
39+
"@typescript-eslint/no-namespace": "off",
40+
"@typescript-eslint/interface-name-prefix": "off",
41+
"@typescript-eslint/explicit-function-return-type": "off",
42+
"@typescript-eslint/ban-ts-comment": ["warn", { "ts-ignore": true }],
43+
"@typescript-eslint/ban-types": "warn",
44+
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
45+
"@typescript-eslint/no-var-requires": "off",
46+
"@typescript-eslint/no-empty-interface": "off",
47+
"@typescript-eslint/triple-slash-reference": "warn",
48+
"@typescript-eslint/no-inferrable-types": "off",
49+
"no-inner-declarations": "off",
50+
"no-prototype-builtins": "off",
51+
"no-control-regex": "warn",
52+
"no-undef": "warn",
53+
"no-case-declarations": "warn",
54+
"no-useless-escape": "off",
55+
"prefer-const": "off",
56+
"react/prop-types": "warn",
57+
},
58+
settings: {
59+
react: {
60+
version: "detect",
61+
},
62+
},
63+
};

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ __pycache__
2525
htmlcov
2626
id_*sa
2727
.vscode
28+
29+
node_modules
30+
lib
31+
32+
ipyparallel/labextension
33+
tsconfig.tsbuildinfo

.pre-commit-config.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,17 @@ repos:
2222
- id: check-case-conflict
2323
- id: check-executables-have-shebangs
2424
- id: requirements-txt-fixer
25+
- repo: https://github.com/pre-commit/mirrors-eslint
26+
rev: v7.14.0
27+
hooks:
28+
- id: eslint
29+
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
30+
types: [file]
31+
additional_dependencies:
32+
- "@typescript-eslint/[email protected]"
33+
- "@typescript-eslint/[email protected]"
34+
- eslint@^6.0.0
35+
36+
37+
38+

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
docs/build
3+
htmlcov
4+
ipyparallel/labextension
5+
**/node_modules
6+
**/lib
7+
**/package.json

install.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"packageManager": "python",
3+
"packageName": "ipyparallel",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package ipyparallel"
5+
}

ipyparallel/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,12 @@ def _jupyter_nbextension_paths():
7474
'require': 'ipyparallel/main',
7575
}
7676
]
77+
78+
79+
def _jupyter_labextension_paths():
80+
return [
81+
{
82+
"src": "labextension",
83+
"dest": "ipyparallel-labextension",
84+
}
85+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"NotebookApp": {
3+
"nbserver_extensions": {
4+
"ipyparallel.nbextension": true
5+
}
6+
}
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ServerApp": {
3+
"jpserver_extensions": {
4+
"ipyparallel.nbextension": true
5+
}
6+
}
7+
}

lab/schema/plugin.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"jupyter.lab.setting-icon-class": "ipp-Logo",
3+
"jupyter.lab.setting-icon-label": "IPython Parallel",
4+
"title": "IPython Parallel",
5+
"description": "Settings for the IPython Parallel plugin.",
6+
"properties": {
7+
"autoStartClient": {
8+
"type": "boolean",
9+
"title": "Auto-Start Client",
10+
"description": "If set to true, every notebook and console will automatically have an IPython Parallel Cluster and Client for the active cluster injected into the kernel under the names 'cluster' and 'rc'",
11+
"default": false
12+
}
13+
},
14+
"type": "object"
15+
}

0 commit comments

Comments
 (0)