process_handler(cmd, callback, stderr=-1)
This function provides common scaffolding for creating subprocess.Popen() calls. It creates a Popen object and then calls the callback with it.
A command to be executed by the system, using subprocess.Popen
. If a string is passed, it will be run in the system shell. If a list is passed, it will be used directly as arguments.
A one-argument function that will be called with the Popen object.
By default this is set to subprocess.PIPE
, but you can also pass the value subprocess.STDOUT
to force the subprocess' stderr to go into the same file descriptor as its stdout. This is useful to read stdout and stderr combined in the order they are generated.
Open a command in a shell subprocess and execute a callback.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them