How could I create an extension includes a frontend plugin and a mimetype-renderer plugin use jupyterlab/extension-template

how could I create an extension includes a frontend plugin and a mimetype-renderer plugin use jupyterlab/extension-template

You can use jupyter-renderers for reference implementations for several mimetypes and then appropriately modify your extension template.

2 Likes

Thank you! I am a newbie in JupyterLab. I have completed the extension tutorial step b step.
After many tries, I found the solution. Just add the field jupyterlab.mimeExtension which value is the path of your mimerenderer extension’s .js file emitted by tsc to the package.json file.

    "jupyterlab": {
        "extension": true,
        "mimeExtension": "lib/video.js",
        "outputDir": "apod/labextension",
        "schemaDir": "schema"
    },

Now, the package has an application plugin and a mimerenderer plugin. After jupyterlab install the package, the application plugin and the mimerender plugin can both be activated.

1 Like