Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 15, 2024
1 parent 51cf3e8 commit ad8fc91
Show file tree
Hide file tree
Showing 4 changed files with 1,715 additions and 127 deletions.
3 changes: 1 addition & 2 deletions packages/voila/src/plugins/outputs/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { IOutput } from '@jupyterlab/nbformat';
import { OutputAreaModel, SimplifiedOutputArea } from '@jupyterlab/outputarea';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { Widget } from '@lumino/widgets';
import { VoilaWidgetManager } from './manager';
import { PageConfig, URLExt } from '@jupyterlab/coreutils';

/**
Expand Down Expand Up @@ -63,7 +62,7 @@ export function handleExecutionResult({
}: {
payload: IExecutionResultMessage['payload'];
rendermime: IRenderMimeRegistry;
widgetManager: VoilaWidgetManager;
widgetManager: any;
}): IReceivedWidgetModel | undefined {
const { cell_index, output_cell } = payload;
const element = document.querySelector(`[cell-index="${cell_index + 1}"]`);
Expand Down
94 changes: 47 additions & 47 deletions packages/widgets_manager7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,71 @@
"version": "0.5.7",
"description": "The Voilà jupyter-widgets manager for ipywidgets 7 support",
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension"
"jupyter",
"jupyterlab",
"jupyterlab-extension"
],
"homepage": "https://github.com/voila-dashboards/voila",
"bugs": {
"url": "https://github.com/voila-dashboards/voila/issues"
"url": "https://github.com/voila-dashboards/voila/issues"
},
"license": "BSD-3-Clause",
"author": "Voilà contributors",
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}"
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/voila-dashboards/voila.git"
"type": "git",
"url": "https://github.com/voila-dashboards/voila.git"
},
"scripts": {
"build": "jlpm run build:lib && jlpm run build:labextension:dev",
"build:labextension": "jupyter labextension build .",
"build:labextension:dev": "jupyter labextension build --development True .",
"build:lib": "tsc",
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
"build:test": "tsc --build tsconfig.test.json",
"clean": "jlpm run clean:lib && jlpm run clean:labextension",
"clean:labextension": "rimraf ../../voila/labextensions/widgets-manager7",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"test": "jest",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
"build": "jlpm run build:lib && jlpm run build:labextension:dev",
"build:labextension": "jupyter labextension build .",
"build:labextension:dev": "jupyter labextension build --development True .",
"build:lib": "tsc",
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
"build:test": "tsc --build tsconfig.test.json",
"clean": "jlpm run clean:lib && jlpm run clean:labextension",
"clean:labextension": "rimraf ../../voila/labextensions/widgets-manager7",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"test": "jest",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
},
"dependencies": {
"@jupyter-widgets/base": "^4.1.6",
"@jupyter-widgets/controls": "^3.1.6",
"@jupyter-widgets/jupyterlab-manager": "^3.1.10",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlab/rendermime": "^4.0.0",
"@jupyterlab/services": "^7.0.0"
"@jupyter-widgets/base": "^4.1.6",
"@jupyter-widgets/controls": "^3.1.6",
"@jupyter-widgets/jupyterlab-manager": "^3.1.10",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlab/rendermime": "^4.0.0",
"@jupyterlab/services": "^7.0.0"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@jupyterlab/builder": "^4.0.0",
"@jupyterlab/testutils": "^4.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.1",
"source-map-loader": "~1.0.2",
"typescript": "~5.0.2"
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@jupyterlab/builder": "^4.0.0",
"@jupyterlab/testutils": "^4.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.1",
"source-map-loader": "~1.0.2",
"typescript": "~5.0.2"
},
"jupyterlab": {
"extension": true,
"outputDir": "../../voila/labextensions/widgets-manager7",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": true,
"singleton": true
},
"@jupyter-widgets/jupyterlab-manager": {
"bundled": true,
"singleton": true
"extension": true,
"outputDir": "../../voila/labextensions/widgets-manager7",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": true,
"singleton": true
},
"@jupyter-widgets/jupyterlab-manager": {
"bundled": true,
"singleton": true
}
}
}
}
}
}
92 changes: 46 additions & 46 deletions packages/widgets_manager8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,70 @@
"version": "0.5.7",
"description": "The Voilà jupyter-widgets manager for ipywidgets 8 support",
"keywords": [
"jupyter",
"jupyterlab",
"jupyterlab-extension"
"jupyter",
"jupyterlab",
"jupyterlab-extension"
],
"homepage": "https://github.com/voila-dashboards/voila",
"bugs": {
"url": "https://github.com/voila-dashboards/voila/issues"
"url": "https://github.com/voila-dashboards/voila/issues"
},
"license": "BSD-3-Clause",
"author": "Voilà contributors",
"files": [
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}"
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/voila-dashboards/voila.git"
"type": "git",
"url": "https://github.com/voila-dashboards/voila.git"
},
"scripts": {
"build": "jlpm run build:lib && jlpm run build:labextension:dev",
"build:labextension": "jupyter labextension build .",
"build:labextension:dev": "jupyter labextension build --development True .",
"build:lib": "tsc",
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
"build:test": "tsc --build tsconfig.test.json",
"clean": "jlpm run clean:lib && jlpm run clean:labextension",
"clean:labextension": "rimraf ../../voila/labextensions/widgets-manager8",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"test": "jest",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
"build": "jlpm run build:lib && jlpm run build:labextension:dev",
"build:labextension": "jupyter labextension build .",
"build:labextension:dev": "jupyter labextension build --development True .",
"build:lib": "tsc",
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
"build:test": "tsc --build tsconfig.test.json",
"clean": "jlpm run clean:lib && jlpm run clean:labextension",
"clean:labextension": "rimraf ../../voila/labextensions/widgets-manager8",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"test": "jest",
"watch": "run-p watch:src watch:labextension",
"watch:labextension": "jupyter labextension watch .",
"watch:src": "tsc -w"
},
"dependencies": {
"@jupyter-widgets/base": "^6.0.10",
"@jupyter-widgets/jupyterlab-manager": "^5.0.13",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlab/rendermime": "^4.0.0",
"@jupyterlab/services": "^7.0.0"
"@jupyter-widgets/base": "^6.0.10",
"@jupyter-widgets/jupyterlab-manager": "^5.0.13",
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlab/rendermime": "^4.0.0",
"@jupyterlab/services": "^7.0.0"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@jupyterlab/builder": "^4.0.0",
"@jupyterlab/testutils": "^4.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.1",
"source-map-loader": "~1.0.2",
"typescript": "~5.0.2"
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"@jupyterlab/builder": "^4.0.0",
"@jupyterlab/testutils": "^4.0.0",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.1",
"source-map-loader": "~1.0.2",
"typescript": "~5.0.2"
},
"jupyterlab": {
"extension": true,
"outputDir": "../../voila/labextensions/widgets-manager8",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": true,
"singleton": true
},
"@jupyter-widgets/jupyterlab-manager": {
"bundled": true,
"singleton": true
"extension": true,
"outputDir": "../../voila/labextensions/widgets-manager8",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": true,
"singleton": true
},
"@jupyter-widgets/jupyterlab-manager": {
"bundled": true,
"singleton": true
}
}
}
}
}
}
Loading

0 comments on commit ad8fc91

Please sign in to comment.