@jupyterlite / @jupyterlite/services / BaseExporter
Class: abstract BaseExporter#
Defined in: packages/services/src/nbconvert/exporters.ts:11
Base class for notebook exporters.
Extended by#
Implements#
Constructors#
Constructor#
new BaseExporter():
BaseExporter
Returns#
BaseExporter
Properties#
mimeType#
abstractreadonlymimeType:string
Defined in: packages/services/src/nbconvert/exporters.ts:15
The MIME type of the exported format.
Implementation of#
Methods#
export()#
abstractexport(model,path):Promise<void>
Defined in: packages/services/src/nbconvert/exporters.ts:23
Export a notebook to this format.
Parameters#
model#
IModel
The notebook model to export
path#
string
The path to the notebook
Returns#
Promise<void>
Implementation of#
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