shahinrostami / plotapi

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

Unable to show in Visual Studio Code #14

Closed Alex-Emmert closed 4 years ago

Alex-Emmert commented 4 years ago

I understand that this project is built primarily with Jupyter in mind - However, I am working with Visual Studio Code and I am unable to get a Chord diagram to show using the show() or to_html() methods. Is there anything I can do to be able to display a chord diagram using this library in VSC?

Thanks!

shahinrostami commented 4 years ago

Hello @AviationFreak! What are you running within VSC - is it an .ipynb notebook or .py source file? I'll check it out once you let me know and see what I can do!

Alex-Emmert commented 4 years ago

@shahinrostami I'm running a .py file - Here's the pastebin: https://pastebin.com/tMZ1nzg5

(Requires Wikipedia-API)

shahinrostami commented 4 years ago

@AviationFreak After changing the .show() call to .to_html() (.show() is for Jupyter Lab only), it appears to have worked! By default, it outputs out.html in the current directory which contains the interactive visualisation. Would love to see how it ends up when you're finished 👍

Screenshot 2020-07-19 at 23 19 06
Alex-Emmert commented 4 years ago

@shahinrostami Ah you're right! That's my bad - I didn't see the file it had generated in my overcluttered folder. Thanks for your help! :)