-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1722f4
commit be5b3ed
Showing
8 changed files
with
405 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,15 @@ | |
"browserslist": ">0.8%, not ie 11, not op_mini all, not dead", | ||
"dependencies": { | ||
"@jupyter-widgets/base": "^6.0.10", | ||
"@jupyter-widgets/base7": "npm:@jupyter-widgets/[email protected]", | ||
"@jupyter-widgets/controls7": "npm:@jupyter-widgets/[email protected]", | ||
"@jupyter-widgets/jupyterlab-manager": "^5.0.13", | ||
"@jupyterlab/application": "^4.0.0", | ||
"@jupyterlab/apputils": "^4.0.0", | ||
"@jupyterlab/apputils-extension": "^4.0.0", | ||
"@jupyterlab/codemirror": "^4.0.3", | ||
"@jupyterlab/codemirror-extension": "^4.0.0", | ||
"@jupyterlab/console": "^4.0.0", | ||
"@jupyterlab/coreutils": "^6.0.0", | ||
"@jupyterlab/docregistry": "^4.0.0", | ||
"@jupyterlab/javascript-extension": "^4.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2024, Voilà contributors * | ||
* Copyright (c) 2024, QuantStack * | ||
* * | ||
* Distributed under the terms of the BSD 3-Clause License. * | ||
* * | ||
* The full license is in the file LICENSE, distributed with this software. * | ||
****************************************************************************/ | ||
|
||
import * as base from '@jupyter-widgets/base'; | ||
import { | ||
JupyterFrontEnd, | ||
JupyterFrontEndPlugin | ||
} from '@jupyterlab/application'; | ||
|
||
const JUPYTER_WIDGETS_VERSION = '1.2.0'; | ||
const JUPYTER_CONTROLS_VERSION = '1.5.0'; | ||
|
||
/** | ||
* The base widgets. | ||
*/ | ||
export const baseWidgets7Plugin: JupyterFrontEndPlugin<void> = { | ||
id: `@jupyter-widgets/jupyterlab-manager:base-${JUPYTER_WIDGETS_VERSION}`, | ||
requires: [base.IJupyterWidgetRegistry], | ||
autoStart: true, | ||
activate: ( | ||
app: JupyterFrontEnd, | ||
registry: base.IJupyterWidgetRegistry | ||
): void => { | ||
registry.registerWidget({ | ||
name: '@jupyter-widgets/base', | ||
version: JUPYTER_WIDGETS_VERSION, | ||
exports: () => { | ||
return require('@jupyter-widgets/base7') as any; | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
/** | ||
* The control widgets. | ||
*/ | ||
export const controlWidgets7Plugin: JupyterFrontEndPlugin<void> = { | ||
id: `@jupyter-widgets/jupyterlab-manager:controls-${JUPYTER_CONTROLS_VERSION}`, | ||
requires: [base.IJupyterWidgetRegistry], | ||
autoStart: true, | ||
activate: ( | ||
app: JupyterFrontEnd, | ||
registry: base.IJupyterWidgetRegistry | ||
): void => { | ||
registry.registerWidget({ | ||
name: '@jupyter-widgets/controls', | ||
version: JUPYTER_CONTROLS_VERSION, | ||
exports: () => { | ||
const controlsWidgets = require('@jupyter-widgets/controls7') as any; | ||
require('@jupyter-widgets/controls7/css/widgets-base.css'); | ||
return controlsWidgets; | ||
} | ||
}); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.