bloqade.analog.builder.parse.trait.Show
← Module overview
class
method
classShow¶source
bloqade.analog.builder.parse.trait.Show
A mixin class providing functionality to display the builder with given arguments and batch ID.
class Showmethodshow¶source
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
| Name | Type | Default | Description |
|---|---|---|---|
*args | — | () | |
batch_id | int | 0 | The batch ID to be displayed. Defaults to 0. |
Note
This method uses the display_builder function to render the builder’s state.