@datalayer/jupyter-react 0.0.1
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/LICENSE +21 -0
- package/README.md +56 -0
- package/lib/examples/Example.d.ts +1 -0
- package/lib/examples/Example.js +8 -0
- package/lib/examples/Example.js.map +1 -0
- package/lib/examples/MuiSetup.d.ts +5 -0
- package/lib/examples/MuiSetup.js +13 -0
- package/lib/examples/MuiSetup.js.map +1 -0
- package/lib/examples/bootstrap/All.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/All.bootstrap.js +84 -0
- package/lib/examples/bootstrap/All.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js +12 -0
- package/lib/examples/bootstrap/Cell.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js +10 -0
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js +18 -0
- package/lib/examples/bootstrap/Gallery.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js +12 -0
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js +11 -0
- package/lib/examples/bootstrap/Lumino.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js +22 -0
- package/lib/examples/bootstrap/Notebook.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js +7 -0
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js +154 -0
- package/lib/examples/bootstrap/Outputs.bootstrap.js.map +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.d.ts +1 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js +13 -0
- package/lib/examples/bootstrap/Terminal.bootstrap.js.map +1 -0
- package/lib/examples/controls/CellControl.d.ts +3 -0
- package/lib/examples/controls/CellControl.js +15 -0
- package/lib/examples/controls/CellControl.js.map +1 -0
- package/lib/examples/controls/CommandsControl.d.ts +3 -0
- package/lib/examples/controls/CommandsControl.js +12 -0
- package/lib/examples/controls/CommandsControl.js.map +1 -0
- package/lib/examples/controls/ConsoleControl.d.ts +3 -0
- package/lib/examples/controls/ConsoleControl.js +12 -0
- package/lib/examples/controls/ConsoleControl.js.map +1 -0
- package/lib/examples/controls/DialogControl.d.ts +2 -0
- package/lib/examples/controls/DialogControl.js +7 -0
- package/lib/examples/controls/DialogControl.js.map +1 -0
- package/lib/examples/controls/FileBrowserControl.d.ts +3 -0
- package/lib/examples/controls/FileBrowserControl.js +12 -0
- package/lib/examples/controls/FileBrowserControl.js.map +1 -0
- package/lib/examples/controls/InitControl.d.ts +2 -0
- package/lib/examples/controls/InitControl.js +7 -0
- package/lib/examples/controls/InitControl.js.map +1 -0
- package/lib/examples/controls/NotebookControl.d.ts +3 -0
- package/lib/examples/controls/NotebookControl.js +16 -0
- package/lib/examples/controls/NotebookControl.js.map +1 -0
- package/lib/examples/controls/OutputControl.d.ts +3 -0
- package/lib/examples/controls/OutputControl.js +7 -0
- package/lib/examples/controls/OutputControl.js.map +1 -0
- package/lib/examples/controls/SettingsControl.d.ts +3 -0
- package/lib/examples/controls/SettingsControl.js +12 -0
- package/lib/examples/controls/SettingsControl.js.map +1 -0
- package/lib/examples/controls/SimpleControl.d.ts +2 -0
- package/lib/examples/controls/SimpleControl.js +7 -0
- package/lib/examples/controls/SimpleControl.js.map +1 -0
- package/lib/examples/controls/TerminalControl.d.ts +3 -0
- package/lib/examples/controls/TerminalControl.js +22 -0
- package/lib/examples/controls/TerminalControl.js.map +1 -0
- package/lib/examples/examples/cell/CellExample.d.ts +2 -0
- package/lib/examples/examples/cell/CellExample.js +42 -0
- package/lib/examples/examples/cell/CellExample.js.map +1 -0
- package/lib/examples/examples/gallery/GalleryExample.d.ts +2 -0
- package/lib/examples/examples/gallery/GalleryExample.js +154 -0
- package/lib/examples/examples/gallery/GalleryExample.js.map +1 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.d.ts +4 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js +156 -0
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoAdapter.css +34 -0
- package/lib/examples/examples/lumino/LuminoAdapter.d.ts +9 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js +70 -0
- package/lib/examples/examples/lumino/LuminoAdapter.js.map +1 -0
- package/lib/examples/examples/lumino/LuminoExample.d.ts +2 -0
- package/lib/examples/examples/lumino/LuminoExample.js +10 -0
- package/lib/examples/examples/lumino/LuminoExample.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.d.ts +2 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js +39 -0
- package/lib/examples/examples/notebook/NotebookCustomHeader.js.map +1 -0
- package/lib/examples/examples/notebook/NotebookExample.d.ts +1 -0
- package/lib/examples/examples/notebook/NotebookExample.js +24 -0
- package/lib/examples/examples/notebook/NotebookExample.js.map +1 -0
- package/lib/examples/theme/Layers.d.ts +2 -0
- package/lib/examples/theme/Layers.js +15 -0
- package/lib/examples/theme/Layers.js.map +1 -0
- package/lib/examples/theme/Layers.svg +14 -0
- package/lib/examples/theme/muiLightTheme.d.ts +8 -0
- package/lib/examples/theme/muiLightTheme.js +169 -0
- package/lib/examples/theme/muiLightTheme.js.map +1 -0
- package/lib/examples/theme/vintage.project.json +172 -0
- package/lib/examples/theme/westeros.project.json +168 -0
- package/lib/examples/theme/wonderland.project.json +168 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.js +45 -0
- package/lib/index.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsAttached.d.ts +8 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js +15 -0
- package/lib/ipywidgets/IPyWidgetsAttached.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.d.ts +18 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js +76 -0
- package/lib/ipywidgets/IPyWidgetsClassicManager.js.map +1 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.d.ts +15 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js +178 -0
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsComponent.d.ts +4 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js +9 -0
- package/lib/ipywidgets/IpyWidgetsComponent.js.map +1 -0
- package/lib/ipywidgets/IpyWidgetsManager.d.ts +11 -0
- package/lib/ipywidgets/IpyWidgetsManager.js +71 -0
- package/lib/ipywidgets/IpyWidgetsManager.js.map +1 -0
- package/lib/ipywidgets/plotly/Figure.d.ts +587 -0
- package/lib/ipywidgets/plotly/Figure.js +1697 -0
- package/lib/ipywidgets/plotly/Figure.js.map +1 -0
- package/lib/ipywidgets/plotly/index.d.ts +2 -0
- package/lib/ipywidgets/plotly/index.js +4 -0
- package/lib/ipywidgets/plotly/index.js.map +1 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.d.ts +5 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js +12 -0
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js.map +1 -0
- package/lib/ipywidgets/plotly/version.d.ts +8 -0
- package/lib/ipywidgets/plotly/version.js +16 -0
- package/lib/ipywidgets/plotly/version.js.map +1 -0
- package/lib/jupyter/AuthError.d.ts +7 -0
- package/lib/jupyter/AuthError.js +8 -0
- package/lib/jupyter/AuthError.js.map +1 -0
- package/lib/jupyter/Handlers.d.ts +8 -0
- package/lib/jupyter/Handlers.js +50 -0
- package/lib/jupyter/Handlers.js.map +1 -0
- package/lib/jupyter/Jupyter.d.ts +23 -0
- package/lib/jupyter/Jupyter.js +35 -0
- package/lib/jupyter/Jupyter.js.map +1 -0
- package/lib/jupyter/JupyterConfig.d.ts +37 -0
- package/lib/jupyter/JupyterConfig.js +59 -0
- package/lib/jupyter/JupyterConfig.js.map +1 -0
- package/lib/jupyter/JupyterContext.d.ts +35 -0
- package/lib/jupyter/JupyterContext.js +64 -0
- package/lib/jupyter/JupyterContext.js.map +1 -0
- package/lib/lumino/LuminoAttached.d.ts +9 -0
- package/lib/lumino/LuminoAttached.js +23 -0
- package/lib/lumino/LuminoAttached.js.map +1 -0
- package/lib/lumino/LuminoDetached.d.ts +9 -0
- package/lib/lumino/LuminoDetached.js +13 -0
- package/lib/lumino/LuminoDetached.js.map +1 -0
- package/lib/lumino/LuminoObservable.d.ts +6 -0
- package/lib/lumino/LuminoObservable.js +16 -0
- package/lib/lumino/LuminoObservable.js.map +1 -0
- package/lib/lumino/LuminoReactPortal.d.ts +180 -0
- package/lib/lumino/LuminoReactPortal.js +195 -0
- package/lib/lumino/LuminoReactPortal.js.map +1 -0
- package/lib/lumino/LuminoRedux.d.ts +8 -0
- package/lib/lumino/LuminoRedux.js +2 -0
- package/lib/lumino/LuminoRedux.js.map +1 -0
- package/lib/services/Services.d.ts +17 -0
- package/lib/services/Services.js +41 -0
- package/lib/services/Services.js.map +1 -0
- package/lib/services/kernel/Kernel.d.ts +18 -0
- package/lib/services/kernel/Kernel.js +95 -0
- package/lib/services/kernel/Kernel.js.map +1 -0
- package/lib/services/kernel/KernelModel.d.ts +18 -0
- package/lib/services/kernel/KernelModel.js +52 -0
- package/lib/services/kernel/KernelModel.js.map +1 -0
- package/lib/state/AllState.d.ts +8 -0
- package/lib/state/AllState.js +24 -0
- package/lib/state/AllState.js.map +1 -0
- package/lib/state/InjectableStore.d.ts +9 -0
- package/lib/state/InjectableStore.js +27 -0
- package/lib/state/InjectableStore.js.map +1 -0
- package/lib/state/init/Init.d.ts +3 -0
- package/lib/state/init/Init.js +12 -0
- package/lib/state/init/Init.js.map +1 -0
- package/lib/state/init/InitRedux.d.ts +21 -0
- package/lib/state/init/InitRedux.js +50 -0
- package/lib/state/init/InitRedux.js.map +1 -0
- package/lib/widgets/cell/CellAdapter.css +16 -0
- package/lib/widgets/cell/CellAdapter.d.ts +18 -0
- package/lib/widgets/cell/CellAdapter.js +160 -0
- package/lib/widgets/cell/CellAdapter.js.map +1 -0
- package/lib/widgets/cell/CellLumino.d.ts +9 -0
- package/lib/widgets/cell/CellLumino.js +48 -0
- package/lib/widgets/cell/CellLumino.js.map +1 -0
- package/lib/widgets/cell/CellState.d.ts +22 -0
- package/lib/widgets/cell/CellState.js +79 -0
- package/lib/widgets/cell/CellState.js.map +1 -0
- package/lib/widgets/commands/CommandsAdapter.css +3 -0
- package/lib/widgets/commands/CommandsAdapter.d.ts +9 -0
- package/lib/widgets/commands/CommandsAdapter.js +36 -0
- package/lib/widgets/commands/CommandsAdapter.js.map +1 -0
- package/lib/widgets/commands/CommandsLumino.d.ts +2 -0
- package/lib/widgets/commands/CommandsLumino.js +9 -0
- package/lib/widgets/commands/CommandsLumino.js.map +1 -0
- package/lib/widgets/commands/CommandsState.d.ts +19 -0
- package/lib/widgets/commands/CommandsState.js +50 -0
- package/lib/widgets/commands/CommandsState.js.map +1 -0
- package/lib/widgets/console/ConsoleAdapter.css +4 -0
- package/lib/widgets/console/ConsoleAdapter.d.ts +11 -0
- package/lib/widgets/console/ConsoleAdapter.js +82 -0
- package/lib/widgets/console/ConsoleAdapter.js.map +1 -0
- package/lib/widgets/console/ConsoleLumino.d.ts +2 -0
- package/lib/widgets/console/ConsoleLumino.js +9 -0
- package/lib/widgets/console/ConsoleLumino.js.map +1 -0
- package/lib/widgets/console/ConsoleState.d.ts +19 -0
- package/lib/widgets/console/ConsoleState.js +50 -0
- package/lib/widgets/console/ConsoleState.js.map +1 -0
- package/lib/widgets/dialog/DialogAdapter.css +0 -0
- package/lib/widgets/dialog/DialogAdapter.d.ts +10 -0
- package/lib/widgets/dialog/DialogAdapter.js +19 -0
- package/lib/widgets/dialog/DialogAdapter.js.map +1 -0
- package/lib/widgets/dialog/DialogLumino.d.ts +2 -0
- package/lib/widgets/dialog/DialogLumino.js +13 -0
- package/lib/widgets/dialog/DialogLumino.js.map +1 -0
- package/lib/widgets/editor/CodeMirrorEditor.d.ts +7 -0
- package/lib/widgets/editor/CodeMirrorEditor.js +62 -0
- package/lib/widgets/editor/CodeMirrorEditor.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowser.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowser.js +60 -0
- package/lib/widgets/filebrowser/FileBrowser.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.css +8 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.d.ts +13 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js +267 -0
- package/lib/widgets/filebrowser/FileBrowserAdapter.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.d.ts +2 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js +9 -0
- package/lib/widgets/filebrowser/FileBrowserLumino.js.map +1 -0
- package/lib/widgets/filebrowser/FileBrowserState.d.ts +19 -0
- package/lib/widgets/filebrowser/FileBrowserState.js +50 -0
- package/lib/widgets/filebrowser/FileBrowserState.js.map +1 -0
- package/lib/widgets/notebook/NotebookAdapter.css +27 -0
- package/lib/widgets/notebook/NotebookAdapter.d.ts +26 -0
- package/lib/widgets/notebook/NotebookAdapter.js +187 -0
- package/lib/widgets/notebook/NotebookAdapter.js.map +1 -0
- package/lib/widgets/notebook/NotebookCommands.d.ts +7 -0
- package/lib/widgets/notebook/NotebookCommands.js +349 -0
- package/lib/widgets/notebook/NotebookCommands.js.map +1 -0
- package/lib/widgets/notebook/NotebookLumino.d.ts +19 -0
- package/lib/widgets/notebook/NotebookLumino.js +75 -0
- package/lib/widgets/notebook/NotebookLumino.js.map +1 -0
- package/lib/widgets/notebook/NotebookState.d.ts +43 -0
- package/lib/widgets/notebook/NotebookState.js +114 -0
- package/lib/widgets/notebook/NotebookState.js.map +1 -0
- package/lib/widgets/notebook/NotebookToolbar.d.ts +2 -0
- package/lib/widgets/notebook/NotebookToolbar.js +24 -0
- package/lib/widgets/notebook/NotebookToolbar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebar.d.ts +7 -0
- package/lib/widgets/notebook/extension/CellSidebar.js +23 -0
- package/lib/widgets/notebook/extension/CellSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.d.ts +2 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js +47 -0
- package/lib/widgets/notebook/extension/CellSidebarDefault.js.map +1 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.d.ts +14 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js +20 -0
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js.map +1 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.d.ts +21 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js +67 -0
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js.map +1 -0
- package/lib/widgets/outputs/OutputAdapter.css +0 -0
- package/lib/widgets/outputs/OutputAdapter.d.ts +21 -0
- package/lib/widgets/outputs/OutputAdapter.js +75 -0
- package/lib/widgets/outputs/OutputAdapter.js.map +1 -0
- package/lib/widgets/outputs/OutputLumino.d.ts +16 -0
- package/lib/widgets/outputs/OutputLumino.js +56 -0
- package/lib/widgets/outputs/OutputLumino.js.map +1 -0
- package/lib/widgets/outputs/OutputState.d.ts +19 -0
- package/lib/widgets/outputs/OutputState.js +50 -0
- package/lib/widgets/outputs/OutputState.js.map +1 -0
- package/lib/widgets/settings/SettingsAdapter.css +0 -0
- package/lib/widgets/settings/SettingsAdapter.d.ts +10 -0
- package/lib/widgets/settings/SettingsAdapter.js +16 -0
- package/lib/widgets/settings/SettingsAdapter.js.map +1 -0
- package/lib/widgets/settings/SettingsLumino.d.ts +2 -0
- package/lib/widgets/settings/SettingsLumino.js +11 -0
- package/lib/widgets/settings/SettingsLumino.js.map +1 -0
- package/lib/widgets/settings/SettingsState.d.ts +19 -0
- package/lib/widgets/settings/SettingsState.js +50 -0
- package/lib/widgets/settings/SettingsState.js.map +1 -0
- package/lib/widgets/terminal/TerminalAdapter.css +3 -0
- package/lib/widgets/terminal/TerminalAdapter.d.ts +13 -0
- package/lib/widgets/terminal/TerminalAdapter.js +28 -0
- package/lib/widgets/terminal/TerminalAdapter.js.map +1 -0
- package/lib/widgets/terminal/TerminalLumino.d.ts +2 -0
- package/lib/widgets/terminal/TerminalLumino.js +17 -0
- package/lib/widgets/terminal/TerminalLumino.js.map +1 -0
- package/lib/widgets/terminal/TerminalState.d.ts +17 -0
- package/lib/widgets/terminal/TerminalState.js +45 -0
- package/lib/widgets/terminal/TerminalState.js.map +1 -0
- package/package.json +163 -0
- package/style/index.css +3 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"themeName": "westeros",
|
|
4
|
+
"theme": {
|
|
5
|
+
"seriesCnt": "4",
|
|
6
|
+
"backgroundColor": "rgba(0,0,0,0)",
|
|
7
|
+
"titleColor": "#516b91",
|
|
8
|
+
"subtitleColor": "#93b7e3",
|
|
9
|
+
"textColorShow": false,
|
|
10
|
+
"textColor": "#333",
|
|
11
|
+
"markTextColor": "#eee",
|
|
12
|
+
"color": [
|
|
13
|
+
"#516b91",
|
|
14
|
+
"#59c4e6",
|
|
15
|
+
"#edafda",
|
|
16
|
+
"#93b7e3",
|
|
17
|
+
"#a5e7f0",
|
|
18
|
+
"#cbb0e3"
|
|
19
|
+
],
|
|
20
|
+
"borderColor": "#ccc",
|
|
21
|
+
"borderWidth": 0,
|
|
22
|
+
"visualMapColor": [
|
|
23
|
+
"#516b91",
|
|
24
|
+
"#59c4e6",
|
|
25
|
+
"#a5e7f0"
|
|
26
|
+
],
|
|
27
|
+
"legendTextColor": "#999999",
|
|
28
|
+
"kColor": "#edafda",
|
|
29
|
+
"kColor0": "transparent",
|
|
30
|
+
"kBorderColor": "#d680bc",
|
|
31
|
+
"kBorderColor0": "#8fd3e8",
|
|
32
|
+
"kBorderWidth": "2",
|
|
33
|
+
"lineWidth": "2",
|
|
34
|
+
"symbolSize": "6",
|
|
35
|
+
"symbol": "emptyCircle",
|
|
36
|
+
"symbolBorderWidth": "2",
|
|
37
|
+
"lineSmooth": true,
|
|
38
|
+
"graphLineWidth": 1,
|
|
39
|
+
"graphLineColor": "#aaa",
|
|
40
|
+
"mapLabelColor": "#000",
|
|
41
|
+
"mapLabelColorE": "#516b91",
|
|
42
|
+
"mapBorderColor": "#516b91",
|
|
43
|
+
"mapBorderColorE": "#516b91",
|
|
44
|
+
"mapBorderWidth": 0.5,
|
|
45
|
+
"mapBorderWidthE": 1,
|
|
46
|
+
"mapAreaColor": "#f3f3f3",
|
|
47
|
+
"mapAreaColorE": "#a5e7f0",
|
|
48
|
+
"axes": [
|
|
49
|
+
{
|
|
50
|
+
"type": "all",
|
|
51
|
+
"name": "通用坐标轴",
|
|
52
|
+
"axisLineShow": true,
|
|
53
|
+
"axisLineColor": "#cccccc",
|
|
54
|
+
"axisTickShow": false,
|
|
55
|
+
"axisTickColor": "#333",
|
|
56
|
+
"axisLabelShow": true,
|
|
57
|
+
"axisLabelColor": "#999999",
|
|
58
|
+
"splitLineShow": true,
|
|
59
|
+
"splitLineColor": [
|
|
60
|
+
"#eeeeee"
|
|
61
|
+
],
|
|
62
|
+
"splitAreaShow": false,
|
|
63
|
+
"splitAreaColor": [
|
|
64
|
+
"rgba(250,250,250,0.05)",
|
|
65
|
+
"rgba(200,200,200,0.02)"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "category",
|
|
70
|
+
"name": "类目坐标轴",
|
|
71
|
+
"axisLineShow": true,
|
|
72
|
+
"axisLineColor": "#333",
|
|
73
|
+
"axisTickShow": true,
|
|
74
|
+
"axisTickColor": "#333",
|
|
75
|
+
"axisLabelShow": true,
|
|
76
|
+
"axisLabelColor": "#333",
|
|
77
|
+
"splitLineShow": false,
|
|
78
|
+
"splitLineColor": [
|
|
79
|
+
"#ccc"
|
|
80
|
+
],
|
|
81
|
+
"splitAreaShow": false,
|
|
82
|
+
"splitAreaColor": [
|
|
83
|
+
"rgba(250,250,250,0.3)",
|
|
84
|
+
"rgba(200,200,200,0.3)"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "value",
|
|
89
|
+
"name": "数值坐标轴",
|
|
90
|
+
"axisLineShow": true,
|
|
91
|
+
"axisLineColor": "#333",
|
|
92
|
+
"axisTickShow": true,
|
|
93
|
+
"axisTickColor": "#333",
|
|
94
|
+
"axisLabelShow": true,
|
|
95
|
+
"axisLabelColor": "#333",
|
|
96
|
+
"splitLineShow": true,
|
|
97
|
+
"splitLineColor": [
|
|
98
|
+
"#ccc"
|
|
99
|
+
],
|
|
100
|
+
"splitAreaShow": false,
|
|
101
|
+
"splitAreaColor": [
|
|
102
|
+
"rgba(250,250,250,0.3)",
|
|
103
|
+
"rgba(200,200,200,0.3)"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "log",
|
|
108
|
+
"name": "对数坐标轴",
|
|
109
|
+
"axisLineShow": true,
|
|
110
|
+
"axisLineColor": "#333",
|
|
111
|
+
"axisTickShow": true,
|
|
112
|
+
"axisTickColor": "#333",
|
|
113
|
+
"axisLabelShow": true,
|
|
114
|
+
"axisLabelColor": "#333",
|
|
115
|
+
"splitLineShow": true,
|
|
116
|
+
"splitLineColor": [
|
|
117
|
+
"#ccc"
|
|
118
|
+
],
|
|
119
|
+
"splitAreaShow": false,
|
|
120
|
+
"splitAreaColor": [
|
|
121
|
+
"rgba(250,250,250,0.3)",
|
|
122
|
+
"rgba(200,200,200,0.3)"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "time",
|
|
127
|
+
"name": "时间坐标轴",
|
|
128
|
+
"axisLineShow": true,
|
|
129
|
+
"axisLineColor": "#333",
|
|
130
|
+
"axisTickShow": true,
|
|
131
|
+
"axisTickColor": "#333",
|
|
132
|
+
"axisLabelShow": true,
|
|
133
|
+
"axisLabelColor": "#333",
|
|
134
|
+
"splitLineShow": true,
|
|
135
|
+
"splitLineColor": [
|
|
136
|
+
"#ccc"
|
|
137
|
+
],
|
|
138
|
+
"splitAreaShow": false,
|
|
139
|
+
"splitAreaColor": [
|
|
140
|
+
"rgba(250,250,250,0.3)",
|
|
141
|
+
"rgba(200,200,200,0.3)"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"axisSeperateSetting": false,
|
|
146
|
+
"toolboxColor": "#999999",
|
|
147
|
+
"toolboxEmphasisColor": "#666666",
|
|
148
|
+
"tooltipAxisColor": "#cccccc",
|
|
149
|
+
"tooltipAxisWidth": 1,
|
|
150
|
+
"timelineLineColor": "#8fd3e8",
|
|
151
|
+
"timelineLineWidth": 1,
|
|
152
|
+
"timelineItemColor": "#8fd3e8",
|
|
153
|
+
"timelineItemColorE": "#8fd3e8",
|
|
154
|
+
"timelineCheckColor": "#8fd3e8",
|
|
155
|
+
"timelineCheckBorderColor": "#8a7ca8",
|
|
156
|
+
"timelineItemBorderWidth": 1,
|
|
157
|
+
"timelineControlColor": "#8fd3e8",
|
|
158
|
+
"timelineControlBorderColor": "#8fd3e8",
|
|
159
|
+
"timelineControlBorderWidth": 0.5,
|
|
160
|
+
"timelineLabelColor": "#8fd3e8",
|
|
161
|
+
"datazoomBackgroundColor": "rgba(0,0,0,0)",
|
|
162
|
+
"datazoomDataColor": "rgba(255,255,255,0.3)",
|
|
163
|
+
"datazoomFillColor": "rgba(167,183,204,0.4)",
|
|
164
|
+
"datazoomHandleColor": "#a7b7cc",
|
|
165
|
+
"datazoomHandleWidth": "100",
|
|
166
|
+
"datazoomLabelColor": "#333"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"themeName": "wonderland",
|
|
4
|
+
"theme": {
|
|
5
|
+
"seriesCnt": "3",
|
|
6
|
+
"backgroundColor": "rgba(255,255,255,0)",
|
|
7
|
+
"titleColor": "#666666",
|
|
8
|
+
"subtitleColor": "#999999",
|
|
9
|
+
"textColorShow": false,
|
|
10
|
+
"textColor": "#333",
|
|
11
|
+
"markTextColor": "#ffffff",
|
|
12
|
+
"color": [
|
|
13
|
+
"#4ea397",
|
|
14
|
+
"#22c3aa",
|
|
15
|
+
"#7bd9a5",
|
|
16
|
+
"#d0648a",
|
|
17
|
+
"#f58db2",
|
|
18
|
+
"#f2b3c9"
|
|
19
|
+
],
|
|
20
|
+
"borderColor": "#ccc",
|
|
21
|
+
"borderWidth": 0,
|
|
22
|
+
"visualMapColor": [
|
|
23
|
+
"#d0648a",
|
|
24
|
+
"#22c3aa",
|
|
25
|
+
"#adfff1"
|
|
26
|
+
],
|
|
27
|
+
"legendTextColor": "#999999",
|
|
28
|
+
"kColor": "#d0648a",
|
|
29
|
+
"kColor0": "transparent",
|
|
30
|
+
"kBorderColor": "#d0648a",
|
|
31
|
+
"kBorderColor0": "#22c3aa",
|
|
32
|
+
"kBorderWidth": "1",
|
|
33
|
+
"lineWidth": "3",
|
|
34
|
+
"symbolSize": "8",
|
|
35
|
+
"symbol": "emptyCircle",
|
|
36
|
+
"symbolBorderWidth": "2",
|
|
37
|
+
"lineSmooth": false,
|
|
38
|
+
"graphLineWidth": "1",
|
|
39
|
+
"graphLineColor": "#cccccc",
|
|
40
|
+
"mapLabelColor": "#28544e",
|
|
41
|
+
"mapLabelColorE": "#349e8e",
|
|
42
|
+
"mapBorderColor": "#999999",
|
|
43
|
+
"mapBorderColorE": "#22c3aa",
|
|
44
|
+
"mapBorderWidth": 0.5,
|
|
45
|
+
"mapBorderWidthE": 1,
|
|
46
|
+
"mapAreaColor": "#eeeeee",
|
|
47
|
+
"mapAreaColorE": "rgba(34,195,170,0.25)",
|
|
48
|
+
"axes": [
|
|
49
|
+
{
|
|
50
|
+
"type": "all",
|
|
51
|
+
"name": "通用坐标轴",
|
|
52
|
+
"axisLineShow": true,
|
|
53
|
+
"axisLineColor": "#cccccc",
|
|
54
|
+
"axisTickShow": false,
|
|
55
|
+
"axisTickColor": "#333",
|
|
56
|
+
"axisLabelShow": true,
|
|
57
|
+
"axisLabelColor": "#999999",
|
|
58
|
+
"splitLineShow": true,
|
|
59
|
+
"splitLineColor": [
|
|
60
|
+
"#eeeeee"
|
|
61
|
+
],
|
|
62
|
+
"splitAreaShow": false,
|
|
63
|
+
"splitAreaColor": [
|
|
64
|
+
"rgba(250,250,250,0.05)",
|
|
65
|
+
"rgba(200,200,200,0.02)"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "category",
|
|
70
|
+
"name": "类目坐标轴",
|
|
71
|
+
"axisLineShow": true,
|
|
72
|
+
"axisLineColor": "#333",
|
|
73
|
+
"axisTickShow": true,
|
|
74
|
+
"axisTickColor": "#333",
|
|
75
|
+
"axisLabelShow": true,
|
|
76
|
+
"axisLabelColor": "#333",
|
|
77
|
+
"splitLineShow": false,
|
|
78
|
+
"splitLineColor": [
|
|
79
|
+
"#ccc"
|
|
80
|
+
],
|
|
81
|
+
"splitAreaShow": false,
|
|
82
|
+
"splitAreaColor": [
|
|
83
|
+
"rgba(250,250,250,0.3)",
|
|
84
|
+
"rgba(200,200,200,0.3)"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "value",
|
|
89
|
+
"name": "数值坐标轴",
|
|
90
|
+
"axisLineShow": true,
|
|
91
|
+
"axisLineColor": "#333",
|
|
92
|
+
"axisTickShow": true,
|
|
93
|
+
"axisTickColor": "#333",
|
|
94
|
+
"axisLabelShow": true,
|
|
95
|
+
"axisLabelColor": "#333",
|
|
96
|
+
"splitLineShow": true,
|
|
97
|
+
"splitLineColor": [
|
|
98
|
+
"#ccc"
|
|
99
|
+
],
|
|
100
|
+
"splitAreaShow": false,
|
|
101
|
+
"splitAreaColor": [
|
|
102
|
+
"rgba(250,250,250,0.3)",
|
|
103
|
+
"rgba(200,200,200,0.3)"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "log",
|
|
108
|
+
"name": "对数坐标轴",
|
|
109
|
+
"axisLineShow": true,
|
|
110
|
+
"axisLineColor": "#333",
|
|
111
|
+
"axisTickShow": true,
|
|
112
|
+
"axisTickColor": "#333",
|
|
113
|
+
"axisLabelShow": true,
|
|
114
|
+
"axisLabelColor": "#333",
|
|
115
|
+
"splitLineShow": true,
|
|
116
|
+
"splitLineColor": [
|
|
117
|
+
"#ccc"
|
|
118
|
+
],
|
|
119
|
+
"splitAreaShow": false,
|
|
120
|
+
"splitAreaColor": [
|
|
121
|
+
"rgba(250,250,250,0.3)",
|
|
122
|
+
"rgba(200,200,200,0.3)"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "time",
|
|
127
|
+
"name": "时间坐标轴",
|
|
128
|
+
"axisLineShow": true,
|
|
129
|
+
"axisLineColor": "#333",
|
|
130
|
+
"axisTickShow": true,
|
|
131
|
+
"axisTickColor": "#333",
|
|
132
|
+
"axisLabelShow": true,
|
|
133
|
+
"axisLabelColor": "#333",
|
|
134
|
+
"splitLineShow": true,
|
|
135
|
+
"splitLineColor": [
|
|
136
|
+
"#ccc"
|
|
137
|
+
],
|
|
138
|
+
"splitAreaShow": false,
|
|
139
|
+
"splitAreaColor": [
|
|
140
|
+
"rgba(250,250,250,0.3)",
|
|
141
|
+
"rgba(200,200,200,0.3)"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"axisSeperateSetting": false,
|
|
146
|
+
"toolboxColor": "#999999",
|
|
147
|
+
"toolboxEmphasisColor": "#666666",
|
|
148
|
+
"tooltipAxisColor": "#cccccc",
|
|
149
|
+
"tooltipAxisWidth": 1,
|
|
150
|
+
"timelineLineColor": "#4ea397",
|
|
151
|
+
"timelineLineWidth": 1,
|
|
152
|
+
"timelineItemColor": "#4ea397",
|
|
153
|
+
"timelineItemColorE": "#4ea397",
|
|
154
|
+
"timelineCheckColor": "#4ea397",
|
|
155
|
+
"timelineCheckBorderColor": "#3cebd2",
|
|
156
|
+
"timelineItemBorderWidth": 1,
|
|
157
|
+
"timelineControlColor": "#4ea397",
|
|
158
|
+
"timelineControlBorderColor": "#4ea397",
|
|
159
|
+
"timelineControlBorderWidth": 0.5,
|
|
160
|
+
"timelineLabelColor": "#4ea397",
|
|
161
|
+
"datazoomBackgroundColor": "rgba(255,255,255,0)",
|
|
162
|
+
"datazoomDataColor": "rgba(222,222,222,1)",
|
|
163
|
+
"datazoomFillColor": "rgba(114,230,212,0.25)",
|
|
164
|
+
"datazoomHandleColor": "#cccccc",
|
|
165
|
+
"datazoomHandleWidth": "100",
|
|
166
|
+
"datazoomLabelColor": "#999999"
|
|
167
|
+
}
|
|
168
|
+
}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './jupyter/JupyterContext';
|
|
2
|
+
export { default as Jupyter } from './jupyter/Jupyter';
|
|
3
|
+
export { default as Services } from './services/Services';
|
|
4
|
+
export { default as Kernel } from './services/kernel/Kernel';
|
|
5
|
+
export { default as IpyWidgetsComponent } from './ipywidgets/IpyWidgetsComponent';
|
|
6
|
+
export { default as CellLumino } from './widgets/cell/CellLumino';
|
|
7
|
+
export { selectCell as selectCell } from './widgets/cell/CellState';
|
|
8
|
+
export { cellActions as cellActions } from './widgets/cell/CellState';
|
|
9
|
+
export { default as NotebookLumino } from './widgets/notebook/NotebookLumino';
|
|
10
|
+
export { selectNotebook as selectNotebook } from './widgets/notebook/NotebookState';
|
|
11
|
+
export { notebookActions as notebookActions } from './widgets/notebook/NotebookState';
|
|
12
|
+
export { default as CommandsLumino } from './widgets/commands/CommandsLumino';
|
|
13
|
+
export { selectCommands as selectCommands } from './widgets/commands/CommandsState';
|
|
14
|
+
export { commandsActions as commandsActions } from './widgets/commands/CommandsState';
|
|
15
|
+
export { default as ConsoleLumino } from './widgets/console/ConsoleLumino';
|
|
16
|
+
export { selectConsole as selectConsole } from './widgets/console/ConsoleState';
|
|
17
|
+
export { consoleActions as consoleActions } from './widgets/console/ConsoleState';
|
|
18
|
+
export { default as DialogLumino } from './widgets/dialog/DialogLumino';
|
|
19
|
+
export { default as FileBrowser } from './widgets/filebrowser/FileBrowser';
|
|
20
|
+
export { default as FileBrowserLumino } from './widgets/filebrowser/FileBrowserLumino';
|
|
21
|
+
export { selectFileBrowser as selectFileBrowser } from './widgets/filebrowser/FileBrowserState';
|
|
22
|
+
export { fileBrowserActions as fileBrowserActions } from './widgets/filebrowser/FileBrowserState';
|
|
23
|
+
export { default as OutputLumino } from './widgets/outputs/OutputLumino';
|
|
24
|
+
export { selectOutput as selectOutput } from './widgets/outputs/OutputState';
|
|
25
|
+
export { default as SettingsLumino } from './widgets/settings/SettingsLumino';
|
|
26
|
+
export { selectSettings as selectSettings } from './widgets/settings/SettingsState';
|
|
27
|
+
export { settingsActions as settingsActions } from './widgets/settings/SettingsState';
|
|
28
|
+
export { default as TerminalLumino } from './widgets/terminal/TerminalLumino';
|
|
29
|
+
export { selectTerminal as selectTerminal } from './widgets/terminal/TerminalState';
|
|
30
|
+
export { terminalActions as terminalActions } from './widgets/terminal/TerminalState';
|
|
31
|
+
export { default as SimpleLumino } from './examples/examples/lumino/LuminoExample';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Jupyter
|
|
2
|
+
export * from './jupyter/JupyterContext';
|
|
3
|
+
export { default as Jupyter } from './jupyter/Jupyter';
|
|
4
|
+
// Services
|
|
5
|
+
export { default as Services } from './services/Services';
|
|
6
|
+
export { default as Kernel } from './services/kernel/Kernel';
|
|
7
|
+
// IpyWidgets.
|
|
8
|
+
export { default as IpyWidgetsComponent } from './ipywidgets/IpyWidgetsComponent';
|
|
9
|
+
// Cell
|
|
10
|
+
export { default as CellLumino } from './widgets/cell/CellLumino';
|
|
11
|
+
export { selectCell as selectCell } from './widgets/cell/CellState';
|
|
12
|
+
export { cellActions as cellActions } from './widgets/cell/CellState';
|
|
13
|
+
// Notebook
|
|
14
|
+
export { default as NotebookLumino } from './widgets/notebook/NotebookLumino';
|
|
15
|
+
export { selectNotebook as selectNotebook } from './widgets/notebook/NotebookState';
|
|
16
|
+
export { notebookActions as notebookActions } from './widgets/notebook/NotebookState';
|
|
17
|
+
// Commands
|
|
18
|
+
export { default as CommandsLumino } from './widgets/commands/CommandsLumino';
|
|
19
|
+
export { selectCommands as selectCommands } from './widgets/commands/CommandsState';
|
|
20
|
+
export { commandsActions as commandsActions } from './widgets/commands/CommandsState';
|
|
21
|
+
// Console
|
|
22
|
+
export { default as ConsoleLumino } from './widgets/console/ConsoleLumino';
|
|
23
|
+
export { selectConsole as selectConsole } from './widgets/console/ConsoleState';
|
|
24
|
+
export { consoleActions as consoleActions } from './widgets/console/ConsoleState';
|
|
25
|
+
// Dialog
|
|
26
|
+
export { default as DialogLumino } from './widgets/dialog/DialogLumino';
|
|
27
|
+
// FileBrowser
|
|
28
|
+
export { default as FileBrowser } from './widgets/filebrowser/FileBrowser';
|
|
29
|
+
export { default as FileBrowserLumino } from './widgets/filebrowser/FileBrowserLumino';
|
|
30
|
+
export { selectFileBrowser as selectFileBrowser } from './widgets/filebrowser/FileBrowserState';
|
|
31
|
+
export { fileBrowserActions as fileBrowserActions } from './widgets/filebrowser/FileBrowserState';
|
|
32
|
+
// Outputs
|
|
33
|
+
export { default as OutputLumino } from './widgets/outputs/OutputLumino';
|
|
34
|
+
export { selectOutput as selectOutput } from './widgets/outputs/OutputState';
|
|
35
|
+
// Settings
|
|
36
|
+
export { default as SettingsLumino } from './widgets/settings/SettingsLumino';
|
|
37
|
+
export { selectSettings as selectSettings } from './widgets/settings/SettingsState';
|
|
38
|
+
export { settingsActions as settingsActions } from './widgets/settings/SettingsState';
|
|
39
|
+
// Terminal
|
|
40
|
+
export { default as TerminalLumino } from './widgets/terminal/TerminalLumino';
|
|
41
|
+
export { selectTerminal as selectTerminal } from './widgets/terminal/TerminalState';
|
|
42
|
+
export { terminalActions as terminalActions } from './widgets/terminal/TerminalState';
|
|
43
|
+
// Examples
|
|
44
|
+
export { default as SimpleLumino } from './examples/examples/lumino/LuminoExample';
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEvD,WAAW;AACX,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAE7D,cAAc;AACd,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAElF,OAAO;AACP,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEtE,WAAW;AACX,OAAO,EA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e,EAAE,MAAM,kCAAkC,CAAC;AAEtF,WAAW;AACX,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,cAAc,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEtF,WAAW;AACX,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IPyWidgetsAttached class allows to render a Lumino
|
|
3
|
+
* Widget being mounted in the React.js tree.
|
|
4
|
+
*/
|
|
5
|
+
declare const IPyWidgetsAttached: (props: {
|
|
6
|
+
widget: any;
|
|
7
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default IPyWidgetsAttached;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The IPyWidgetsAttached class allows to render a Lumino
|
|
4
|
+
* Widget being mounted in the React.js tree.
|
|
5
|
+
*/
|
|
6
|
+
const IPyWidgetsAttached = (props) => {
|
|
7
|
+
const { widget } = props;
|
|
8
|
+
return _jsx("div", { ref: ref => {
|
|
9
|
+
if (ref) {
|
|
10
|
+
new widget(ref);
|
|
11
|
+
}
|
|
12
|
+
} }, void 0);
|
|
13
|
+
};
|
|
14
|
+
export default IPyWidgetsAttached;
|
|
15
|
+
//# sourceMappingURL=IPyWidgetsAttached.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPyWidgetsAttached.js","sourceRoot":"","sources":["../../src/ipywidgets/IPyWidgetsAttached.tsx"],"names":[],"mappings":";AAAA;;;GAGG;AACH,MAAM,kBAAkB,GAAG,CAAC,KAAsB,EAAE,EAAE;IACpD,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,OAAO,cAAK,GAAG,EAAE,GAAG,CAAC,EAAE;YACrB,IAAI,GAAG,EAAE;gBACP,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;aACjB;QACH,CAAC,WAAG,CAAC;AACP,CAAC,CAAA;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Kernel } from '@jupyterlab/services';
|
|
2
|
+
import { WidgetModel, WidgetView, DOMWidgetView, ICallbacks } from '@jupyter-widgets/base';
|
|
3
|
+
import { HTMLManager } from "@jupyter-widgets/html-manager";
|
|
4
|
+
/**
|
|
5
|
+
* The class responsible for the classic IPyWidget rendering.
|
|
6
|
+
*/
|
|
7
|
+
export declare class IPyWidgetsClassicManager extends HTMLManager {
|
|
8
|
+
private _commRegistration;
|
|
9
|
+
_kernelConnection: Kernel.IKernelConnection | null;
|
|
10
|
+
private _onError;
|
|
11
|
+
registerWithKernel(kernelConnection: Kernel.IKernelConnection | null): void;
|
|
12
|
+
get onError(): any;
|
|
13
|
+
display_view(view: Promise<DOMWidgetView> | DOMWidgetView, el: HTMLElement): Promise<void>;
|
|
14
|
+
loadClass(className: string, moduleName: any, moduleVersion: string): Promise<typeof WidgetModel | typeof WidgetView>;
|
|
15
|
+
callbacks(view: WidgetView): ICallbacks;
|
|
16
|
+
_create_comm(target_name: any, model_id: string, data?: any, metadata?: any, buffers?: ArrayBuffer[] | ArrayBufferView[]): Promise<any>;
|
|
17
|
+
_get_comm_info(): Promise<{}>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { HTMLManager } from "@jupyter-widgets/html-manager";
|
|
2
|
+
import { shims } from "@jupyter-widgets/base/lib/services-shim";
|
|
3
|
+
import * as luminoWidget from "@lumino/widgets";
|
|
4
|
+
import * as outputWidgets from "@jupyter-widgets/jupyterlab-manager/lib/output";
|
|
5
|
+
// Exposing @jupyter-widgets/base and @jupyter-widgets/controls as AMD modules for custom widget bundles that depend on it.
|
|
6
|
+
import * as base from "@jupyter-widgets/base";
|
|
7
|
+
import * as controls from "@jupyter-widgets/controls";
|
|
8
|
+
if (typeof window !== "undefined" && typeof window.define !== "undefined") {
|
|
9
|
+
window.define("@jupyter-widgets/base", base);
|
|
10
|
+
window.define("@jupyter-widgets/controls", controls);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The class responsible for the classic IPyWidget rendering.
|
|
14
|
+
*/
|
|
15
|
+
export class IPyWidgetsClassicManager extends HTMLManager {
|
|
16
|
+
registerWithKernel(kernelConnection) {
|
|
17
|
+
this._kernelConnection = kernelConnection;
|
|
18
|
+
if (this._commRegistration) {
|
|
19
|
+
this._commRegistration.dispose();
|
|
20
|
+
}
|
|
21
|
+
if (kernelConnection) {
|
|
22
|
+
this._commRegistration = kernelConnection.registerCommTarget(this.comm_target_name,
|
|
23
|
+
// (comm, message) => this.handle_comm_open(new ShimmedComm(comm), message)
|
|
24
|
+
(comm, message) => {
|
|
25
|
+
this.handle_comm_open(new shims.services.Comm(comm), message);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
get onError() {
|
|
30
|
+
return this._onError;
|
|
31
|
+
}
|
|
32
|
+
display_view(view, el) {
|
|
33
|
+
return Promise.resolve(view).then((view) => {
|
|
34
|
+
luminoWidget.Widget.attach(view.luminoWidget, el);
|
|
35
|
+
view.on("remove", function () {
|
|
36
|
+
console.log("view removed", view);
|
|
37
|
+
});
|
|
38
|
+
// return view;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
loadClass(className, moduleName, moduleVersion) {
|
|
42
|
+
if (moduleName === "@jupyter-widgets/output") {
|
|
43
|
+
return Promise.resolve(outputWidgets).then((module) => {
|
|
44
|
+
if (module[className]) {
|
|
45
|
+
return module[className];
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
return Promise.reject(`Class ${className} not found in module ${moduleName}`);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
return super.loadClass(className, moduleName, moduleVersion);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
callbacks(view) {
|
|
57
|
+
const baseCallbacks = super.callbacks(view);
|
|
58
|
+
return Object.assign({}, baseCallbacks, {
|
|
59
|
+
iopub: { output: (msg) => this._onError.emit(msg) },
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
_create_comm(target_name, model_id, data, metadata, buffers) {
|
|
63
|
+
var _a;
|
|
64
|
+
const comm = (_a = this._kernelConnection) === null || _a === void 0 ? void 0 : _a.createComm(target_name, model_id);
|
|
65
|
+
if (data || metadata) {
|
|
66
|
+
comm === null || comm === void 0 ? void 0 : comm.open(data, metadata);
|
|
67
|
+
}
|
|
68
|
+
return Promise.resolve(new shims.services.Comm(comm));
|
|
69
|
+
}
|
|
70
|
+
_get_comm_info() {
|
|
71
|
+
return this._kernelConnection
|
|
72
|
+
.requestCommInfo({ target_name: this.comm_target_name })
|
|
73
|
+
.then((reply) => reply.content.comms);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=IPyWidgetsClassicManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPyWidgetsClassicManager.js","sourceRoot":"","sources":["../../src/ipywidgets/IPyWidgetsClassicManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,yCAAyC,CAAC;AAEhE,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,aAAa,MAAM,gDAAgD,CAAA;AAE/E,2HAA2H;AAC3H,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AAEtD,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAQ,MAAc,CAAC,MAAM,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CAAC,gBAAgB,EAAE,CAAC;aACvD,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;CAEF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DocumentRegistry } from '@jupyterlab/docregistry';
|
|
2
|
+
import { INotebookModel, INotebookTracker } from '@jupyterlab/notebook';
|
|
3
|
+
import { IMainMenu } from '@jupyterlab/mainmenu';
|
|
4
|
+
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
|
|
5
|
+
import { ILoggerRegistry } from '@jupyterlab/logconsole';
|
|
6
|
+
import { DisposableDelegate } from '@lumino/disposable';
|
|
7
|
+
import { WidgetRenderer } from '@jupyter-widgets/jupyterlab-manager';
|
|
8
|
+
import * as base from '@jupyter-widgets/base';
|
|
9
|
+
import '@jupyter-widgets/base/css/index.css';
|
|
10
|
+
import '@jupyter-widgets/controls/css/widgets-base.css';
|
|
11
|
+
export declare function registerWidgetManager(context: DocumentRegistry.IContext<INotebookModel>, rendermime: IRenderMimeRegistry, renderers: IterableIterator<WidgetRenderer>): DisposableDelegate;
|
|
12
|
+
/**
|
|
13
|
+
* Activate the widget extension.
|
|
14
|
+
*/
|
|
15
|
+
export declare function activateWidgetExtension(rendermime: IRenderMimeRegistry, tracker: INotebookTracker | null, menu: IMainMenu | null, loggerRegistry: ILoggerRegistry | null): base.IJupyterWidgetRegistry;
|