Skip to content

yggdrasil.databricks.loki.session

session

Read the session ygg databricks configure remembers.

The specialized Databricks Loki detects a workspace only from the config that ygg databricks configure writes — the profile in ~/.databrickscfg plus the snapshot under ~/.config/databricks-sdk-py/sessions/<hostname>.json — never from raw DATABRICKS_* environment variables or hard-coded parameters. This module loads that snapshot.

read_session

read_session() -> Optional[dict[str, Any]]

The remembered configure session (this host's, else the newest), or None.