Note that there are some explanatory texts on larger screens.

plurals
  1. POBidirectional flow between D3.js frontend and Python Backend? / Interactive graphs in a website
    primarykey
    data
    text
    <p>So this is somewhat similar to</p> <p><a href="https://stackoverflow.com/questions/731470/whats-easiest-way-to-get-python-script-output-on-the-web">What&#39;s easiest way to get Python script output on the web?</a> and <a href="https://stackoverflow.com/questions/3354883/matplotlib-interactive-plot-on-a-web-server">Matplotlib: interactive plot on a web server</a></p> <p>but none of those used d3.js and I don't think they achieve the same level of interactive-ness.</p> <p>So I am a newcomer to d3.js and frankly have no clue where I should start in this instance.</p> <p>Project Flow:</p> <ol> <li>Ask user name on the front end. Send this to backend python</li> <li>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</li> <li>run some machine learning on the data (python)</li> <li>display the graph + some numbers (maybe in the bottom right corner) in d3.js loop:</li> <li>Have an interactive d3.js graph so that if I click a node, it will redo the calculation with that as the starting node</li> <li>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.</li> </ol> <p>(7) Bonus updating embeddable picture? Like those profile signatures?</p> <p>Questions: How would I achieve this bidirectional communication? Where should I start? Is there a better way I can do this?</p> <p>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.</p> <p>Thanks!</p> <p>Edit: This looks a lot like <a href="https://stackoverflow.com/questions/12497626/python-at-backend-js-at-frontend-integration">Python at backend JS at frontend integration</a>, but I don't know where to even start and I think they suggest more art-oriented tools as a result of his project.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload