NodeHyperlink#
- class penzai.treescope.foldable_representation.foldable_impl.NodeHyperlink[source]#
Bases:
DeferringToChild
Builds a hyperlink to another node, based on that node’s JAX keypath.
This does nothing in text rendering mode.
- Variables:
child (RenderableTreePart) – Child part to render.
target_keypath (tuple[Any, ...] | None) – Keypath to the target.
Inherited Attributes
collapsed_width
The length of this rendering if collapsed in one line, in characters.
newlines_in_expanded_parent
The number of newlines in this rendering if in an expanded parent.
tags_in_this_part
Returns a set of "tag" objects contained in this part.
Methods
__init__
(child, target_keypath)html_setup_parts
(setup_context)render_to_html
(stream, *[, at_beginning_of_line])Attributes
collapsed_width
The length of this rendering if collapsed in one line, in characters.
newlines_in_expanded_parent
The number of newlines in this rendering if in an expanded parent.
tags_in_this_part
Returns a set of "tag" objects contained in this part.
child
target_keypath
Inherited Methods
(expand to view inherited methods)
foldables_in_this_part
()render_to_text
(stream, *, expanded_parent, ...)