Skip to content

Voila + JupyterLite #773

@martinRenou

Description

@martinRenou

Problem

Voila + JupyterLite would be amazing.

Proposed Solution

I started looking into implementing an nbconvert exporter that exports a Notebook to a Voila app that spawns a lite-kernel and execute the code in the page. voila-dashboards/voila#1187

So far, I think the exporter only is not enough. We will need to reuse some of the federated-extensions and Addon logic from the JupyterLite CLI.

My idea is to:

  • add a Voilite app to the JupyterLite repository
  • add a JupyterLite core-Addon that pre-exports all Notebooks (from the contents) to Voilite dashboards using the for-mentioned nbconvert voilite exporter, and add them under the Voilite app directory output
    • the Voilite app will redirect all /voila/render/*.ipynb requests to the pre-rendered voilite dashboards
    • if /voila/render/notebook.ipynb points to a Notebook that was not pre-rendered, we execute nbconvert in the page to render the Notebook, this will be way slower than opening pre-rendered dashboards, but it's a must have anyway.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions