Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71897fc

Browse files
authored
Merge pull requestjupyter#6584 from brichet/fix/PDFrenderer
Fix PDF renderer
2 parents8412694 +74e227b commit71897fc

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
@@ -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‎

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:newNotebookShell()}){
3133
super({ ...options,shell:options.shell??newNotebookShell()});
34+
35+
// Add initial model factory.
36+
this.docRegistry.addModelFactory(newBase64ModelFactory());
3237
if(options.mimeExtensions){
3338
for(constpluginofcreateRendermimePlugins(options.mimeExtensions)){
3439
this.registerPlugin(plugin);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp