# Latest

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

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

**Page:** 335

---

## [@inbounds for getindex not working](https://discourse.julialang.org/t/inbounds-for-getindex-not-working/118631)

<div class="topic-metadata">

**Author:** [@Andy\_Zhang](https://discourse.julialang.org/u/Andy_Zhang)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 4:24pm UTC](https://discourse.julialang.org/t/inbounds-for-getindex-not-working/118631 "2024-08-26T16:24:32Z")

</div>

Here is the example code and output. struct Minij{T\<:Number} \<: AbstractMatrix{T} n::Integer function Minij{T}(n::Integer) where {T\<:Number} n \>= 0 || throw(ArgumentError("$n \< 0")) return new{T…

---

## [How to access the variable accessible by a closure?](https://discourse.julialang.org/t/how-to-access-the-variable-accessible-by-a-closure/118628)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 3:41pm UTC](https://discourse.julialang.org/t/how-to-access-the-variable-accessible-by-a-closure/118628 "2024-08-26T15:41:24Z")

</div>

in the following a is accessible by gun(): function fun() a = 2.0 function gun(b) return a + b end end g = fun() g(3.0) julia\> g = fun() (::var"#gun#10"{Float64}) (generic function with 1 method) …

---

## [Matrix Multiplication Using oneAPI.jl Fails on Second Invocation](https://discourse.julialang.org/t/matrix-multiplication-using-oneapi-jl-fails-on-second-invocation/118567)

<div class="topic-metadata">

**Author:** [@Marcelo\_Simas](https://discourse.julialang.org/u/Marcelo_Simas)\
**Replies:** 3\
**Last updated:** [August 26, 2024, 3:16pm UTC](https://discourse.julialang.org/t/matrix-multiplication-using-oneapi-jl-fails-on-second-invocation/118567 "2024-08-26T15:16:27Z")

</div>

Been playing with oneAPI.jl to run matrix x vector multiplication using the integrated Intel GPU on my Windows laptop (WSL2) and came across a strange behavior. The first time mul!() is invoked I get a reasonable result…

---

## [Code that uses MPI.jl does not run on cluster](https://discourse.julialang.org/t/code-that-uses-mpi-jl-does-not-run-on-cluster/118167)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 24\
**Last updated:** [August 26, 2024, 3:04pm UTC](https://discourse.julialang.org/t/code-that-uses-mpi-jl-does-not-run-on-cluster/118167 "2024-08-26T15:04:14Z")

</div>

I have written a version of my code that uses MPI.jl to achieve a potentially large scale parallelization. I already had MPI installed on my PC and used the instructions from here to make sure that the same mpiexec is be…

---

## [Unexpected behavior of CUDA kernel](https://discourse.julialang.org/t/unexpected-behavior-of-cuda-kernel/118625)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 2:48pm UTC](https://discourse.julialang.org/t/unexpected-behavior-of-cuda-kernel/118625 "2024-08-26T14:48:58Z")

</div>

Hello all. I hit an unexpected error writing CUDA kernel. Somehow the variable b seems to be in conflict. When I removed b=sum(A), this function worked. Is it a spec or a bug? using CUDA function main() function…

---

## [How to solve an ODEProblem with u0 in the format of vector{vector} and be able to use it for Zygote differentiation](https://discourse.julialang.org/t/how-to-solve-an-odeproblem-with-u0-in-the-format-of-vector-vector-and-be-able-to-use-it-for-zygote-differentiation/118606)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 1:21pm UTC](https://discourse.julialang.org/t/how-to-solve-an-odeproblem-with-u0-in-the-format-of-vector-vector-and-be-able-to-use-it-for-zygote-differentiation/118606 "2024-08-26T13:21:14Z")

</div>

Hello, I am currently facing an ode problem. The format of u0 in this problem is vector{vector}, for example \[\[1,2\], \[1,2,3\], \[1\]\], the particularity of this u0 is that the length of each element is different, and I cann…

---

## [Is 1.10 going to be the next LTS?](https://discourse.julialang.org/t/is-1-10-going-to-be-the-next-lts/118378)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [August 26, 2024, 12:56pm UTC](https://discourse.julialang.org/t/is-1-10-going-to-be-the-next-lts/118378 "2024-08-26T12:56:31Z")

</div>

Hello, is Julia 1.10 going to be the new LTS when 1.11 will arrive, right? (for planning purposes)

---

## [Could not download registries](https://discourse.julialang.org/t/could-not-download-registries/118486)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 7\
**Last updated:** [August 26, 2024, 12:46pm UTC](https://discourse.julialang.org/t/could-not-download-registries/118486 "2024-08-26T12:46:08Z")

</div>

Installing known registries into \`~/.julia\` ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/b39454141b62a8b7203e96a34b9ba6cd7f79815d Exception: RequestError: HTTP/2 30…

---

## [Creating API for mobile and web apps](https://discourse.julialang.org/t/creating-api-for-mobile-and-web-apps/118550)

<div class="topic-metadata">

**Author:** [@Shiva\_raj](https://discourse.julialang.org/u/Shiva_raj)\
**Replies:** 7\
**Last updated:** [August 26, 2024, 12:38pm UTC](https://discourse.julialang.org/t/creating-api-for-mobile-and-web-apps/118550 "2024-08-26T12:38:53Z")

</div>

Hi Team, I am building a mathematics logic for a school for geometry and basic maths. I want to create a mobile app in reactive native and back end in julia with API exposed. need support and suggestion on how to achie…

---

## [How to trigger an event after rendering in a Bonito app](https://discourse.julialang.org/t/how-to-trigger-an-event-after-rendering-in-a-bonito-app/117912)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 6\
**Last updated:** [August 26, 2024, 9:54am UTC](https://discourse.julialang.org/t/how-to-trigger-an-event-after-rendering-in-a-bonito-app/117912 "2024-08-26T09:54:41Z")

</div>

With this little Bonito app, how can I call update\_cam! after the plot is rendered on the client? julia\> App() do session button = Button("reset cam") fig = Figure() ax = LScene(fig\[1, 1\]) …

---

## [Learning curve for validation dataset](https://discourse.julialang.org/t/learning-curve-for-validation-dataset/118529)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 8:17am UTC](https://discourse.julialang.org/t/learning-curve-for-validation-dataset/118529 "2024-08-26T08:17:31Z")

</div>

I want to train a ML model with MLJ, for example an XGBoost Regressor with L2 Loss. I split my dataset into three parts, train/val/test, and during training I want to train on the train dataset but also plot the loss/ac…

---

## [Stacked area plots in Makie](https://discourse.julialang.org/t/stacked-area-plots-in-makie/118574)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 6\
**Last updated:** [August 26, 2024, 5:29am UTC](https://discourse.julialang.org/t/stacked-area-plots-in-makie/118574 "2024-08-26T05:29:58Z")

</div>

This seems like a very simple question, but what is the easiest way to create a stacked area plot in Makie? I can’t seem to find that in the (very good) tutorials and documentation. A short example in PlotlyJS: using P…

---

## [How to best assign values to multiple locations in a Vector of Vectors?](https://discourse.julialang.org/t/how-to-best-assign-values-to-multiple-locations-in-a-vector-of-vectors/118607)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 4:23am UTC](https://discourse.julialang.org/t/how-to-best-assign-values-to-multiple-locations-in-a-vector-of-vectors/118607 "2024-08-26T04:23:34Z")

</div>

I am looking for an equivalent to myvector\[locations\] .= myvalue for a vector of vectors. It seems that I can assign to one location at a time. Is there a way? myvecvec = \[Int64\[\] for i in 1:10\] myvecvec\[2\] = \[1,2\] # …

---

## [How to use Flux to write a Multi-Head Output Network](https://discourse.julialang.org/t/how-to-use-flux-to-write-a-multi-head-output-network/118605)

<div class="topic-metadata">

**Author:** [@ZC\_H](https://discourse.julialang.org/u/ZC_H)\
**Replies:** 4\
**Last updated:** [August 26, 2024, 3:30am UTC](https://discourse.julialang.org/t/how-to-use-flux-to-write-a-multi-head-output-network/118605 "2024-08-26T03:30:34Z")

</div>

I want to use julia.Flux to recurrent SAC algorithm. But I am facing a problem when I write the policy network modular because it is a multi-head output network, which receive a state matrix as input and output both expe…

---

## [Dct error when using Images](https://discourse.julialang.org/t/dct-error-when-using-images/111775)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 8\
**Last updated:** [August 26, 2024, 2:54am UTC](https://discourse.julialang.org/t/dct-error-when-using-images/111775 "2024-08-26T02:54:27Z")

</div>

Hello everyone, I have the following code using TestImages, ImageView img = testimage("cameraman") pixels = img\[1:8,1:8\] pixels = convert(Array{Float32}, pixels) freqs = dct(pixels) round(freqs) pixels2 = idct(freqs) b…

---

## [New stable features for the test item framework](https://discourse.julialang.org/t/new-stable-features-for-the-test-item-framework/118512)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 18\
**Last updated:** [August 25, 2024, 9:36pm UTC](https://discourse.julialang.org/t/new-stable-features-for-the-test-item-framework/118512 "2024-08-25T21:36:56Z")

</div>

I released a couple of new stable features for the test item framework in the last weeks. This post will describe them. But before I dive into the new features, a quick recap what the test item framework is! The main be…

---

## [ApproxFun: how to define initial conditions for a second-order ODE?](https://discourse.julialang.org/t/approxfun-how-to-define-initial-conditions-for-a-second-order-ode/15295)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 4\
**Last updated:** [August 25, 2024, 9:09pm UTC](https://discourse.julialang.org/t/approxfun-how-to-define-initial-conditions-for-a-second-order-ode/15295 "2024-08-25T21:09:49Z")

</div>

Hello, I am struggling with the very basics of usage of ApproxFun package. I would like to use it solve the very simplest second-order linear initial value problem \\ddot u(t) + \\dot u(t) + u(t) = 0, u(0) = 1, \\dot u(0) …

---

## [NeuralODE training failed on GPU with Enzyme](https://discourse.julialang.org/t/neuralode-training-failed-on-gpu-with-enzyme/118537)

<div class="topic-metadata">

**Author:** [@Yunan](https://discourse.julialang.org/u/Yunan)\
**Replies:** 6\
**Last updated:** [August 25, 2024, 8:41pm UTC](https://discourse.julialang.org/t/neuralode-training-failed-on-gpu-with-enzyme/118537 "2024-08-25T20:41:49Z")

</div>

Hi, when I try to train a NeuralODE with Discretecallback using 'sensealg=InterpolatingAdjoint(autojacvec=EnzymeVJP(), checkpointing=true) ’ , I get: Enzyme execution failed. Enzyme: unhandled augmented forward for jl\_…

---

## [What is a Symbol in Julia](https://discourse.julialang.org/t/what-is-a-symbol-in-julia/117636)

<div class="topic-metadata">

**Author:** [@Farouk](https://discourse.julialang.org/u/Farouk)\
**Replies:** 3\
**Last updated:** [August 25, 2024, 3:05pm UTC](https://discourse.julialang.org/t/what-is-a-symbol-in-julia/117636 "2024-08-25T15:05:35Z")

</div>

Hello, I am new to Julia (with no CS background) I have experience in python programming and a bit of other languages like:C, JAVA, R. I really do not understand what a symbol is :upside\_down\_face:, I know it is used in …

---

## [Current, Maintained interactive Julia gui system? (mid 2024)](https://discourse.julialang.org/t/current-maintained-interactive-julia-gui-system-mid-2024/118318)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 17\
**Last updated:** [August 25, 2024, 5:45pm UTC](https://discourse.julialang.org/t/current-maintained-interactive-julia-gui-system-mid-2024/118318 "2024-08-25T17:45:18Z")

</div>

I am working with a collaborator on a statistical model. Part of the process at the moment is to find an initial condition for optimization or sampling. The model is complicated but there are a number of plots that we ca…

---

## [Questions about CUDA.dot() function](https://discourse.julialang.org/t/questions-about-cuda-dot-function/99315)

<div class="topic-metadata">

**Author:** [@fred\_wu](https://discourse.julialang.org/u/fred_wu)\
**Replies:** 4\
**Last updated:** [August 25, 2024, 5:05pm UTC](https://discourse.julialang.org/t/questions-about-cuda-dot-function/99315 "2024-08-25T17:05:54Z")

</div>

Hi, I encountered two doubts when using the CUDA.dot() function. My understanding is that the CUDA.dot() function returns a CPU scalar after performing calculations on the GPU. I tested the running time of the CUDA.dot(…

---

## [Warning when installing ModelingToolkit](https://discourse.julialang.org/t/warning-when-installing-modelingtoolkit/118586)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 25, 2024, 11:06am UTC](https://discourse.julialang.org/t/warning-when-installing-modelingtoolkit/118586 "2024-08-25T11:06:30Z")

</div>

If I install ModelingToolkit v9.33.1 using this script: #!/bin/bash -eu rm -rf /tmp/testdepot mkdir /tmp/testdepot rm -rf /tmp/test mkdir /tmp/test cd /tmp/test export JULIA\_DEPOT\_PATH=/tmp/testdepot julia --project="…

---

## [🧾 New stack traces in Pluto: more colorful, less intimidating!](https://discourse.julialang.org/t/new-stack-traces-in-pluto-more-colorful-less-intimidating/110507)

<div class="topic-metadata">

**Author:** [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Replies:** 3\
**Last updated:** [August 25, 2024, 9:32am UTC](https://discourse.julialang.org/t/new-stack-traces-in-pluto-more-colorful-less-intimidating/110507 "2024-08-25T09:32:12Z")

</div>

A recent discussion about making Julia more accessible inspired me to work on the Stack trace display in Pluto, and it has gotten a bunch of upgrades! I was inspired by the recent improvements to stack traces in the …

---

## [Vector to Matrix. How to do it generally](https://discourse.julialang.org/t/vector-to-matrix-how-to-do-it-generally/118579)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 9:25am UTC](https://discourse.julialang.org/t/vector-to-matrix-how-to-do-it-generally/118579 "2024-08-25T09:25:56Z")

</div>

I have a DataFrame, and I am creating a function that receives it, extracts a few columns and convert those columns into a matrix. I was using Matrix{T}(df) and it worked, but when the slected columns turn to be 1, it sa…

---

## [Why does substitute API in Symbolic.jl returns a tuple instead of a number?](https://discourse.julialang.org/t/why-does-substitute-api-in-symbolic-jl-returns-a-tuple-instead-of-a-number/118582)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 9:17am UTC](https://discourse.julialang.org/t/why-does-substitute-api-in-symbolic-jl-returns-a-tuple-instead-of-a-number/118582 "2024-08-25T09:17:47Z")

</div>

using Pkg Pkg.activate("/Users/ssiew/juliascript/Symbolics") using Symbolics # using Nemo # using SymbolicNumericIntegration @variables x expr = x println("expr is ",expr) answer = substitute.( expr, (Dict(x =\> 7),)…

---

## [Genie web framework issue for simple calculator app](https://discourse.julialang.org/t/genie-web-framework-issue-for-simple-calculator-app/118566)

<div class="topic-metadata">

**Author:** [@Shiva\_raj](https://discourse.julialang.org/u/Shiva_raj)\
**Replies:** 1\
**Last updated:** [August 25, 2024, 7:28am UTC](https://discourse.julialang.org/t/genie-web-framework-issue-for-simple-calculator-app/118566 "2024-08-25T07:28:26Z")

</div>

HI Team, I am trying to create a calculator app in julia with Genie web framwork for API , but I am getting below error using Genie, Genie.Router, Genie.Renderer.Json # Load the separate modules include("src/addition.…

---

## [Handling PyArray in Generic Functions: how to use \`similar\` and \`copy\` correctly](https://discourse.julialang.org/t/handling-pyarray-in-generic-functions-how-to-use-similar-and-copy-correctly/118569)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 6:10am UTC](https://discourse.julialang.org/t/handling-pyarray-in-generic-functions-how-to-use-similar-and-copy-correctly/118569 "2024-08-25T06:10:55Z")

</div>

I’m working on making my functions generic to handle various types of arrays, including PyArray from PythonCall.jl. But I’ve encountered a problem with the similar function on PyArray types. Here’s a simple example that…

---

## [Compiling CUDA code with BinaryBuilder](https://discourse.julialang.org/t/compiling-cuda-code-with-binarybuilder/109638)

<div class="topic-metadata">

**Author:** [@PaulVirally](https://discourse.julialang.org/u/PaulVirally)\
**Replies:** 3\
**Last updated:** [August 25, 2024, 3:22am UTC](https://discourse.julialang.org/t/compiling-cuda-code-with-binarybuilder/109638 "2024-08-25T03:22:02Z")

</div>

I apologize in advance for my question, because I know it is not very specific, but at this point I do not know where else to go for help. I’ve been trying to compile some CUDA code using BinaryBuilder, but I haven’t be…

---

## [Why my VSCode extension is not in the latest version?](https://discourse.julialang.org/t/why-my-vscode-extension-is-not-in-the-latest-version/118564)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 12:11am UTC](https://discourse.julialang.org/t/why-my-vscode-extension-is-not-in-the-latest-version/118564 "2024-08-25T00:11:19Z")

</div>

I am on Julia v1.10.4 but the VSCode extension version is v1.79.2. I know other people already have version \>v1.100, and that is not pre-release. I sync my VSCode across two devices, one with Linux and another with Wind…

---

## [Warning installing OrdinaryDiffEq](https://discourse.julialang.org/t/warning-installing-ordinarydiffeq/118573)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [August 24, 2024, 9:58pm UTC](https://discourse.julialang.org/t/warning-installing-ordinarydiffeq/118573 "2024-08-24T21:58:06Z")

</div>

When installing OrdinaryDiffEq v6.88.0 I get the following warning: ┌ OrdinaryDiffEq │ WARNING: could not import OrdinaryDiffEqCore.strip\_interpolation into OrdinaryDiffEq Furthermore there seams to be a precompilatio…

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

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