# Latest

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

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

**Page:** 210

---

## [How to get doc string of function programmatically?](https://discourse.julialang.org/t/how-to-get-doc-string-of-function-programmatically/126513)

<div class="topic-metadata">

**Author:** [@miles-1](https://discourse.julialang.org/u/miles-1)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 12:05am UTC](https://discourse.julialang.org/t/how-to-get-doc-string-of-function-programmatically/126513 "2025-03-04T00:05:30Z")

</div>

I’m trying to make a function that will get the doc string of a given function. I am confused why there is an issue in the code below: using Markdown: plain function get\_doc\_string( f::Function )::String return…

---

## [DifferentialEquations.jl SavingCallback but dont build the whole solution](https://discourse.julialang.org/t/differentialequations-jl-savingcallback-but-dont-build-the-whole-solution/126430)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 10:39pm UTC](https://discourse.julialang.org/t/differentialequations-jl-savingcallback-but-dont-build-the-whole-solution/126430 "2025-03-03T22:39:43Z")

</div>

Hi all, is it possible to turn off the solution building, meaning to construct the whole object spanning (n\_timesteps, n\_statevector) ? I would like to minimize the strain on the RAM by saving the statevector at each ti…

---

## [Lux + Enzyme and Zygote + NeuralODE, segmentation fault](https://discourse.julialang.org/t/lux-enzyme-and-zygote-neuralode-segmentation-fault/123645)

<div class="topic-metadata">

**Author:** [@vleon1234](https://discourse.julialang.org/u/vleon1234)\
**Replies:** 6\
**Last updated:** [March 3, 2025, 10:26pm UTC](https://discourse.julialang.org/t/lux-enzyme-and-zygote-neuralode-segmentation-fault/123645 "2025-03-03T22:26:40Z")

</div>

Hi all, I’m using Julia v1.11.2, and installed the used packages on 12/6 (last Friday), so I assume I have the most recent package versions. I’ve been following along the SciML tutorials for Neural ordinary differentia…

---

## [Constructing callbacks on observed variables with symbolic indexing of an MTK model](https://discourse.julialang.org/t/constructing-callbacks-on-observed-variables-with-symbolic-indexing-of-an-mtk-model/126510)

<div class="topic-metadata">

**Author:** [@sass-jacob](https://discourse.julialang.org/u/sass-jacob)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 9:22pm UTC](https://discourse.julialang.org/t/constructing-callbacks-on-observed-variables-with-symbolic-indexing-of-an-mtk-model/126510 "2025-03-03T21:22:22Z")

</div>

I am trying to figure out how to use the Symbolic indexing with callback functions. There is already the continuous events support within MTK which is quite nice and has worked for this MWE. When the variable goes to obs…

---

## [Initialize variables in Bonmin](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500)

<div class="topic-metadata">

**Author:** [@BCC](https://discourse.julialang.org/u/BCC)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 9:07pm UTC](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500 "2025-03-03T21:07:15Z")

</div>

I have an MINLP model implemented in BONMIN. The model functions correctly; however, since it is applied to distribution power systems, its complexity increases as the number of nodes grows. For this reason, I have attem…

---

## [Build documentation with graphics locally or on github](https://discourse.julialang.org/t/build-documentation-with-graphics-locally-or-on-github/126509)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 8:58pm UTC](https://discourse.julialang.org/t/build-documentation-with-graphics-locally-or-on-github/126509 "2025-03-03T20:58:34Z")

</div>

One of my packages renders graphics into the documentation using @example. This works flawlessly on my local machine but causes errors during CI on github. Because the github servers are headless I need to load software…

---

## [Discrete Adjoint Sensitivity Analysis for ODES in DifferentialEquations.jl](https://discourse.julialang.org/t/discrete-adjoint-sensitivity-analysis-for-odes-in-differentialequations-jl/100007)

<div class="topic-metadata">

**Author:** [@Rui\_Martins](https://discourse.julialang.org/u/Rui_Martins)\
**Replies:** 7\
**Last updated:** [March 3, 2025, 8:10pm UTC](https://discourse.julialang.org/t/discrete-adjoint-sensitivity-analysis-for-odes-in-differentialequations-jl/100007 "2025-03-03T20:10:10Z")

</div>

Hello, I wanted to ask if the DifferentialEquations.jl package for Julia implements discrete adjoint sensitivity analysis for adaptive explicit Runge-Kutta methods. If so, where can I find some documentation describing…

---

## [How to insert nested/composite types into DuckDB from a DataFrame?](https://discourse.julialang.org/t/how-to-insert-nested-composite-types-into-duckdb-from-a-dataframe/126440)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 7:01pm UTC](https://discourse.julialang.org/t/how-to-insert-nested-composite-types-into-duckdb-from-a-dataframe/126440 "2025-03-03T19:01:04Z")

</div>

Hi all, it seems DuckDB can support composite types as in Redirecting… I want to know how to insert into columns with one of these types from a DataFrame. I’ve tried the Appender API and directly using prepared statemen…

---

## [Extracting the coefficient of a nonlinear term in a JuMP model](https://discourse.julialang.org/t/extracting-the-coefficient-of-a-nonlinear-term-in-a-jump-model/126438)

<div class="topic-metadata">

**Author:** [@handahye](https://discourse.julialang.org/u/handahye)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 6:20pm UTC](https://discourse.julialang.org/t/extracting-the-coefficient-of-a-nonlinear-term-in-a-jump-model/126438 "2025-03-03T18:20:49Z")

</div>

For a generic nonlinear constraint, is there a way for me to extract the coefficient of a nonlinear term (e.g., multilinear terms)? e.g., model = Model() @variable(model, x\[1:3\]) @constraint(model, (x\[1\] - (((3\* ((x\[2\]…

---

## [JumpProblems with moderately large numbers of jumps](https://discourse.julialang.org/t/jumpproblems-with-moderately-large-numbers-of-jumps/126503)

<div class="topic-metadata">

**Author:** [@jafoz](https://discourse.julialang.org/u/jafoz)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 6:17pm UTC](https://discourse.julialang.org/t/jumpproblems-with-moderately-large-numbers-of-jumps/126503 "2025-03-03T18:17:23Z")

</div>

I’m trying to create a JumpProblem which has ~ 100 variable rate jumps, and running into some issues where constructing the JumpProblem is taking a long time (~300s). This is a minimal example of the problem - the full …

---

## [\`mergewith\` but for \`NamedTuple\`?](https://discourse.julialang.org/t/mergewith-but-for-namedtuple/126507)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 5:59pm UTC](https://discourse.julialang.org/t/mergewith-but-for-namedtuple/126507 "2025-03-03T17:59:32Z")

</div>

julia\> a = (;x=3); b = (; x=4); julia\> a .+ b ERROR: ArgumentError: broadcasting over dictionaries and \`NamedTuple\`s is reserved Stacktrace: \[1\] broadcastable(::@NamedTuple{x::Int64}) @ Base.Broadcast ./broadcast.jl…

---

## [Can't find the method for conv(x, w, dims) in NNLib.jl src](https://discourse.julialang.org/t/cant-find-the-method-for-conv-x-w-dims-in-nnlib-jl-src/126480)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 7\
**Last updated:** [March 3, 2025, 5:49pm UTC](https://discourse.julialang.org/t/cant-find-the-method-for-conv-x-w-dims-in-nnlib-jl-src/126480 "2025-03-03T17:49:40Z")

</div>

I have done searches on the repo and looked through all of conv.jl within NNLib.jl. I can only find a method that takes 2 positional arguments and the rest named arguments. If you except the defaults for all of the nam…

---

## [PlotlyJS backend via Plots.jl very slow with images](https://discourse.julialang.org/t/plotlyjs-backend-via-plots-jl-very-slow-with-images/126506)

<div class="topic-metadata">

**Author:** [@alex180500](https://discourse.julialang.org/u/alex180500)\
**Replies:** 0\
**Last updated:** [March 3, 2025, 5:26pm UTC](https://discourse.julialang.org/t/plotlyjs-backend-via-plots-jl-very-slow-with-images/126506 "2025-03-03T17:26:39Z")

</div>

I was trying to do a plot with a basic image raster as a background when I stumbled into an issue, plotlyJS is painfully slow when using raster images, making it very hard to work with. Minimal example: using FileIO: l…

---

## [How to define \`:(==)\` on user-defined types for \`Set\` operations](https://discourse.julialang.org/t/how-to-define-on-user-defined-types-for-set-operations/126391)

<div class="topic-metadata">

**Author:** [@drbergman](https://discourse.julialang.org/u/drbergman)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 3:51pm UTC](https://discourse.julialang.org/t/how-to-define-on-user-defined-types-for-set-operations/126391 "2025-03-03T15:51:34Z")

</div>

I want to create a Set{MyType} object, but use a custom Base.:(==) to compare instances of MyType. It seems that the dispatch of in is not making use of Base.:(==) (or Base.isequal for that matter) despite what the docum…

---

## [How to do integration testing with HTTP.jl?](https://discourse.julialang.org/t/how-to-do-integration-testing-with-http-jl/21573)

<div class="topic-metadata">

**Author:** [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 1:57pm UTC](https://discourse.julialang.org/t/how-to-do-integration-testing-with-http-jl/21573 "2025-03-03T13:57:33Z")

</div>

I’m building out a package that wraps an API using HTTP.jl. One thing I’m having trouble with is figuring out how to do integration testing. In the past, I’ve used python requests and just used mocking with responses to …

---

## [Sorting in-place several Vector's simultaneously](https://discourse.julialang.org/t/sorting-in-place-several-vectors-simultaneously/125665)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 21\
**Last updated:** [March 3, 2025, 1:26pm UTC](https://discourse.julialang.org/t/sorting-in-place-several-vectors-simultaneously/125665 "2025-03-03T13:26:53Z")

</div>

I have several vectors (with different types of elements and lengths) whose entries I wish to sort in-place according to some function, like first or identity (lexicographical sort). For example: n=10^7; x=rand(1:n,n);…

---

## [Using parametric types for Complex{T}](https://discourse.julialang.org/t/using-parametric-types-for-complex-t/126489)

<div class="topic-metadata">

**Author:** [@Miroboru](https://discourse.julialang.org/u/Miroboru)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 12:10pm UTC](https://discourse.julialang.org/t/using-parametric-types-for-complex-t/126489 "2025-03-03T12:10:20Z")

</div>

I am writing some signal processing code, and I want to be able to call it for both real and complex signals, based on either Float32 or Float64. I make no use of the real and imaginary parts of the signals (the function…

---

## [Profiling CUDA kernels on the Jetson](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 11:13am UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120 "2025-03-03T11:13:57Z")

</div>

I am trying to profile a CUDA kernel (using CUDA.jl) on a Jetson AGX Orin DevKit. However, when I try to do so, for example by running using CUDA a = CUDA.rand(1024,1024,1024); CUDA.@profile sin.(a) I get the error ERR…

---

## [How to load a raster of a NC file with multiple monthly bands](https://discourse.julialang.org/t/how-to-load-a-raster-of-a-nc-file-with-multiple-monthly-bands/126487)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [March 3, 2025, 9:18am UTC](https://discourse.julialang.org/t/how-to-load-a-raster-of-a-nc-file-with-multiple-monthly-bands/126487 "2025-03-03T09:18:30Z")

</div>

I am using the chelsa\_cmip6 script to download climatic data, and the output is a NC file with the data embedded in monthly series, like in this (small) example of precipitations. How do I load it into a vector of raste…

---

## [GPU backend-agnostic way to create efficiently random number on the GPU](https://discourse.julialang.org/t/gpu-backend-agnostic-way-to-create-efficiently-random-number-on-the-gpu/126110)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 7:44am UTC](https://discourse.julialang.org/t/gpu-backend-agnostic-way-to-create-efficiently-random-number-on-the-gpu/126110 "2025-03-03T07:44:34Z")

</div>

I am trying to make my code Flux code portable across CUDA and AMDGPU. I would like to know if there is a GPU backend-agnostic way to create efficiently random number on the GPU? AMDGPU.randn is by far the fastest, but I…

---

## [Code snippet for multiGPU fft](https://discourse.julialang.org/t/code-snippet-for-multigpu-fft/26035)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 8\
**Last updated:** [March 3, 2025, 7:33am UTC](https://discourse.julialang.org/t/code-snippet-for-multigpu-fft/26035 "2025-03-03T07:33:25Z")

</div>

Hi, I would like to perform a 3d FFT on multi GPUs. It can be done in cuda as explained here. However the functions required do not seem ported in CuArrays. I was wondering if anybody has ever done this in Julia? A sec…

---

## [ArgParse visualization of argument type and default value](https://discourse.julialang.org/t/argparse-visualization-of-argument-type-and-default-value/126284)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 7:18am UTC](https://discourse.julialang.org/t/argparse-visualization-of-argument-type-and-default-value/126284 "2025-03-03T07:18:16Z")

</div>

Hello all, does anybody know if there is a way to customize the way ArgParse shows the default type and value for arguments where this is set? I’m particularly annoyed by the fact that e.g. for an UInt value the default…

---

## [Boyd is a Julia fan!](https://discourse.julialang.org/t/boyd-is-a-julia-fan/126317)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 6:51am UTC](https://discourse.julialang.org/t/boyd-is-a-julia-fan/126317 "2025-03-03T06:51:07Z")

</div>

Just saw this interesting talk by Stephen Boyd: It’s an older video but he says some very interesting stuff about Julia at 51:10 :slight\_smile: (entire talk is super interesting, highly recommend watching…

---

## [DifferentialEquations.jl: Exception thrown in callback of solve command that is handled by a try-catch block inside another solve command causes the outer solve command to fail](https://discourse.julialang.org/t/differentialequations-jl-exception-thrown-in-callback-of-solve-command-that-is-handled-by-a-try-catch-block-inside-another-solve-command-causes-the-outer-solve-command-to-fail/126466)

<div class="topic-metadata">

**Author:** [@novalex98](https://discourse.julialang.org/u/novalex98)\
**Replies:** 8\
**Last updated:** [March 3, 2025, 6:26am UTC](https://discourse.julialang.org/t/differentialequations-jl-exception-thrown-in-callback-of-solve-command-that-is-handled-by-a-try-catch-block-inside-another-solve-command-causes-the-outer-solve-command-to-fail/126466 "2025-03-03T06:26:39Z")

</div>

I observed this with the latest version of julia, Running on a Windows 11 PC. tl dr: I have an exception being thrown in a callback for a solve command that’s inside another solve command. I have a try-catch block to ha…

---

## [Profiling code reveals that most time is used calling 3 functions in task.jl](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 24\
**Last updated:** [March 3, 2025, 1:50am UTC](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751 "2025-03-03T01:50:37Z")

</div>

I profiled my call to a function and got the following plot: Those first 3 long horizontal lines are calls to task\_done\_hook, then wait, then poptaskref (in ascending order). This happens even for the 2nd or 3rd call…

---

## [\[MadNLPHSL\] Feature proposal: simplify installation with custom-compiled HSL library](https://discourse.julialang.org/t/madnlphsl-feature-proposal-simplify-installation-with-custom-compiled-hsl-library/126474)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 12:56am UTC](https://discourse.julialang.org/t/madnlphsl-feature-proposal-simplify-installation-with-custom-compiled-hsl-library/126474 "2025-03-03T00:56:07Z")

</div>

HSL\_jll.jl obtained from https://licences.stfc.ac.uk/products/Software/HSL/LibHSL requires free academic or purchased license and contains extended set of HSL libraries. However there is free license for individuals for …

---

## [PSA: detected non-constant types in an out-of-place ODE solve](https://discourse.julialang.org/t/psa-detected-non-constant-types-in-an-out-of-place-ode-solve/83077)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 6\
**Last updated:** [March 2, 2025, 11:42pm UTC](https://discourse.julialang.org/t/psa-detected-non-constant-types-in-an-out-of-place-ode-solve/83077 "2025-03-02T23:42:00Z")

</div>

If you suddenly started seeing an error message from an OrdinaryDiffEq.jl (DifferentialEquations.jl) solver like: Detected non-constant types in an out-of-place ODE solve, i.e. for \`du = f(u,p,t)\` we see \`typeof(du) !==…

---

## [ExaModels CPU backend acceleration](https://discourse.julialang.org/t/examodels-cpu-backend-acceleration/126153)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [March 2, 2025, 11:26pm UTC](https://discourse.julialang.org/t/examodels-cpu-backend-acceleration/126153 "2025-03-02T23:26:07Z")

</div>

I am trying to setup CPU() backend acceleration as described in ExaModels documentation but it is not working. The optimization runs but on single thread (System monitor detects no multiple threads usage) and with the sa…

---

## [Use break or continue statement with pmap](https://discourse.julialang.org/t/use-break-or-continue-statement-with-pmap/126425)

<div class="topic-metadata">

**Author:** [@Thomas\_Van\_Giel](https://discourse.julialang.org/u/Thomas_Van_Giel)\
**Replies:** 5\
**Last updated:** [March 2, 2025, 11:20pm UTC](https://discourse.julialang.org/t/use-break-or-continue-statement-with-pmap/126425 "2025-03-02T23:20:29Z")

</div>

Is there any alternative to continue or break when using a pmap from the distributed package? If I try the following minimal example: using Distributed as = \[i for i in 0:0.1:10\] status = pmap(as) do a if a \< 1 …

---

## [SciMLStructures Tunable includes u0 causing remake failures](https://discourse.julialang.org/t/scimlstructures-tunable-includes-u0-causing-remake-failures/126090)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 1\
**Last updated:** [March 2, 2025, 11:13pm UTC](https://discourse.julialang.org/t/scimlstructures-tunable-includes-u0-causing-remake-failures/126090 "2025-03-02T23:13:16Z")

</div>

I’ve been trying to understand how to use the Tunable parameter tag, but it seems to include initial conditions when returning a set of parameters as from the example in the ModelingToolkit.jl FAQ page. I’ve included an …

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

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