@jupyterlab/celltags-extension 4.0.0-alpha.2 → 4.0.0-alpha.20
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/package.json +8 -7
- package/src/index.ts +37 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/celltags-extension",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.20",
|
|
4
4
|
"description": "An extension for manipulating tags in cell metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"files": [
|
|
31
31
|
"lib/*.{d.ts,js,js.map}",
|
|
32
32
|
"style/*.css",
|
|
33
|
-
"style/index.js"
|
|
33
|
+
"style/index.js",
|
|
34
|
+
"src/**/*.{ts,tsx}"
|
|
34
35
|
],
|
|
35
36
|
"scripts": {
|
|
36
37
|
"build": "tsc",
|
|
@@ -38,14 +39,14 @@
|
|
|
38
39
|
"watch": "tsc -b --watch"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@jupyterlab/application": "^4.0.0-alpha.
|
|
42
|
-
"@jupyterlab/celltags": "^4.0.0-alpha.
|
|
43
|
-
"@jupyterlab/notebook": "^4.0.0-alpha.
|
|
44
|
-
"@jupyterlab/translation": "^4.0.0-alpha.
|
|
42
|
+
"@jupyterlab/application": "^4.0.0-alpha.20",
|
|
43
|
+
"@jupyterlab/celltags": "^4.0.0-alpha.20",
|
|
44
|
+
"@jupyterlab/notebook": "^4.0.0-alpha.20",
|
|
45
|
+
"@jupyterlab/translation": "^4.0.0-alpha.20"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"rimraf": "~3.0.0",
|
|
48
|
-
"typescript": "~
|
|
49
|
+
"typescript": "~5.0.0-beta"
|
|
49
50
|
},
|
|
50
51
|
"publishConfig": {
|
|
51
52
|
"access": "public"
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Copyright (c) Jupyter Development Team.
|
|
2
|
+
// Distributed under the terms of the Modified BSD License.
|
|
3
|
+
/**
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
* @module celltags-extension
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
JupyterFrontEnd,
|
|
10
|
+
JupyterFrontEndPlugin
|
|
11
|
+
} from '@jupyterlab/application';
|
|
12
|
+
|
|
13
|
+
import { INotebookTools, INotebookTracker } from '@jupyterlab/notebook';
|
|
14
|
+
|
|
15
|
+
import { TagTool } from '@jupyterlab/celltags';
|
|
16
|
+
|
|
17
|
+
import { ITranslator } from '@jupyterlab/translation';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Initialization data for the celltags extension.
|
|
21
|
+
*/
|
|
22
|
+
const celltags: JupyterFrontEndPlugin<void> = {
|
|
23
|
+
id: '@jupyterlab/celltags',
|
|
24
|
+
autoStart: true,
|
|
25
|
+
requires: [INotebookTools, INotebookTracker, ITranslator],
|
|
26
|
+
activate: (
|
|
27
|
+
app: JupyterFrontEnd,
|
|
28
|
+
tools: INotebookTools,
|
|
29
|
+
tracker: INotebookTracker,
|
|
30
|
+
translator: ITranslator
|
|
31
|
+
) => {
|
|
32
|
+
const tool = new TagTool(tracker, app, translator);
|
|
33
|
+
tools.addItem({ tool: tool, rank: 1.6 });
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default celltags;
|