From b91aa2bbfc2d35bb5301c90455f63e3596ba10a4 Mon Sep 17 00:00:00 2001 From: yha Date: Mon, 7 Sep 2020 17:33:36 +0300 Subject: [PATCH] Don't prepare_output for text/plain MIME --- src/output.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/output.jl b/src/output.jl index e2eb5185..92f7ec01 100644 --- a/src/output.jl +++ b/src/output.jl @@ -194,9 +194,9 @@ function _display(plt::Plot) @warn("_display is not defined for this backend.") end +Base.show(io::IO, m::MIME"text/plain", plt::Plot) = show(io, plt) # for writing to io streams... first prepare, then callback for mime in ( - "text/plain", "text/html", "image/png", "image/eps", @@ -221,9 +221,6 @@ end Base.show(io::IO, m::MIME"application/prs.juno.plotpane+html", plt::Plot) = showjuno(io, MIME("text/html"), plt) -# default text/plain for all backends -_show(io::IO, ::MIME{Symbol("text/plain")}, plt::Plot) = show(io, plt) - "Close all open gui windows of the current backend" closeall() = closeall(backend())