jupyterlab-pioneer 1.0.0 → 1.2.0
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/lib/index.d.ts +4 -0
- package/lib/index.js +2 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { Exporter } from './types';
|
|
|
5
5
|
export declare const IJupyterLabPioneer: Token<IJupyterLabPioneer>;
|
|
6
6
|
export interface IJupyterLabPioneer {
|
|
7
7
|
exporters: Exporter[];
|
|
8
|
+
/**
|
|
9
|
+
* Load exporters defined in the configuration file.
|
|
10
|
+
*/
|
|
11
|
+
loadExporters(notebookPanel: NotebookPanel): Promise<void>;
|
|
8
12
|
/**
|
|
9
13
|
* Send event data to exporters defined in the configuration file.
|
|
10
14
|
*
|
package/lib/index.js
CHANGED
|
@@ -30,7 +30,6 @@ class JupyterLabPioneer {
|
|
|
30
30
|
// When the global activeEvents configuration is null, exporters that do not have corresponding activeEvents will be ignored.
|
|
31
31
|
console.log(processedExporters);
|
|
32
32
|
this.exporters = processedExporters;
|
|
33
|
-
sendInfoNotification(processedExporters, true);
|
|
34
33
|
}
|
|
35
34
|
async publishEvent(notebookPanel, eventDetail, exporter, logWholeNotebook) {
|
|
36
35
|
var _a, _b;
|
|
@@ -63,6 +62,7 @@ const plugin = {
|
|
|
63
62
|
activate: async (app, notebookTracker, mainMenu) => {
|
|
64
63
|
const version = await requestAPI('version');
|
|
65
64
|
console.log(`${PLUGIN_ID}: ${version}`);
|
|
65
|
+
const config = (await requestAPI('config'));
|
|
66
66
|
const pioneer = new JupyterLabPioneer();
|
|
67
67
|
addInfoToHelpMenu(app, mainMenu, version);
|
|
68
68
|
notebookTracker.widgetAdded.connect(async (_, notebookPanel) => {
|
|
@@ -73,6 +73,7 @@ const plugin = {
|
|
|
73
73
|
new producer().listen(notebookPanel, pioneer);
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
|
+
sendInfoNotification(config.exporters, true);
|
|
76
77
|
return pioneer;
|
|
77
78
|
}
|
|
78
79
|
};
|