# Latest

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

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

**Page:** 319

---

## [Layout not correct for plotlyjs backend](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567)

<div class="topic-metadata">

**Author:** [@arw](https://discourse.julialang.org/u/arw)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 6:17pm UTC](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567 "2024-09-18T18:17:31Z")

</div>

The following code plots two subplots side-by-side. Works fine if you are using the gr backend but does not when using the plotlyjs backend. The first subplot spreads across the whole figure while the second subplot is…

---

## [WAIC computation](https://discourse.julialang.org/t/waic-computation/119553)

<div class="topic-metadata">

**Author:** [@alexten](https://discourse.julialang.org/u/alexten)\
**Replies:** 1\
**Last updated:** [September 18, 2024, 4:04pm UTC](https://discourse.julialang.org/t/waic-computation/119553 "2024-09-18T16:04:53Z")

</div>

I am trying to fill in some gaps left from trying implement model comparison of a model fitted in Turing. Following McElreath’s Statistical Rethinking (2nd ed) and getting help from Claude.ai, I have come up with a funct…

---

## [ANN: MethodInSrc.jl ; verify a method is invoked: Take two](https://discourse.julialang.org/t/ann-methodinsrc-jl-verify-a-method-is-invoked-take-two/119557)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 0\
**Last updated:** [September 18, 2024, 3:17pm UTC](https://discourse.julialang.org/t/ann-methodinsrc-jl-verify-a-method-is-invoked-take-two/119557 "2024-09-18T15:17:33Z")

</div>

A couple of times, when testing a package, I realized that although I thought a call was dispatching to a method in the package, it was actually dispatching to a fall-back method in Base. So I wrote macros to test that …

---

## [How does one set up a centralized Julia installation?](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 44\
**Last updated:** [September 18, 2024, 3:08pm UTC](https://discourse.julialang.org/t/how-does-one-set-up-a-centralized-julia-installation/13922 "2024-09-18T15:08:53Z")

</div>

I would like to start a thread about best practice for how to set up a centralized Julia installation in a cluster environment or local institution network. Hopefully, this will lead to a tutorial like write-up in the en…

---

## [When is strip\_solution useful?](https://discourse.julialang.org/t/when-is-strip-solution-useful/119517)

<div class="topic-metadata">

**Author:** [@pulk\_jain](https://discourse.julialang.org/u/pulk_jain)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 2:21pm UTC](https://discourse.julialang.org/t/when-is-strip-solution-useful/119517 "2024-09-18T14:21:38Z")

</div>

I was just curious about the use case for strip\_solution. I noticed that my files were too big when saving whole ode solutions using jld2 and whenever I loaded back the file using jldopen, the REPL was riddled with reco…

---

## [Core dumped when defining a Channel as constant](https://discourse.julialang.org/t/core-dumped-when-defining-a-channel-as-constant/119551)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 2:04pm UTC](https://discourse.julialang.org/t/core-dumped-when-defining-a-channel-as-constant/119551 "2024-09-18T14:04:58Z")

</div>

module M const C = Channel(ch -\> put!(ch, nothing), ctype=Nothing) end Precompiling this module leads to core dumped… \[16831\] signal (6.-6): Aborted in expression starting at REPL\[1\]:1 unknown function (ip: 0xffffb1270…

---

## [Failed while initializing AMDGPU.jl with LLVM 17 and ROCm 6.1 on Fedora 40](https://discourse.julialang.org/t/failed-while-initializing-amdgpu-jl-with-llvm-17-and-rocm-6-1-on-fedora-40/118341)

<div class="topic-metadata">

**Author:** [@jellyterra](https://discourse.julialang.org/u/jellyterra)\
**Replies:** 4\
**Last updated:** [September 18, 2024, 1:01pm UTC](https://discourse.julialang.org/t/failed-while-initializing-amdgpu-jl-with-llvm-17-and-rocm-6-1-on-fedora-40/118341 "2024-09-18T13:01:29Z")

</div>

The Radeon device has already been bind-mounted into /dev/dri in the container. Julia is installed via Julia Up, and AMDGPU.jl installed successfully with Pkg.jl . add AMDGPU Here is the journal below. \[root@42a30749…

---

## [Public interface to get all type parameters?](https://discourse.julialang.org/t/public-interface-to-get-all-type-parameters/119514)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 12:56pm UTC](https://discourse.julialang.org/t/public-interface-to-get-all-type-parameters/119514 "2024-09-18T12:56:14Z")

</div>

Is it possible to implement the following function: get\_parameters(::Type{T}) where {T} = T.parameters without relying on the internal field parameters? As far as I can tell, the answer seems to be no, since this appro…

---

## [What divergence information is available in Turing?](https://discourse.julialang.org/t/what-divergence-information-is-available-in-turing/119246)

<div class="topic-metadata">

**Author:** [@jonask](https://discourse.julialang.org/u/jonask)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 11:52am UTC](https://discourse.julialang.org/t/what-divergence-information-is-available-in-turing/119246 "2024-09-18T11:52:25Z")

</div>

Hi, Semi-new user of Julia and Turing here! I have been using Flux together with Turing to sample from a small NN with NUTS. I have come across different discussions online about where to find information regarding dive…

---

## [Gurobi callback function not accessing / not loading](https://discourse.julialang.org/t/gurobi-callback-function-not-accessing-not-loading/119501)

<div class="topic-metadata">

**Author:** [@cskx](https://discourse.julialang.org/u/cskx)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 10:57am UTC](https://discourse.julialang.org/t/gurobi-callback-function-not-accessing-not-loading/119501 "2024-09-18T10:57:58Z")

</div>

Hello, I would like to access the values during each iterations, then plot the objective function (maybe more info) against iterations, I wrote a callback function as below. I found that my cb\_where is never equal to GR…

---

## [SymbolicRegression: Python -\> Julia?](https://discourse.julialang.org/t/symbolicregression-python-julia/119463)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 10\
**Last updated:** [September 18, 2024, 10:41am UTC](https://discourse.julialang.org/t/symbolicregression-python-julia/119463 "2024-09-18T10:41:15Z")

</div>

I’m trying to use SymbolicRegression from Julia, based on some \[SRRegressor\] model in Python. Here is the Python model: model\_SK = PySRRegressor( batching=True, niterations=400, model\_selection="accuracy", …

---

## [\`\\boldsymbol\` in \`Latexify\`](https://discourse.julialang.org/t/boldsymbol-in-latexify/119489)

<div class="topic-metadata">

**Author:** [@PatrickHaecker](https://discourse.julialang.org/u/PatrickHaecker)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 10:17am UTC](https://discourse.julialang.org/t/boldsymbol-in-latexify/119489 "2024-09-18T10:17:27Z")

</div>

I am probably missing something simple, but typing a lot of LaTeX in markdown strings seems to be harder than it needs to be when Latexify exists. Therefore, is there a simpler way to output using Markdown md""" \`\` \\bo…

---

## [Cannot start Julia](https://discourse.julialang.org/t/cannot-start-julia/119540)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 9:43am UTC](https://discourse.julialang.org/t/cannot-start-julia/119540 "2024-09-18T09:43:56Z")

</div>

When I try to start Julia I get the message: Juliaup configuration is locked by another process, waiting for it to unlock. and than it hangs, nothing else happens. In the past I also saw this message, but it disappear…

---

## [Tidiest way to reuse variables inside a function to reduce gc time](https://discourse.julialang.org/t/tidiest-way-to-reuse-variables-inside-a-function-to-reduce-gc-time/119509)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 8\
**Last updated:** [September 18, 2024, 9:09am UTC](https://discourse.julialang.org/t/tidiest-way-to-reuse-variables-inside-a-function-to-reduce-gc-time/119509 "2024-09-18T09:09:22Z")

</div>

I’m writing a function to fit a spatio-temporal model for clustering. At each iteration it has to compute spatial cohesions on subsets of units, and I saw that this takes a lot of the execution time, which is spent in ga…

---

## [Optimising allocations and memory use in ODEProblems](https://discourse.julialang.org/t/optimising-allocations-and-memory-use-in-odeproblems/119513)

<div class="topic-metadata">

**Author:** [@markjholmes](https://discourse.julialang.org/u/markjholmes)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 9:14am UTC](https://discourse.julialang.org/t/optimising-allocations-and-memory-use-in-odeproblems/119513 "2024-09-18T09:14:30Z")

</div>

If I have an ODEProblem with many lines of computation going on at each step, when (if ever) does it become sensible to pre-allocate the space for these computations inside the parameters, p? With a simplified example, …

---

## [Set options of \`Clarabel.jl\` via the \`Convex.jl\` interface](https://discourse.julialang.org/t/set-options-of-clarabel-jl-via-the-convex-jl-interface/119538)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 8:37am UTC](https://discourse.julialang.org/t/set-options-of-clarabel-jl-via-the-convex-jl-interface/119538 "2024-09-18T08:37:58Z")

</div>

For the ECOS.jl solver I can do the following: solve!(problem, # Parameters taken from default values for EiCOS Convex.MOI.OptimizerWithAttributes(ECOS.Optimizer, "b" =\> 0.99, …

---

## [Minimize discrete time objective](https://discourse.julialang.org/t/minimize-discrete-time-objective/118665)

<div class="topic-metadata">

**Author:** [@Kunsag](https://discourse.julialang.org/u/Kunsag)\
**Replies:** 3\
**Last updated:** [August 27, 2024, 4:43pm UTC](https://discourse.julialang.org/t/minimize-discrete-time-objective/118665 "2024-08-27T16:43:40Z")

</div>

Hi, I’m currently trying to model an optimization problem in which the aim is to find time-dependent optimal decisions. I was able to reduce my current question to a minimal example. \\text{minimize } t\\\\ \\text{s.t. } f…

---

## [Caveats to reusing CuArray memory by changing .dims?](https://discourse.julialang.org/t/caveats-to-reusing-cuarray-memory-by-changing-dims/119429)

<div class="topic-metadata">

**Author:** [@eldee](https://discourse.julialang.org/u/eldee)\
**Replies:** 6\
**Last updated:** [September 18, 2024, 7:35am UTC](https://discourse.julialang.org/t/caveats-to-reusing-cuarray-memory-by-changing-dims/119429 "2024-09-18T07:35:37Z")

</div>

Hi, I have a situation where I’m creating and processing some data on the GPU in a loop. This data is a 3D tensor whose size (nx, ny, nz) can change every iteration, but there are clear upper bounds for the size of each…

---

## [Revise stopped working](https://discourse.julialang.org/t/revise-stopped-working/114101)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 5\
**Last updated:** [September 18, 2024, 7:21am UTC](https://discourse.julialang.org/t/revise-stopped-working/114101 "2024-09-18T07:21:30Z")

</div>

Revise is a core tool for my workflow. Suddenly it stopped working. There is no error when loading i. It just stopped tracking changes to my code. After I change a file in my package it is unable to track the change, fo…

---

## [Type unstable in NonlinearSolve.jl](https://discourse.julialang.org/t/type-unstable-in-nonlinearsolve-jl/119533)

<div class="topic-metadata">

**Author:** [@aaoo](https://discourse.julialang.org/u/aaoo)\
**Replies:** 3\
**Last updated:** [September 18, 2024, 2:45am UTC](https://discourse.julialang.org/t/type-unstable-in-nonlinearsolve-jl/119533 "2024-09-18T02:45:17Z")

</div>

I am using NonlinearSolve.jl to solve a system of nonlinear equations. The @code\_warntype macro gives Any type when I use NonlinearProblem, see code below. When I wrapped this code into a larger outer function, the type …

---

## [Can \`parse\` be computed at compile time?](https://discourse.julialang.org/t/can-parse-be-computed-at-compile-time/119507)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 9:21pm UTC](https://discourse.julialang.org/t/can-parse-be-computed-at-compile-time/119507 "2024-09-17T21:21:13Z")

</div>

The function f() = parse(Int, "10") produces native code, according to @code\_native, which involves runtime parsing rather than directly returning the integer 10. Why can’t Julia optimize this away at compile time? Is…

---

## [Nlsolver vs Matlab fsolve](https://discourse.julialang.org/t/nlsolver-vs-matlab-fsolve/119523)

<div class="topic-metadata">

**Author:** [@w17n2411](https://discourse.julialang.org/u/w17n2411)\
**Replies:** 6\
**Last updated:** [September 17, 2024, 9:03pm UTC](https://discourse.julialang.org/t/nlsolver-vs-matlab-fsolve/119523 "2024-09-17T21:03:37Z")

</div>

I have some code to solve a system of nonlinear equations given some state variables (both in Matlab and Julia). The solution is quite sensitive and I have to use homotopy to solve it for a variety of points in the state…

---

## [Plotly not working in Jupyter notebooks](https://discourse.julialang.org/t/plotly-not-working-in-jupyter-notebooks/119528)

<div class="topic-metadata">

**Author:** [@gmantegna](https://discourse.julialang.org/u/gmantegna)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 8:54pm UTC](https://discourse.julialang.org/t/plotly-not-working-in-jupyter-notebooks/119528 "2024-09-17T20:54:24Z")

</div>

Hi all. First time poster here. I’m a graduate student and TA and make heavy use of Jupyter notebooks with plots for teaching a Julia-based course. For over a year, the integration of Plotly with Jupyter notebooks has be…

---

## [Quarto: A code (using ModelingToolkit) that runs in REPL fails in Quarto](https://discourse.julialang.org/t/quarto-a-code-using-modelingtoolkit-that-runs-in-repl-fails-in-quarto/119527)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 8:51pm UTC](https://discourse.julialang.org/t/quarto-a-code-using-modelingtoolkit-that-runs-in-repl-fails-in-quarto/119527 "2024-09-17T20:51:50Z")

</div>

The following Julia code (that uses ModelingToolkit) runs with no troubles in REPL, but errors when run within a code cell in a Quarto qmd file (for convenience it is also listed below together with the error message): u…

---

## [Different times with @elapsed, @time and @benchmark](https://discourse.julialang.org/t/different-times-with-elapsed-time-and-benchmark/119381)

<div class="topic-metadata">

**Author:** [@odddot](https://discourse.julialang.org/u/odddot)\
**Replies:** 3\
**Last updated:** [September 17, 2024, 8:51pm UTC](https://discourse.julialang.org/t/different-times-with-elapsed-time-and-benchmark/119381 "2024-09-17T20:51:01Z")

</div>

Hi, I am a little confused by some results that I obtain comparing @time, @elapsed and @benchmark. I am aware of some differences between this macros, but I suppose that I am not really understanding what is happening h…

---

## [Sumproduct function in Julia](https://discourse.julialang.org/t/sumproduct-function-in-julia/46053)

<div class="topic-metadata">

**Author:** [@alexlowth](https://discourse.julialang.org/u/alexlowth)\
**Replies:** 7\
**Last updated:** [September 4, 2020, 1:04pm UTC](https://discourse.julialang.org/t/sumproduct-function-in-julia/46053 "2020-09-04T13:04:10Z")

</div>

Hey guys, I am quite a beginner at using Julia and this is my first post, so apologies if there is an obvious answer! I would like to find out if there is an easy way to perform the sumproduct excel function in Julia. A…

---

## [Several questions about time evaluation with @time](https://discourse.julialang.org/t/several-questions-about-time-evaluation-with-time/119455)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 7\
**Last updated:** [September 16, 2024, 3:32pm UTC](https://discourse.julialang.org/t/several-questions-about-time-evaluation-with-time/119455 "2024-09-16T15:32:47Z")

</div>

For example, if we want to evaluate the time cost of the following code snippet: total = 0 for i in 1:100000000 total += i end Standard practice is as follows (right?): First, write it into a function: function m…

---

## [Delusional drone in RxInfer example](https://discourse.julialang.org/t/delusional-drone-in-rxinfer-example/117057)

<div class="topic-metadata">

**Author:** [@Andreas\_Poulsen](https://discourse.julialang.org/u/Andreas_Poulsen)\
**Replies:** 6\
**Last updated:** [September 17, 2024, 3:38pm UTC](https://discourse.julialang.org/t/delusional-drone-in-rxinfer-example/117057 "2024-09-17T15:38:26Z")

</div>

Hi I am recreating the drone example from https://github.com/ReactiveBayes/RxInferExamples.jl/blob/main/drone/drone\_simulation.ipynb. It occured to me, that the plot/animation is based on the models posteriors. Does thi…

---

## [Warning: Module TranscodingStreams with build ID fafbfcfd-709b-c95f-0000-2059ac53b05f is missing from the cache](https://discourse.julialang.org/t/warning-module-transcodingstreams-with-build-id-fafbfcfd-709b-c95f-0000-2059ac53b05f-is-missing-from-the-cache/119459)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 3:25pm UTC](https://discourse.julialang.org/t/warning-module-transcodingstreams-with-build-id-fafbfcfd-709b-c95f-0000-2059ac53b05f-is-missing-from-the-cache/119459 "2024-09-17T15:25:51Z")

</div>

┌ Warning: Module TranscodingStreams with build ID fafbfcfd-709b-c95f-0000-2059ac53b05f is missing from the cache. │ This may mean TranscodingStreams \[3bb67fe8-82b1-5028-8e26-92a6c54297fa\] does not support precompilation…

---

## [Module parameters and run-time efficiency](https://discourse.julialang.org/t/module-parameters-and-run-time-efficiency/119505)

<div class="topic-metadata">

**Author:** [@jhidding](https://discourse.julialang.org/u/jhidding)\
**Replies:** 3\
**Last updated:** [September 17, 2024, 3:17pm UTC](https://discourse.julialang.org/t/module-parameters-and-run-time-efficiency/119505 "2024-09-17T15:17:57Z")

</div>

Hi, I want to perform dispatch based on functions of the same name within a module. There’s two ways to go about it: having a function f(m::Module,...) or defining a trait type and saying f(::Type{Mod{M}}, ...) where M. …

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

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