Skip to content

Commit

Permalink
ENH: support plotly mimetype (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon authored and stevengj committed Nov 3, 2018
1 parent 3e78f61 commit 4fb2a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/execute_request.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ as stringify'd JSON).
"""
const ijulia_jsonmime_types = Vector{Union{MIME, Vector{MIME}}}([
[MIME("application/vnd.vegalite.v2+json"), MIME("application/vnd.vega.v3+json")],
MIME("application/vnd.dataresource+json"),
MIME("application/vnd.dataresource+json"), MIME("application/vnd.plotly.v1+json")
])

register_mime(x::Union{MIME, Vector{MIME}})= push!(ijulia_mime_types, x)
Expand Down
1 change: 1 addition & 0 deletions src/inline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const ipy_mime = [
"application/vnd.dataresource+json",
"application/vnd.vegalite.v2+json",
"application/vnd.vega.v3+json",
"application/vnd.plotly.v1+json",
"text/html",
"text/latex",
"image/svg+xml",
Expand Down

0 comments on commit 4fb2a46

Please sign in to comment.