Prevent plotly.js to be included in html after nbconvert

Hi all,

I am using plotly in Jupyter Lab notebooks that I export to HTML using nbconvert. When exporting however, the full plotly.js library code is included in the HTML, right before the first plotly plot cell. I’d much prefer to not have the whole code in the exported HTML, and instead have the notebook HTML load plotly.js from a CDN. How can I achieve this?

Thank you for your help!

You can use the notebook_connected renderer for this I believe: Displaying Figures | Python | Plotly