Skip to content

Commit

Permalink
new labextension from fork of dask-labextension
Browse files Browse the repository at this point in the history
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
  • Loading branch information
minrk committed Aug 6, 2021
1 parent 300c50b commit 50a919e
Show file tree
Hide file tree
Showing 23 changed files with 2,009 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
@@ -0,0 +1,5 @@
node_modules
dist
coverage
**/*.d.ts
tests
63 changes: 63 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,63 @@
module.exports = {
env: {
browser: true,
es6: true,
commonjs: true,
node: true,
},
root: true,
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:react/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.eslint.json",
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
"@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-use-before-define": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/ban-ts-comment": ["warn", { "ts-ignore": true }],
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/triple-slash-reference": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",
"no-control-regex": "warn",
"no-undef": "warn",
"no-case-declarations": "warn",
"no-useless-escape": "off",
"prefer-const": "off",
"react/prop-types": "warn",
},
settings: {
react: {
version: "detect",
},
},
};
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -25,3 +25,9 @@ __pycache__
htmlcov
id_*sa
.vscode

node_modules
lib

ipyparallel/labextension
tsconfig.tsbuildinfo
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -22,3 +22,17 @@ repos:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v7.14.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- "@typescript-eslint/eslint-plugin@2.27.0"
- "@typescript-eslint/parser@2.27.0"
- eslint@^6.0.0
- eslint-config-prettier@6.10.1
- eslint-plugin-prettier@3.1.4
- eslint-plugin-react@7.21.5
- typescript@4.1.3
7 changes: 7 additions & 0 deletions .prettierignore
@@ -0,0 +1,7 @@
node_modules
docs/build
htmlcov
ipyparallel/labextension
**/node_modules
**/lib
**/package.json
5 changes: 5 additions & 0 deletions install.json
@@ -0,0 +1,5 @@
{
"packageManager": "python",
"packageName": "ipyparallel",
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package ipyparallel"
}
9 changes: 9 additions & 0 deletions ipyparallel/__init__.py
Expand Up @@ -74,3 +74,12 @@ def _jupyter_nbextension_paths():
'require': 'ipyparallel/main',
}
]


def _jupyter_labextension_paths():
return [
{
"src": "labextension",
"dest": "ipyparallel-labextension",
}
]
7 changes: 7 additions & 0 deletions jupyter-config/jupyter_notebook_config.d/ipyparallel.json
@@ -0,0 +1,7 @@
{
"NotebookApp": {
"nbserver_extensions": {
"ipyparallel.nbextension": true
}
}
}
7 changes: 7 additions & 0 deletions jupyter-config/jupyter_server_config.d/ipyparallel.json
@@ -0,0 +1,7 @@
{
"ServerApp": {
"jpserver_extensions": {
"ipyparallel.nbextension": true
}
}
}
15 changes: 15 additions & 0 deletions lab/schema/plugin.json
@@ -0,0 +1,15 @@
{
"jupyter.lab.setting-icon-class": "ipp-Logo",
"jupyter.lab.setting-icon-label": "IPython Parallel",
"title": "IPython Parallel",
"description": "Settings for the IPython Parallel plugin.",
"properties": {
"autoStartClient": {
"type": "boolean",
"title": "Auto-Start Client",
"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'",
"default": false
}
},
"type": "object"
}

0 comments on commit 50a919e

Please sign in to comment.