jupyter_server.nbconvert package#

Submodules#

Tornado handlers for nbconvert.

class jupyter_server.nbconvert.handlers.NbconvertFileHandler(application, request, **kwargs)#

Bases: JupyterHandler

An nbconvert file handler.

SUPPORTED_METHODS = ('GET',)#
auth_resource = 'nbconvert'#
get(format, path)#

Get a notebook file in a desired format.

class jupyter_server.nbconvert.handlers.NbconvertPostHandler(application, request, **kwargs)#

Bases: JupyterHandler

An nbconvert post handler.

SUPPORTED_METHODS = ('POST',)#
auth_resource = 'nbconvert'#
post(format)#

Convert a notebook file to a desired format.

jupyter_server.nbconvert.handlers.find_resource_files(output_files_dir)#

Find the resource files in a directory.

jupyter_server.nbconvert.handlers.get_exporter(format, **kwargs)#

get an exporter, raising appropriate errors

jupyter_server.nbconvert.handlers.respond_zip(handler, name, output, resources)#

Zip up the output and resource files and respond with the zip file.

Returns True if it has served a zip file, False if there are no resource files, in which case we serve the plain output file.

Module contents#