Skip to content

Commit bf0a530

Browse files
davidanthoffstevengj
authored andcommitted
Add support for vega-lite 4 MIME type (#890)
1 parent 0c11578 commit bf0a530

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/display.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This is necessary to embed the JSON as is in the displaydata bundle (rather than
3535
as stringify'd JSON).
3636
"""
3737
const ijulia_jsonmime_types = Vector{Union{MIME, Vector{MIME}}}([
38-
[[MIME("application/vnd.vegalite.v$n+json") for n in 3:-1:2]...,
38+
[[MIME("application/vnd.vegalite.v$n+json") for n in 4:-1:2]...,
3939
[MIME("application/vnd.vega.v$n+json") for n in 5:-1:3]...],
4040
MIME("application/vnd.dataresource+json"), MIME("application/vnd.plotly.v1+json")
4141
])

src/inline.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct InlineDisplay <: AbstractDisplay end
66
# of preference (descending "richness")
77
const ipy_mime = [
88
"application/vnd.dataresource+json",
9-
["application/vnd.vegalite.v$n+json" for n in 3:-1:2]...,
9+
["application/vnd.vegalite.v$n+json" for n in 4:-1:2]...,
1010
["application/vnd.vega.v$n+json" for n in 5:-1:3]...,
1111
"application/vnd.plotly.v1+json",
1212
"text/html",

0 commit comments

Comments
 (0)