Skip to content

Commit

Permalink
Make ipy_mime variable more readable (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored and stevengj committed Aug 1, 2018
1 parent 7fcd0ef commit 1f0d6b5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/inline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ struct InlineDisplay <: Compat.AbstractDisplay end

# supported MIME types for inline display in IPython, in descending order
# of preference (descending "richness")
const ipy_mime = [ "application/vnd.dataresource+json", "application/vnd.vegalite.v2+json", "application/vnd.vega.v3+json", "text/html", "text/latex", "image/svg+xml", "image/png", "image/jpeg", "text/plain", "text/markdown", "application/javascript" ]
const ipy_mime = [
"application/vnd.dataresource+json",
"application/vnd.vegalite.v2+json",
"application/vnd.vega.v3+json",
"text/html",
"text/latex",
"image/svg+xml",
"image/png",
"image/jpeg",
"text/plain",
"text/markdown",
"application/javascript"
]

# need special handling for showing a string as a textmime
# type, since in that case the string is assumed to be
Expand Down

0 comments on commit 1f0d6b5

Please sign in to comment.