Comments (5)
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.
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.
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.
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.
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)
- 7.13 Implementation details regarding server [Tom]
- 5.18 Get window specs on filtering page to adjust plot sizes on visualisation page [Tom] [1hr]
- 3.2 Fix NL parameter bugs [Steven] [2 Hrs]
- 2.15 Fix the continue button on edge weight selection [Anton] [0.5hr]
- 3.3 Fix ZeroDivisionError when only selecting one node. [Tom] [0.5hr]
- 3.4 Fix no diagram when graph is directed. [Tom] [0.5hr]
- 0.1 Peer review [EVERYONE] [1hr]
- 1.15 Center cluster plot and remove title [Tom] [0.25hr]
- 7.11 Finish writing distribution section [Steven]
- 1.16 Fix DropzoneJS getting stuck on invalid file(s). [Tom] [0.25hr]
- 7.14 Read and check report [EVERYONE]
- 7.15 Update limitations section [Tim]
- 2.16 Re-add proper file checks on the back-end. [Tom] [0.5hr]
- 7.16 Write the future work section [Tom]
- 0.6 Final peer review [EVERYONE] [DL 28.6]
- 0.5 Upload Report on Canvas [Sam]
- 0.4 Upload Time-sheets, Retrospection, Demos on Canvas [Sophia]
- 0.3 Upload zip of the tool and readme -file to Canvas [Tom]
- 0.2 Upload the video on Canvas [Rain]
- Certain edge lists cause BokehJS to fail (Python error) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2ioa0-dbl-hti-webtech.