Skip to content

Commit 74e227b

Browse files
committed
Fix PDF renderer
1 parent fe3bacc commit 74e227b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
"@jupyterlab/mathjax2-extension",
204204
"@jupyterlab/markedparser-extension",
205205
"@jupyterlab/notebook-extension",
206+
"@jupyterlab/pdf-extension",
206207
"@jupyterlab/rendermime-extension",
207208
"@jupyterlab/running-extension",
208209
"@jupyterlab/shortcuts-extension",

packages/application/src/app.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {
66
JupyterFrontEndPlugin
77
} from '@jupyterlab/application';
88

9+
import { Base64ModelFactory } from '@jupyterlab/docregistry';
10+
911
import { createRendermimePlugins } from '@jupyterlab/application/lib/mimerenderers';
1012

1113
import { LabStatus } from '@jupyterlab/application/lib/status';
@@ -29,6 +31,9 @@ export class NotebookApp extends JupyterFrontEnd<INotebookShell> {
2931
*/
3032
constructor(options: NotebookApp.IOptions = { shell: new NotebookShell() }) {
3133
super({ ...options, shell: options.shell ?? new NotebookShell() });
34+
35+
// Add initial model factory.
36+
this.docRegistry.addModelFactory(new Base64ModelFactory());
3237
if (options.mimeExtensions) {
3338
for (const plugin of createRendermimePlugins(options.mimeExtensions)) {
3439
this.registerPlugin(plugin);

0 commit comments

Comments
 (0)