GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — auto-create imgui UI using one or more function signatures · Issue #847 · fastplotlib/fastplotlib

auto-create imgui UI using one or more function signatures #847

New issue
Copy link
New issue
Copy link
Open
Open
auto-create imgui UI using one or more function signatures#847
Copy link

Description

@kushalkolar
kushalkolar
opened on May 31, 2025
Issue body actions

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()

Activity

  1. kushalkolar commented on Jun 2, 2025

    @kushalkolar
    kushalkolar
    on Jun 2, 2025
    MemberAuthor
    More actions

    on second thought, append_gui() can lead to messy and hard to predict and debug behavior for the user, just allow adding a single update function, they can remove and add a new one to change it.

    edit: on second second thought 😆 , one genuine usecase for this would be stacking auto-generated UIs from multiple function signatures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.