@datalayer/jupyter-react 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/lib/app/App.js.map +1 -1
- package/lib/app/JupyterReact.js +7 -1
- package/lib/app/JupyterReact.js.map +1 -1
- package/lib/app/tabs/AboutTab.js +1 -4
- package/lib/app/tabs/AboutTab.js.map +1 -1
- package/lib/app/tabs/ComponentsTab.js +3 -3
- package/lib/app/tabs/ComponentsTab.js.map +1 -1
- package/lib/app/tabs/components/CellComponent.js.map +1 -1
- package/lib/app/tabs/components/FileBrowserComponent.js.map +1 -1
- package/lib/app/tabs/components/IPyWidgetsComponent.js +1 -1
- package/lib/app/tabs/components/IPyWidgetsComponent.js.map +1 -1
- package/lib/app/tabs/components/NotebookComponent.js.map +1 -1
- package/lib/app/tabs/components/ViewerComponent.js +1 -1
- package/lib/app/tabs/components/ViewerComponent.js.map +1 -1
- package/lib/components/button/Button.d.ts +7 -0
- package/lib/components/button/Button.js +43 -0
- package/lib/components/button/Button.js.map +1 -0
- package/lib/components/cell/Cell.js +28 -32
- package/lib/components/cell/Cell.js.map +1 -1
- package/lib/components/cell/CellAdapter.d.ts +1 -0
- package/lib/components/cell/CellAdapter.js +56 -41
- package/lib/components/cell/CellAdapter.js.map +1 -1
- package/lib/components/cell/CellCommands.d.ts +2 -2
- package/lib/components/cell/CellCommands.js +9 -9
- package/lib/components/cell/CellCommands.js.map +1 -1
- package/lib/components/cell/CellRedux.d.ts +1 -1
- package/lib/components/cell/CellRedux.js +3 -3
- package/lib/components/cell/CellRedux.js.map +1 -1
- package/lib/components/codemirror/CodeMirrorEditor.js +7 -9
- package/lib/components/codemirror/CodeMirrorEditor.js.map +1 -1
- package/lib/components/codemirror/CodeMirrorOutputToolbar.js +19 -5
- package/lib/components/codemirror/CodeMirrorOutputToolbar.js.map +1 -1
- package/lib/components/codemirror/CodeMirrorTheme.d.ts +1 -1
- package/lib/components/codemirror/CodeMirrorTheme.js +11 -11
- package/lib/components/codemirror/CodeMirrorTheme.js.map +1 -1
- package/lib/components/commands/Commands.js.map +1 -1
- package/lib/components/commands/CommandsAdapter.js +1 -1
- package/lib/components/commands/CommandsAdapter.js.map +1 -1
- package/lib/components/commands/CommandsState.js +6 -7
- package/lib/components/commands/CommandsState.js.map +1 -1
- package/lib/components/console/Console.js +1 -5
- package/lib/components/console/Console.js.map +1 -1
- package/lib/components/console/ConsoleAdapter.js +12 -12
- package/lib/components/console/ConsoleAdapter.js.map +1 -1
- package/lib/components/console/ConsoleRedux.js +5 -6
- package/lib/components/console/ConsoleRedux.js.map +1 -1
- package/lib/components/dialog/Dialog.js.map +1 -1
- package/lib/components/dialog/DialogAdapter.js +1 -4
- package/lib/components/dialog/DialogAdapter.js.map +1 -1
- package/lib/components/filebrowser/FileBrowser.js +2 -2
- package/lib/components/filebrowser/FileBrowser.js.map +1 -1
- package/lib/components/filemanager/FileManagerJupyterLab.js +3 -5
- package/lib/components/filemanager/FileManagerJupyterLab.js.map +1 -1
- package/lib/components/filemanager/FileManagerState.js +5 -6
- package/lib/components/filemanager/FileManagerState.js.map +1 -1
- package/lib/components/filemanager/lab/FileManagerAdapter.js +28 -28
- package/lib/components/filemanager/lab/FileManagerAdapter.js.map +1 -1
- package/lib/components/jupyterlab/JupyterLabApp.d.ts +2 -2
- package/lib/components/jupyterlab/JupyterLabApp.js +18 -14
- package/lib/components/jupyterlab/JupyterLabApp.js.map +1 -1
- package/lib/components/jupyterlab/JupyterLabAppAdapter.d.ts +3 -3
- package/lib/components/jupyterlab/JupyterLabAppAdapter.js +4 -3
- package/lib/components/jupyterlab/JupyterLabAppAdapter.js.map +1 -1
- package/lib/components/jupyterlab/JupyterLabAppCss.d.ts +1 -1
- package/lib/components/jupyterlab/JupyterLabAppCss.js +1 -1
- package/lib/components/jupyterlab/JupyterLabAppCss.js.map +1 -1
- package/lib/components/jupyterlab/JupyterLabAppPlugins.js +1 -2
- package/lib/components/jupyterlab/JupyterLabAppPlugins.js.map +1 -1
- package/lib/components/notebook/Notebook.d.ts +1 -1
- package/lib/components/notebook/Notebook.js +18 -12
- package/lib/components/notebook/Notebook.js.map +1 -1
- package/lib/components/notebook/NotebookAdapter.d.ts +2 -2
- package/lib/components/notebook/NotebookAdapter.js +83 -87
- package/lib/components/notebook/NotebookAdapter.js.map +1 -1
- package/lib/components/notebook/NotebookCommands.d.ts +2 -3
- package/lib/components/notebook/NotebookCommands.js +122 -118
- package/lib/components/notebook/NotebookCommands.js.map +1 -1
- package/lib/components/notebook/NotebookRedux.d.ts +8 -8
- package/lib/components/notebook/NotebookRedux.js +43 -23
- package/lib/components/notebook/NotebookRedux.js.map +1 -1
- package/lib/components/notebook/cell/metadata/CellMetadataEditor.d.ts +1 -1
- package/lib/components/notebook/cell/metadata/CellMetadataEditor.js +45 -46
- package/lib/components/notebook/cell/metadata/CellMetadataEditor.js.map +1 -1
- package/lib/components/notebook/cell/metadata/NbGraderCells.d.ts +1 -1
- package/lib/components/notebook/cell/metadata/NbGraderCells.js +1 -1
- package/lib/components/notebook/cell/metadata/NbGraderCells.js.map +1 -1
- package/lib/components/notebook/cell/prompt/Countdown.js +2 -2
- package/lib/components/notebook/cell/prompt/Countdown.js.map +1 -1
- package/lib/components/notebook/cell/prompt/CountdownInputPrompt.js +4 -4
- package/lib/components/notebook/cell/prompt/CountdownInputPrompt.js.map +1 -1
- package/lib/components/notebook/cell/prompt/CountdownOutputPrompt.js +3 -3
- package/lib/components/notebook/cell/prompt/CountdownOutputPrompt.js.map +1 -1
- package/lib/components/notebook/cell/sidebar/CellSidebar.js +50 -39
- package/lib/components/notebook/cell/sidebar/CellSidebar.js.map +1 -1
- package/lib/components/notebook/cell/sidebar/CellSidebarButton.js +15 -14
- package/lib/components/notebook/cell/sidebar/CellSidebarButton.js.map +1 -1
- package/lib/components/notebook/cell/sidebar/CellSidebarRun.js +12 -15
- package/lib/components/notebook/cell/sidebar/CellSidebarRun.js.map +1 -1
- package/lib/components/notebook/cell/sidebar/CellSidebarWidget.js +1 -1
- package/lib/components/notebook/cell/sidebar/CellSidebarWidget.js.map +1 -1
- package/lib/components/notebook/content/JupyterReactContentFactory.js +2 -3
- package/lib/components/notebook/content/JupyterReactContentFactory.js.map +1 -1
- package/lib/components/notebook/marked/marked.js +2 -2
- package/lib/components/notebook/marked/marked.js.map +1 -1
- package/lib/components/notebook/model/JupyterReactNotebookModelFactory.d.ts +1 -1
- package/lib/components/notebook/model/JupyterReactNotebookModelFactory.js +1 -1
- package/lib/components/notebook/model/JupyterReactNotebookModelFactory.js.map +1 -1
- package/lib/components/output/Output.js +46 -47
- package/lib/components/output/Output.js.map +1 -1
- package/lib/components/output/OutputAdapter.d.ts +1 -1
- package/lib/components/output/OutputAdapter.js +13 -10
- package/lib/components/output/OutputAdapter.js.map +1 -1
- package/lib/components/output/OutputIPyWidgets.js.map +1 -1
- package/lib/components/output/OutputRedux.js +3 -3
- package/lib/components/output/OutputRedux.js.map +1 -1
- package/lib/components/output/OutputRenderer.js +16 -19
- package/lib/components/output/OutputRenderer.js.map +1 -1
- package/lib/components/settings/Settings.js +1 -1
- package/lib/components/settings/Settings.js.map +1 -1
- package/lib/components/settings/SettingsAdapter.css +0 -1
- package/lib/components/settings/SettingsAdapter.js.map +1 -1
- package/lib/components/settings/SettingsRedux.js +5 -6
- package/lib/components/settings/SettingsRedux.js.map +1 -1
- package/lib/components/terminal/Terminal.js +8 -12
- package/lib/components/terminal/Terminal.js.map +1 -1
- package/lib/components/terminal/TerminalAdapter.js +2 -2
- package/lib/components/terminal/TerminalAdapter.js.map +1 -1
- package/lib/components/terminal/TerminalRedux.d.ts +1 -1
- package/lib/components/terminal/TerminalRedux.js +4 -5
- package/lib/components/terminal/TerminalRedux.js.map +1 -1
- package/lib/components/textinput/TextInput.d.ts +7 -0
- package/lib/components/textinput/TextInput.js +23 -0
- package/lib/components/textinput/TextInput.js.map +1 -0
- package/lib/components/viewer/Viewer.js.map +1 -1
- package/lib/components/viewer/input/CodemirrorView.d.ts +1 -1
- package/lib/components/viewer/input/CodemirrorView.js +9 -12
- package/lib/components/viewer/input/CodemirrorView.js.map +1 -1
- package/lib/components/viewer/input/CodemirrorViewer.js +5 -5
- package/lib/components/viewer/input/CodemirrorViewer.js.map +1 -1
- package/lib/components/viewer/input/InputViewer.js +20 -18
- package/lib/components/viewer/input/InputViewer.js.map +1 -1
- package/lib/components/viewer/output/OutputAdapter.js +3 -2
- package/lib/components/viewer/output/OutputAdapter.js.map +1 -1
- package/lib/components/viewer/output/OutputViewer.js.map +1 -1
- package/lib/examples/All.js +23 -22
- package/lib/examples/All.js.map +1 -1
- package/lib/examples/Bokeh.js +3 -3
- package/lib/examples/Bokeh.js.map +1 -1
- package/lib/examples/Bqplot.js +3 -5
- package/lib/examples/Bqplot.js.map +1 -1
- package/lib/examples/Cell.js.map +1 -1
- package/lib/examples/Cells.js.map +1 -1
- package/lib/examples/Console.js.map +1 -1
- package/lib/examples/ConsoleLite.js.map +1 -1
- package/lib/examples/Dashboard.js +4 -4
- package/lib/examples/Dashboard.js.map +1 -1
- package/lib/examples/FileBrowser.js +1 -1
- package/lib/examples/FileBrowser.js.map +1 -1
- package/lib/examples/GeoJson.js +3 -5
- package/lib/examples/GeoJson.js.map +1 -1
- package/lib/examples/IPyLeaflet.js +3 -5
- package/lib/examples/IPyLeaflet.js.map +1 -1
- package/lib/examples/IPyReact.js +4 -4
- package/lib/examples/IPyReact.js.map +1 -1
- package/lib/examples/IPyWidgets.js +4 -4
- package/lib/examples/IPyWidgets.js.map +1 -1
- package/lib/examples/IPyWidgetsWithState.d.ts +1 -0
- package/lib/examples/IPyWidgetsWithState.js +19 -0
- package/lib/examples/IPyWidgetsWithState.js.map +1 -0
- package/lib/examples/JupyterLabApp.js +5 -5
- package/lib/examples/JupyterLabApp.js.map +1 -1
- package/lib/examples/JupyterLabHeadlessApp.js +13 -19
- package/lib/examples/JupyterLabHeadlessApp.js.map +1 -1
- package/lib/examples/Lumino.js +1 -1
- package/lib/examples/Lumino.js.map +1 -1
- package/lib/examples/Matplotlib.js +9 -5
- package/lib/examples/Matplotlib.js.map +1 -1
- package/lib/examples/Notebook.js +7 -7
- package/lib/examples/Notebook.js.map +1 -1
- package/lib/examples/NotebookCellSidebar.js +7 -7
- package/lib/examples/NotebookCellSidebar.js.map +1 -1
- package/lib/examples/NotebookExternalContent.js +15 -18
- package/lib/examples/NotebookExternalContent.js.map +1 -1
- package/lib/examples/NotebookInit.js +10 -13
- package/lib/examples/NotebookInit.js.map +1 -1
- package/lib/examples/NotebookInjectableReduxStore.js +8 -8
- package/lib/examples/NotebookInjectableReduxStore.js.map +1 -1
- package/lib/examples/NotebookKernelChange.js +3 -3
- package/lib/examples/NotebookKernelChange.js.map +1 -1
- package/lib/examples/NotebookModel.js +7 -7
- package/lib/examples/NotebookModel.js.map +1 -1
- package/lib/examples/NotebookModelChange.js +8 -8
- package/lib/examples/NotebookModelChange.js.map +1 -1
- package/lib/examples/NotebookPath.js +6 -6
- package/lib/examples/NotebookPath.js.map +1 -1
- package/lib/examples/NotebookPathChange.js +6 -6
- package/lib/examples/NotebookPathChange.js.map +1 -1
- package/lib/examples/NotebookThemed.js +8 -8
- package/lib/examples/NotebookThemed.js.map +1 -1
- package/lib/examples/NotebookUnmount.js +8 -11
- package/lib/examples/NotebookUnmount.js.map +1 -1
- package/lib/examples/Output.js +7 -9
- package/lib/examples/Output.js.map +1 -1
- package/lib/examples/OutputIPyWidgets.js.map +1 -1
- package/lib/examples/Outputs.js +3 -4
- package/lib/examples/Outputs.js.map +1 -1
- package/lib/examples/Panel.js +3 -3
- package/lib/examples/Panel.js.map +1 -1
- package/lib/examples/Plotly.js +3 -3
- package/lib/examples/Plotly.js.map +1 -1
- package/lib/examples/RunningSessions.js +3 -4
- package/lib/examples/RunningSessions.js.map +1 -1
- package/lib/examples/Terminal.js +2 -2
- package/lib/examples/Terminal.js.map +1 -1
- package/lib/examples/Vega.js +3 -5
- package/lib/examples/Vega.js.map +1 -1
- package/lib/examples/Viewer.js +19 -19
- package/lib/examples/Viewer.js.map +1 -1
- package/lib/examples/ViewerFile.js.map +1 -1
- package/lib/examples/lumino/LuminoWidget.js +1 -6
- package/lib/examples/lumino/LuminoWidget.js.map +1 -1
- package/lib/examples/notebooks/DashboardExample.exclude.json +96 -379
- package/lib/examples/notebooks/{IPyWidgetsExample1.ipynb.json → IPyWidgetsExample.ipynb.json} +8 -17
- package/lib/examples/notebooks/IPyWidgetsExampleWithState.ipynb.json +88 -0
- package/lib/examples/notebooks/IPyWidgetsOutputMatplotlib.exclude.d.ts +4 -4
- package/lib/examples/notebooks/IPyWidgetsOutputMatplotlib.exclude.js +53 -81
- package/lib/examples/notebooks/IPyWidgetsOutputMatplotlib.exclude.js.map +1 -1
- package/lib/examples/notebooks/Matplotlib.ipynb.json +20 -52
- package/lib/examples/notebooks/NotebookExample1.ipynb.json +4 -12
- package/lib/examples/notebooks/NotebookExample2.ipynb.json +2 -6
- package/lib/examples/notebooks/OutputIPyWidgetsExample.d.ts +7 -7
- package/lib/examples/notebooks/OutputIPyWidgetsExample.js +133 -133
- package/lib/examples/notebooks/OutputIPyWidgetsExample.js.map +1 -1
- package/lib/examples/sidebars/CellSidebarSource.js +53 -40
- package/lib/examples/sidebars/CellSidebarSource.js.map +1 -1
- package/lib/examples/state/ExampleReduxState.js +4 -5
- package/lib/examples/state/ExampleReduxState.js.map +1 -1
- package/lib/examples/toolbars/NotebookToolbar.js +15 -7
- package/lib/examples/toolbars/NotebookToolbar.js.map +1 -1
- package/lib/examples/toolbars/NotebookToolbarAutoSave.js +13 -13
- package/lib/examples/toolbars/NotebookToolbarAutoSave.js.map +1 -1
- package/lib/examples/toolbars/NotebookToolbarStatus.js +1 -1
- package/lib/examples/toolbars/NotebookToolbarStatus.js.map +1 -1
- package/lib/index.css +0 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/jupyter/Jupyter.d.ts +1 -1
- package/lib/jupyter/Jupyter.js +7 -5
- package/lib/jupyter/Jupyter.js.map +1 -1
- package/lib/jupyter/JupyterConfig.js +26 -9
- package/lib/jupyter/JupyterConfig.js.map +1 -1
- package/lib/jupyter/JupyterContext.d.ts +2 -2
- package/lib/jupyter/JupyterContext.js +21 -17
- package/lib/jupyter/JupyterContext.js.map +1 -1
- package/lib/jupyter/JupyterHandlers.js.map +1 -1
- package/lib/jupyter/ipywidgets/IPyWidgetsAttached.js.map +1 -1
- package/lib/jupyter/ipywidgets/IPyWidgetsViewManager.js.map +1 -1
- package/lib/jupyter/ipywidgets/lab/manager.d.ts +9 -8
- package/lib/jupyter/ipywidgets/lab/manager.js +28 -24
- package/lib/jupyter/ipywidgets/lab/manager.js.map +1 -1
- package/lib/jupyter/ipywidgets/lab/output.d.ts +4 -4
- package/lib/jupyter/ipywidgets/lab/output.js +7 -7
- package/lib/jupyter/ipywidgets/lab/output.js.map +1 -1
- package/lib/jupyter/ipywidgets/lab/plugin.d.ts +8 -7
- package/lib/jupyter/ipywidgets/lab/plugin.js +42 -29
- package/lib/jupyter/ipywidgets/lab/plugin.js.map +1 -1
- package/lib/jupyter/ipywidgets/lab/renderer.d.ts +3 -3
- package/lib/jupyter/ipywidgets/lab/renderer.js.map +1 -1
- package/lib/jupyter/ipywidgets/lab/semvercache.js.map +1 -1
- package/lib/jupyter/ipywidgets/{IPyWidgetsManager.d.ts → manager/IPyWidgetsClassicManager.d.ts} +4 -4
- package/lib/jupyter/ipywidgets/{IPyWidgetsManager.js → manager/IPyWidgetsClassicManager.js} +24 -21
- package/lib/jupyter/ipywidgets/manager/IPyWidgetsClassicManager.js.map +1 -0
- package/lib/jupyter/ipywidgets/plotly/Figure.d.ts +2 -2
- package/lib/jupyter/ipywidgets/plotly/Figure.js +171 -168
- package/lib/jupyter/ipywidgets/plotly/Figure.js.map +1 -1
- package/lib/jupyter/ipywidgets/plotly/JupyterlabPlugin.d.ts +1 -1
- package/lib/jupyter/ipywidgets/plotly/JupyterlabPlugin.js +2 -2
- package/lib/jupyter/kernel/Kernel.js +10 -10
- package/lib/jupyter/kernel/Kernel.js.map +1 -1
- package/lib/jupyter/kernel/KernelModel.js +1 -1
- package/lib/jupyter/lab/JupyterLabCss.js.map +1 -1
- package/lib/jupyter/lab/index.js +7 -9
- package/lib/jupyter/lab/index.js.map +1 -1
- package/lib/jupyter/lab/notebook/content/CountdownContentFactory.js.map +1 -1
- package/lib/jupyter/lab/notebook/content/plugin.js +1 -1
- package/lib/jupyter/lab/notebook/content/plugin.js.map +1 -1
- package/lib/jupyter/lab/widget.js.map +1 -1
- package/lib/jupyter/lite/LiteServer.js +15 -15
- package/lib/jupyter/lite/LiteServer.js.map +1 -1
- package/lib/jupyter/lumino/Lumino.js +2 -2
- package/lib/jupyter/lumino/Lumino.js.map +1 -1
- package/lib/jupyter/lumino/LuminoBox.js +2 -2
- package/lib/jupyter/lumino/LuminoBox.js.map +1 -1
- package/lib/jupyter/lumino/LuminoObservable.d.ts +2 -2
- package/lib/jupyter/lumino/LuminoObservable.js +2 -2
- package/lib/jupyter/lumino/LuminoObservable.js.map +1 -1
- package/lib/jupyter/lumino/ReactPortalWidget.js.map +1 -1
- package/lib/jupyter/renderers/plotly/PlotlyRenderer.d.ts +4 -4
- package/lib/jupyter/renderers/plotly/PlotlyRenderer.js +37 -37
- package/lib/jupyter/renderers/plotly/PlotlyRenderer.js.map +1 -1
- package/lib/jupyter/services/Services.js.map +1 -1
- package/lib/jupyter/theme.d.ts +6 -1033
- package/lib/jupyter/theme.js +581 -33
- package/lib/jupyter/theme.js.map +1 -1
- package/lib/state/redux/InitState.js +4 -5
- package/lib/state/redux/InitState.js.map +1 -1
- package/lib/state/redux/State.d.ts +5 -5
- package/lib/state/redux/State.js +7 -7
- package/lib/state/redux/State.js.map +1 -1
- package/lib/state/redux/Store.d.ts +1 -1
- package/lib/state/redux/Store.js +3 -3
- package/lib/state/redux/Store.js.map +1 -1
- package/lib/utils/Utils.js +4 -4
- package/lib/utils/Utils.js.map +1 -1
- package/package.json +33 -18
- package/style/base.css +0 -1
- package/lib/jupyter/ipywidgets/IPyWidgetsManager.js.map +0 -1
|
@@ -3,21 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* MIT License
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
6
|
+
// Copyright (c) Jupyter Development Team.
|
|
7
|
+
// Distributed under the terms of the Modified BSD License.
|
|
8
|
+
import { Widget } from '@lumino/widgets';
|
|
9
|
+
import { HTMLManager } from '@jupyter-widgets/html-manager';
|
|
10
|
+
import { shims } from '@jupyter-widgets/base/lib/services-shim';
|
|
11
|
+
import * as outputWidgets from '@jupyter-widgets/jupyterlab-manager/lib/output';
|
|
10
12
|
// Exposing @jupyter-widgets/base and @jupyter-widgets/controls as AMD modules for custom widget bundles that depend on it.
|
|
11
|
-
import * as base from
|
|
12
|
-
import * as controls from
|
|
13
|
-
if (typeof window !==
|
|
14
|
-
window.define
|
|
15
|
-
window.define(
|
|
13
|
+
import * as base from '@jupyter-widgets/base';
|
|
14
|
+
import * as controls from '@jupyter-widgets/controls';
|
|
15
|
+
if (typeof window !== 'undefined' &&
|
|
16
|
+
typeof window.define !== 'undefined') {
|
|
17
|
+
window.define('@jupyter-widgets/base', base);
|
|
18
|
+
window.define('@jupyter-widgets/controls', controls);
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
* The class responsible for the classic IPyWidget rendering.
|
|
21
|
+
* The class is responsible for the classic IPyWidget rendering.
|
|
19
22
|
*/
|
|
20
|
-
export class
|
|
23
|
+
export class IPyWidgetsClassicManager extends HTMLManager {
|
|
21
24
|
_kernelConnection;
|
|
22
25
|
_commRegistration;
|
|
23
26
|
_onError;
|
|
@@ -36,17 +39,17 @@ export class IPyWidgetsManager extends HTMLManager {
|
|
|
36
39
|
return this._onError;
|
|
37
40
|
}
|
|
38
41
|
display_view(view, el) {
|
|
39
|
-
return Promise.resolve(view).then(
|
|
42
|
+
return Promise.resolve(view).then(view => {
|
|
40
43
|
Widget.attach(view.luminoWidget, el);
|
|
41
|
-
view.on(
|
|
42
|
-
console.log(
|
|
44
|
+
view.on('remove', function () {
|
|
45
|
+
console.log('view removed', view);
|
|
43
46
|
});
|
|
44
47
|
// return view;
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
loadClass(className, moduleName, moduleVersion) {
|
|
48
|
-
if (moduleName ===
|
|
49
|
-
return Promise.resolve(outputWidgets).then(
|
|
51
|
+
if (moduleName === '@jupyter-widgets/output') {
|
|
52
|
+
return Promise.resolve(outputWidgets).then(module => {
|
|
50
53
|
if (module[className]) {
|
|
51
54
|
return module[className];
|
|
52
55
|
}
|
|
@@ -73,10 +76,10 @@ export class IPyWidgetsManager extends HTMLManager {
|
|
|
73
76
|
return Promise.resolve(new shims.services.Comm(comm));
|
|
74
77
|
}
|
|
75
78
|
_get_comm_info() {
|
|
76
|
-
return this._kernelConnection
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
return this._kernelConnection.requestCommInfo({
|
|
80
|
+
target_name: this.comm_target_name,
|
|
81
|
+
}).then((reply) => reply.content.comms);
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
|
-
export default
|
|
82
|
-
//# sourceMappingURL=
|
|
84
|
+
export default IPyWidgetsClassicManager;
|
|
85
|
+
//# sourceMappingURL=IPyWidgetsClassicManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPyWidgetsClassicManager.js","sourceRoot":"","sources":["../../../../src/jupyter/ipywidgets/manager/IPyWidgetsClassicManager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,0CAA0C;AAC1C,2DAA2D;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAQzC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AAChE,OAAO,KAAK,aA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AC,OAAO,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAK,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,iBAAkB,CAAC,eAAe,CAAC;YAC7C,WAAW,EAAE,IAAI,CAAC,gBAAgB;SACnC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DOMWidgetModel, DOMWidgetView, ISerializers } from
|
|
1
|
+
import { DOMWidgetModel, DOMWidgetView, ISerializers } from '@jupyter-widgets/base';
|
|
2
2
|
type InputDeviceState = {
|
|
3
3
|
alt: any;
|
|
4
4
|
ctrl: any;
|
|
@@ -15,7 +15,7 @@ type Points = {
|
|
|
15
15
|
zs?: number[];
|
|
16
16
|
};
|
|
17
17
|
type Selector = {
|
|
18
|
-
type:
|
|
18
|
+
type: 'box' | 'lasso';
|
|
19
19
|
selector_state: {
|
|
20
20
|
xrange: number[];
|
|
21
21
|
yrange: number[];
|