Skip to main content

Crate waratah_notebook

Crate waratah_notebook 

Source
Expand description

Jupyter notebook service: sidecar supervision and the /jupyter proxy.

waratah start --with-notebooks (or enabled = true in {config-dir}/notebooks.toml) spawns one jupyter-server sidecar per compute process — an in-process-managed child in its own process group, so its kernel children die with it. proxy::router reverse-proxies /jupyter/* to the sidecar, including RFC 6455 WebSocket upgrade tunnels for kernel channels. Kernels reach the co-located compute over loopback HTTP like any other client (WARATAH_URL / WARATAH_REPO env); they get no special internal access.

Security is a v1 stub: loopback bind + a startup-minted jupyter token, single user, no sandboxing. The auth iteration replaces it (see ARCH.md §9 notebooks sidecar).

Re-exports§

pub use options::JUPYTER_PATH;
pub use options::NotebookCli;
pub use options::NotebookDefaults;
pub use options::NotebookOptions;
pub use options::NotebooksToml;
pub use state::NotebookState;
pub use supervisor::SupervisorHandle;

Modules§

jupyter_config
Generated jupyter-server config for the sidecar.
kernelspec
Per-repository kernelspecs: the only stock-jupyter channel for a per-kernel WARATAH_REPO.
options
Resolved notebook-service options and the notebooks.toml document.
proxy
Reverse proxy /jupyter/* → loopback jupyter-server sidecar.
python_env
Pinned Python environment for the sidecar (auto-provisioned venv).
state
Live sidecar status shared by the supervisor, proxy, and HTTP surface.
supervisor
jupyter-server sidecar lifecycle: spawn, readiness, restart, group kill.
token
Startup-minted jupyter auth token (v1 security stub).

Enums§

NotebookError
Failure provisioning, starting, or supervising the notebook sidecar.