# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=46

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

**Page:** 47

---

## [How to automatically click a certain button on the computer window?](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [August 12, 2025, 6:42am UTC](https://discourse.julialang.org/t/how-to-automatically-click-a-certain-button-on-the-computer-window/130192 "2025-08-12T06:42:01Z")

</div>

Hello everyone! I want to click a certain button in a certain window on the computer screen at some future time point. I think it needs to first identify the position of the button based on its title, then click it at th…

---

## [@allocated does not work on Julia 1.12rc1](https://discourse.julialang.org/t/allocated-does-not-work-on-julia-1-12rc1/131553)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 13\
**Last updated:** [August 13, 2025, 5:35am UTC](https://discourse.julialang.org/t/allocated-does-not-work-on-julia-1-12rc1/131553 "2025-08-13T05:35:24Z")

</div>

Example: julia\> @allocated x=rand(3) 80 julia\> x ERROR: UndefVarError: \`x\` not defined in \`Main\` Suggestion: check for spelling errors or missing imports. Works fine on 1.11. Any known workaround?

---

## [How to store \_parameteric\_ functions with JLD2?](https://discourse.julialang.org/t/how-to-store-parameteric-functions-with-jld2/131552)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [August 13, 2025, 5:46am UTC](https://discourse.julialang.org/t/how-to-store-parameteric-functions-with-jld2/131552 "2025-08-13T05:46:03Z")

</div>

I have a struct (part of a ML model in the real case) where one field is a function. For the function itself, as the function is provided by the package, I have no issues saving and loading it back. However, my problem…

---

## [Franklin: inserting animations and plots in pages?](https://discourse.julialang.org/t/franklin-inserting-animations-and-plots-in-pages/131545)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 4\
**Last updated:** [August 12, 2025, 8:34pm UTC](https://discourse.julialang.org/t/franklin-inserting-animations-and-plots-in-pages/131545 "2025-08-12T20:34:26Z")

</div>

How do I insert animation mp4s from my Julia code blocks into a webpage on my Franklin.jl-powered website? I have tried doing this by having the codeblock: \`\`\`julia:./code/heatEquation using FFTW, StaticArrays, Plots, I…

---

## [DiffEqPhysics restricts ForwardDiff version](https://discourse.julialang.org/t/diffeqphysics-restricts-forwarddiff-version/131565)

<div class="topic-metadata">

**Author:** [@liamh](https://discourse.julialang.org/u/liamh)\
**Replies:** 2\
**Last updated:** [August 12, 2025, 6:01pm UTC](https://discourse.julialang.org/t/diffeqphysics-restricts-forwarddiff-version/131565 "2025-08-12T18:01:26Z")

</div>

I am unable to load a package I am writing because DiffEqPhysics restricts the version of ForwardDiff to 0.10.38, but 1.0.1 is installed. Is there a reason for this restriction, and is it possible to override it? Julia …

---

## [Break out of Infiltrator](https://discourse.julialang.org/t/break-out-of-infiltrator/124134)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 5\
**Last updated:** [August 12, 2025, 3:41pm UTC](https://discourse.julialang.org/t/break-out-of-infiltrator/124134 "2025-08-12T15:41:51Z")

</div>

Is there some way to break completely out of Infiltrator’s @infiltrate mode and return to the REPL, not executing any further code? Just like a “stop” button would in most IDEs’ debugging modes. I see the @exit macro, …

---

## [Not plots with plotly, apple silicon and VSCode](https://discourse.julialang.org/t/not-plots-with-plotly-apple-silicon-and-vscode/131550)

<div class="topic-metadata">

**Author:** [@romain-chiap](https://discourse.julialang.org/u/romain-chiap)\
**Replies:** 2\
**Last updated:** [August 12, 2025, 3:15pm UTC](https://discourse.julialang.org/t/not-plots-with-plotly-apple-silicon-and-vscode/131550 "2025-08-12T15:15:56Z")

</div>

Hello dears, I just changed my macos intel for a macos M4 and I’m trying to run my jupyter notebook plotting scripts. Here is a snippet of my code using Plots BG\_COLOR = RGB(0.2, 0.2, 0.2); # background color of the p…

---

## [Broad phase Collision detection: Bitboard approach](https://discourse.julialang.org/t/broad-phase-collision-detection-bitboard-approach/131512)

<div class="topic-metadata">

**Author:** [@Gesee](https://discourse.julialang.org/u/Gesee)\
**Replies:** 30\
**Last updated:** [August 12, 2025, 12:45pm UTC](https://discourse.julialang.org/t/broad-phase-collision-detection-bitboard-approach/131512 "2025-08-12T12:45:48Z")

</div>

I have recently tried a new approach to detect potential collisions in a 2D space, just for the broad phase (In this phase we just try to quickly reduce the number of potential collision to check) so I have come up with …

---

## [Matrix with zero columns multiplied by vector with zero elements yields vector](https://discourse.julialang.org/t/matrix-with-zero-columns-multiplied-by-vector-with-zero-elements-yields-vector/131518)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 11\
**Last updated:** [August 12, 2025, 12:29pm UTC](https://discourse.julialang.org/t/matrix-with-zero-columns-multiplied-by-vector-with-zero-elements-yields-vector/131518 "2025-08-12T12:29:06Z")

</div>

What is the reason behind this behavior? Type stability? I had expected this to either yield a two by zero matrix or throw an error. julia\> A = zeros( 2, 0 ) 2×0 Matrix{Float64} julia\> B = zeros( 0, ) Float64\[\] juli…

---

## [Segmentation fault over repeated sparse Cholesky factorizations](https://discourse.julialang.org/t/segmentation-fault-over-repeated-sparse-cholesky-factorizations/131499)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [August 12, 2025, 9:34am UTC](https://discourse.julialang.org/t/segmentation-fault-over-repeated-sparse-cholesky-factorizations/131499 "2025-08-12T09:34:28Z")

</div>

This is related to this post but I manage to isolate the problem quite a bit. I have a sparse symmetric matrix Kee. I found that if I repeatedly factorize this matrix in a for loop (never running out of memory) at some …

---

## [How to include javascript code in HTML blocks with Franklin.jl?](https://discourse.julialang.org/t/how-to-include-javascript-code-in-html-blocks-with-franklin-jl/131316)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 2\
**Last updated:** [August 12, 2025, 8:30am UTC](https://discourse.julialang.org/t/how-to-include-javascript-code-in-html-blocks-with-franklin-jl/131316 "2025-08-12T08:30:54Z")

</div>

Hello, I’m using Franklin to build web pages and sometimes I have to insert some HTML/javascript sections in the page. WIth pure HTML content there are no problems: I just enclose everything around the ~~~. However, when…

---

## [From Rust to Julia](https://discourse.julialang.org/t/from-rust-to-julia/130939)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 13\
**Last updated:** [August 12, 2025, 7:40am UTC](https://discourse.julialang.org/t/from-rust-to-julia/130939 "2025-08-12T07:40:17Z")

</div>

I would like to create a Julia version of the following library: GitHub - jaimeliew1/Mann.rs: A Mann turbulence generator for Python written in Rust Questions: how can I wrap Rust code in Julia? is it difficult to tra…

---

## [Viewing profiling info with signal-triggered profile](https://discourse.julialang.org/t/viewing-profiling-info-with-signal-triggered-profile/131541)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 0\
**Last updated:** [August 11, 2025, 10:39pm UTC](https://discourse.julialang.org/t/viewing-profiling-info-with-signal-triggered-profile/131541 "2025-08-11T22:39:41Z")

</div>

When capturing profiling data as described in Profiling - Triggered During Execution, is there a way to view the results in VS Code’s normal flame graph view? I haven’t found any good way to comb through the results, I …

---

## [Lux flexible architecture initialization plus setting parameters to Float64](https://discourse.julialang.org/t/lux-flexible-architecture-initialization-plus-setting-parameters-to-float64/131530)

<div class="topic-metadata">

**Author:** [@dameka](https://discourse.julialang.org/u/dameka)\
**Replies:** 2\
**Last updated:** [August 11, 2025, 7:03pm UTC](https://discourse.julialang.org/t/lux-flexible-architecture-initialization-plus-setting-parameters-to-float64/131530 "2025-08-11T19:03:33Z")

</div>

I’m switching to Lux for my ML problems, and I need advice on a couple basic things. How can I initialize my network in a flexible way so that the number of layers and nodes is an argument? How can I force the network …

---

## [Mkpath behaves differently on Julia 1.12-rc1](https://discourse.julialang.org/t/mkpath-behaves-differently-on-julia-1-12-rc1/131527)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [August 11, 2025, 10:35am UTC](https://discourse.julialang.org/t/mkpath-behaves-differently-on-julia-1-12-rc1/131527 "2025-08-11T10:35:19Z")

</div>

Julia 1.11: cd(mktempdir()) mkpath("uwe/") Output: "uwe" Julia 1.12-rc1: cd(mktempdir()) mkpath("uwe/") Output: "uwe/" This difference causes my unit tests to fail. Is this a bug, or just undefined behaviour? Thi…

---

## [FunSQL "in" statement?](https://discourse.julialang.org/t/funsql-in-statement/122822)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 6\
**Last updated:** [August 11, 2025, 4:49am UTC](https://discourse.julialang.org/t/funsql-in-statement/122822 "2025-08-11T04:49:11Z")

</div>

In FunSQL, is there a way to use in statements with user-provided lists? E.g. I want to recreate the query select \* from my\_table where id in (1, 2). I’ve tried several approaches, such as q = From(:my\_table) |\> Where(Fu…

---

## [Testing is single threaded?](https://discourse.julialang.org/t/testing-is-single-threaded/131483)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 2\
**Last updated:** [August 10, 2025, 2:25pm UTC](https://discourse.julialang.org/t/testing-is-single-threaded/131483 "2025-08-10T14:25:42Z")

</div>

Is testing single threaded? I just tried \]test DataFrames.jl and it’s been going for what feels like 20 minutes, but as far as I can tell it uses 1 single core? Surely testing is trivially multi-threaded?

---

## [BinaryBuilder on Yggdrasil: cmake build fails on Windows; meson build fails on MacOs](https://discourse.julialang.org/t/binarybuilder-on-yggdrasil-cmake-build-fails-on-windows-meson-build-fails-on-macos/131502)

<div class="topic-metadata">

**Author:** [@HugoMVale](https://discourse.julialang.org/u/HugoMVale)\
**Replies:** 2\
**Last updated:** [August 10, 2025, 10:56am UTC](https://discourse.julialang.org/t/binarybuilder-on-yggdrasil-cmake-build-fails-on-windows-meson-build-fails-on-macos/131502 "2025-08-10T10:56:22Z")

</div>

I am trying to build a binary pkg using BinaryBuilder and Yggdrasil. My PR can be found here. odrpack: new package for Odrpack.jl by HugoMVale · Pull Request #11806 · JuliaPackaging/Yggdrasil When I build the library …

---

## [Seeking advice on asynchronous programming problem](https://discourse.julialang.org/t/seeking-advice-on-asynchronous-programming-problem/131464)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 4\
**Last updated:** [August 10, 2025, 5:38am UTC](https://discourse.julialang.org/t/seeking-advice-on-asynchronous-programming-problem/131464 "2025-08-10T05:38:00Z")

</div>

I’m new to asynchronous programming and have a use case that I’m not sure how to express in terms of Julia concepts. I’d greatly appreciate any suggestions others may have to offer. I have a task A, that consists of con…

---

## [Reactant + Lux LLama on TPUs](https://discourse.julialang.org/t/reactant-lux-llama-on-tpus/131492)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 0\
**Last updated:** [August 9, 2025, 3:03pm UTC](https://discourse.julialang.org/t/reactant-lux-llama-on-tpus/131492 "2025-08-09T15:03:53Z")

</div>

Just wanted to share how to use Reactant+Lux on TPUs for a LLama like transformer model, it seems really nice to write even though its hard to adapt to the compact way of writting it does feel a lot better after. Still c…

---

## [Segmentation Fault working with complex sparse arrays](https://discourse.julialang.org/t/segmentation-fault-working-with-complex-sparse-arrays/131493)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [August 9, 2025, 4:51pm UTC](https://discourse.julialang.org/t/segmentation-fault-working-with-complex-sparse-arrays/131493 "2025-08-09T16:51:47Z")

</div>

I am running a code that basically has to do a Craig-Bampton transformation (compute a subset of eigenvalues and eigenvectors) repeteadly for several complex matrices. The matrices that go inside the reduction are obtain…

---

## [Sysimage + vscode](https://discourse.julialang.org/t/sysimage-vscode/131487)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 0\
**Last updated:** [August 9, 2025, 11:49am UTC](https://discourse.julialang.org/t/sysimage-vscode/131487 "2025-08-09T11:49:12Z")

</div>

Are there any known problems specific to running VS code with your own sysimage? I have a “research” environment that I use a lot. Running the includes takes a long time, and then compiling functions for the first time …

---

## [Help with optimising a simple function](https://discourse.julialang.org/t/help-with-optimising-a-simple-function/131459)

<div class="topic-metadata">

**Author:** [@Tbl](https://discourse.julialang.org/u/Tbl)\
**Replies:** 21\
**Last updated:** [August 8, 2025, 6:56pm UTC](https://discourse.julialang.org/t/help-with-optimising-a-simple-function/131459 "2025-08-08T18:56:18Z")

</div>

Recently my colleagues asked me to translate my code for estimation to Python. Making it run with any reasonable speed was truly a pain and advertisement for Julia, but at the end it became few times faster with numba. I…

---

## [Access to Data folders in JuliaHub](https://discourse.julialang.org/t/access-to-data-folders-in-juliahub/131477)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 5:33pm UTC](https://discourse.julialang.org/t/access-to-data-folders-in-juliahub/131477 "2025-08-08T17:33:46Z")

</div>

Have just learned here on how to open an image file stored in JuliaHub/Data with the aid of DataSets package. Alternatively, I wonder if creating a shell symlink in the project’s folder which points out to Data’s datase…

---

## [Hydra.cc config management alternative in Julia](https://discourse.julialang.org/t/hydra-cc-config-management-alternative-in-julia/131476)

<div class="topic-metadata">

**Author:** [@aadam](https://discourse.julialang.org/u/aadam)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 5:03pm UTC](https://discourse.julialang.org/t/hydra-cc-config-management-alternative-in-julia/131476 "2025-08-08T17:03:32Z")

</div>

Hi, I heavily use Hydra.cc package in Python for creating highly configurable codebases that I can easily modify using command line, python code, or yaml files. This makes it extremely configurable, and I can try out dif…

---

## [Read an image in JuliaHub with DataSets](https://discourse.julialang.org/t/read-an-image-in-juliahub-with-datasets/131475)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 2:31pm UTC](https://discourse.julialang.org/t/read-an-image-in-juliahub-with-datasets/131475 "2025-08-08T14:31:34Z")

</div>

Cheers, I have a number of images in a folder, stored in the Data area in JuliaHub. Apparently, package DataSets is used to read an image in it. For instance: using DataSets using Images path = "ciro-rosa-583/figs" tre…

---

## [How to deal with threadid() \<= nthreads() being not true in 1.12?](https://discourse.julialang.org/t/how-to-deal-with-threadid-nthreads-being-not-true-in-1-12/131473)

<div class="topic-metadata">

**Author:** [@sumiya11](https://discourse.julialang.org/u/sumiya11)\
**Replies:** 1\
**Last updated:** [August 8, 2025, 10:12am UTC](https://discourse.julialang.org/t/how-to-deal-with-threadid-nthreads-being-not-true-in-1-12/131473 "2025-08-08T10:12:50Z")

</div>

Hello, I recently found out that this assertion fires on 1.12.0-rc1 (seems fine on 1.11.6): using Base.Threads @threads for i in 1:100 @assert threadid() \<= nthreads() end Some of my code has @threads :static and …

---

## [Looking for custom instructions / settings for coding agents](https://discourse.julialang.org/t/looking-for-custom-instructions-settings-for-coding-agents/131471)

<div class="topic-metadata">

**Author:** [@njacki](https://discourse.julialang.org/u/njacki)\
**Replies:** 0\
**Last updated:** [August 8, 2025, 10:00am UTC](https://discourse.julialang.org/t/looking-for-custom-instructions-settings-for-coding-agents/131471 "2025-08-08T10:00:06Z")

</div>

Hi everyone, I recently did give a try to a coding agent, seeing the fuzz about it everywhere finally convinced me to click on it. I briefly tested it for scientific code translation from Fortran but already face some i…

---

## [Set ylims in marginplot](https://discourse.julialang.org/t/set-ylims-in-marginplot/131469)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 3\
**Last updated:** [August 8, 2025, 9:31am UTC](https://discourse.julialang.org/t/set-ylims-in-marginplot/131469 "2025-08-08T09:31:39Z")

</div>

How do I set y limits for marginplot (or bodeplot)? ylims just sets the limits for both the margin and the phase the same, which is rarely helpful. There is ylimsphase, which only works for bodeplot, not marginplot, and …

---

## [Get Numba LLVM IR differentiated in Julia using Enzyme.jl](https://discourse.julialang.org/t/get-numba-llvm-ir-differentiated-in-julia-using-enzyme-jl/131255)

<div class="topic-metadata">

**Author:** [@ymardoukhi](https://discourse.julialang.org/u/ymardoukhi)\
**Replies:** 15\
**Last updated:** [August 8, 2025, 9:12am UTC](https://discourse.julialang.org/t/get-numba-llvm-ir-differentiated-in-julia-using-enzyme-jl/131255 "2025-08-08T09:12:25Z")

</div>

I have seen scarce material regarding Numba and Enzyme, e.g. this Numba GitHub issue or this talk at Enzyme conference 2023. I have this simple cosine function in Python, wrapped around the numba.@cfunc decorator. From …

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=45)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=47)
