@jupyterlite / @jupyterlite/services / NotebookExporter
Class: NotebookExporter#
Defined in: packages/services/src/nbconvert/exporters.ts:45
Exporter for notebook format (.ipynb).
Extends#
Constructors#
Constructor#
new NotebookExporter():
NotebookExporter
Returns#
NotebookExporter
Inherited from#
Properties#
mimeType#
readonlymimeType:"application/x-ipynb+json"='application/x-ipynb+json'
Defined in: packages/services/src/nbconvert/exporters.ts:49
The MIME type of the exported format.
Overrides#
Methods#
export()#
export(
model,path):Promise<void>
Defined in: packages/services/src/nbconvert/exporters.ts:57
Export a notebook to .ipynb format.
Parameters#
model#
IModel
The notebook model to export
path#
string
The path to the notebook
Returns#
Promise<void>
Overrides#
triggerDownload()#
protectedtriggerDownload(content,mimeType,filename):void
Defined in: packages/services/src/nbconvert/exporters.ts:32
Trigger a browser download of the exported content.
Parameters#
content#
string
The content to download
mimeType#
string
The MIME type of the content
filename#
string
The filename for the download
Returns#
void