Treffen vom 10. 5. 2015





Interactive module dependency graphs

With snakefood you can visualize the dependencies of your Python modules.



You first extract the dependencies using sfood and obtain a dependencies file (essentially two space separated modules names (with paths) per line: the dependent module and the dependency). (Note: You can [[|use it under python2 to analyze python3, but only as long as you don't have 'yield from' statements.)

Next you run 'sfood-graph' on the result and obtain a file in graphviz's dot language.


Let's suppose you have created a module dependency graph ''. To make it interactive do the following:

Edit the node and edge sections in '':

Convert it on the linux command line:

Edit 'dep.svg' like this: insert the following script as last child of svg element (just befode </svg>):

View the svg in your browser and click on a node.

Beginner intro to Python packages (hop)

Package management auf einem debian-System:

systemweit, per Distribution:

systemweit, manuell nachinstalliert:

nicht systemweit, in eigenen verzeichnissen parallel verschiedene python versionen und paket-konfigurationen nutzen:

Diskussions- und Plauderrunde


PyUGAT: Treffen/2015-05 (last edited 2015-05-10 18:41:07 by ibu)