Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter notebook (and Jupyter lab too) gives error when loading d3 library #279

Closed
deamonpog opened this issue Mar 6, 2023 · 2 comments
Closed

Comments

@deamonpog
Copy link

When I install a library such as lodash it works well. However it gives me errors when only getting the d3 package. I have installed it locally ( using npm install d3 )
Is this behavior due to d3 being spread over multiple smaller modules?
How would I be able to use d3 ?
image

@deamonpog
Copy link
Author

I actually found that it works for older versions such as d3@5 and d3@6.

@n-riesco
Copy link
Owner

n-riesco commented Mar 7, 2023

The error message is telling us that require only works with CJS modules. Unfortunately, d3 is now only releasing ES modules.

To make matters worse, at them moment ijavascript can only import ES modules dynamically (see #210).

I'm closing this issue to keep the conversation on ES modules under #210.

@n-riesco n-riesco closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants