diff --git a/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyBaseExt.jl b/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyBaseExt.jl index 57ecf1c..24cac98 100644 --- a/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyBaseExt.jl +++ b/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyBaseExt.jl @@ -13,7 +13,7 @@ function Base.show(io::IO, ::MIME"text/html", wrapper::PlotlyBasePlot) # We want to embed only the minimum markup needed to render the # plotlyjs plots, otherwise a full HTML page is generated for every # plot which does not render correctly in our context. - PlotlyBase.to_html(io, wrapper.value; include_plotlyjs = "require", full_html = false) + PlotlyBase.to_html(io, wrapper.value; include_plotlyjs = "require-loaded", full_html = false) end end diff --git a/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyJSExt.jl b/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyJSExt.jl index 89db953..1db3756 100644 --- a/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyJSExt.jl +++ b/src/QuartoNotebookWorker/ext/QuartoNotebookWorkerPlotlyJSExt.jl @@ -16,7 +16,7 @@ function Base.show(io::IO, ::MIME"text/html", wrapper::PlotlyJSSyncPlot) PlotlyJS.PlotlyBase.to_html( io, wrapper.value.plot; - include_plotlyjs = "require", + include_plotlyjs = "require-loaded", full_html = false, ) end