Coder Social home page Coder Social logo

2ioa0-dbl-hti-webtech's People

Contributors

baiguo0016 avatar darkpoppy avatar knokko avatar techwizzart avatar tomudding avatar vaols avatar yvee1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

baiguo0016 vaols

2ioa0-dbl-hti-webtech's Issues

WebGL does not correctly render on macOS

Currently we use force bokeh to use WebGL to speed up the rendering process. However, this does not correctly work in Safari (tested on macOS 10.14.4) browsers.

Speed issues with HV -> Bokeh -> HTML

@TechWizzart I partially updated the code you wrote for the radial node link diagram as can be seen in my feature-directedradianodelinkgraph branch:

with open("datasets/GephiMatrix_co-citation.csv", 'r') as csvfile:
dialect = csv.Sniffer().sniff(csvfile.readline())

df = pd.DataFrame()
for chunk in pd.read_csv("datasets/GephiMatrix_co-citation.csv", sep=dialect.delimiter, mangle_dupe_cols=True, index_col=False, chunksize=1000):
df = pd.concat([df, chunk], ignore_index=True)
#df.index.name = "delete"
#df = df.drop(index='delete')
nodes = df.columns.values.tolist()
nodes.pop(0)
#print(nodes)
df["Unnamed: 0"] = nodes
df = df.rename(columns={'Unnamed: 0': 'name'})
df = df.set_index(keys='name')

I don't know which code is faster, but this code is better for larger datasets. However, I have another problem now, The whole matrix can be imported into networkx is in ~1s (this includes the the whole content fetching part of the process). However, it takes bokeh 60s to generate the HTML for the plot and that is when I datashade and bundle the graph.

I need your input on speeding up the part which exports it to HTML because I have no clue how to do it.

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.