You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> expr = @js for i in 1:10
console.log(i)
end
JSString("for(var i = 1; i <= 10; i = i + 1){console.log(i)}")
julia> display("text/javascript", expr)
ERROR: MethodError: no method matching show(::Base.TTY, ::MIME{Symbol("text/javascript")}, ::JSString)
This issue can be addressed with the following:
julia> Base.show(io::IO, ::MIME"text/javascript", js::JSString) =
print(io, js)
julia> display("text/javascript", expr)
for(var i = 1; i <= 10; i = i + 1){console.log(i)}
Thanks.
The text was updated successfully, but these errors were encountered:
Hello. So, the
HTML
object permits one to create objects that are HTML fragments, suitable to be displayed as"text/html"
.The same should be true for
JSString
.This issue can be addressed with the following:
Thanks.
The text was updated successfully, but these errors were encountered: