I would like to display a d3.js visualisation in Jupyter Lab/JupyterLab. I have been following various web tutorials like this one which often begin
%%javascript
require.config({
paths: {
d3: 'https://d3js.org/d3.v5.min'
}
});
This works in Jupyter Notebook, but in Jupyter Lab I get:
Javascript Error: require is not defined
How can display a d3.js visualisation in Jupyter Lab?