1
1
import React from 'react' ;
2
+
2
3
import { ReactWidget } from '@jupyterlab/apputils' ;
3
- import { JupyterFrontEnd , JupyterFrontEndPlugin } from '@jupyterlab/application' ;
4
- import { INotebookTracker , NotebookPanel , NotebookActions } from '@jupyterlab/notebook' ;
4
+
5
+ import {
6
+ JupyterFrontEnd ,
7
+ JupyterFrontEndPlugin
8
+ } from '@jupyterlab/application' ;
9
+
10
+ import {
11
+ INotebookTracker ,
12
+ NotebookPanel ,
13
+ NotebookActions
14
+ } from '@jupyterlab/notebook' ;
15
+
5
16
import { ICellFooter , Cell } from '@jupyterlab/cells' ;
17
+
6
18
import { ReadonlyPartialJSONObject } from '@lumino/coreutils' ;
19
+
7
20
import { CommandRegistry } from '@lumino/commands' ;
21
+
8
22
import { IEditorServices } from '@jupyterlab/codeeditor' ;
9
23
10
24
/**
@@ -27,7 +41,7 @@ export class CellFooterWithButton extends ReactWidget implements ICellFooter {
27
41
this . commands = commands ;
28
42
this . addClass ( CELL_FOOTER_CLASS ) ;
29
43
}
30
- render ( ) {
44
+ render ( ) : JSX . Element {
31
45
return (
32
46
< div className = { CELL_FOOTER_DIV_CLASS } >
33
47
< button
@@ -67,7 +81,7 @@ export class ContentFactoryWithFooterButton extends NotebookPanel.ContentFactory
67
81
* The footer button extension for the code cell.
68
82
*/
69
83
export const footerButtonExtension : JupyterFrontEndPlugin < void > = {
70
- id : 'jupyterlab-cellcodebtn ' ,
84
+ id : 'jupyterlabextensions:cell-code-btn ' ,
71
85
autoStart : true ,
72
86
requires : [ INotebookTracker ] ,
73
87
activate (
@@ -111,7 +125,7 @@ export const footerButtonExtension: JupyterFrontEndPlugin<void> = {
111
125
* The notebook cell factory.
112
126
*/
113
127
export const cellFactory : JupyterFrontEndPlugin < NotebookPanel . IContentFactory > = {
114
- id : 'jupyterlab- cellcodebtn:factory' ,
128
+ id : 'jupyterlabextensions: cellcodebtn:factory' ,
115
129
requires : [ IEditorServices ] ,
116
130
provides : NotebookPanel . IContentFactory ,
117
131
autoStart : true ,
0 commit comments