pub struct NotebookOptions {
pub dir: PathBuf,
pub runtime_dir: PathBuf,
pub venv_dir: PathBuf,
pub python: Option<PathBuf>,
pub bind: SocketAddr,
pub token: String,
pub cull_idle_secs: u64,
pub repo: String,
pub engine_http: SocketAddr,
}Expand description
Fully resolved notebook-service options.
Fields§
§dir: PathBufContents-API root (c.ServerApp.root_dir).
runtime_dir: PathBufSidecar runtime dir (generated config carrying the token + jupyter
runtime files). Deliberately not under dir: the Contents API must
not serve the token.
venv_dir: PathBufAuto-provisioned venv root.
python: Option<PathBuf>Explicit interpreter (--notebooks-python); None = auto-provision
the pinned venv at startup.
bind: SocketAddrLoopback bind for the sidecar. Port 0 = engine-assigned per attempt.
token: StringJupyter auth token (minted during resolve when not configured).
cull_idle_secs: u64Kernel idle culling timeout, seconds.
repo: StringDefault repository advertised to kernels (WARATAH_REPO).
engine_http: SocketAddrLoopback address of THIS compute’s HTTP server (WARATAH_URL).
Implementations§
Source§impl NotebookOptions
impl NotebookOptions
Sourcepub fn resolve(
cli: NotebookCli,
toml: Option<NotebooksToml>,
defaults: NotebookDefaults,
repo: String,
) -> Result<Self, NotebookError>
pub fn resolve( cli: NotebookCli, toml: Option<NotebooksToml>, defaults: NotebookDefaults, repo: String, ) -> Result<Self, NotebookError>
Merge CLI flags over the notebooks.toml values over the defaults.
Sourcepub fn waratah_url(&self) -> String
pub fn waratah_url(&self) -> String
WARATAH_URL: loopback root of this compute’s HTTP server.
An unspecified bind (0.0.0.0, ::) is normalized to 127.0.0.1 —
kernels must dial the co-located engine over loopback, never the
externally advertised wildcard.
Trait Implementations§
Source§impl Clone for NotebookOptions
impl Clone for NotebookOptions
Source§fn clone(&self) -> NotebookOptions
fn clone(&self) -> NotebookOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more