Skip to content

Commit 71897fc

Browse files
authored
Merge pull request #6584 from brichet/fix/PDFrenderer
Fix PDF renderer
2 parents 8412694 + 74e227b commit 71897fc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
"@jupyterlab/mathjax2-extension",
208208
"@jupyterlab/markedparser-extension",
209209
"@jupyterlab/notebook-extension",
210+
"@jupyterlab/pdf-extension",
210211
"@jupyterlab/rendermime-extension",
211212
"@jupyterlab/running-extension",
212213
"@jupyterlab/shortcuts-extension",

packages/application/src/app.ts

+5
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)