We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbfe1a commit 4a5195aCopy full SHA for 4a5195a
src/init.jl
@@ -33,14 +33,9 @@ const aggformats = Dict("application/eps" => "eps",
33
"application/postscript" => "ps",
34
"image/svg+xml" => "svg")
35
36
-function isdisplayok()
37
- for mime in keys(aggformats)
38
- if displayable(mime)
39
- return true
40
- end
41
42
- false
43
-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"))
44
45
###########################################################################
46
# We allow the user to turn on or off the Python gui interactively via
0 commit comments