Skip to content

Commit

Permalink
fix display detection for 0.6 (closes #281)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 10, 2017
1 parent 3cbfe1a commit 4a5195a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,9 @@ const aggformats = Dict("application/eps" => "eps",
"application/postscript" => "ps",
"image/svg+xml" => "svg")

function isdisplayok()
for mime in keys(aggformats)
if displayable(mime)
return true
end
end
false
end
# In 0.6, TextDisplay can show e.g. image/svg+xml as text (#281).
# Any "real" graphical display should support PNG, I hope.
isdisplayok() = displayable(MIME("image/png"))

###########################################################################
# We allow the user to turn on or off the Python gui interactively via
Expand Down

0 comments on commit 4a5195a

Please sign in to comment.