shahinrostami / plotapi

Engaging visualisations, made easy.
https://plotapi.com
MIT License
268 stars 17 forks source link

Only a white screen appears when running out.html #16

Closed bowrango closed 4 years ago

bowrango commented 4 years ago

A new Google Chrome tab opens up on my localhost when I run the html file, but there is no graph or anything.

shahinrostami commented 4 years ago

Hi! Can you share a minimal example of your code and a little more about your environment?

bowrango commented 4 years ago

Sure thing! I'm generating the out.html file from within my Pycharm IDE running Python 3.7. I'm on my local machine running Windows 10.

I run this to create the interactive html file, and can confirm its created:

Chord(matrix, labels).to_html

I then run the html file, and a tiny pop-up appears with several icons of web browsers. I select Chrome. A new Chrome tab opens, but no graph:

result

shahinrostami commented 4 years ago

Hello - can you try the attached Python file demo.py and let me know what the output looks like? It should output the attached out.html file.

You can also use the Chrome developer tools (https://developers.google.com/web/tools/chrome-devtools/open) and see if there's an error in the console. You could also pass over the .py file and the out.html and I'll take a look!

bowrango commented 4 years ago

I can't seem the view the demo.py file, is it located somewhere in the repo?

Here is the error I received when it loaded the Google Chrome tab, with the zipped file below: error

out_HTML.zip

shahinrostami commented 4 years ago

Hello @bowrango, the demo.py was just a copy and paste from the first example in the GitHub README, it looks like it didn't attach! I downloaded your example HTML file. It points you to line 97 where you can see:

      matrix = [[0 0 0 ... 0 0 0]
 [0 0 0 ... 0 0 0]
 [0 0 0 ... 0 0 0]
 ...
 [0 0 0 ... 0 0 0]
 [0 0 0 ... 0 0 0]
 [0 0 0 ... 0 0 0]];

which isn't a proper assignment! It looks like this is an issue in your Python script somewhere. Head over to our Discord https://discord.gg/azcASEb wher we can help out with getting things going :) In the meantime I'll close this issue because it doesn't look like a bug with chord for now, will re-open otherwise!