File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 207
207
" @jupyterlab/mathjax2-extension" ,
208
208
" @jupyterlab/markedparser-extension" ,
209
209
" @jupyterlab/notebook-extension" ,
210
+ " @jupyterlab/pdf-extension" ,
210
211
" @jupyterlab/rendermime-extension" ,
211
212
" @jupyterlab/running-extension" ,
212
213
" @jupyterlab/shortcuts-extension" ,
Original file line number Diff line number Diff line change 6
6
JupyterFrontEndPlugin
7
7
} from '@jupyterlab/application' ;
8
8
9
+ import { Base64ModelFactory } from '@jupyterlab/docregistry' ;
10
+
9
11
import { createRendermimePlugins } from '@jupyterlab/application/lib/mimerenderers' ;
10
12
11
13
import { LabStatus } from '@jupyterlab/application/lib/status' ;
@@ -29,6 +31,9 @@ export class NotebookApp extends JupyterFrontEnd<INotebookShell> {
29
31
*/
30
32
constructor ( options : NotebookApp . IOptions = { shell : new NotebookShell ( ) } ) {
31
33
super ( { ...options , shell : options . shell ?? new NotebookShell ( ) } ) ;
34
+
35
+ // Add initial model factory.
36
+ this . docRegistry . addModelFactory ( new Base64ModelFactory ( ) ) ;
32
37
if ( options . mimeExtensions ) {
33
38
for ( const plugin of createRendermimePlugins ( options . mimeExtensions ) ) {
34
39
this . registerPlugin ( plugin ) ;
You can’t perform that action at this time.
0 commit comments