yggdrasil.url.explore¶
explore ¶
Clickable-repr mixin driven by explore_url.
A resource that can point at a web UI (AWS Console, Databricks workspace, an S3
object) defines :attr:explore_url; this mixin turns that into a repr you can
click from a repl / notebook:
repr(obj)→ClassName(<url>)whenexplore_urlis defined, otherwisesuper().__repr__()(the plain object / path repr);_repr_html_→ a real<a>anchor in Jupyter / IPython, else delegates tosuper()._repr_html_if one exists.
Both paths swallow errors from explore_url so a half-constructed or
mid-teardown instance still reprs (a degraded line beats a formatting crash).