ouseful-testing / jupyterlite-webr-kernel

An R kernel for JupyterLite, based on webR.
https://ouseful-testing.github.io/jupyterlite-webr-kernel/
MIT License
0 stars 0 forks source link

Only using ephemeral in-memory storage #8

Open psychemedia opened 3 hours ago

psychemedia commented 3 hours ago

Docs: https://jupyterlite.readthedocs.io/en/latest/howto/configure/storage.html#local-storage-drivers

If persistence is entirely handled outside of JupyterLite, it is possible to disable all persistence, assuring total user data loss after every page/iframe reload. In jupyter-lite.json, set:

{
  "jupyter-config-data": {
    "enableMemoryStorage": true,
    "contentsStorageDrivers": ["memoryStorageDriver"],
    "settingsStorageDrivers": ["memoryStorageDriver"]
  }
}

I donlt know if we also need to add "jupyter-lite-schema-version": 0, eg as per https://jupyterlite.readthedocs.io/en/latest/howto/configure/config_files.html ?

psychemedia commented 3 hours ago

Can we make a customisable build that will optionally use the ephemeral settings, so eg we could specifiy a SISE build and it would inject these settings?

I think the file can exist any level of the directory tree, as described in https://jupyterlite.readthedocs.io/en/latest/reference/config.html .

Could we have an action that if SISE is selected will copy EPHEMERAL-jupyter-lite.json to jupyter-lite.json at the top level; hopefully the build will then pick it up?