File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,12 @@ async function main() {
145
145
require ( '@jupyterlab/terminal-extension' ) ,
146
146
require ( '@jupyterlab/theme-light-extension' ) ,
147
147
require ( '@jupyterlab/theme-dark-extension' ) ,
148
+ require ( '@jupyterlab/toc-extension' ) . default . filter ( ( { id } ) =>
149
+ [
150
+ '@jupyterlab/toc-extension:registry' ,
151
+ '@jupyterlab/toc-extension:tracker'
152
+ ] . includes ( id )
153
+ ) ,
148
154
require ( '@jupyterlab/translation-extension' ) ,
149
155
// Add the "Hub Control Panel" menu option when running in JupyterHub
150
156
require ( '@jupyterlab/user-extension' ) ,
Original file line number Diff line number Diff line change 133
133
"@jupyterlab/terminal-extension" : " ^4.0.0-alpha.10" ,
134
134
"@jupyterlab/theme-dark-extension" : " ^4.0.0-alpha.10" ,
135
135
"@jupyterlab/theme-light-extension" : " ^4.0.0-alpha.10" ,
136
+ "@jupyterlab/toc-extension" : " ^6.0.0-alpha.10" ,
136
137
"@jupyterlab/tooltip-extension" : " ^4.0.0-alpha.10" ,
137
138
"@jupyterlab/translation-extension" : " ^4.0.0-alpha.10" ,
138
139
"@jupyterlab/user-extension" : " ^4.0.0-alpha.10" ,
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
75
75
} else {
76
76
this . layout = this . initLayoutWithoutSidePanels ( ) ;
77
77
}
78
+
78
79
}
79
80
80
81
initLayoutWithoutSidePanels ( ) : Layout {
@@ -263,14 +264,14 @@ export class NotebookShell extends Widget implements JupyterFrontEnd.IShell {
263
264
if ( this . sidePanelsVisible ( ) ) {
264
265
return this . _leftHandler . addWidget ( widget , rank ) ;
265
266
}
266
- throw new Error ( `${ area } area is not available on this page` ) ;
267
+ console . warn ( `${ area } area is not available on this page` ) ;
267
268
case 'right' :
268
269
if ( this . sidePanelsVisible ( ) ) {
269
270
return this . _rightHandler . addWidget ( widget , rank ) ;
270
271
}
271
- throw new Error ( `${ area } area is not available on this page` ) ;
272
+ console . warn ( `${ area } area is not available on this page` ) ;
272
273
default :
273
- throw new Error ( `Cannot add widget to area: ${ area } ` ) ;
274
+ console . warn ( `Cannot add widget to area: ${ area } ` ) ;
274
275
}
275
276
}
276
277
You can’t perform that action at this time.
0 commit comments