Skip to content

bloqade.analog.builder.parse.trait.Show

← Module overview

classShowsource

bloqade.analog.builder.parse.trait.Show

A mixin class providing functionality to display the builder with given arguments and batch ID.

class Show

methodshowsource

bloqade.analog.builder.parse.trait.Show.show

def show(*args=(), batch_id: int = 0)

Display the current program being defined with the given arguments and batch ID.

Example:

>>> class MyBuilder(Show):
... pass
>>> builder = MyBuilder()
>>> builder.show()
>>> builder.show(batch_id=1)
>>> builder.show('arg1', 'arg2', batch_id=2)

Parameters

NameTypeDefaultDescription
*args—()
batch_idint0The batch ID to be displayed. Defaults to 0.

Note

This method uses the display_builder function to render the builder’s state.

source