Treffen vom 10. 5. 2015

Agenda

Anwesenheitsliste

Programm

Kurzvorträge

Interactive module dependency graphs

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

Preparation

Overview

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 [[http://stackoverflow.com/questions/23962614/module-dependency-graph-in-python-3|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.

Hack

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

Edit the node and edge sections in 'dep.dot':

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


CategoryShownotes

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