I am a fan of glumpy (or the related vispy), a python framework for scientific visualization. Unfortunately it does not have much in the way of user-interface (buttons etc.) I am also a fan of kivy and how it handles user interface elements. Both frameworks seem to have their own routines for drawing, window-creation etc. Can anyone point me in the right direction as to how I could use both tools in the same (desktop) app?
How can one use glumpy or vispy from kivy?
1.3k Views Asked by weemattisnot At
1
There are 1 best solutions below
Related Questions in PYTHON
- prolog traverse nonstandard tree left to right
- Constraint not propagated upon instantiation of list members
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Predicate that pick elements which are on list twice not less not more
- prolog-false is returned instead of a number
- Freezing goal in prolog
- freeze for more than one variable
- Why I can't get an answer for the Ship Puzzle with Prolog?
- Evaluate a number in (a few) natural language
- Prolog binding arguments
Related Questions in KIVY
- prolog traverse nonstandard tree left to right
- Constraint not propagated upon instantiation of list members
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Predicate that pick elements which are on list twice not less not more
- prolog-false is returned instead of a number
- Freezing goal in prolog
- freeze for more than one variable
- Why I can't get an answer for the Ship Puzzle with Prolog?
- Evaluate a number in (a few) natural language
- Prolog binding arguments
Related Questions in VISPY
- prolog traverse nonstandard tree left to right
- Constraint not propagated upon instantiation of list members
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Predicate that pick elements which are on list twice not less not more
- prolog-false is returned instead of a number
- Freezing goal in prolog
- freeze for more than one variable
- Why I can't get an answer for the Ship Puzzle with Prolog?
- Evaluate a number in (a few) natural language
- Prolog binding arguments
Related Questions in GLUMPY
- prolog traverse nonstandard tree left to right
- Constraint not propagated upon instantiation of list members
- SWI Prolog pass a goal with non-zero arity through the command line arguments
- Predicate that pick elements which are on list twice not less not more
- prolog-false is returned instead of a number
- Freezing goal in prolog
- freeze for more than one variable
- Why I can't get an answer for the Ship Puzzle with Prolog?
- Evaluate a number in (a few) natural language
- Prolog binding arguments
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I've looked into this a little. The direction I chose was to try to create a Kivy window backend for Vispy, which would use the existing Kivy window but pass through all Kivy's events (input etc) to the Vispy canvas - effectively, where a Window backend would normally have a
while True:
loop checking events and drawing each frame, I had a Kivy clock scheduled function doing the same thing. I think this approach should be possible and maybe fairly easy, but I'm not certain what problems could come up in integrating their eventloops. I didn't get very far with my experiments before running out of time for it.Probably you could also do things the other way around, binding Kivy's clock tick to a timer in Vispy that runs every frame. The importance of having opengl stuff run in the right order could still cause problems, but otherwise this should also be easy, at least at a first look. I didn't try it because I'm more familiar with Kivy's internals, and because my end goal was more of a Kivy app containing Vispy visualisations rather than the other way around.
There could be other problems in combining them, like possibly general opengl problems (I think one I had was a version mismatch of opengl they were targeting) or issues with drawing order and position - I was working with the idea in mind of ideally ending up with something like a VispyWidget in Kivy, which would constrain Vispy's drawing to the given area, but I didn't get that far. I'd love to see it work though, and I think that it should be possible but would need some experimentation and maybe contributions to both projects to fix any integration issues.
Edit: The same very probably applies to glumpy, but I haven't actually tried it or looked at its code.