Skip to content

Commit 4e3a87e

Browse files
authored
jupyterlab 0.34.12 supports vega.v4 rather than v3
Ultimately one should rethink how IJulia should support MIME types. But this fixes things for me now.
1 parent f9aea33 commit 4e3a87e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/inline.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const ipy_mime = [
88
"application/vnd.dataresource+json",
99
"application/vnd.vegalite.v2+json",
1010
"application/vnd.vega.v3+json",
11+
"application/vnd.vega.v4+json",
1112
"text/html",
1213
"text/latex",
1314
"image/svg+xml",
@@ -51,6 +52,7 @@ const ipy_mime_json = [
5152
"application/vnd.dataresource+json",
5253
"application/vnd.vegalite.v2+json",
5354
"application/vnd.vega.v3+json",
55+
"application/vnd.vega.v4+json",
5456
]
5557
_display_dict(m::MIME, m_str, x) = Dict(m_str=>limitstringmime(m, x))
5658
# escape JSON string correctly before send_ipython

0 commit comments

Comments
 (0)