Coder Social home page Coder Social logo

Comments (5)

tomudding avatar tomudding commented on July 22, 2024

It might actually be due to my setup. I'll test conversion of the bokeh.document.document.Document to JSON and directly pass it to the page.

If that doesn't work I'll try testing an API which we can request data from using AJAX (XHR) such that we can load the page and then once it is loaded start loading/retrieving the actual plots.

from 2ioa0-dbl-hti-webtech.

Yvee1 avatar Yvee1 commented on July 22, 2024

I tried your code and I have a correction, though maybe you know it already. You mention that it takes 60s to generate the HTML, but actually if you place the timer after the datashading and edge bundling you see it takes (only) 2 seconds. So in that case doing the datashading and edgebundling is what takes long. If you remove datashading and edgebundling however the generating of the html goes up to 8.2 seconds, so in total it then takes about 9 seconds to load the page. Though rendering 1000 nodes, with so many edges is also not that useful for data analysis so maybe we should only a subset of the nodes/edges, and all the data is only shown when filtered down to an amount where it is useful.

from 2ioa0-dbl-hti-webtech.

tomudding avatar tomudding commented on July 22, 2024

Dammit, didn't think about that. I was just using it because "it should improve the running time".

And we indeed should not render 1000 nodes, probably only the nodes and edges with weight (connections) >= some number derived from the data-set.

from 2ioa0-dbl-hti-webtech.

TechWizzart avatar TechWizzart commented on July 22, 2024

Yeah rendering all nodes and edges in a radial layout is far from useful, therefore I wanted to implement a slider that adjusts the value that @tomudding mentions. The edgebundling and datashading are things I have not looked at yet so it could very well be that these algorithms are far from optimised just as Bokeh's arrows are far from optimised.

from 2ioa0-dbl-hti-webtech.

tomudding avatar tomudding commented on July 22, 2024

Closing for now until we have properly implemented the nginx/gunicorn/flask/bokeh part and python bokeh callbacks.

from 2ioa0-dbl-hti-webtech.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.