mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-12 14:00:27 +08:00
commit
71897fcda0
@ -207,6 +207,7 @@
|
||||
"@jupyterlab/mathjax2-extension",
|
||||
"@jupyterlab/markedparser-extension",
|
||||
"@jupyterlab/notebook-extension",
|
||||
"@jupyterlab/pdf-extension",
|
||||
"@jupyterlab/rendermime-extension",
|
||||
"@jupyterlab/running-extension",
|
||||
"@jupyterlab/shortcuts-extension",
|
||||
|
@ -6,6 +6,8 @@ import {
|
||||
JupyterFrontEndPlugin
|
||||
} from '@jupyterlab/application';
|
||||
|
||||
import { Base64ModelFactory } from '@jupyterlab/docregistry';
|
||||
|
||||
import { createRendermimePlugins } from '@jupyterlab/application/lib/mimerenderers';
|
||||
|
||||
import { LabStatus } from '@jupyterlab/application/lib/status';
|
||||
@ -29,6 +31,9 @@ export class NotebookApp extends JupyterFrontEnd<INotebookShell> {
|
||||
*/
|
||||
constructor(options: NotebookApp.IOptions = { shell: new NotebookShell() }) {
|
||||
super({ ...options, shell: options.shell ?? new NotebookShell() });
|
||||
|
||||
// Add initial model factory.
|
||||
this.docRegistry.addModelFactory(new Base64ModelFactory());
|
||||
if (options.mimeExtensions) {
|
||||
for (const plugin of createRendermimePlugins(options.mimeExtensions)) {
|
||||
this.registerPlugin(plugin);
|
||||
|
Loading…
x
Reference in New Issue
Block a user