The real test of this tool will be how useful it is when integrated with the IDE. We will start with VS Code since it is (supposedly) easy to write extensions. The idea is simple:
Open a Python source file
Select "Flow Graph Live Preview" via command palette or keyboard shortcut
A live preview is opened in a new pane with flow graph
Every time source file changes, the flow graph is updated via dagger+pydot+graphviz
Some additional ideas that might be done later:
Highlight an block of code to visualize only that block
Make the preview interactive, i.e. clicking on a node allows you to "zoom in" to inner subgraph
Make nodes hyperlinked to the corresponding location in source code (if it is available)
Hyperlink external library calls to package documentation ?
The real test of this tool will be how useful it is when integrated with the IDE. We will start with VS Code since it is (supposedly) easy to write extensions. The idea is simple:
Some additional ideas that might be done later: