only show plotly plots as html in Juno
This commit is contained in:
parent
3bad6e9b4c
commit
4a7ea82862
@ -860,6 +860,8 @@ end
|
|||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
||||||
|
Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot{PlotlyBackend}) = true
|
||||||
|
|
||||||
function _show(io::IO, ::MIME"application/vnd.plotly.v1+json", plot::Plot{PlotlyBackend})
|
function _show(io::IO, ::MIME"application/vnd.plotly.v1+json", plot::Plot{PlotlyBackend})
|
||||||
plotly_show_js(io, plot)
|
plotly_show_js(io, plot)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -52,3 +52,5 @@ function closeall(::PlotlyJSBackend)
|
|||||||
close(current().o)
|
close(current().o)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot{PlotlyJSBackend}) = true
|
||||||
|
|||||||
@ -262,6 +262,6 @@ function _showjuno(io::IO, m::MIME"image/svg+xml", plt)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot) = showable(MIME"text/html"(), plt)
|
Base.showable(::MIME"application/prs.juno.plotpane+html", plt::Plot) = false
|
||||||
|
|
||||||
_showjuno(io::IO, m, plt) = _show(io, m, plt)
|
_showjuno(io::IO, m, plt) = _show(io, m, plt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user