agermanidis/livepython

enhancement - force directed layout visualization of files/methods accessed

johndpope opened this issue · 3 comments

Hi @agermanidis - latest build is so good - and runs really smooth.
thanks so much for all your work. the variable explore is great!

so I'm thinking out loud here - but given the last suggestion was well received - going to take another stab.

I'm imagining a visualization of classes accessed like gource.io
(this requires c++ etc too heavy for electron - however d3 has a simple force directed graph)
screen shot 2017-11-08 at 10 56 17 am
https://www.youtube.com/watch?v=cNBtDstOTmA&t=44s

FORCE DIRECTED GRAPH
https://bl.ocks.org/mbostock/4062045

screen shot 2017-11-08 at 11 04 19 am

curves
screen shot 2017-11-08 at 11 10 33 am

when a file is imported an edge would be created in graph.
when a method is called - perhaps the link is highlighted.
a naive linking maybe the edge would be from parent class - to child class.
not sure best way to do this.

from looking more closely at gource.io animation - the nodes slowly decay.

closing this

ps - @agermanidis - why not turn on the sponsors button - someone might pay you to develop this.
at > 2000 stars - it's pretty compelling for sponsors to help kick the tin.
https://github.com/sponsors