integer_digitbox

integer_digitbox#

treescope.integer_digitbox(value: int, *, label: str | None = None, size: str = '1em') figures_impl.TreescopeFigure[source]#

Returns a “digitbox” rendering of a single integer.

Parameters:
  • value – Integer value to render.

  • label – Optional label to draw next to the digitbox.

  • size – Size for the rendering as a CSS length. “1em” means render it at the current font size.

Returns:

A renderable object showing the digitbox rendering for this integer.