Closed timon-schmelzer-gcx closed 4 years ago
Thank you for reporting this @tschmel . I need a little more information to get started:
Hi @shahinrostami ,
here is the output from Chrome (Version 80.0.3987.163 (Official Build) (64-Bit)):
I also tried it with Safari (Version 13.0.5 (15608.5.11)), but it is also not working. Here is the result:
I hope this helps!
Edit: added build versions of browsers
It does help!
Chord retrieves a template when you invoke the constructor, this is loaded from a web resource. That part seems to be going fine because I can see the JavaScript error refers to the d3
variable, which only exists in that downloaded template!
I look into this closer soon, you may find that switching browser or using jupyter lab
instead of jupyter notebook
may fix the issue in the meantime! Let me know if you have any more information that may help me figure it out 👍
If you're using conda:
conda install jupyterlab=1.1.4 -y
conda install numpy -y
conda install pandas -y
Indeed, switching to jupyter lab
solved the problem, so the issue might only occur with jupyter notebook
s. I will change the issue title accordingly.
Edit: Actually the title already contains jupyter notebook
, so I will leave it as is :).
I'm very happy you can at least start playing with it already @tschmel :)
I'll see what's causing the issue in jupyter notebook
soon!
I have the same issue with jupyter notebook and confirmed that switching to jupyter lab works
Based on some tests I think it may be best to continue with primary support for jupyter lab
rather than jupyter notebook
. I will update the documentation to reflect this.
A user offered a workaround for jupyter notebook
:
plot = chord.Chord(matrix, names).to_html()
from IPython.display import IFrame
IFrame(src="./out.html", width=700, height=700)
but support for this may be limited. If anyone figures it out please let us know!
Rendering the chord-charts does not seem to work in jupyter notebooks. Steps to reproduce:
pip install chord jupyter notebook
Expected Result
Some fancy chord plot
Actual result
Nothing. The result of
Chord(matrix, names).to_html()
is also empty.Result of
conda list