Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize ImmVison from python #134

Closed
davidot opened this issue Sep 24, 2023 · 2 comments
Closed

Initialize ImmVison from python #134

davidot opened this issue Sep 24, 2023 · 2 comments

Comments

@davidot
Copy link

davidot commented Sep 24, 2023

Really enjoying this nicely bundled version of Imgui accessible via python.
However I ran into some issues when extending the code at bindings/imgui_bundle/demos_python/demos_immapp/imgui_example_glfw_opengl3.py

I was trying to display some graphs made with matplotlib using immvision.image_display which works fine with an app setup with immapp.run(...).
However in the demo code where you setup gl yourself there does not seem to be any way to access initializing immvision.
Am I missing something or is this just not possible?
I could try adding some bindings to immvision but I'm not sure that is the correct solution here.

Also if there is some other/better way to display dynamic buffers, would love to know.

@pthom pthom closed this as completed in f17af86 Sep 24, 2023
@pthom pthom reopened this Sep 24, 2023
@pthom
Copy link
Owner

pthom commented Sep 24, 2023

Hi, thanks for the nice feedback!

I fixed the issue inside ImmVision here: pthom/immvision@d49fcc8

You will need to build the bundle by yourself (pip install -v -e .) since I did not push a release as of now.

Please tell me if it works on your side!

@davidot
Copy link
Author

davidot commented Sep 24, 2023

Wow very fast, thanks! Yeah it works now

@davidot davidot closed this as completed Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants