jupyterlite / jupyterlite

Wasm powered Jupyter running in the browser 💡
https://jupyterlite.rtfd.io/en/stable/try/lab
BSD 3-Clause "New" or "Revised" License
3.74k stars 281 forks source link

Access to notebook ipynb file from javascript client #763

Open dgcmain opened 1 year ago

dgcmain commented 1 year ago

Problem

I would like to access the ipynb (json/dict) file from the client side (not the jupyter side).

I know that when clicking in download, in the client, the file is packaged and download without any server call, could you provide a way to access it from the javascript debugger console?

Also would it possible to export it as html? Is it necessary nbconvert for that? How is the ipynb file generated without nbconvert?

Proposed Solution

Javascript access method in the client console that access/generate the ipynb file or json of the notebook.

Additional context

In normal jupyterlab nbconvert can be called and export into html, ipynb or even other formats. I suposse that is limited by pyodide.

dgcmain commented 1 year ago

Able to download file not to access from javascript the file, any idea?