Pluto.jl: Vector(undef, 3) does not show

Created on 4 Sep 2020  路  11Comments  路  Source: fonsp/Pluto.jl

image

but in the REPL

image

almost closed backend bug user request

Most helpful comment

Fixed by @Moelf ! Yayo

Testset is here:
https://github.com/fonsp/Pluto.jl/pull/411/files#diff-57577b94ab5dc9eb946ef0662a875f1dR24

All 11 comments

Someone needs to figure out how Base Julia does it, i.e. go through what happens when you call

show(stdout, MIME"text/plain"(), Vector(undef, 3))

displaying data does a loop, which is failing; MVE:

image

I see why Pluto errors, but why wonder why show(stdout, MIME"text/plain"(), Vector(undef, 3)) _does not error_.

works fine cos it goes to base implementation which has checks for isassigned & isdefined. As expected, works fine in REPL too
image

where as
image
goes to
show(io::IO, ::MIME"application/vnd.pluto.tree+xml", x::AbstractArray{<:Any, 1}) ref

May be it needs isassigned/isdefined checks?

That sounds good!

No that's unrelated I think. missing is a valid Julia object, and Pluto can show [missing, missing] just fine

Fixed by @Moelf ! Yayo

Testset is here:
https://github.com/fonsp/Pluto.jl/pull/411/files#diff-57577b94ab5dc9eb946ef0662a875f1dR24

@Moelf

image

@fonsp fixed. issue was that we pass indices and x, so we no longer need to slice up x before passing.

Awesome, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garrison picture garrison  路  4Comments

fonsp picture fonsp  路  5Comments

mossr picture mossr  路  6Comments

aramirezreyes picture aramirezreyes  路  3Comments

dpsanders picture dpsanders  路  6Comments