Skip to content

server extensions have no simple way to use templates #1339

Open
@jcb91

Description

@jcb91

#879 provides a simple command to install a server extension, based upon values returned by the magically-named _jupyter_server_extension_paths function. So far each dict in the list returned by this function is seems to support only a single key module, which is the python module name to load for the extension.

Many server extensions also provide templates which the extension renders. Since jupyter uses the template_path setting for Tornado, any templates must exist under one of the directories in the template_path directory (as opposed to the default behaviour of looking for the template in the same directory as the .py file referencing it).

So, should server extensions provide an (optional) extra directory to add to template_path as a key in the return of _jupyter_server_extension_paths, or is there another way of going about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions