# Latest

**URL:** https://discourse.julialang.org/latest.md?page=661

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 662

---

## [PlutoPlotly : Image trace is not shown](https://discourse.julialang.org/t/plutoplotly-image-trace-is-not-shown/100699)

<div class="topic-metadata">

**Author:** [@kemu](https://discourse.julialang.org/u/kemu)\
**Replies:** 4\
**Last updated:** [June 26, 2023, 2:41am UTC](https://discourse.julialang.org/t/plutoplotly-image-trace-is-not-shown/100699 "2023-06-26T02:41:37Z")

</div>

Hi, I would like to use Pluto.jl(v0.19.26) and PlutoPlotly.jl(v0.3.7) to overlay images and graphics, but the image trace does not display well. Other traces such as scatter and heatmap display fine. using PlutoPlotly …

---

## [BinaryBuilder or running \`build.jl\` as root?](https://discourse.julialang.org/t/binarybuilder-or-running-build-jl-as-root/100479)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 17\
**Last updated:** [June 26, 2023, 12:24am UTC](https://discourse.julialang.org/t/binarybuilder-or-running-build-jl-as-root/100479 "2023-06-26T00:24:25Z")

</div>

I have a large Julia project with tens of thousands of lines of code. It requires two custom C++ libraries (I wrote), along with a combined 13 foreign dependencies, these are libraries not maintained by me. As far as I …

---

## [Non zero dirichlet boundary condition](https://discourse.julialang.org/t/non-zero-dirichlet-boundary-condition/100818)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 5\
**Last updated:** [June 26, 2023, 12:52am UTC](https://discourse.julialang.org/t/non-zero-dirichlet-boundary-condition/100818 "2023-06-26T00:52:39Z")

</div>

Hi is there any one who knows how can i define non zero dirichlet boundary condition in gridap? not using affine space just introducing bc in weak form and solve linear Au=b i know that it should make rows and columns o…

---

## [2023 Julia User & Developer Survey](https://discourse.julialang.org/t/2023-julia-user-developer-survey/100335)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 11:36pm UTC](https://discourse.julialang.org/t/2023-julia-user-developer-survey/100335 "2023-06-25T23:36:34Z")

</div>

The 2023 Julia User & Developer Survey is now open! Click here to participate: https://eu-submit.jotform.com/231302658707354 Julia users and developers are encouraged to participate. The survey is available in English,…

---

## [Create Matrix from vectors returned from for loop](https://discourse.julialang.org/t/create-matrix-from-vectors-returned-from-for-loop/100821)

<div class="topic-metadata">

**Author:** [@Haro](https://discourse.julialang.org/u/Haro)\
**Replies:** 8\
**Last updated:** [June 25, 2023, 11:18pm UTC](https://discourse.julialang.org/t/create-matrix-from-vectors-returned-from-for-loop/100821 "2023-06-25T23:18:29Z")

</div>

Hi all! I’m running a simulation where I’m tracking the behavior of multiple elements over time. Say like the instantaneous speed of several cars on a race track. I can use the command sim\_time, spd\_c1 = get\_state\_seri…

---

## [How to use \`TOML.print\` to print a \`Dict\` with keys as different \`MyStruct\` objects?](https://discourse.julialang.org/t/how-to-use-toml-print-to-print-a-dict-with-keys-as-different-mystruct-objects/100804)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 3\
**Last updated:** [June 25, 2023, 10:41pm UTC](https://discourse.julialang.org/t/how-to-use-toml-print-to-print-a-dict-with-keys-as-different-mystruct-objects/100804 "2023-06-25T22:41:49Z")

</div>

I’m currently working with a dictionary whose keys are instances of a custom struct named MyStruct. Here is the definition: struct MyStruct a::Int b::String end I need to use the TOML.print function to print th…

---

## [Breaking only an inner for loop due to an error](https://discourse.julialang.org/t/breaking-only-an-inner-for-loop-due-to-an-error/99698)

<div class="topic-metadata">

**Author:** [@Haro](https://discourse.julialang.org/u/Haro)\
**Replies:** 2\
**Last updated:** [June 25, 2023, 9:47pm UTC](https://discourse.julialang.org/t/breaking-only-an-inner-for-loop-due-to-an-error/99698 "2023-06-25T21:47:01Z")

</div>

Hi all. I’m trying to run a some code where I am intentionally pushing a differential equations solver that’s called inside a dynamic systems modeling package to fail to converge. I’m trying to explore the boundaries of …

---

## [sizeof(MVector{N, T}) where T \<: costomStructure returns unexpected values](https://discourse.julialang.org/t/sizeof-mvector-n-t-where-t-costomstructure-returns-unexpected-values/100768)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 4\
**Last updated:** [June 25, 2023, 6:23pm UTC](https://discourse.julialang.org/t/sizeof-mvector-n-t-where-t-costomstructure-returns-unexpected-values/100768 "2023-06-25T18:23:42Z")

</div>

I’m working on building a custom binary file reader using StaticArrays. In the reader, I would like to use the custom structure (TestS2) that contains a MVector of another custom structure (TestS1). To get the byte size…

---

## [Link to source code in versions.json?](https://discourse.julialang.org/t/link-to-source-code-in-versions-json/100816)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 1\
**Last updated:** [June 25, 2023, 6:21pm UTC](https://discourse.julialang.org/t/link-to-source-code-in-versions-json/100816 "2023-06-25T18:21:49Z")

</div>

Having parsable info in https://julialang-s3.julialang.org/bin/versions.json is awesome. As far as I can see it only includes the binary distributions. I think it would be nice if it also included the source code tarball…

---

## [More comfortable enum?](https://discourse.julialang.org/t/more-comfortable-enum/100779)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [June 25, 2023, 6:15pm UTC](https://discourse.julialang.org/t/more-comfortable-enum/100779 "2023-06-25T18:15:56Z")

</div>

What I would expect is, if I have an enum like: @enum Color begin red green blue end That if I type Color. \<TAB\>\<TAB\> that I get a list of colors to choose from. But this is not the case. Is there a way t…

---

## [Access to automatic reformulations created internally by BilevelJump](https://discourse.julialang.org/t/access-to-automatic-reformulations-created-internally-by-bileveljump/100268)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 4:32am UTC](https://discourse.julialang.org/t/access-to-automatic-reformulations-created-internally-by-bileveljump/100268 "2023-06-21T04:32:43Z")

</div>

Hi, I was wondering if there is a possibility to access the automatic reformulations that BilevelJump creates internally to solve the bilinear model. In particular, I would like to access (1) the dual of the lower level…

---

## [WIOD database in Julia](https://discourse.julialang.org/t/wiod-database-in-julia/100759)

<div class="topic-metadata">

**Author:** [@Guido](https://discourse.julialang.org/u/Guido)\
**Replies:** 3\
**Last updated:** [June 25, 2023, 4:08pm UTC](https://discourse.julialang.org/t/wiod-database-in-julia/100759 "2023-06-25T16:08:35Z")

</div>

I’m working on World Input-Output Database (WIOD) from Groningen. Usually, I work this data using STATA. What I have so far is my usual do file template translated in Julia language, but I want to do it in Julia from sc…

---

## [How to get the container type of a container?](https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 16\
**Last updated:** [June 25, 2023, 3:17pm UTC](https://discourse.julialang.org/t/how-to-get-the-container-type-of-a-container/20253 "2023-06-25T15:17:36Z")

</div>

For example, I have an x = Vector{Int}, then do what operations on x can I get the Vector ?

---

## [Incomplete: premature end of input（about function）](https://discourse.julialang.org/t/incomplete-premature-end-of-input-about-function/100793)

<div class="topic-metadata">

**Author:** [@Hanyi](https://discourse.julialang.org/u/Hanyi)\
**Replies:** 6\
**Last updated:** [June 25, 2023, 1:45pm UTC](https://discourse.julialang.org/t/incomplete-premature-end-of-input-about-function/100793 "2023-06-25T13:45:28Z")

</div>

hi guys, i am recently introduced to Julia. I have a problem with " function", I don’t know how to debug this problem. can you help me? Thank you very much!

---

## [Unexpected performance mismatch in gradients for "compiled-tape-in-tape" experiment](https://discourse.julialang.org/t/unexpected-performance-mismatch-in-gradients-for-compiled-tape-in-tape-experiment/100810)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 0\
**Last updated:** [June 25, 2023, 12:49pm UTC](https://discourse.julialang.org/t/unexpected-performance-mismatch-in-gradients-for-compiled-tape-in-tape-experiment/100810 "2023-06-25T12:49:34Z")

</div>

Hi all, I’m working on a way to make selectively compiling parts of a ReverseDiff tape easier and more accessible. The goal is to enable fearless compilation of functions with branches. One problem I’ve run into is rel…

---

## [DAE - Sundials parallel capabilities access through sundials.jl or DifferentialEquation.jl](https://discourse.julialang.org/t/dae-sundials-parallel-capabilities-access-through-sundials-jl-or-differentialequation-jl/99924)

<div class="topic-metadata">

**Author:** [@Relojuca](https://discourse.julialang.org/u/Relojuca)\
**Replies:** 5\
**Last updated:** [June 25, 2023, 11:29am UTC](https://discourse.julialang.org/t/dae-sundials-parallel-capabilities-access-through-sundials-jl-or-differentialequation-jl/99924 "2023-06-25T11:29:28Z")

</div>

Hi People. I am implementing a code for solving a DAE system using sundials and IDA (through the DifferentialEquation.jl interface). However, as my simulation requires the solution of several equations \> 500. It is taki…

---

## [How to remove the zticks of a 3D plot?](https://discourse.julialang.org/t/how-to-remove-the-zticks-of-a-3d-plot/100806)

<div class="topic-metadata">

**Author:** [@Lee123](https://discourse.julialang.org/u/Lee123)\
**Replies:** 2\
**Last updated:** [June 25, 2023, 11:11am UTC](https://discourse.julialang.org/t/how-to-remove-the-zticks-of-a-3d-plot/100806 "2023-06-25T11:11:51Z")

</div>

I want to remove the zticks of a 3D plot, and I found an option zticksvisible of Axis3 in the manual \[here\] but it doesn’t work. It only removes the tick marks but the numbers still there. Codes and results are as follow …

---

## [How to achieve multi-threaded vectorized FMA operations in the for-loop for SAXPY?](https://discourse.julialang.org/t/how-to-achieve-multi-threaded-vectorized-fma-operations-in-the-for-loop-for-saxpy/100805)

<div class="topic-metadata">

**Author:** [@xinwu](https://discourse.julialang.org/u/xinwu)\
**Replies:** 2\
**Last updated:** [June 25, 2023, 10:42am UTC](https://discourse.julialang.org/t/how-to-achieve-multi-threaded-vectorized-fma-operations-in-the-for-loop-for-saxpy/100805 "2023-06-25T10:42:03Z")

</div>

Hi everyone, For serial vectorized FMA operations in the for-loop for SAXPY, one can use @fastmath @inbounds @simd for i in 1:n See also this discussion (How to enable vectorized fma instruction for multiply-add vecto…

---

## [Using an Intel GPU on Macbook Pro](https://discourse.julialang.org/t/using-an-intel-gpu-on-macbook-pro/100782)

<div class="topic-metadata">

**Author:** [@alexdmeyer](https://discourse.julialang.org/u/alexdmeyer)\
**Replies:** 6\
**Last updated:** [June 25, 2023, 8:59am UTC](https://discourse.julialang.org/t/using-an-intel-gpu-on-macbook-pro/100782 "2023-06-25T08:59:46Z")

</div>

Hey Julia Community, I’m only just starting to learn about GPU programming (mainly for deep learning with Flux, but I’m curious if/how I could use it for my other projects). One barrier to getting started, though, is I…

---

## [Asynchronous kernel scheduling with KernelAbstractions](https://discourse.julialang.org/t/asynchronous-kernel-scheduling-with-kernelabstractions/100535)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 5\
**Last updated:** [June 25, 2023, 4:53am UTC](https://discourse.julialang.org/t/asynchronous-kernel-scheduling-with-kernelabstractions/100535 "2023-06-25T04:53:21Z")

</div>

The KernelAbstractions docs mention that kernels are launched asynchronously. I’m hoping to leverage this within a solver I’m working on, where I hope to hide the communication between GPUs behind some computation (a com…

---

## [Fixing my plots after installing something I don't remember](https://discourse.julialang.org/t/fixing-my-plots-after-installing-something-i-dont-remember/100800)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 0\
**Last updated:** [June 25, 2023, 4:23am UTC](https://discourse.julialang.org/t/fixing-my-plots-after-installing-something-i-dont-remember/100800 "2023-06-25T04:23:20Z")

</div>

Hi, a few days ago all of a sudden my plots were reporting an error. In an attempt to fix this, I ended up finding a possible installation in a forum that would solve my problem. It actually fixed it, but now I have anot…

---

## [Julia is significantly slower (~18 x) than Matlab in vector and matrix algebra](https://discourse.julialang.org/t/julia-is-significantly-slower-18-x-than-matlab-in-vector-and-matrix-algebra/100773)

<div class="topic-metadata">

**Author:** [@DY\_K](https://discourse.julialang.org/u/DY_K)\
**Replies:** 32\
**Last updated:** [June 25, 2023, 2:39am UTC](https://discourse.julialang.org/t/julia-is-significantly-slower-18-x-than-matlab-in-vector-and-matrix-algebra/100773 "2023-06-25T02:39:08Z")

</div>

My simple test indicates that Julia is significantly slower than Matlab in vector and matrix algebra. For Julia, I constructed a simple function like function vec\_prod(N,n) Arg1 = 0.0; matt1 = Array{Float64}(undef, n,…

---

## [Capturing output of IJulia cell](https://discourse.julialang.org/t/capturing-output-of-ijulia-cell/63519)

<div class="topic-metadata">

**Author:** [@anon94806364](https://discourse.julialang.org/u/anon94806364)\
**Replies:** 2\
**Last updated:** [June 25, 2023, 2:18am UTC](https://discourse.julialang.org/t/capturing-output-of-ijulia-cell/63519 "2023-06-25T02:18:20Z")

</div>

I recently switched from running an optimization problem in Python to Julia, and am really enjoying the change! However, I’ve noticed that when I run a long optimization problem and close a notebook: I lose the output …

---

## [Makie color transparency](https://discourse.julialang.org/t/makie-color-transparency/98015)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 6\
**Last updated:** [June 25, 2023, 1:06am UTC](https://discourse.julialang.org/t/makie-color-transparency/98015 "2023-06-25T01:06:45Z")

</div>

Hi, I want to plot points/lines with colors and changing transparencies. The Makie doc shows some usages, but what I need is to input a numerical value for color and another numerical value for the transparency. This s…

---

## [Why using a mutable struct type argument to create instances creates a 50x slowdown?](https://discourse.julialang.org/t/why-using-a-mutable-struct-type-argument-to-create-instances-creates-a-50x-slowdown/100764)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 7\
**Last updated:** [June 25, 2023, 12:54am UTC](https://discourse.julialang.org/t/why-using-a-mutable-struct-type-argument-to-create-instances-creates-a-50x-slowdown/100764 "2023-06-25T00:54:20Z")

</div>

I created this MWE based on some package code, and I’m not getting why the two different functions have not similar performance: using BenchmarkTools mutable struct A q\_0::Int q\_1::Int q\_2::Int end @noinli…

---

## [How to use @ntuple with N derived from parameters](https://discourse.julialang.org/t/how-to-use-ntuple-with-n-derived-from-parameters/100792)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 4\
**Last updated:** [June 24, 2023, 9:20pm UTC](https://discourse.julialang.org/t/how-to-use-ntuple-with-n-derived-from-parameters/100792 "2023-06-24T21:20:56Z")

</div>

Below is a MWE of an error I get using @ntuple: using StaticArrays import Base.Cartesian: @ntuple function times2(v::SVector{N, T}) where {N, T} return SVector{N, T}(@ntuple N i-\>v\[i\]\*2) end a = randn(SVector{3, F…

---

## [How to export a mesh made in Meshes.jl?](https://discourse.julialang.org/t/how-to-export-a-mesh-made-in-meshes-jl/100794)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [June 24, 2023, 9:20pm UTC](https://discourse.julialang.org/t/how-to-export-a-mesh-made-in-meshes-jl/100794 "2023-06-24T21:20:12Z")

</div>

Hello! Suppose I make a basic cylinder like this: Is there any way to export it to vtk, perhaps using WriteVTK.jl? Kind regards

---

## [How to define a Matrix{UInt8} exhibiting chess board patterns](https://discourse.julialang.org/t/how-to-define-a-matrix-uint8-exhibiting-chess-board-patterns/100760)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 13\
**Last updated:** [June 24, 2023, 8:21pm UTC](https://discourse.julialang.org/t/how-to-define-a-matrix-uint8-exhibiting-chess-board-patterns/100760 "2023-06-24T20:21:21Z")

</div>

I need a Matrix{UInt8}, P, of 0 and 1 which exhibits chess board patterns of submatrices A of size(A)=(5,5). I defined it as follows: P=zeros(UInt8, 100,100) A= fill(UInt8(1), (5,5)) for k in 0:2:18 for j in 0:2:…

---

## [NewtonRaphson from NonlinearSolve.jl is not throwing an error when convergence is not achieved](https://discourse.julialang.org/t/newtonraphson-from-nonlinearsolve-jl-is-not-throwing-an-error-when-convergence-is-not-achieved/100780)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 8\
**Last updated:** [June 24, 2023, 4:48pm UTC](https://discourse.julialang.org/t/newtonraphson-from-nonlinearsolve-jl-is-not-throwing-an-error-when-convergence-is-not-achieved/100780 "2023-06-24T16:48:50Z")

</div>

I think I found a bug in the NonlinearSolve.jl package. Consider the problem using NonlinearSolve, GLMakie f(x, p) = tanh(x / 1e-3) + x - 0.5 x0 = 1.0 prob = NonlinearProblem(f, x0) sol = solve(prob, NewtonRaphson(), a…

---

## [Differences in ODE Solver behaviour inside and outside Adam Optimizer](https://discourse.julialang.org/t/differences-in-ode-solver-behaviour-inside-and-outside-adam-optimizer/99657)

<div class="topic-metadata">

**Author:** [@Stefano\_Giampiccolo](https://discourse.julialang.org/u/Stefano_Giampiccolo)\
**Replies:** 5\
**Last updated:** [June 24, 2023, 4:12pm UTC](https://discourse.julialang.org/t/differences-in-ode-solver-behaviour-inside-and-outside-adam-optimizer/99657 "2023-06-24T16:12:05Z")

</div>

Good morning, I am working with hybrid systems (universal differential equations) using the SciML ecosystem. I apologize if this is a stupid question, but I have a doubt related to a stiff problem I’m working on, which …

[Previous page](https://discourse.julialang.org/latest.md?page=660)

[Next page](https://discourse.julialang.org/latest.md?page=662)
