So this is somewhat similar to
What's easiest way to get Python script output on the web? and Matplotlib: interactive plot on a web server
but none of those used d3.js and I don't think they achieve the same level of interactive-ness.
So I am a newcomer to d3.js and frankly have no clue where I should start in this instance.
Project Flow:
- Ask user name on the front end. Send this to backend python
- get graph data (object + edges) for a depth of x where x is distance away from a starting node by Python calls to 3rd party website API
- run some machine learning on the data (python)
- display the graph + some numbers (maybe in the bottom right corner) in d3.js loop:
- Have an interactive d3.js graph so that if I click a node, it will redo the calculation with that as the starting node
- have it so that d3.js shows part of the text (first 10 chars?) of each node and then shows the full text once you mouse over.
(7) Bonus updating embeddable picture? Like those profile signatures?
Questions: How would I achieve this bidirectional communication? Where should I start? Is there a better way I can do this?
Sidenote: I'm planning to do this project using Google App Engine, I don't know if that lets you use it as a 'vm' though.
Thanks!
Edit: This looks a lot like Python at backend JS at frontend integration, but I don't know where to even start and I think they suggest more art-oriented tools as a result of his project.