Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mega update #18

Merged
merged 36 commits into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a7cd344
Remove a bunch of outdated stuff.
ian-r-rose Aug 14, 2018
3b6be2f
Update package.json
ian-r-rose Aug 14, 2018
05938d9
Working skeleton.
ian-r-rose Aug 14, 2018
607c87a
Open the dashboard in an iframe.
ian-r-rose Aug 14, 2018
6c61dad
Initial work on launcher panel.
ian-r-rose Aug 15, 2018
c0cf83b
Open solo routes in iframes.
ian-r-rose Aug 15, 2018
6ca6d46
Get state restoration working.
ian-r-rose Aug 15, 2018
fee6e31
Don't add duplicate dashboards.
ian-r-rose Aug 15, 2018
af6f277
Add url input form.
ian-r-rose Aug 15, 2018
1a996fb
Bump versions for 0.34.
ian-r-rose Aug 28, 2018
b955cdf
Test for existence of a dask dashboard via an <img> tag hack.
ian-r-rose Aug 28, 2018
5c37557
Add some dask logo action.
ian-r-rose Aug 28, 2018
3ef41ec
Update solo-routes to individual-routes.
ian-r-rose Aug 28, 2018
8e68274
Make the buttons reactive to whether it is a valid url.
ian-r-rose Aug 28, 2018
f3813f1
Restore the current dashboard url from the state database.
ian-r-rose Aug 28, 2018
cb9584d
Minor style fixes.
ian-r-rose Aug 28, 2018
3d56658
Allow for setting of a default url via the settings system.
ian-r-rose Aug 29, 2018
3a6b464
Fail a bit more gracefully.
ian-r-rose Aug 29, 2018
07acd42
Fix layout restoration.
ian-r-rose Aug 29, 2018
d2f78de
remove schemaDir from package.json
mrocklin Aug 29, 2018
0e9eba3
Update developer installation notes
mrocklin Aug 29, 2018
d884c93
cleanup readme
mrocklin Aug 29, 2018
6844c24
Restore schema dir.
ian-r-rose Aug 29, 2018
5c4023e
Poll for changes to validity of dashboard URL.
ian-r-rose Aug 29, 2018
53f94b6
Fix error message.
ian-r-rose Aug 29, 2018
bd36968
Edit README.md
ian-r-rose Aug 29, 2018
d705aa3
Output warning to console instead of error message.
ian-r-rose Aug 29, 2018
2e53730
Use dask brand color for buttons.
ian-r-rose Aug 29, 2018
40092af
Initial work on auto-detecting link.
ian-r-rose Aug 29, 2018
053c481
Attempt to auto-detect link for active notebook.
ian-r-rose Aug 29, 2018
42c7969
Don't pop up error message.
ian-r-rose Aug 29, 2018
29323a2
Fix disabled styling.
ian-r-rose Aug 29, 2018
caefc0b
Only check for python kernel.
ian-r-rose Aug 29, 2018
83847d2
Also check code consoles when searching for the link.
ian-r-rose Aug 29, 2018
05a3896
Fix search icon coloring.
ian-r-rose Aug 29, 2018
867be4c
Update svg path and individual routes
mrocklin Aug 30, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
**/lib
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
# dask_labextension
# Dask JupyterLab Extension

dask_labextension


## Prerequisites

* JupyterLab 0.11.2 or later
This package provides a JupyterLab extension to embed Dask's dashboard plots
directly into JupyterLab panes.

## Installation

To install using pip:
Install using the command line with

```bash
pip install dask_labextension
jupyter labextension install --py --sys-prefix dask_labextension
jupyter labextension enable --py --sys-prefix dask_labextension
jupyter labextension install dask_labextension
```

## Development
### For development

For a development install (requires npm version 4 or later), do the following in the repository directory:
As described in the [JupyterLab documentation](https://jupyterlab.readthedocs.io/en/stable/developer/extension_dev.html#extension-authoring) for a development install you can run the following in this directory:

```bash
npm install
pip install -e .
jupyter labextension install --symlink --py --sys-prefix dask_labextension
jupyter labextension enable --py --sys-prefix dask_labextension
npm install # Install npm package dependencies
npm run build # Compile the TypeScript sources to Javascript
jupyter labextension install # Install the current directory as an extension
```

To rebuild the extension bundle:

```bash
npm run build
```

35 changes: 0 additions & 35 deletions RELEASE.md

This file was deleted.

9 changes: 0 additions & 9 deletions dask_labextension/__init__.py

This file was deleted.

62 changes: 43 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,69 @@
{
"name": "dask-labextension",
"name": "jupyterlab-dask",
"version": "0.1.0",
"description": "A JupyterLab extension for dask.",
"main": "lib/plugin.js",
"typings": "lib/plugin.d.ts",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/dask/dask-labextension"
},
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension",
"dask"
],
"scripts": {
"build:src": "tsc --project src && node scripts/copyfiles.js",
"build:extension": "node scripts/build_extension.js",
"build": "npm run build:src && npm run build:extension",
"clean": "rimraf lib && rimraf dask_labextension/static",
"prepublish": "npm run build"
"build": "tsc",
"clean": "rimraf lib",
"precommit": "lint-staged",
"prettier": "prettier --write '**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}'",
"watch": "tsc -w"
},
"dependencies": {
"jupyterlab": "^0.11.2",
"phosphor": "^0.7.0"
"@jupyterlab/application": "^0.18.0",
"@jupyterlab/apputils": "^0.18.0",
"@jupyterlab/console": "^0.18.4",
"@jupyterlab/notebook": "^0.18.4",
"react": "^16.4.2",
"react-dom": "^16.4.2"
},
"devDependencies": {
"fs-extra": "^0.30.0",
"rimraf": "^2.5.4",
"@jupyterlab/extension-builder": "^0.10.0",
"typescript": "^2.0.3"
"@types/react": "~16.0.19",
"@types/react-dom": "~16.0.5",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"prettier": "^1.13.7",
"rimraf": "^2.6.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.13.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "^2.9.2"
},
"files": [
"lib/*.js",
"lib/*.d.ts",
"dist/*.js"
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
"schema/*.json",
"style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
],
"author": "Brian Granger and Luke Canavan",
"jupyterlab": {
"extension": true,
"schemaDir": "schema"
},
"author": "Brian Granger, Luke Canavan, Ian Rose",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/dask/dask-labextension/issues"
},
"lint-staged": {
"**/*{.ts,.tsx,.css,.json,.md}": [
"prettier --write",
"git add"
]
},
"homepage": "https://github.com/dask/dask-labextension",
"private": true
"resolutions": {
"@types/react": "~16.0.19"
},
"private": false
}
14 changes: 14 additions & 0 deletions schema/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"jupyter.lab.setting-icon-class": "dask-DaskLogo",
"jupyter.lab.setting-icon-label": "Dask Dashboard",
"title": "Dask Dashboard",
"description": "Settings for the Dask Dashboard plugin.",
"properties": {
"defaultURL": {
"type": "string",
"title": "Default URL for the Dask Dashboard Webserver",
"default": ""
}
},
"type": "object"
}
7 changes: 0 additions & 7 deletions scripts/build_extension.js

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/copyfiles.js

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

Loading