Open
Description
Kinda like ipywidgets interact
: https://ipywidgets.readthedocs.io/en/latest/examples/Using%20Interact.html
Would enable faster prototyping.
Would be useful to generate UIs for multiple functions and then possibly stack them in a window.
related to #848
For autogenerating based on function signature, maybe something like:
@fig.add_gui_auto(location="right", ...)
@fig.gui_auto_defaults(
a=range(0, 10, 2),
options=["opt1", "opt2", "opt3],
c=np.linspace(0, 1, 0.05)
)
def compute_function(a: int, b: str = "bah", options="opt1", c: float = 0.1)
# compute code here
Maybe something like this for stacking?
@fig.add_gui(location="right", ...)
def gui1():
# some imgui elements
@fig.append_gui(location="right")
def gui2():
# more imgui elements
For stacking auto-guis, same as regular stacking but use a @fig.append_gui_auto()
Metadata
Metadata
Assignees
Labels
No labels