@@ -14,8 +14,6 @@ import { Text, Time } from '@jupyterlab/coreutils';
14
14
15
15
import { IDocumentManager } from '@jupyterlab/docmanager' ;
16
16
17
- import { IMainMenu } from '@jupyterlab/mainmenu' ;
18
-
19
17
import { NotebookPanel , INotebookTracker } from '@jupyterlab/notebook' ;
20
18
21
19
import { ISettingRegistry } from '@jupyterlab/settingregistry' ;
@@ -26,7 +24,7 @@ import { INotebookShell } from '@jupyter-notebook/application';
26
24
27
25
import { Poll } from '@lumino/polling' ;
28
26
29
- import { Menu , Widget } from '@lumino/widgets' ;
27
+ import { Widget } from '@lumino/widgets' ;
30
28
31
29
/**
32
30
* The class for kernel status errors.
@@ -225,43 +223,6 @@ const kernelStatus: JupyterFrontEndPlugin<void> = {
225
223
}
226
224
} ;
227
225
228
- /**
229
- * A plugin to customize notebook related menu entries
230
- * TODO: switch to settings define menus when fixed upstream: https://github.com/jupyterlab/jupyterlab/issues/11754
231
- */
232
- const menuPlugin : JupyterFrontEndPlugin < void > = {
233
- id : '@jupyter-notebook/notebook-extension:menu-plugin' ,
234
- autoStart : true ,
235
- requires : [ IMainMenu , ITranslator ] ,
236
- activate : (
237
- app : JupyterFrontEnd ,
238
- mainMenu : IMainMenu ,
239
- translator : ITranslator
240
- ) => {
241
- const { commands } = app ;
242
- const trans = translator . load ( 'notebook' ) ;
243
-
244
- const cellTypeSubmenu = new Menu ( { commands } ) ;
245
- cellTypeSubmenu . title . label = trans . _p ( 'menu' , 'Cell Type' ) ;
246
- [
247
- 'notebook:change-cell-to-code' ,
248
- 'notebook:change-cell-to-markdown' ,
249
- 'notebook:change-cell-to-raw'
250
- ] . forEach ( command => {
251
- cellTypeSubmenu . addItem ( {
252
- command
253
- } ) ;
254
- } ) ;
255
-
256
- mainMenu . runMenu . addItem ( { type : 'separator' , rank : 1000 } ) ;
257
- mainMenu . runMenu . addItem ( {
258
- type : 'submenu' ,
259
- submenu : cellTypeSubmenu ,
260
- rank : 1010
261
- } ) ;
262
- }
263
- } ;
264
-
265
226
/**
266
227
* A plugin to enable scrolling for outputs by default.
267
228
* Mimic the logic from the classic notebook, as found here:
@@ -358,7 +319,6 @@ const plugins: JupyterFrontEndPlugin<any>[] = [
358
319
checkpoints ,
359
320
kernelLogo ,
360
321
kernelStatus ,
361
- menuPlugin ,
362
322
scrollOutput
363
323
] ;
364
324
0 commit comments