Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support download folder as archive in JupyterLite #123

Open
psychemedia opened this issue Oct 6, 2023 · 1 comment
Open

Support download folder as archive in JupyterLite #123

psychemedia opened this issue Oct 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@psychemedia
Copy link

JupyerLite provides an in-browser version of JupyterLab supported by an in-browser WASM based Python environment. Notebooks can be uploaded to JupyterLite and saved to browser storage, along with edited notebooks and data files etc. Being able to easily export notebooks as a zip archive from the in-browser environment would be really useful.

Currently, using the jupyter-archive extension to download a folder as an archive file in Chrome pops up a browser status message to the effect of download.html File wasn't available on site and no archive file is downloaded.

@psychemedia psychemedia added the enhancement New feature or request label Oct 6, 2023
@fcollonval
Copy link
Member

Some comments for interested contributors:

  • this is not easy to achieve. Despite what it looks like for the end user, the architecture of jupyterlite does not execute any server. Therefore extensions like this one that are doing actions in the server are not easy to integrate in jupyterlite.
  • from the previous comment there are two ways to address this:
    • the better: create a jupyterlite extension that run a mocked jupyter server in a web worker using a pyodide interpreter (independent of any kernel web worker)
    • the hack: implement the server logic in new jupyterlite plugin - but I'd prefer to avoid this to not increase the maintenance burden.

Whatever the path, I want to emphasize that it won't be easy as it will require knowledge of storage management in the jupyterlite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants