[fastpages] Plotly plot doesn't load, JS error in browser

For Plotly in jupyter locally you need some widget, at least if you are running Jupyter Lab: I wrote a summary (from my recollection of how I got it working)
https://binnisb.github.io/blog/datascience/2020/04/02/Plotly-in-lab.html

I think there might be some additional steps, and I don’t know what you need to do if you are running classic Jupyter notebook.

Doing fig.show() or having fig as the last statement in the cell renders the image for me in the notebook, but I need the HTML(fig.to_html()) for it to render in the published blog.