title: Display d3.js visualisation in Jupyter Lab
body: <p>I would like to display a d3.js visualisation in Jupyter Lab/JupyterLab.  I have been following various web tutorials like <a href="https://www.stefaanlippens.net/jupyter-custom-d3-visualization.html" rel="noreferrer">this one</a> which often begin</p>
  <pre><code>%%javascript
  require.config({
      paths: {
          d3: 'https://d3js.org/d3.v5.min'
      }
  });
  
  </code></pre>
  <p>This works in Jupyter Notebook, but in Jupyter Lab I get:</p>
  <pre><code>Javascript Error: require is not defined
  </code></pre>
  <p>How can display a d3.js visualisation in Jupyter Lab?</p>