Skip to content

Commit 8757a30

Browse files
author
Christopher Doris
committed
remove pluto display hack (fixed in pluto 0.18.0)
1 parent 194cf6a commit 8757a30

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/compat/multimedia.jl

-8
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ function pyshow_rule_mimebundle(io::IO, mime::String, x::Py)
3636
data = ans[mime]
3737
end
3838
data = @pyconvert(Union{String,Vector{UInt8}}, data, return false)
39-
if mime == "text/html"
40-
data = String(data)
41-
if occursin("altair-viz-", data) && occursin("document.currentScript.previousElementSibling", data)
42-
# unsatisfactory hack to get altair plots to display properly in pluto
43-
# TODO: fix this upstream (in altair or pluto??)
44-
data = replace(data, "document.currentScript.previousElementSibling" => "((document.currentScript || {}).previousElementSibling || {})")
45-
end
46-
end
4739
write(io, data)
4840
return true
4941
catch exc

0 commit comments

Comments
 (0)