Skip to content

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>) when explore_url is defined, otherwise super().__repr__() (the plain object / path repr);
  • _repr_html_ → a real <a> anchor in Jupyter / IPython, else delegates to super()._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).

ExploreUrlRepr

explore_url property

explore_url: 'Optional[URL]'

Web-UI deep-link for this resource, or None. Override in subclasses; the repr / HTML below key off it.