News for hackers. Stuff that matters.
Re:JupyterLite is a JupyterLab distribution that runs in the... by santiagobasulto on Monday November 28, 2022 @09:51PM (#33783098)
JupyterLite is a great project!

Addressing some other comments: the main limitation you'll find is probably the filesystem. WASM File System APIs are not extremely well evolved and (i think?) they're still in-memory FSs.

Re:JupyterLite is a JupyterLab distribution that runs in the... by tartakovsky on Monday November 28, 2022 @09:55PM (#33783129)
Files seem to persist even after quitting chrome, refreshing or closing the tab. I'm not an expert, but assume it's cookie storage.
Re:JupyterLite is a JupyterLab distribution that runs in the... by santiagobasulto on Monday November 28, 2022 @09:59PM (#33783161)
I think JupyterLite is using localStorage by default. But there are File System APIs for WASM and some external projects[0], I don't think they're yet integrated.

[0] https://github.com/jvilk/BrowserFS

Re:JupyterLite is a JupyterLab distribution that runs in the... by tartakovsky on Monday November 28, 2022 @10:29PM (#33783364)
Thanks, yes I see it now. It stores the notebook, which is a json, as a value in the localStorage object, with the filename as a key. Interesting, yes, not quite easy to configure (though I haven't read through the documentation or code to find this).
Re:JupyterLite is a JupyterLab distribution that runs in the... by brianjacobs on Monday November 28, 2022 @10:20PM (#33783300)
> I think JupyterLite is using localStorage by default

This has been a problem when using Konqueror.

Re:JupyterLite is a JupyterLab distribution that runs in the... by martinRenou1 on Tuesday November 29, 2022 @07:34AM (#33786774)
JupyterLite has a binding between the browser local storage and the WASM File System, so you can create a file from Python and it will be saved in the browser local storage for next time you come