@datalayer/jupyter-react 0.0.1 → 0.0.7
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 +1 -54
- package/lib/{widgets/cell/CellAdapter.css → components/cell/Cell.css} +4 -0
- package/lib/components/cell/Cell.d.ts +15 -0
- package/lib/components/cell/Cell.js +48 -0
- package/lib/{widgets → components}/cell/CellAdapter.d.ts +1 -5
- package/lib/{widgets → components}/cell/CellAdapter.js +16 -43
- package/lib/components/cell/CellCommands.d.ts +6 -0
- package/lib/components/cell/CellCommands.js +37 -0
- package/lib/{widgets → components}/cell/CellState.d.ts +6 -6
- package/lib/components/cell/CellState.js +45 -0
- package/lib/components/commands/Commands.d.ts +2 -0
- package/lib/components/commands/Commands.js +8 -0
- package/lib/{widgets → components}/commands/CommandsAdapter.css +0 -0
- package/lib/{widgets → components}/commands/CommandsAdapter.d.ts +0 -0
- package/lib/{widgets → components}/commands/CommandsAdapter.js +0 -1
- package/lib/{widgets → components}/commands/CommandsState.d.ts +2 -6
- package/lib/components/commands/CommandsState.js +29 -0
- package/lib/components/console/Console.d.ts +2 -0
- package/lib/components/console/Console.js +8 -0
- package/lib/{widgets → components}/console/ConsoleAdapter.css +1 -1
- package/lib/{widgets → components}/console/ConsoleAdapter.d.ts +0 -0
- package/lib/{widgets → components}/console/ConsoleAdapter.js +12 -9
- package/lib/{widgets → components}/console/ConsoleState.d.ts +2 -6
- package/lib/components/console/ConsoleState.js +29 -0
- package/lib/components/dialog/Dialog.d.ts +2 -0
- package/lib/components/dialog/Dialog.js +12 -0
- package/lib/{widgets → components}/dialog/DialogAdapter.css +0 -0
- package/lib/{widgets → components}/dialog/DialogAdapter.d.ts +3 -3
- package/lib/{widgets → components}/dialog/DialogAdapter.js +5 -6
- package/lib/{widgets → components}/editor/CodeMirrorEditor.d.ts +0 -0
- package/lib/{widgets → components}/editor/CodeMirrorEditor.js +1 -2
- package/lib/{widgets → components}/filebrowser/FileBrowser.d.ts +0 -0
- package/lib/components/filebrowser/FileBrowser.js +8 -0
- package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.css +0 -0
- package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.d.ts +0 -0
- package/lib/{widgets → components}/filebrowser/FileBrowserAdapter.js +0 -1
- package/lib/{widgets → components}/filebrowser/FileBrowserState.d.ts +2 -6
- package/lib/components/filebrowser/FileBrowserState.js +29 -0
- package/lib/components/filebrowser/FileBrowserTree.d.ts +2 -0
- package/lib/{widgets/filebrowser/FileBrowser.js → components/filebrowser/FileBrowserTree.js} +4 -5
- package/lib/components/ipywidgets/IpyWidgetsComponent.css +3 -0
- package/lib/{ipywidgets → components/ipywidgets}/IpyWidgetsComponent.d.ts +1 -0
- package/lib/{ipywidgets → components/ipywidgets}/IpyWidgetsComponent.js +2 -3
- package/lib/{widgets/notebook/NotebookAdapter.css → components/notebook/Notebook.css} +1 -1
- package/lib/components/notebook/Notebook.d.ts +25 -0
- package/lib/components/notebook/Notebook.js +78 -0
- package/lib/components/notebook/NotebookAdapter.d.ts +25 -0
- package/lib/components/notebook/NotebookAdapter.js +186 -0
- package/lib/components/notebook/NotebookCommands.d.ts +38 -0
- package/lib/{widgets → components}/notebook/NotebookCommands.js +45 -26
- package/lib/{widgets → components}/notebook/NotebookState.d.ts +18 -12
- package/lib/components/notebook/NotebookState.js +116 -0
- package/lib/{widgets/notebook/extension → components/notebook/content}/CellSidebar.d.ts +3 -2
- package/lib/{widgets/notebook/extension → components/notebook/content}/CellSidebar.js +4 -5
- package/lib/{widgets/notebook/extension → components/notebook/content}/ContentFactoryWithSidebar.d.ts +2 -2
- package/lib/{widgets/notebook/extension → components/notebook/content}/ContentFactoryWithSidebar.js +3 -4
- package/lib/{widgets/notebook/extension → components/notebook/content}/NotebookInputPrompt.d.ts +0 -0
- package/lib/{widgets/notebook/extension → components/notebook/content}/NotebookInputPrompt.js +0 -1
- package/lib/components/notebook/render/marked.d.ts +3 -0
- package/lib/components/notebook/render/marked.js +71 -0
- package/lib/{widgets/outputs/OutputLumino.d.ts → components/outputs/Output.d.ts} +3 -3
- package/lib/{widgets/outputs/OutputLumino.js → components/outputs/Output.js} +10 -11
- package/lib/components/outputs/OutputAdapter.css +3 -0
- package/lib/{widgets → components}/outputs/OutputAdapter.d.ts +1 -2
- package/lib/{widgets → components}/outputs/OutputAdapter.js +3 -9
- package/lib/{widgets → components}/outputs/OutputState.d.ts +2 -6
- package/lib/components/outputs/OutputState.js +29 -0
- package/lib/components/settings/Settings.d.ts +2 -0
- package/lib/components/settings/Settings.js +8 -0
- package/lib/{widgets → components}/settings/SettingsAdapter.css +0 -0
- package/lib/{widgets → components}/settings/SettingsAdapter.d.ts +0 -0
- package/lib/{widgets → components}/settings/SettingsAdapter.js +0 -1
- package/lib/{widgets → components}/settings/SettingsState.d.ts +2 -6
- package/lib/components/settings/SettingsState.js +29 -0
- package/lib/components/terminal/Terminal.d.ts +2 -0
- package/lib/components/terminal/Terminal.js +15 -0
- package/lib/components/terminal/TerminalAdapter.css +3 -0
- package/lib/{widgets → components}/terminal/TerminalAdapter.d.ts +1 -1
- package/lib/{widgets → components}/terminal/TerminalAdapter.js +2 -3
- package/lib/{widgets → components}/terminal/TerminalState.d.ts +4 -6
- package/lib/components/terminal/TerminalState.js +37 -0
- package/lib/index.d.ts +22 -30
- package/lib/index.js +33 -43
- package/lib/jupyter/AuthError.js +0 -1
- package/lib/jupyter/Handlers.js +0 -1
- package/lib/jupyter/Jupyter.d.ts +1 -1
- package/lib/jupyter/Jupyter.js +2 -3
- package/lib/jupyter/JupyterConfig.js +0 -1
- package/lib/jupyter/JupyterContext.js +0 -1
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsAttached.d.ts +0 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsAttached.js +0 -1
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsClassicManager.d.ts +0 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsClassicManager.js +0 -1
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsJupyterLabPlugin.d.ts +0 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/IPyWidgetsJupyterLabPlugin.js +1 -2
- package/lib/{ipywidgets → jupyter/ipywidgets}/IpyWidgetsManager.d.ts +0 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/IpyWidgetsManager.js +0 -1
- package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/Figure.d.ts +0 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/Figure.js +2 -3
- package/lib/{ipywidgets/plotly/jupyterlab-plugin.d.ts → jupyter/ipywidgets/plotly/JupyterlabPlugin.d.ts} +0 -0
- package/lib/{ipywidgets/plotly/jupyterlab-plugin.js → jupyter/ipywidgets/plotly/JupyterlabPlugin.js} +1 -2
- package/lib/{ipywidgets/plotly/version.d.ts → jupyter/ipywidgets/plotly/Version.d.ts} +0 -0
- package/lib/{ipywidgets/plotly/version.js → jupyter/ipywidgets/plotly/Version.js} +1 -2
- package/lib/jupyter/ipywidgets/plotly/index.d.ts +2 -0
- package/lib/{ipywidgets → jupyter/ipywidgets}/plotly/index.js +1 -2
- package/lib/{lumino → jupyter/lumino}/LuminoAttached.d.ts +1 -1
- package/lib/{lumino → jupyter/lumino}/LuminoAttached.js +0 -1
- package/lib/{lumino → jupyter/lumino}/LuminoDetached.d.ts +0 -0
- package/lib/{lumino → jupyter/lumino}/LuminoDetached.js +0 -1
- package/lib/{lumino → jupyter/lumino}/LuminoObservable.d.ts +0 -0
- package/lib/{lumino → jupyter/lumino}/LuminoObservable.js +0 -1
- package/lib/{lumino → jupyter/lumino}/LuminoReactPortal.d.ts +0 -0
- package/lib/{lumino → jupyter/lumino}/LuminoReactPortal.js +0 -1
- package/lib/{lumino → jupyter/lumino}/LuminoRedux.d.ts +0 -0
- package/lib/{examples/bootstrap/All.bootstrap.d.ts → jupyter/lumino/LuminoRedux.js} +0 -0
- package/lib/jupyter/services/Services.d.ts +16 -0
- package/lib/{services → jupyter/services}/Services.js +0 -1
- package/lib/{services → jupyter/services}/kernel/Kernel.d.ts +2 -5
- package/lib/{services → jupyter/services}/kernel/Kernel.js +7 -38
- package/lib/{services → jupyter/services}/kernel/KernelModel.d.ts +1 -1
- package/lib/{services → jupyter/services}/kernel/KernelModel.js +1 -2
- package/lib/state/{AllState.d.ts → State.d.ts} +7 -1
- package/lib/state/State.js +31 -0
- package/lib/state/Store.d.ts +4 -0
- package/lib/state/Store.js +38 -0
- package/lib/state/init/Init.js +3 -4
- package/lib/state/init/{InitRedux.d.ts → InitState.d.ts} +5 -7
- package/lib/state/init/{InitRedux.js → InitState.js} +12 -15
- package/package.json +65 -99
- package/style/index.css +5 -2
- package/LICENSE +0 -21
- package/lib/examples/Example.d.ts +0 -1
- package/lib/examples/Example.js +0 -8
- package/lib/examples/Example.js.map +0 -1
- package/lib/examples/MuiSetup.d.ts +0 -5
- package/lib/examples/MuiSetup.js +0 -13
- package/lib/examples/MuiSetup.js.map +0 -1
- package/lib/examples/bootstrap/All.bootstrap.js +0 -84
- package/lib/examples/bootstrap/All.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Cell.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Cell.bootstrap.js +0 -12
- package/lib/examples/bootstrap/Cell.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/FileBrowser.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js +0 -10
- package/lib/examples/bootstrap/FileBrowser.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Gallery.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Gallery.bootstrap.js +0 -18
- package/lib/examples/bootstrap/Gallery.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js +0 -12
- package/lib/examples/bootstrap/IPyWidgets.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Lumino.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Lumino.bootstrap.js +0 -11
- package/lib/examples/bootstrap/Lumino.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Notebook.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Notebook.bootstrap.js +0 -22
- package/lib/examples/bootstrap/Notebook.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js +0 -7
- package/lib/examples/bootstrap/NotebookCustom.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Outputs.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Outputs.bootstrap.js +0 -154
- package/lib/examples/bootstrap/Outputs.bootstrap.js.map +0 -1
- package/lib/examples/bootstrap/Terminal.bootstrap.d.ts +0 -1
- package/lib/examples/bootstrap/Terminal.bootstrap.js +0 -13
- package/lib/examples/bootstrap/Terminal.bootstrap.js.map +0 -1
- package/lib/examples/controls/CellControl.d.ts +0 -3
- package/lib/examples/controls/CellControl.js +0 -15
- package/lib/examples/controls/CellControl.js.map +0 -1
- package/lib/examples/controls/CommandsControl.d.ts +0 -3
- package/lib/examples/controls/CommandsControl.js +0 -12
- package/lib/examples/controls/CommandsControl.js.map +0 -1
- package/lib/examples/controls/ConsoleControl.d.ts +0 -3
- package/lib/examples/controls/ConsoleControl.js +0 -12
- package/lib/examples/controls/ConsoleControl.js.map +0 -1
- package/lib/examples/controls/DialogControl.d.ts +0 -2
- package/lib/examples/controls/DialogControl.js +0 -7
- package/lib/examples/controls/DialogControl.js.map +0 -1
- package/lib/examples/controls/FileBrowserControl.d.ts +0 -3
- package/lib/examples/controls/FileBrowserControl.js +0 -12
- package/lib/examples/controls/FileBrowserControl.js.map +0 -1
- package/lib/examples/controls/InitControl.d.ts +0 -2
- package/lib/examples/controls/InitControl.js +0 -7
- package/lib/examples/controls/InitControl.js.map +0 -1
- package/lib/examples/controls/NotebookControl.d.ts +0 -3
- package/lib/examples/controls/NotebookControl.js +0 -16
- package/lib/examples/controls/NotebookControl.js.map +0 -1
- package/lib/examples/controls/OutputControl.d.ts +0 -3
- package/lib/examples/controls/OutputControl.js +0 -7
- package/lib/examples/controls/OutputControl.js.map +0 -1
- package/lib/examples/controls/SettingsControl.d.ts +0 -3
- package/lib/examples/controls/SettingsControl.js +0 -12
- package/lib/examples/controls/SettingsControl.js.map +0 -1
- package/lib/examples/controls/SimpleControl.d.ts +0 -2
- package/lib/examples/controls/SimpleControl.js +0 -7
- package/lib/examples/controls/SimpleControl.js.map +0 -1
- package/lib/examples/controls/TerminalControl.d.ts +0 -3
- package/lib/examples/controls/TerminalControl.js +0 -22
- package/lib/examples/controls/TerminalControl.js.map +0 -1
- package/lib/examples/examples/cell/CellExample.d.ts +0 -2
- package/lib/examples/examples/cell/CellExample.js +0 -42
- package/lib/examples/examples/cell/CellExample.js.map +0 -1
- package/lib/examples/examples/gallery/GalleryExample.d.ts +0 -2
- package/lib/examples/examples/gallery/GalleryExample.js +0 -154
- package/lib/examples/examples/gallery/GalleryExample.js.map +0 -1
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.d.ts +0 -4
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js +0 -156
- package/lib/examples/examples/ipywidgets/IpyWidgetsExample.js.map +0 -1
- package/lib/examples/examples/lumino/LuminoAdapter.css +0 -34
- package/lib/examples/examples/lumino/LuminoAdapter.d.ts +0 -9
- package/lib/examples/examples/lumino/LuminoAdapter.js +0 -70
- package/lib/examples/examples/lumino/LuminoAdapter.js.map +0 -1
- package/lib/examples/examples/lumino/LuminoExample.d.ts +0 -2
- package/lib/examples/examples/lumino/LuminoExample.js +0 -10
- package/lib/examples/examples/lumino/LuminoExample.js.map +0 -1
- package/lib/examples/examples/notebook/NotebookCustomHeader.d.ts +0 -2
- package/lib/examples/examples/notebook/NotebookCustomHeader.js +0 -39
- package/lib/examples/examples/notebook/NotebookCustomHeader.js.map +0 -1
- package/lib/examples/examples/notebook/NotebookExample.d.ts +0 -1
- package/lib/examples/examples/notebook/NotebookExample.js +0 -24
- package/lib/examples/examples/notebook/NotebookExample.js.map +0 -1
- package/lib/examples/theme/Layers.d.ts +0 -2
- package/lib/examples/theme/Layers.js +0 -15
- package/lib/examples/theme/Layers.js.map +0 -1
- package/lib/examples/theme/Layers.svg +0 -14
- package/lib/examples/theme/muiLightTheme.d.ts +0 -8
- package/lib/examples/theme/muiLightTheme.js +0 -169
- package/lib/examples/theme/muiLightTheme.js.map +0 -1
- package/lib/examples/theme/vintage.project.json +0 -172
- package/lib/examples/theme/westeros.project.json +0 -168
- package/lib/examples/theme/wonderland.project.json +0 -168
- package/lib/index.js.map +0 -1
- package/lib/ipywidgets/IPyWidgetsAttached.js.map +0 -1
- package/lib/ipywidgets/IPyWidgetsClassicManager.js.map +0 -1
- package/lib/ipywidgets/IPyWidgetsJupyterLabPlugin.js.map +0 -1
- package/lib/ipywidgets/IpyWidgetsComponent.js.map +0 -1
- package/lib/ipywidgets/IpyWidgetsManager.js.map +0 -1
- package/lib/ipywidgets/plotly/Figure.js.map +0 -1
- package/lib/ipywidgets/plotly/index.d.ts +0 -2
- package/lib/ipywidgets/plotly/index.js.map +0 -1
- package/lib/ipywidgets/plotly/jupyterlab-plugin.js.map +0 -1
- package/lib/ipywidgets/plotly/version.js.map +0 -1
- package/lib/jupyter/AuthError.js.map +0 -1
- package/lib/jupyter/Handlers.js.map +0 -1
- package/lib/jupyter/Jupyter.js.map +0 -1
- package/lib/jupyter/JupyterConfig.js.map +0 -1
- package/lib/jupyter/JupyterContext.js.map +0 -1
- package/lib/lumino/LuminoAttached.js.map +0 -1
- package/lib/lumino/LuminoDetached.js.map +0 -1
- package/lib/lumino/LuminoObservable.js.map +0 -1
- package/lib/lumino/LuminoReactPortal.js.map +0 -1
- package/lib/lumino/LuminoRedux.js +0 -2
- package/lib/lumino/LuminoRedux.js.map +0 -1
- package/lib/services/Services.d.ts +0 -17
- package/lib/services/Services.js.map +0 -1
- package/lib/services/kernel/Kernel.js.map +0 -1
- package/lib/services/kernel/KernelModel.js.map +0 -1
- package/lib/state/AllState.js +0 -24
- package/lib/state/AllState.js.map +0 -1
- package/lib/state/InjectableStore.d.ts +0 -9
- package/lib/state/InjectableStore.js +0 -27
- package/lib/state/InjectableStore.js.map +0 -1
- package/lib/state/init/Init.js.map +0 -1
- package/lib/state/init/InitRedux.js.map +0 -1
- package/lib/widgets/cell/CellAdapter.js.map +0 -1
- package/lib/widgets/cell/CellLumino.d.ts +0 -9
- package/lib/widgets/cell/CellLumino.js +0 -48
- package/lib/widgets/cell/CellLumino.js.map +0 -1
- package/lib/widgets/cell/CellState.js +0 -79
- package/lib/widgets/cell/CellState.js.map +0 -1
- package/lib/widgets/commands/CommandsAdapter.js.map +0 -1
- package/lib/widgets/commands/CommandsLumino.d.ts +0 -2
- package/lib/widgets/commands/CommandsLumino.js +0 -9
- package/lib/widgets/commands/CommandsLumino.js.map +0 -1
- package/lib/widgets/commands/CommandsState.js +0 -50
- package/lib/widgets/commands/CommandsState.js.map +0 -1
- package/lib/widgets/console/ConsoleAdapter.js.map +0 -1
- package/lib/widgets/console/ConsoleLumino.d.ts +0 -2
- package/lib/widgets/console/ConsoleLumino.js +0 -9
- package/lib/widgets/console/ConsoleLumino.js.map +0 -1
- package/lib/widgets/console/ConsoleState.js +0 -50
- package/lib/widgets/console/ConsoleState.js.map +0 -1
- package/lib/widgets/dialog/DialogAdapter.js.map +0 -1
- package/lib/widgets/dialog/DialogLumino.d.ts +0 -2
- package/lib/widgets/dialog/DialogLumino.js +0 -13
- package/lib/widgets/dialog/DialogLumino.js.map +0 -1
- package/lib/widgets/editor/CodeMirrorEditor.js.map +0 -1
- package/lib/widgets/filebrowser/FileBrowser.js.map +0 -1
- package/lib/widgets/filebrowser/FileBrowserAdapter.js.map +0 -1
- package/lib/widgets/filebrowser/FileBrowserLumino.d.ts +0 -2
- package/lib/widgets/filebrowser/FileBrowserLumino.js +0 -9
- package/lib/widgets/filebrowser/FileBrowserLumino.js.map +0 -1
- package/lib/widgets/filebrowser/FileBrowserState.js +0 -50
- package/lib/widgets/filebrowser/FileBrowserState.js.map +0 -1
- package/lib/widgets/notebook/NotebookAdapter.d.ts +0 -26
- package/lib/widgets/notebook/NotebookAdapter.js +0 -187
- package/lib/widgets/notebook/NotebookAdapter.js.map +0 -1
- package/lib/widgets/notebook/NotebookCommands.d.ts +0 -7
- package/lib/widgets/notebook/NotebookCommands.js.map +0 -1
- package/lib/widgets/notebook/NotebookLumino.d.ts +0 -19
- package/lib/widgets/notebook/NotebookLumino.js +0 -75
- package/lib/widgets/notebook/NotebookLumino.js.map +0 -1
- package/lib/widgets/notebook/NotebookState.js +0 -114
- package/lib/widgets/notebook/NotebookState.js.map +0 -1
- package/lib/widgets/notebook/NotebookToolbar.d.ts +0 -2
- package/lib/widgets/notebook/NotebookToolbar.js +0 -24
- package/lib/widgets/notebook/NotebookToolbar.js.map +0 -1
- package/lib/widgets/notebook/extension/CellSidebar.js.map +0 -1
- package/lib/widgets/notebook/extension/CellSidebarDefault.d.ts +0 -2
- package/lib/widgets/notebook/extension/CellSidebarDefault.js +0 -47
- package/lib/widgets/notebook/extension/CellSidebarDefault.js.map +0 -1
- package/lib/widgets/notebook/extension/ContentFactoryWithSidebar.js.map +0 -1
- package/lib/widgets/notebook/extension/NotebookInputPrompt.js.map +0 -1
- package/lib/widgets/outputs/OutputAdapter.css +0 -0
- package/lib/widgets/outputs/OutputAdapter.js.map +0 -1
- package/lib/widgets/outputs/OutputLumino.js.map +0 -1
- package/lib/widgets/outputs/OutputState.js +0 -50
- package/lib/widgets/outputs/OutputState.js.map +0 -1
- package/lib/widgets/settings/SettingsAdapter.js.map +0 -1
- package/lib/widgets/settings/SettingsLumino.d.ts +0 -2
- package/lib/widgets/settings/SettingsLumino.js +0 -11
- package/lib/widgets/settings/SettingsLumino.js.map +0 -1
- package/lib/widgets/settings/SettingsState.js +0 -50
- package/lib/widgets/settings/SettingsState.js.map +0 -1
- package/lib/widgets/terminal/TerminalAdapter.css +0 -3
- package/lib/widgets/terminal/TerminalAdapter.js.map +0 -1
- package/lib/widgets/terminal/TerminalLumino.d.ts +0 -2
- package/lib/widgets/terminal/TerminalLumino.js +0 -17
- package/lib/widgets/terminal/TerminalLumino.js.map +0 -1
- package/lib/widgets/terminal/TerminalState.js +0 -45
- package/lib/widgets/terminal/TerminalState.js.map +0 -1
|
@@ -5,10 +5,10 @@ import '@jupyterlab/terminal/style/index.css';
|
|
|
5
5
|
import '@jupyterlab/theme-light-extension/style/theme.css';
|
|
6
6
|
import '@jupyterlab/theme-light-extension/style/variables.css';
|
|
7
7
|
import './TerminalAdapter.css';
|
|
8
|
-
class TerminalAdapter {
|
|
8
|
+
export class TerminalAdapter {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.terminalPanel = new BoxPanel();
|
|
11
|
-
this.terminalPanel.
|
|
11
|
+
this.terminalPanel.addClass('jupyterlab-terminal');
|
|
12
12
|
this.terminalPanel.spacing = 0;
|
|
13
13
|
const manager = new TerminalManager();
|
|
14
14
|
manager.startNew().then((s1) => {
|
|
@@ -25,4 +25,3 @@ class TerminalAdapter {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
export default TerminalAdapter;
|
|
28
|
-
//# sourceMappingURL=TerminalAdapter.js.map
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AnyAction, Action, Success } from "typescript-fsa";
|
|
3
|
-
import TerminalAdapter from './TerminalAdapter';
|
|
1
|
+
import TerminalAdapter from "./TerminalAdapter";
|
|
4
2
|
export declare type ITerminal = boolean;
|
|
5
3
|
export interface ITerminalState {
|
|
6
4
|
dark: ITerminal;
|
|
5
|
+
adapter?: TerminalAdapter;
|
|
7
6
|
}
|
|
8
7
|
export declare const terminalInitialState: ITerminalState;
|
|
9
8
|
export declare const selectTerminal: () => ITerminalState;
|
|
10
9
|
export declare enum ActionType {
|
|
11
|
-
|
|
10
|
+
UPDATE = "terminal/UPDATE"
|
|
12
11
|
}
|
|
13
12
|
export declare const terminalActions: {
|
|
14
|
-
|
|
13
|
+
update: import("typescript-fsa").ActionCreator<Partial<ITerminalState>>;
|
|
15
14
|
};
|
|
16
|
-
export declare const terminalEpics: (terminalLumino: TerminalAdapter) => Epic<AnyAction, Action<Success<boolean, boolean>>, ITerminalState, any>;
|
|
17
15
|
export declare const terminalReducer: import("typescript-fsa-reducers").ReducerBuilder<ITerminalState, ITerminalState>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useSelector } from "react-redux";
|
|
2
|
+
import actionCreatorFactory from "typescript-fsa";
|
|
3
|
+
import { reducerWithInitialState } from "typescript-fsa-reducers";
|
|
4
|
+
export const terminalInitialState = {
|
|
5
|
+
dark: false,
|
|
6
|
+
};
|
|
7
|
+
/* Selectors */
|
|
8
|
+
export const selectTerminal = () => useSelector((state) => {
|
|
9
|
+
if (state.terminal) {
|
|
10
|
+
return state.terminal;
|
|
11
|
+
}
|
|
12
|
+
return terminalInitialState;
|
|
13
|
+
});
|
|
14
|
+
/* Actions */
|
|
15
|
+
export var ActionType;
|
|
16
|
+
(function (ActionType) {
|
|
17
|
+
ActionType["UPDATE"] = "terminal/UPDATE";
|
|
18
|
+
})(ActionType || (ActionType = {}));
|
|
19
|
+
const actionCreator = actionCreatorFactory('jupyterReact');
|
|
20
|
+
export const terminalActions = {
|
|
21
|
+
update: actionCreator(ActionType.UPDATE),
|
|
22
|
+
};
|
|
23
|
+
/* Reducers */
|
|
24
|
+
export const terminalReducer = reducerWithInitialState(terminalInitialState)
|
|
25
|
+
.case(terminalActions.update, (state, update) => {
|
|
26
|
+
if (state.adapter) {
|
|
27
|
+
if (update.dark !== undefined) {
|
|
28
|
+
if (update.dark) {
|
|
29
|
+
state.adapter.setTheme('dark');
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
state.adapter.setTheme('light');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return Object.assign(Object.assign({}, state), update);
|
|
37
|
+
});
|
package/lib/index.d.ts
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
export * from './jupyter/JupyterContext';
|
|
2
1
|
export { default as Jupyter } from './jupyter/Jupyter';
|
|
3
|
-
export
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export { default as
|
|
10
|
-
export { selectNotebook
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { default as
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export { default as
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export { default as
|
|
24
|
-
export {
|
|
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';
|
|
2
|
+
export * from './jupyter/JupyterContext';
|
|
3
|
+
export { default as Services } from './jupyter/services/Services';
|
|
4
|
+
export { default as Kernel } from './jupyter/services/kernel/Kernel';
|
|
5
|
+
export { default as IpyWidgetsComponent } from './components/ipywidgets/IpyWidgetsComponent';
|
|
6
|
+
export { default as Cell } from './components/cell/Cell';
|
|
7
|
+
export { selectCell, cellActions } from './components/cell/CellState';
|
|
8
|
+
export { default as Notebook } from './components/notebook/Notebook';
|
|
9
|
+
export { selectNotebook, notebookActions } from './components/notebook/NotebookState';
|
|
10
|
+
export { default as Commands } from './components/commands/Commands';
|
|
11
|
+
export { selectCommands, commandsActions } from './components/commands/CommandsState';
|
|
12
|
+
export { default as Console } from './components/console/Console';
|
|
13
|
+
export { selectConsole, consoleActions } from './components/console/ConsoleState';
|
|
14
|
+
export { default as Dialog } from './components/dialog/Dialog';
|
|
15
|
+
export { default as FileBrowser } from './components/filebrowser/FileBrowser';
|
|
16
|
+
export { default as FileBrowserTree } from './components/filebrowser/FileBrowserTree';
|
|
17
|
+
export { selectFileBrowser, fileBrowserActions } from './components/filebrowser/FileBrowserState';
|
|
18
|
+
export { default as Output } from './components/outputs/Output';
|
|
19
|
+
export { selectOutput } from './components/outputs/OutputState';
|
|
20
|
+
export { default as Settings } from './components/settings/Settings';
|
|
21
|
+
export { selectSettings, settingsActions } from './components/settings/SettingsState';
|
|
22
|
+
export { default as Terminal } from './components/terminal/Terminal';
|
|
23
|
+
export { selectTerminal, terminalActions } from './components/terminal/TerminalState';
|
package/lib/index.js
CHANGED
|
@@ -1,45 +1,35 @@
|
|
|
1
|
-
// Jupyter
|
|
2
|
-
export * from './jupyter/JupyterContext';
|
|
1
|
+
// Jupyter.
|
|
3
2
|
export { default as Jupyter } from './jupyter/Jupyter';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { default as
|
|
3
|
+
export * from './jupyter/JupyterContext';
|
|
4
|
+
// Services.
|
|
5
|
+
export { default as Services } from './jupyter/services/Services';
|
|
6
|
+
export { default as Kernel } from './jupyter/services/kernel/Kernel';
|
|
7
7
|
// IpyWidgets.
|
|
8
|
-
export { default as IpyWidgetsComponent } from './ipywidgets/IpyWidgetsComponent';
|
|
9
|
-
// Cell
|
|
10
|
-
export { default as
|
|
11
|
-
export { selectCell
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
//
|
|
22
|
-
export { default as
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
//
|
|
28
|
-
export { default as
|
|
29
|
-
export {
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
|
|
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
|
|
8
|
+
export { default as IpyWidgetsComponent } from './components/ipywidgets/IpyWidgetsComponent';
|
|
9
|
+
// Cell.
|
|
10
|
+
export { default as Cell } from './components/cell/Cell';
|
|
11
|
+
export { selectCell, cellActions } from './components/cell/CellState';
|
|
12
|
+
// Notebook.
|
|
13
|
+
export { default as Notebook } from './components/notebook/Notebook';
|
|
14
|
+
export { selectNotebook, notebookActions } from './components/notebook/NotebookState';
|
|
15
|
+
// Commands.
|
|
16
|
+
export { default as Commands } from './components/commands/Commands';
|
|
17
|
+
export { selectCommands, commandsActions } from './components/commands/CommandsState';
|
|
18
|
+
// Console.
|
|
19
|
+
export { default as Console } from './components/console/Console';
|
|
20
|
+
export { selectConsole, consoleActions } from './components/console/ConsoleState';
|
|
21
|
+
// Dialog.
|
|
22
|
+
export { default as Dialog } from './components/dialog/Dialog';
|
|
23
|
+
// FileBrowser.
|
|
24
|
+
export { default as FileBrowser } from './components/filebrowser/FileBrowser';
|
|
25
|
+
export { default as FileBrowserTree } from './components/filebrowser/FileBrowserTree';
|
|
26
|
+
export { selectFileBrowser, fileBrowserActions } from './components/filebrowser/FileBrowserState';
|
|
27
|
+
// Outputs.
|
|
28
|
+
export { default as Output } from './components/outputs/Output';
|
|
29
|
+
export { selectOutput } from './components/outputs/OutputState';
|
|
30
|
+
// Settings.
|
|
31
|
+
export { default as Settings } from './components/settings/Settings';
|
|
32
|
+
export { selectSettings, settingsActions } from './components/settings/SettingsState';
|
|
33
|
+
// Terminal.
|
|
34
|
+
export { default as Terminal } from './components/terminal/Terminal';
|
|
35
|
+
export { selectTerminal, terminalActions } from './components/terminal/TerminalState';
|
package/lib/jupyter/AuthError.js
CHANGED
package/lib/jupyter/Handlers.js
CHANGED
package/lib/jupyter/Jupyter.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ declare type JupyterProps = {
|
|
|
19
19
|
* and ensure the Redux and the Material UI theme providers
|
|
20
20
|
* are available.
|
|
21
21
|
*/
|
|
22
|
-
declare const Jupyter: (props: JupyterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Jupyter: (props: JupyterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default Jupyter;
|
package/lib/jupyter/Jupyter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { PageConfig } from '@jupyterlab/coreutils';
|
|
3
3
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
4
|
-
import injectableStore from '../state/
|
|
4
|
+
import injectableStore from '../state/Store';
|
|
5
5
|
import { JupyterContextProvider } from './JupyterContext';
|
|
6
6
|
import { loadJupyterConfig, getJupyterServerHttpUrl, getJupyterServerWsUrl, getJupyterToken } from './JupyterConfig';
|
|
7
7
|
/**
|
|
@@ -16,7 +16,7 @@ const ErrorFallback = ({ error, resetErrorBoundary }) => {
|
|
|
16
16
|
* and ensure the Redux and the Material UI theme providers
|
|
17
17
|
* are available.
|
|
18
18
|
*/
|
|
19
|
-
const Jupyter = (props) => {
|
|
19
|
+
export const Jupyter = (props) => {
|
|
20
20
|
loadJupyterConfig();
|
|
21
21
|
const baseUrl = props.jupyterServerHttpUrl || getJupyterServerHttpUrl();
|
|
22
22
|
PageConfig.setOption('baseUrl', baseUrl);
|
|
@@ -32,4 +32,3 @@ const Jupyter = (props) => {
|
|
|
32
32
|
} }, { children: _jsx(JupyterContextProvider, Object.assign({ variant: "default", baseUrl: baseUrl, wsUrl: wsUrl, injectableStore: props.injectableStore || injectableStore }, { children: props.children }), void 0) }), void 0));
|
|
33
33
|
};
|
|
34
34
|
export default Jupyter;
|
|
35
|
-
//# sourceMappingURL=Jupyter.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -99,7 +99,7 @@ export function activateWidgetExtension(rendermime, tracker, menu, loggerRegistr
|
|
|
99
99
|
level = 'error';
|
|
100
100
|
}
|
|
101
101
|
const data = Object.assign(Object.assign({}, msg.content), { output_type: msg.header.msg_type });
|
|
102
|
-
logger.rendermime = notebookPanel.content.rendermime;
|
|
102
|
+
// logger.rendermime = notebookPanel.content.rendermime;
|
|
103
103
|
logger.log({ type: 'output', data, level });
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -175,4 +175,3 @@ var Private;
|
|
|
175
175
|
create: (owner) => undefined,
|
|
176
176
|
});
|
|
177
177
|
})(Private || (Private = {}));
|
|
178
|
-
//# sourceMappingURL=IPyWidgetsJupyterLabPlugin.js.map
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DOMWidgetModel, DOMWidgetView
|
|
1
|
+
import { DOMWidgetModel, DOMWidgetView } from "@jupyter-widgets/base";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import Plotly from "plotly.js";
|
|
4
|
-
import { MODULE_NAME, MODULE_VERSION } from "./
|
|
4
|
+
import { MODULE_NAME, MODULE_VERSION } from "./Version";
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
window.PlotlyConfig = { MathJaxConfig: "local" };
|
|
7
7
|
const semver_range = "^" + MODULE_VERSION;
|
|
@@ -1694,4 +1694,3 @@ function randstr(existing, bits, base, _recursion) {
|
|
|
1694
1694
|
else
|
|
1695
1695
|
return res;
|
|
1696
1696
|
}
|
|
1697
|
-
//# sourceMappingURL=Figure.js.map
|
|
File without changes
|
package/lib/{ipywidgets/plotly/jupyterlab-plugin.js → jupyter/ipywidgets/plotly/JupyterlabPlugin.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MODULE_NAME, MODULE_VERSION } from "./
|
|
1
|
+
import { MODULE_NAME, MODULE_VERSION } from "./Version";
|
|
2
2
|
/**
|
|
3
3
|
* Activate the widget extension.
|
|
4
4
|
*/
|
|
@@ -9,4 +9,3 @@ export function activatePlotlyWidgetExtension(registry) {
|
|
|
9
9
|
exports: () => import("./index"),
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=jupyterlab-plugin.js.map
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2
2
|
// @ts-ignore
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
4
|
-
const data = require('
|
|
4
|
+
const data = require('./../../../../package.json');
|
|
5
5
|
/**
|
|
6
6
|
* The _model_module_version/_view_module_version this package implements.
|
|
7
7
|
*
|
|
@@ -13,4 +13,3 @@ export const MODULE_VERSION = data.version;
|
|
|
13
13
|
* The current package name.
|
|
14
14
|
*/
|
|
15
15
|
export const MODULE_NAME = data.name;
|
|
16
|
-
//# sourceMappingURL=version.js.map
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
* The LuminoAttached class allows to render a Lumino
|
|
4
4
|
* Widget being mounted in the React.js tree.
|
|
5
5
|
*/
|
|
6
|
-
declare class LuminoAttached extends React.Component {
|
|
6
|
+
declare class LuminoAttached extends React.Component<any> {
|
|
7
7
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
8
|
}
|
|
9
9
|
export default LuminoAttached;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare class Services {
|
|
2
|
+
private _services;
|
|
3
|
+
constructor();
|
|
4
|
+
kernelspecs(): import("@jupyterlab/services/lib/kernelspec/kernelspec").IManager;
|
|
5
|
+
contents(): import("@jupyterlab/services").Contents.IManager;
|
|
6
|
+
nbconvert(): import("@jupyterlab/services").NbConvert.IManager;
|
|
7
|
+
sessions(): import("@jupyterlab/services/lib/session/session").IManager;
|
|
8
|
+
settings(): import("@jupyterlab/services").Setting.IManager;
|
|
9
|
+
terminals(): import("@jupyterlab/services/lib/terminal/terminal").IManager;
|
|
10
|
+
workspaces(): import("@jupyterlab/services").Workspace.IManager;
|
|
11
|
+
builder(): import("@jupyterlab/services").Builder.IManager;
|
|
12
|
+
serverSettings(): import("@jupyterlab/services").ServerConnection.ISettings;
|
|
13
|
+
refreshKernelspecs(): Promise<void>;
|
|
14
|
+
getKernelspecs(): import("@jupyterlab/services/lib/kernelspec/restapi").ISpecModels | null;
|
|
15
|
+
}
|
|
16
|
+
export default Services;
|
|
@@ -3,16 +3,13 @@ export declare type IKernelProps = {
|
|
|
3
3
|
baseUrl?: string;
|
|
4
4
|
wsUrl?: string;
|
|
5
5
|
kernelType?: string;
|
|
6
|
-
eventName?: string;
|
|
7
6
|
};
|
|
8
|
-
declare class Kernel {
|
|
9
|
-
private _kernelPromise;
|
|
7
|
+
export declare class Kernel {
|
|
10
8
|
private _serverSettings;
|
|
11
9
|
private _kernelType;
|
|
12
|
-
private
|
|
10
|
+
private _kernel;
|
|
13
11
|
constructor(options?: IKernelProps);
|
|
14
12
|
getJupyterKernel(): Promise<JupyterKernel.IKernelConnection>;
|
|
15
13
|
private requestKernel;
|
|
16
|
-
private event;
|
|
17
14
|
}
|
|
18
15
|
export default Kernel;
|
|
@@ -11,60 +11,35 @@ import { ServerConnection, KernelManager, SessionManager } from '@jupyterlab/ser
|
|
|
11
11
|
import { UUID } from '@lumino/coreutils';
|
|
12
12
|
/*
|
|
13
13
|
const headers = new Headers({
|
|
14
|
-
// 'Cookie': 'Test',
|
|
15
14
|
'X-Datalayer': 'Datalayer',
|
|
16
15
|
});
|
|
17
16
|
*/
|
|
18
|
-
class Kernel {
|
|
19
|
-
// private _useStorage: boolean;
|
|
20
|
-
// private _storageKey: string;
|
|
21
|
-
// private _storageExpire: number;
|
|
17
|
+
export class Kernel {
|
|
22
18
|
constructor(options = {}) {
|
|
23
19
|
this._serverSettings = ServerConnection.makeSettings({
|
|
24
20
|
baseUrl: options.baseUrl || (location.protocol + '//' + location.host + "/api/jupyter"),
|
|
25
21
|
wsUrl: options.wsUrl || (location.protocol.replace('http', 'ws') + '//' + location.host + "/api/jupyter"),
|
|
26
22
|
appendToken: true,
|
|
27
23
|
init: {
|
|
28
|
-
credentials:
|
|
24
|
+
credentials: 'include',
|
|
29
25
|
mode: 'cors',
|
|
30
26
|
// headers: headers,
|
|
31
27
|
}
|
|
32
28
|
});
|
|
33
29
|
this._kernelType = options.kernelType || 'python3';
|
|
34
|
-
this.
|
|
35
|
-
// this._useStorage = options.useStorage == undefined ? true : options.useStorage;
|
|
36
|
-
// this._storageKey = options.storageKey || 'dla-jupyter-output';
|
|
37
|
-
// this._storageExpire = options.storageExpire || 60;
|
|
30
|
+
this._kernel = this.requestKernel();
|
|
38
31
|
}
|
|
39
32
|
getJupyterKernel() {
|
|
40
|
-
if (this._kernelPromise) {
|
|
41
|
-
return this._kernelPromise;
|
|
42
|
-
}
|
|
43
33
|
/*
|
|
44
|
-
if (this.
|
|
45
|
-
|
|
46
|
-
if (stored) {
|
|
47
|
-
const { settings, timestamp } = JSON.parse(stored);
|
|
48
|
-
if (timestamp && new Date().getTime() < timestamp) {
|
|
49
|
-
this._kernelPromise = this.requestKernel(settings);
|
|
50
|
-
return this._kernelPromise;
|
|
51
|
-
}
|
|
52
|
-
window.localStorage.removeItem(this._storageKey);
|
|
53
|
-
}
|
|
34
|
+
if (this._kernel) {
|
|
35
|
+
return this._kernel;
|
|
54
36
|
}
|
|
37
|
+
this._kernel = this.requestKernel();
|
|
55
38
|
*/
|
|
56
|
-
|
|
57
|
-
return this._kernelPromise;
|
|
39
|
+
return this._kernel;
|
|
58
40
|
}
|
|
59
41
|
requestKernel() {
|
|
60
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
/*
|
|
62
|
-
if (this._useStorage && typeof window !== 'undefined') {
|
|
63
|
-
const timestamp = new Date().getTime() + this._storageExpire * 60 * 1000;
|
|
64
|
-
const json = JSON.stringify({this._serverSettings, timestamp});
|
|
65
|
-
window.localStorage.setItem(this._storageKey, json);
|
|
66
|
-
}
|
|
67
|
-
*/
|
|
68
43
|
const kernelManager = new KernelManager({
|
|
69
44
|
serverSettings: this._serverSettings,
|
|
70
45
|
standby: 'never',
|
|
@@ -82,14 +57,8 @@ class Kernel {
|
|
|
82
57
|
type: this._kernelType,
|
|
83
58
|
});
|
|
84
59
|
yield session.kernel.info;
|
|
85
|
-
this.event('ready', session.kernel.info);
|
|
86
60
|
return session.kernel;
|
|
87
61
|
});
|
|
88
62
|
}
|
|
89
|
-
event(status, data) {
|
|
90
|
-
const ev = new CustomEvent(this._eventName, { detail: { status, data } });
|
|
91
|
-
document.dispatchEvent(ev);
|
|
92
|
-
}
|
|
93
63
|
}
|
|
94
64
|
export default Kernel;
|
|
95
|
-
//# sourceMappingURL=Kernel.js.map
|
|
@@ -2,7 +2,7 @@ import { ISessionContext } from '@jupyterlab/apputils';
|
|
|
2
2
|
import { IOutput } from '@jupyterlab/nbformat';
|
|
3
3
|
import { Kernel, KernelMessage } from '@jupyterlab/services';
|
|
4
4
|
import { ISignal } from '@lumino/signaling';
|
|
5
|
-
declare class KernelModel {
|
|
5
|
+
export declare class KernelModel {
|
|
6
6
|
constructor(session: ISessionContext);
|
|
7
7
|
get future(): Kernel.IFuture<KernelMessage.IExecuteRequestMsg, KernelMessage.IExecuteReplyMsg> | null;
|
|
8
8
|
set future(value: Kernel.IFuture<KernelMessage.IExecuteRequestMsg, KernelMessage.IExecuteReplyMsg> | null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Signal } from '@lumino/signaling';
|
|
2
|
-
class KernelModel {
|
|
2
|
+
export class KernelModel {
|
|
3
3
|
constructor(session) {
|
|
4
4
|
this._onIOPub = (msg) => {
|
|
5
5
|
const msgType = msg.header.msg_type;
|
|
@@ -49,4 +49,3 @@ class KernelModel {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
export default KernelModel;
|
|
52
|
-
//# sourceMappingURL=KernelModel.js.map
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { AnyAction } from "typescript-fsa";
|
|
2
|
-
import { IInitState } from "./init/
|
|
2
|
+
import { IInitState } from "./init/InitState";
|
|
3
|
+
import { ICellState } from "../components/cell/CellState";
|
|
4
|
+
import { INotebookState } from "../components/notebook/NotebookState";
|
|
5
|
+
import { ITerminalState } from "../components/terminal/TerminalState";
|
|
3
6
|
export interface IState {
|
|
4
7
|
counter: IInitState;
|
|
8
|
+
cell: ICellState;
|
|
9
|
+
notebook: INotebookState;
|
|
10
|
+
terminal: ITerminalState;
|
|
5
11
|
}
|
|
6
12
|
export declare const initialState: IState;
|
|
7
13
|
export declare const epics: import("redux-observable").Epic<AnyAction, AnyAction, any, any>;
|