voici icon indicating copy to clipboard operation
voici copied to clipboard

[Do not merge] Support both lite and remote kernel

Open trungleduc opened this issue 1 month ago • 5 comments

References

This is an experiment on adding support for the remote kernels to voici dashboards.

How to test

  • Start a jupyter server session with:
jupyter server --ServerApp.token='' --ServerApp.password='' --ServerApp.disable_check_xsrf=True --no-browser --port=8000 --ServerApp.allow_origin="*"
  • Build voici dashboard with the following config in jupyter_lite_config.json:

{
  "VoilaConfiguration": {
    "extension_config": {
      "VoiciRemoteKernel": {
        "name-of-notebook-using-remote-kernel.ipynb": {
          "baseUrl": "http://127.0.0.1:8000/",
          "wsUrl": "ws://127.0.0.1:8000/"
        }
      }
    }
  }
}

The notebooks with names in the VoiciRemoteKernel section will use the remote kernel, other notebooks still use lite kernel.

Code changes

Backwards-incompatible changes

trungleduc avatar May 08 '24 15:05 trungleduc