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

Thank you for replying! That worked for fastpages-generated page. However, in the notebook itself, I get this in the browser console:

VM127:6 Uncaught ReferenceError: Plotly is not defined
at <anonymous>:6:21
at m (jquery.min.js:2)
at Re (jquery.min.js:2)
at w.fn.init.append (jquery.min.js:2)
at OutputArea._safe_append (outputarea.js:457)
at OutputArea.append_execute_result (outputarea.js:494)
at OutputArea.append_output (outputarea.js:326)
at OutputArea.handle_output (outputarea.js:257)
at output (codecell.js:395)
at Kernel._handle_output_message (kernel.js:1196)

Does that happen to you? Should I perhaps just add control flow code to do fig.show() when I’m in an interactive notebook, but HTML(fig.to_html()) otherwise?