Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying one-dimensional DimArray does not quite work in Pluto #725

Closed
haakon-e opened this issue Jun 11, 2024 · 8 comments
Closed

Displaying one-dimensional DimArray does not quite work in Pluto #725

haakon-e opened this issue Jun 11, 2024 · 8 comments

Comments

@haakon-e
Copy link
Contributor

haakon-e commented Jun 11, 2024

If this is issue should be directed to the Pluto repo, please let me know...

Printing DimArrays works nicely in (VSCode) terminal window:
image

but in Pluto, it only works for DimArrays with multiple dimensions:
image


versioninfo
julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 128 × AMD EPYC 9554 64-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 128 virtual cores)
Environment:
  JULIA_MPI_HAS_CUDA = true
  JULIA_CPU_TARGET = generic;broadwell;skylake-avx512;icelake-server;cascadelake;znver3
  JULIA_CUDA_MEMORY_POOL = none
  JULIA_LOAD_PATH = :/groups/esm/modules/julia-preferences/_2024_02_20
  JULIA_CUDA_USE_BINARYBUILDER = false
  JULIA_NUM_THREADS = 1

pkg> st 
  [...]
  [c3e4b0f8] Pluto v0.19.42
  [0703355e] DimensionalData v0.27.3
@rafaqz
Copy link
Owner

rafaqz commented Jun 11, 2024

No idea... @fonsp ?

(Also I guess we can make that output coloured with the new style system?)

@asinghvi17
Copy link
Collaborator

Potentially related to JuliaGeo/Shapefile.jl#50

@rafaqz
Copy link
Owner

rafaqz commented Jun 13, 2024

@haakon-e what happens with a regular Vector ?

@haakon-e
Copy link
Contributor Author

haakon-e commented Jun 13, 2024

@rafaqz Like this?
image
and, if expanded:
image

@haakon-e
Copy link
Contributor Author

I guess it's maybe similar, in the sense that a (n x 1) matrix will show the way you expect:
image

while a vector (as above) is "compressed" into a horizontal view.

vs terminal:
image

@rafaqz
Copy link
Owner

rafaqz commented Jun 13, 2024

Ok, well that seems to be a Pluto.jl decision. I'm not sure there is much we can do about it. You could make an issue over there and see if they know any solutions?

@haakon-e
Copy link
Contributor Author

Thanks.

It seems others have had similar(?) issues that was worked around for display, e.g. TuringLang/MCMCChains.jl#279 / fonsp/Pluto.jl#868

@haakon-e
Copy link
Contributor Author

Asked question here: fonsp/Pluto.jl#2936

@rafaqz rafaqz closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants