You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
So i start my issue with this simple example:
As we can see, importing the D3 library failed. At first, I thought it was due to the way it was imported like this: <script src="https://d3js.org/d3.v7.min.js"></script>. However, when I used IPython to add the entire library, D3 was still 'not defined'. So, I opened the D3 code, which starts like this:
In VS Code, define === "function" && define.amd is triggered, but it's not possible to assign the global variable d3, which remains 'not defined'. Is there any way to load D3 into VS Code? My visualizations with IPython and D3 work perfectly in Jupyter Notebook, Jupyter Lab in the browser, and other notebooks built on Electron. There must be a way, because while playing with the developer console, my visualization displayed once, but I couldn't replicate it.
VS Code Version
1.93.0
Jupyter Extension Version
v2024.8.1
Jupyter logs
No response
Coding Language and Runtime Version
Python, js
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered:
Applies To
What happened?
So i start my issue with this simple example:
As we can see, importing the D3 library failed. At first, I thought it was due to the way it was imported like this: <script src="https://d3js.org/d3.v7.min.js"></script>. However, when I used IPython to add the entire library, D3 was still 'not defined'. So, I opened the D3 code, which starts like this:
In VS Code, define === "function" && define.amd is triggered, but it's not possible to assign the global variable d3, which remains 'not defined'. Is there any way to load D3 into VS Code? My visualizations with IPython and D3 work perfectly in Jupyter Notebook, Jupyter Lab in the browser, and other notebooks built on Electron. There must be a way, because while playing with the developer console, my visualization displayed once, but I couldn't replicate it.
VS Code Version
1.93.0
Jupyter Extension Version
v2024.8.1
Jupyter logs
No response
Coding Language and Runtime Version
Python, js
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: