# Latest

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

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

**Page:** 402

---

## [The general cause of the error that "Enzyme could not find shadow for value" in Enzyme.jl](https://discourse.julialang.org/t/the-general-cause-of-the-error-that-enzyme-could-not-find-shadow-for-value-in-enzyme-jl/114719)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 4\
**Last updated:** [May 27, 2024, 11:48am UTC](https://discourse.julialang.org/t/the-general-cause-of-the-error-that-enzyme-could-not-find-shadow-for-value-in-enzyme-jl/114719 "2024-05-27T11:48:55Z")

</div>

When the reverse mode of Enzyme.jl was run, the following error was displayed. What are the main causes of the following error messages? Does anyone know the general reason for what causes it? “mutable struct” is crea…

---

## [Representing Julia expressions AST using a directed graph](https://discourse.julialang.org/t/representing-julia-expressions-ast-using-a-directed-graph/114751)

<div class="topic-metadata">

**Author:** [@younes](https://discourse.julialang.org/u/younes)\
**Replies:** 8\
**Last updated:** [May 27, 2024, 11:11am UTC](https://discourse.julialang.org/t/representing-julia-expressions-ast-using-a-directed-graph/114751 "2024-05-27T11:11:44Z")

</div>

My graph should represent the AST of Julia expressions like y = x + 10/a for instance; there is a catch though, these ys and xs are not just mere numbers; they are custom types (wrappers) that hold, among other things, n…

---

## [Makie col/rowsize for grid, unexpected(?) behaviour](https://discourse.julialang.org/t/makie-col-rowsize-for-grid-unexpected-behaviour/114671)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 4\
**Last updated:** [May 27, 2024, 10:48am UTC](https://discourse.julialang.org/t/makie-col-rowsize-for-grid-unexpected-behaviour/114671 "2024-05-27T10:48:43Z")

</div>

Greetings everyone, Suppose we have the following figure in GLMakie: using GLMakie f = Figure() Axis(f\[1, 1\]) Axis(f\[2, 1\]) Axis(f\[2, 2\]) colsize!(f.layout, 1, Fixed(300)) rowsize!(f.layout, 2, Fixed(300)) rowsize!(…

---

## [Print things differently in an array](https://discourse.julialang.org/t/print-things-differently-in-an-array/114563)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 9\
**Last updated:** [May 27, 2024, 10:39am UTC](https://discourse.julialang.org/t/print-things-differently-in-an-array/114563 "2024-05-27T10:39:40Z")

</div>

If I got my custom type MyType I’d like to keep the default printing when showing it isolated, but when in an array I’d like it to only show one of its fields NWE: struct MyType foo bar end m = MyType(1, 2) Base…

---

## [ERROR: Python: ModuleNotFoundError: No module named 'python-vehicle-simulator'](https://discourse.julialang.org/t/error-python-modulenotfounderror-no-module-named-python-vehicle-simulator/114760)

<div class="topic-metadata">

**Author:** [@liuwa666](https://discourse.julialang.org/u/liuwa666)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 9:17am UTC](https://discourse.julialang.org/t/error-python-modulenotfounderror-no-module-named-python-vehicle-simulator/114760 "2024-05-27T09:17:14Z")

</div>

julia\> versioninfo() Julia Version 1.10.3 Commit 0b4590a550 (2024-04-30 10:59 UTC) Build Info: Official https://julialang.org/ release Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: 16 × AMD Ryzen 9 5900HX wi…

---

## [How to test with multiple versions of a dependency in CI](https://discourse.julialang.org/t/how-to-test-with-multiple-versions-of-a-dependency-in-ci/114761)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [May 27, 2024, 8:56am UTC](https://discourse.julialang.org/t/how-to-test-with-multiple-versions-of-a-dependency-in-ci/114761 "2024-05-27T08:56:02Z")

</div>

I’d like to support more than one incompatible version of a dependency from a package extension. How to test with all relevant versions of the dependency in CI?

---

## [Static mixed type mutable vector - programmatic access?](https://discourse.julialang.org/t/static-mixed-type-mutable-vector-programmatic-access/114768)

<div class="topic-metadata">

**Author:** [@aramend](https://discourse.julialang.org/u/aramend)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 8:55am UTC](https://discourse.julialang.org/t/static-mixed-type-mutable-vector-programmatic-access/114768 "2024-05-27T08:55:23Z")

</div>

I created an interesting structure for my use case. I managed to get everything nice and static, but I’m having trouble using it programmatically. Here are my goals and how they guided the design. Iterate tens of thous…

---

## [SVG to PNG](https://discourse.julialang.org/t/svg-to-png/18643)

<div class="topic-metadata">

**Author:** [@wsrinin](https://discourse.julialang.org/u/wsrinin)\
**Replies:** 3\
**Last updated:** [May 27, 2024, 7:33am UTC](https://discourse.julialang.org/t/svg-to-png/18643 "2024-05-27T07:33:27Z")

</div>

Hello, Is there a package that allows me to convert SVG file to PNG file? Best,

---

## [Parallel with communication of Matrix(SMatrix(ComplexF64)) using MPI](https://discourse.julialang.org/t/parallel-with-communication-of-matrix-smatrix-complexf64-using-mpi/114765)

<div class="topic-metadata">

**Author:** [@Kohei\_Hattori](https://discourse.julialang.org/u/Kohei_Hattori)\
**Replies:** 0\
**Last updated:** [May 27, 2024, 6:32am UTC](https://discourse.julialang.org/t/parallel-with-communication-of-matrix-smatrix-complexf64-using-mpi/114765 "2024-05-27T06:32:03Z")

</div>

I am new to julia. I have a question about MPI parallel computing. I would like to communicate the matrices in each process as follows. The code I have created is shown below. I would like this code to send the matri…

---

## [\[ANN\] SliceSampling.jl - Efficient zeroth-order MCMC algorithms](https://discourse.julialang.org/t/ann-slicesampling-jl-efficient-zeroth-order-mcmc-algorithms/114756)

<div class="topic-metadata">

**Author:** [@Red-Portal](https://discourse.julialang.org/u/Red-Portal)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 2:53am UTC](https://discourse.julialang.org/t/ann-slicesampling-jl-efficient-zeroth-order-mcmc-algorithms/114756 "2024-05-27T02:53:28Z")

</div>

Hi all, As part of the Turing ecosystem, we recently created a collection of slice-sampling MCMC algorithms: Why slice sampling algorithms are great: Don’t need gradients! For low dimensional problems, they perform…

---

## [Differential evolution MCMC in Julia?](https://discourse.julialang.org/t/differential-evolution-mcmc-in-julia/104713)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 18\
**Last updated:** [May 26, 2024, 10:32pm UTC](https://discourse.julialang.org/t/differential-evolution-mcmc-in-julia/104713 "2024-05-26T22:32:47Z")

</div>

Hello, is there a Julia package that implements the Differential Evolution MCMC sampler? Is this possible with Turing.jl (I like Turing.jl quite a lot)? At the moment, I use the BayesianTools R package that implements…

---

## [Stipples using voronoi plot](https://discourse.julialang.org/t/stipples-using-voronoi-plot/114745)

<div class="topic-metadata">

**Author:** [@Manasa\_S](https://discourse.julialang.org/u/Manasa_S)\
**Replies:** 11\
**Last updated:** [May 26, 2024, 6:43pm UTC](https://discourse.julialang.org/t/stipples-using-voronoi-plot/114745 "2024-05-26T18:43:47Z")

</div>

Hi, I’m new to Julia and I’m trying to create a stippling based on voronoi diagrams. I’m using DelaunayTriangulation package. I’m confused on how to iterate for each point in the time series and generate a voronoi and ex…

---

## [Would it be possible to make a 4X game AI that plays well with MILP?](https://discourse.julialang.org/t/would-it-be-possible-to-make-a-4x-game-ai-that-plays-well-with-milp/114708)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 9\
**Last updated:** [May 26, 2024, 3:30pm UTC](https://discourse.julialang.org/t/would-it-be-possible-to-make-a-4x-game-ai-that-plays-well-with-milp/114708 "2024-05-26T15:30:34Z")

</div>

4X games like civilization, Stellaris, endless legends, etc… are known to have bad AI. The games often fix this issue by giving AI a massive handicap. This often restricts players into going into strategies that can nega…

---

## [Decision-dependent randomness in SDDP.jl](https://discourse.julialang.org/t/decision-dependent-randomness-in-sddp-jl/114625)

<div class="topic-metadata">

**Author:** [@mothmani](https://discourse.julialang.org/u/mothmani)\
**Replies:** 6\
**Last updated:** [May 26, 2024, 1:45pm UTC](https://discourse.julialang.org/t/decision-dependent-randomness-in-sddp-jl/114625 "2024-05-26T13:45:16Z")

</div>

Hi everyone, I’m quite new to Julia and SDDP and may ask a silly question. I’m trying to optimize the preventive replacement of some devices over several stages. I assume that know the lifetime distribution of the devi…

---

## [Pluto.jl keyboard shortcuts](https://discourse.julialang.org/t/pluto-jl-keyboard-shortcuts/47883)

<div class="topic-metadata">

**Author:** [@NafQan](https://discourse.julialang.org/u/NafQan)\
**Replies:** 2\
**Last updated:** [March 26, 2022, 9:29pm UTC](https://discourse.julialang.org/t/pluto-jl-keyboard-shortcuts/47883 "2022-03-26T21:29:53Z")

</div>

Is the a comprehensive list of all keyboard shortcuts of Pluto.jl?

---

## [Juno behaving cranky?](https://discourse.julialang.org/t/juno-behaving-cranky/39976)

<div class="topic-metadata">

**Author:** [@NicholasWMRitchie](https://discourse.julialang.org/u/NicholasWMRitchie)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 6:33pm UTC](https://discourse.julialang.org/t/juno-behaving-cranky/39976 "2020-05-22T18:33:32Z")

</div>

Has anyone else noticed that since a recent update to Atom that Juno has been really cranky? I’ve gone so far as uninstalling Atom and deleting every Atom related file and reinstalling but I get the same issues. Not al…

---

## [Nlopt forced stop](https://discourse.julialang.org/t/nlopt-forced-stop/114727)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 2\
**Last updated:** [May 26, 2024, 1:05am UTC](https://discourse.julialang.org/t/nlopt-forced-stop/114727 "2024-05-26T01:05:00Z")

</div>

Hi, I am using Nlopt for a gradient based optimization. It stopes after 4 iterations and returns forced stop and the output is not converged. Could you please tell me how can I find the problem which makes optimizer to f…

---

## [Pkg & activation](https://discourse.julialang.org/t/pkg-activation/114723)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [May 25, 2024, 10:40pm UTC](https://discourse.julialang.org/t/pkg-activation/114723 "2024-05-25T22:40:41Z")

</div>

OK – I’m a simple Pkg user… Here is my problem: I have several Jupyter notebooks in the same directory. In this directory, I have a Manifest.toml and a Project.toml file. I only want to use these local \*.toml files in …

---

## [Wrap Parameter of ODE in struct with automatic differentiation](https://discourse.julialang.org/t/wrap-parameter-of-ode-in-struct-with-automatic-differentiation/114647)

<div class="topic-metadata">

**Author:** [@jgsimard](https://discourse.julialang.org/u/jgsimard)\
**Replies:** 5\
**Last updated:** [May 25, 2024, 7:50pm UTC](https://discourse.julialang.org/t/wrap-parameter-of-ode-in-struct-with-automatic-differentiation/114647 "2024-05-25T19:50:38Z")

</div>

Hi, I would like to learn the parmeters of an ode, I can do it when the parameters to learn are a vector of floats64, but it doesn’t work if I wrap them in a struct. I am using the SIR model to test it and I get this e…

---

## [How to train MLJ model on DataFrame, but apply on Vector of Arrays?](https://discourse.julialang.org/t/how-to-train-mlj-model-on-dataframe-but-apply-on-vector-of-arrays/114669)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 2\
**Last updated:** [May 25, 2024, 5:44pm UTC](https://discourse.julialang.org/t/how-to-train-mlj-model-on-dataframe-but-apply-on-vector-of-arrays/114669 "2024-05-25T17:44:36Z")

</div>

I train my MLJ Model (EvoTrees.jl) on a Julia DataFrame with the scalars x1, x2, and x3 as features and y as label. However, when doing the inference, I have higher dimensional arrays instead of tabular data. Any suggest…

---

## [Does PythonCall block all \`@async\` routines?](https://discourse.julialang.org/t/does-pythoncall-block-all-async-routines/114722)

<div class="topic-metadata">

**Author:** [@aryavorskiy](https://discourse.julialang.org/u/aryavorskiy)\
**Replies:** 2\
**Last updated:** [May 25, 2024, 5:05pm UTC](https://discourse.julialang.org/t/does-pythoncall-block-all-async-routines/114722 "2024-05-25T17:05:14Z")

</div>

I am trying to write a simple timing function. To avoid waiting for too long, I made it stop waiting and return Inf at some point. I achieved it this way: function time\_function(f, input...; maxtime=1) c = Channel{F…

---

## [Custom location for julia, using juliaup](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724)

<div class="topic-metadata">

**Author:** [@sfranchel](https://discourse.julialang.org/u/sfranchel)\
**Replies:** 2\
**Last updated:** [May 25, 2024, 4:53pm UTC](https://discourse.julialang.org/t/custom-location-for-julia-using-juliaup/114724 "2024-05-25T16:53:54Z")

</div>

I’m trying to install julia in a remote shared server, but I have limited resources in the $HOME directory. I’m therefore trying to change the location for julia installation to a path with much more disk space. The jul…

---

## [How to Use Real and Complex Noises in One Problem?](https://discourse.julialang.org/t/how-to-use-real-and-complex-noises-in-one-problem/114718)

<div class="topic-metadata">

**Author:** [@Sepanta-Mssvn](https://discourse.julialang.org/u/Sepanta-Mssvn)\
**Replies:** 1\
**Last updated:** [May 25, 2024, 4:02pm UTC](https://discourse.julialang.org/t/how-to-use-real-and-complex-noises-in-one-problem/114718 "2024-05-25T16:02:06Z")

</div>

I would like to use both real and complex Weiner processes in one problem. For a simple example, suppose we have: using DifferentialEquations function Eq(du,u,p,t) du\[1\] = u\[1\] + u\[2\] du\[2\] = 2 \* u\[1\] end funct…

---

## [Is there a way to know in advance if a function definition will overwrite a previous one?](https://discourse.julialang.org/t/is-there-a-way-to-know-in-advance-if-a-function-definition-will-overwrite-a-previous-one/114670)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 30\
**Last updated:** [May 25, 2024, 3:00pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-know-in-advance-if-a-function-definition-will-overwrite-a-previous-one/114670 "2024-05-25T15:00:01Z")

</div>

I’d like to know if there is any way to know in advance if this can be done, e.g. say I have f(x::Int) = 3 In pseudo-code I’m trying to do something like m = method overwritten by f(x::Int) = 4 if m !== nothing Ba…

---

## [Package to avoid allocations in some functions when using StaticArrays.jl](https://discourse.julialang.org/t/package-to-avoid-allocations-in-some-functions-when-using-staticarrays-jl/114539)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 18\
**Last updated:** [May 25, 2024, 2:54pm UTC](https://discourse.julialang.org/t/package-to-avoid-allocations-in-some-functions-when-using-staticarrays-jl/114539 "2024-05-25T14:54:53Z")

</div>

Hi! As I mentioned before, I am trying to build a full satellite attitude control subsystem (ACS) using Julia, which maybe one day will hopefully fly in a CubeSat. One very important requirement is to avoid runtime allo…

---

## [\[ANN\] ManifoldBindings.jl](https://discourse.julialang.org/t/ann-manifoldbindings-jl/114714)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [May 25, 2024, 11:23am UTC](https://discourse.julialang.org/t/ann-manifoldbindings-jl/114714 "2024-05-25T11:23:42Z")

</div>

I am happy to announce ManifoldBindings.jl. From the README: ManifoldBindings.jl This package provides inofficial julia bindings for manifold a fast and robust mesh library. It provides low level 1:1 bindings aroun…

---

## [Creating documentation when remote name is not \`origin\`](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466)

<div class="topic-metadata">

**Author:** [@phx](https://discourse.julialang.org/u/phx)\
**Replies:** 2\
**Last updated:** [May 25, 2024, 8:27am UTC](https://discourse.julialang.org/t/creating-documentation-when-remote-name-is-not-origin/110466 "2024-05-25T08:27:08Z")

</div>

Hello everyone, I’m trying to use Documenter to build the documentation for a package I wrote. Everything builds fine, but every time I run julia --project make.jl the following warning appears: ┌ Warning: Unable to de…

---

## [Vern9 from differentialequations.jl and ode89 from matlab](https://discourse.julialang.org/t/vern9-from-differentialequations-jl-and-ode89-from-matlab/114587)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 15\
**Last updated:** [May 25, 2024, 8:00am UTC](https://discourse.julialang.org/t/vern9-from-differentialequations-jl-and-ode89-from-matlab/114587 "2024-05-25T08:00:17Z")

</div>

Hello, I am calculating a solution for the system using Vern9() in Julia and ode89 in Matlab. I get a message about instability in Julia while there is no such thing in matlab. If I change the abstol, reltol in julia to…

---

## [Zygote.jl with NamedArrays and adjoint](https://discourse.julialang.org/t/zygote-jl-with-namedarrays-and-adjoint/114707)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 2\
**Last updated:** [May 25, 2024, 6:52am UTC](https://discourse.julialang.org/t/zygote-jl-with-namedarrays-and-adjoint/114707 "2024-05-25T06:52:54Z")

</div>

Hi, I can’t get Zygote.jl to work with the adjoint of NamedVectors: using Zygote using NamedArrays foo(a, b, c) = a' \* b \* c function bar() a = NamedArray(\[1.0, 2.0\], \["x", "y"\]) b = NamedArray(\[1.0, 2.0\], \["x…

---

## [Can I use \`pmap\` on a recursive program?](https://discourse.julialang.org/t/can-i-use-pmap-on-a-recursive-program/114684)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 1\
**Last updated:** [May 25, 2024, 6:46am UTC](https://discourse.julialang.org/t/can-i-use-pmap-on-a-recursive-program/114684 "2024-05-25T06:46:16Z")

</div>

Can I use pmap on a recursive program? Take the following recursive function as an example: using Distributed addprocs(3) function mymax(x) n = length(x) if n == 1 x\[1\] else y = pmap(mymax, \[…

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

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