Closed ZaynChen closed 1 year ago
Should be fixed on main
.
It looks like this is one of those cases where Python is picky about types — it apparently wants a genuine list
object, not some other list-like type (e.g. a Julia VectorValue
wrapper), and assumes that any other type is a function that it should call to get the RGB value or something.
A new version with the fix should be tagged shortly: https://github.com/JuliaRegistries/General/pull/78717
I want to use a custom colormap in Jupyter. In the code below, the first
display
only shows the textColorMap “cm1”
, and the second shows the coolwarm color image correctly.and using
show
to displaycm1
causes error:And this may due to
Dict{String, Vector{Tuple{Float64, Float64, Float64}}}
can not automatically convert toDict{String, Py}
or something. Below only shows text,after using the
pylist
to wrap the Vector, it shows the color image successfully.