def _get_checkboxs(c4: Column, c5: Column) -> Tuple[bool, bool]: viz = c5.checkbox("Visual Only") c5.markdown( "<div style='height:57px'></div>", unsafe_allow_html=True) # Vertical spacing for button alignment agl = c4.checkbox("AGL") return viz, agl
def write_operation_info(kiara: Kiara, operation_id: str, container: DeltaGenerator = st): # this retrieve the object for the operation we are interested in operation: Operation = kiara.operation_mgmt.profiles[operation_id] # this is all operation specific data that is available, pick what you need container.markdown("## Operation info") container.markdown("### Type metadata") type_metadata = operation.module_cls.get_type_metadata() container.write(type_metadata.dict()) # you can access specific elements via the Python object attributes, like: # type_metadata.context.references container.markdown(("### Inputs")) for field_name, schema in operation.input_schemas.items(): container.write(f"#### {field_name}") container.write(schema.dict()) container.markdown(("### Outputs")) for field_name, schema in operation.output_schemas.items(): container.write(f"#### {field_name}") container.write(schema.dict())