I am looking for an interactive GUI library for Python.
In the " graph " section, I meant a set of nodes connected by many vertices (not a graph of values along the xy axis, nor a grid of pixels).
By “interactive,” I meant that I can drag and drop nodes around, and I need to be able to click nodes / vertices and pass the nodes / vertices to my callbacks library, which can add / remove nodes / vertices or the displayed information (I cannot load the full the graph at startup, since the data set is too large / complex, instead I will only load the necessary pieces of data depending on user inputs).
In Python, I was referring to the Python programming language , the graphic display library must have a CPython binding. I have Python 2.7 and Python 3.1, but you can downgrade to 2.6 if necessary. This language requirement is because the dataset I'm working with has only Python bindings.
The graphic display library must support oriented graphics and be able to automatically assemble nodes. I need to put labels on the nodes.
Preferably, the layout algorithm should place adjacent nodes next to each other. It should be able to handle from 100-1000 nodes and about 300-4000 vertices reasonably in my 4 year old laptop (I usually start with about 100 nodes, but the number can expand depending on user input). Preferably, it should be a library with not too many dependencies (except perhaps for Gnome). Open Source Preferred.
I already wrote a simple prototype of my program using Tkinter Canvas, but to expand the program I need a more serious GUI library. I looked at graphviz and matplotlib, but apparently they are only for working with static graphs and, apparently, it will require significant work for interactive manipulations (correct me if I am wrong, I just looked at them briefly), I also tried create a graph in an SVG file and use Inkscape to view it, but it is too slow and takes up too much memory, and due to the large number of vertices it becomes a confused mess.
python graph interactive
Lie Ryan Apr 22 2018-11-21T00: 00Z
source share