An open API service indexing awesome lists of open source software.

https://github.com/mlaugharn/nbgui

inline real-time interactive remote guis in jupyter via jupyter_rfb
https://github.com/mlaugharn/nbgui

dear-imgui gui imgui jupyter jupyter-notebook pyglet

Last synced: about 1 month ago
JSON representation

inline real-time interactive remote guis in jupyter via jupyter_rfb

Awesome Lists containing this project

README

          

# nbgui
embed a live interactive gui in jupyter notebooks

uses jupyter_rfb, pyglet, and imgui

- rendering:
- gui is rendered in a hidden window
- window pixels are placed into a numpy array as a remote framebuffer
- jupyter-rfb streams the remote framebuffer to the browser's jupyter notebook session in realtime
- ui events:
- user does some io with the jupyter-rfb widget
- jupyter-rfb signals the widget io events back to the python script
- we translate the jupyter-rfb events + coordinates back into a compatible format and then pass them forward to `dear imgui`
- can use the entire `dear imgui` ecosystem for ui components + building the gui logic
- the widget is resizable by dragging the lower right corner

image