forked from voila-dashboards/voila
-
Notifications
You must be signed in to change notification settings - Fork 0
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
be5b3ed
commit e461fb9
Showing
9 changed files
with
185 additions
and
7 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"dependencies": { | ||
"@jupyter-widgets/base": "^6.0.10", | ||
"@jupyter-widgets/base7": "npm:@jupyter-widgets/[email protected]", | ||
"@jupyter-widgets/controls": "^5.0.11", | ||
"@jupyter-widgets/controls7": "npm:@jupyter-widgets/[email protected]", | ||
"@jupyter-widgets/jupyterlab-manager": "^5.0.13", | ||
"@jupyterlab/application": "^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
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,11 @@ | ||
/*************************************************************************** | ||
* 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. * | ||
****************************************************************************/ | ||
|
||
export * as base from '@jupyter-widgets/base7'; | ||
export * as controls from '@jupyter-widgets/controls7'; |
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,63 @@ | ||
/*************************************************************************** | ||
* 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 = '2.0.0'; | ||
const JUPYTER_CONTROLS_VERSION = '2.0.0'; | ||
|
||
/** | ||
* The base widgets. | ||
*/ | ||
export const baseWidgets8Plugin: 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: () => { | ||
require('./ipywidgets8shared'); | ||
return require('@jupyter-widgets/base') as any; | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
/** | ||
* The control widgets. | ||
*/ | ||
export const controlWidgets8Plugin: 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: () => { | ||
require('./ipywidgets8shared'); | ||
const controlsWidgets = require('@jupyter-widgets/controls') as any; | ||
require('@jupyter-widgets/controls/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*************************************************************************** | ||
* 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. * | ||
****************************************************************************/ | ||
|
||
export * as base from '@jupyter-widgets/base'; | ||
export * as controls from '@jupyter-widgets/controls'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5151,6 +5151,7 @@ __metadata: | |
dependencies: | ||
"@jupyter-widgets/base": ^6.0.10 | ||
"@jupyter-widgets/base7": "npm:@jupyter-widgets/[email protected]" | ||
"@jupyter-widgets/controls": ^5.0.11 | ||
"@jupyter-widgets/controls7": "npm:@jupyter-widgets/[email protected]" | ||
"@jupyter-widgets/jupyterlab-manager": ^5.0.13 | ||
"@jupyterlab/application": ^4.0.0 | ||
|