Display o.scope (didn't actually change anything)
This commit is contained in:
parent
36f3121770
commit
8f502a9ab1
@ -32,11 +32,6 @@ function _initialize_backend(::PlotlyWebIOBackend; kw...)
|
|||||||
import PlotlyWebIO
|
import PlotlyWebIO
|
||||||
export PlotlyWebIO
|
export PlotlyWebIO
|
||||||
end
|
end
|
||||||
|
|
||||||
# # override IJulia inline display
|
|
||||||
# if isijulia()
|
|
||||||
# IJulia.display_dict(plt::AbstractPlot{PlotlyWebIOBackend}) = IJulia.display_dict(plt.o)
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@ -44,8 +39,8 @@ end
|
|||||||
|
|
||||||
function _create_backend_figure(plt::Plot{PlotlyWebIOBackend})
|
function _create_backend_figure(plt::Plot{PlotlyWebIOBackend})
|
||||||
if !isplotnull() && plt[:overwrite_figure] && isa(current().o, PlotlyWebIO.WebIOPlot)
|
if !isplotnull() && plt[:overwrite_figure] && isa(current().o, PlotlyWebIO.WebIOPlot)
|
||||||
#PlotlyWebIO.WebIOPlot(PlotlyWebIO.Plot(), current().o.view)
|
# FIXME: Not sure what we're supposed to do here.
|
||||||
current().o
|
PlotlyWebIO.WebIOPlot()#PlotlyWebIO.WebIOPlot(), current().o.scope)
|
||||||
else
|
else
|
||||||
PlotlyWebIO.WebIOPlot()
|
PlotlyWebIO.WebIOPlot()
|
||||||
end
|
end
|
||||||
@ -92,13 +87,14 @@ end
|
|||||||
function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyWebIOBackend})
|
function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyWebIOBackend})
|
||||||
prepare_output(plt)
|
prepare_output(plt)
|
||||||
if isijulia() && !_use_remote[]
|
if isijulia() && !_use_remote[]
|
||||||
write(io, PlotlyWebIO.html_body(PlotlyWebIO.JupyterPlot(plt.o)))
|
write(io, PlotlyWebIO.html_body(PlotlyWebIO.JupyterPlot(plt.o.scope)))
|
||||||
else
|
else
|
||||||
show(io, MIME("text/html"), plt.o)
|
show(io, MIME("text/html"), plt.o.scope)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function plotlywebio_save_hack(io::IO, plt::Plot{PlotlyWebIOBackend}, ext::String)
|
function plotlywebio_save_hack(io::IO, plt::Plot{PlotlyWebIOBackend}, ext::String)
|
||||||
|
# Temporarily disabled. FIXME
|
||||||
# tmpfn = tempname() * "." * ext
|
# tmpfn = tempname() * "." * ext
|
||||||
# PlotlyWebIO.savefig(plt.o, tmpfn)
|
# PlotlyWebIO.savefig(plt.o, tmpfn)
|
||||||
# write(io, read(open(tmpfn)))
|
# write(io, read(open(tmpfn)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user