d3.js Loading version 3 vs version 4 in Jupyter Notebook

Viewed 583

If I try to load the d3.js library into my jupyter notebook it works fine with version 3.x. I can then go to the chrome console and the d3 object is available.

from IPython.core.display import display, HTML
HTML('<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>')

If I do the same with version 4.x it is not available even though it is displayed in the sources tab of the chrome developer tools.

from IPython.core.display import display, HTML
HTML('<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.10.0/d3.min.js"></script>')

What am I doing wrong?

1 Answers
Related