# Latest

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

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

**Page:** 220

---

## [Animation stopped working](https://discourse.julialang.org/t/animation-stopped-working/125861)

<div class="topic-metadata">

**Author:** [@Friso](https://discourse.julialang.org/u/Friso)\
**Replies:** 8\
**Last updated:** [February 14, 2025, 1:26pm UTC](https://discourse.julialang.org/t/animation-stopped-working/125861 "2025-02-14T13:26:40Z")

</div>

Hello, I wrote a code that worked yesterday, but today the animation part did not work any longer: using Timers tic() using ModelingToolkit, OrdinaryDiffEq, Parameters using Plots toc() # 🔹 Define struct for simulatio…

---

## [DimensionMismatch with MLJ](https://discourse.julialang.org/t/dimensionmismatch-with-mlj/125905)

<div class="topic-metadata">

**Author:** [@LucasMSpereira](https://discourse.julialang.org/u/LucasMSpereira)\
**Replies:** 0\
**Last updated:** [February 14, 2025, 1:17pm UTC](https://discourse.julialang.org/t/dimensionmismatch-with-mlj/125905 "2025-02-14T13:17:16Z")

</div>

I’m trying to use MultitargetLinearRegressor in MLJ.jl. This is the mwe: using MLJ, DataFrames multiLinReg = @load MultitargetLinearRegressor pkg = MultivariateStats # data inputs = DataFrame(rand(136, 11), :auto) prepa…

---

## [Avoid writing exponentially many methods for a function that may take vectors or matrices](https://discourse.julialang.org/t/avoid-writing-exponentially-many-methods-for-a-function-that-may-take-vectors-or-matrices/125895)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 1:14pm UTC](https://discourse.julialang.org/t/avoid-writing-exponentially-many-methods-for-a-function-that-may-take-vectors-or-matrices/125895 "2025-02-14T13:14:50Z")

</div>

Hi, in my current project I need to compute a function, say f, in N inputs, which all may be either vectors or matrices. In terms of interpretation: a vector is an ‘observation’, and a matrix is a set of observations, wh…

---

## [Use @example within expandable block in Documenter.jl](https://discourse.julialang.org/t/use-example-within-expandable-block-in-documenter-jl/106436)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 10:59am UTC](https://discourse.julialang.org/t/use-example-within-expandable-block-in-documenter-jl/106436 "2025-02-14T10:59:10Z")

</div>

I am using Documenter.jl and would like to place an @example block inside an expandable code block. Here is what I am trying to do ( sorry for the screenshot; the code does not properly display) : This does not work. …

---

## [Repository error in Julia 1.6.7](https://discourse.julialang.org/t/repository-error-in-julia-1-6-7/125890)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 5\
**Last updated:** [February 14, 2025, 9:41am UTC](https://discourse.julialang.org/t/repository-error-in-julia-1-6-7/125890 "2025-02-14T09:41:04Z")

</div>

(@v1.6) pkg\> up Updating registry at \`C:\\Users\\photo\\.julia\\registries\\General\` ERROR: GitError(Code:ENOTFOUND, Class:Repository, could not find repository from 'C:\\Users\\photo\\.julia\\registries\\General') Stacktrace:…

---

## [GLMakie, how to set viewing to include points 'outside' the 3D frame](https://discourse.julialang.org/t/glmakie-how-to-set-viewing-to-include-points-outside-the-3d-frame/125875)

<div class="topic-metadata">

**Author:** [@RobbesU](https://discourse.julialang.org/u/RobbesU)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 6:42am UTC](https://discourse.julialang.org/t/glmakie-how-to-set-viewing-to-include-points-outside-the-3d-frame/125875 "2025-02-14T06:42:34Z")

</div>

I suspect I’m missing something with the camera settings and/or clip planes, but I’ve been messing with them all day and cannot get it. In GLMakie v0.18 (held back by ModelingToolkitDesigner) I would see 3D points also…

---

## [Teaching Julia to Children](https://discourse.julialang.org/t/teaching-julia-to-children/125575)

<div class="topic-metadata">

**Author:** [@andreeco](https://discourse.julialang.org/u/andreeco)\
**Replies:** 29\
**Last updated:** [February 14, 2025, 8:29am UTC](https://discourse.julialang.org/t/teaching-julia-to-children/125575 "2025-02-14T08:29:55Z")

</div>

Hi, I’ve learned Julia some time ago by reading its documentation multiple times. It’s amazingly well-written! However, it is tailored for people with a university background. I want to teach programming to the next gen…

---

## [Vectors breaking when printing](https://discourse.julialang.org/t/vectors-breaking-when-printing/125889)

<div class="topic-metadata">

**Author:** [@Lachlan-Ikeguchi](https://discourse.julialang.org/u/Lachlan-Ikeguchi)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 7:10am UTC](https://discourse.julialang.org/t/vectors-breaking-when-printing/125889 "2025-02-14T07:10:10Z")

</div>

When I access an index in a vector, write to it, and read it back, it is correct. But when I print the vector, it explodes. The code is: struct card suit number end function generate\_deck(number\_of\_suits::UIn…

---

## [Could people suggest a few packages to study?](https://discourse.julialang.org/t/could-people-suggest-a-few-packages-to-study/125852)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 9\
**Last updated:** [February 14, 2025, 7:04am UTC](https://discourse.julialang.org/t/could-people-suggest-a-few-packages-to-study/125852 "2025-02-14T07:04:08Z")

</div>

I’m trying to assemble the beginnings of one, and I’d like to study a few non-trivial but not too huge examples before getting my code in shape for wider publication. Any suggestions?

---

## [Some thoughts and questions on smooth non-linear optimization, degrees of freedom, optimizers, MLPs](https://discourse.julialang.org/t/some-thoughts-and-questions-on-smooth-non-linear-optimization-degrees-of-freedom-optimizers-mlps/125892)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 0\
**Last updated:** [February 14, 2025, 7:02am UTC](https://discourse.julialang.org/t/some-thoughts-and-questions-on-smooth-non-linear-optimization-degrees-of-freedom-optimizers-mlps/125892 "2025-02-14T07:02:43Z")

</div>

Although I’d like to pose my thoughts and questions on a quite general group of optimization problems, my thoughts on these topics came from working on the following optimization problem: The second lens surface is a…

---

## [Possible fellowship opening in AI for transport (Paris)](https://discourse.julialang.org/t/possible-fellowship-opening-in-ai-for-transport-paris/125838)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 0\
**Last updated:** [February 12, 2025, 5:21pm UTC](https://discourse.julialang.org/t/possible-fellowship-opening-in-ai-for-transport-paris/125838 "2025-02-12T17:21:50Z")

</div>

Hi everyone, I am an assistant professor at École des Ponts, which is part of Institut Polytechnique de Paris. Thanks to funding from the local AI Cluster Hi! PARIS, we might soon recruit a researcher on a 4-year contra…

---

## [Unitful.jl and Mixing Ratios](https://discourse.julialang.org/t/unitful-jl-and-mixing-ratios/125883)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 1:53am UTC](https://discourse.julialang.org/t/unitful-jl-and-mixing-ratios/125883 "2025-02-14T01:53:07Z")

</div>

Hi! I have a question. In Climate Science, it is very common for units to be expressed in kg kg^-1 (e.g., specific humidity). However, in Unitful.jl this is taken to be (i.e., unitless), which while technically accura…

---

## [Gksqt: symbol lookup error: /lib/x86\_64-linux-gnu/libEGL\_mesa.so.0: undefined symbol: wl\_display\_create\_queue\_with\_name](https://discourse.julialang.org/t/gksqt-symbol-lookup-error-lib-x86-64-linux-gnu-libegl-mesa-so-0-undefined-symbol-wl-display-create-queue-with-name/124599)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 1:47am UTC](https://discourse.julialang.org/t/gksqt-symbol-lookup-error-lib-x86-64-linux-gnu-libegl-mesa-so-0-undefined-symbol-wl-display-create-queue-with-name/124599 "2025-02-14T01:47:50Z")

</div>

I can’t show any plots from the terminal: (@v1.11) pkg\> activate --temp Activating new project at \`/tmp/jl\_qLK6Cw\` (jl\_qLK6Cw) pkg\> add Plots Resolving package versions... Updating \`/tmp/jl\_qLK6Cw/Project.toml…

---

## [When does @inbounds increase performance?](https://discourse.julialang.org/t/when-does-inbounds-increase-performance/123827)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 14\
**Last updated:** [February 14, 2025, 1:00am UTC](https://discourse.julialang.org/t/when-does-inbounds-increase-performance/123827 "2025-02-14T01:00:44Z")

</div>

I am interested in making some optimizations in my software. I noticed many packages make use of the @inbounds macro, and the Julia manual mentions @inbounds in its performance tips section (Performance Tips · The Julia …

---

## [Terminate Nonlinearsolve when residual does not decrease](https://discourse.julialang.org/t/terminate-nonlinearsolve-when-residual-does-not-decrease/125732)

<div class="topic-metadata">

**Author:** [@pavaninguva](https://discourse.julialang.org/u/pavaninguva)\
**Replies:** 4\
**Last updated:** [February 13, 2025, 11:45pm UTC](https://discourse.julialang.org/t/terminate-nonlinearsolve-when-residual-does-not-decrease/125732 "2025-02-13T23:45:39Z")

</div>

Hi! I am trying to terminate the solution of a nonlinear equation system when the residual does not decrease with successive iterations. I have tried two approaches: Trying to access the residuals during each iteratio…

---

## [Snippets in VS Code test framework](https://discourse.julialang.org/t/snippets-in-vs-code-test-framework/125880)

<div class="topic-metadata">

**Author:** [@franckgaga](https://discourse.julialang.org/u/franckgaga)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 11:24pm UTC](https://discourse.julialang.org/t/snippets-in-vs-code-test-framework/125880 "2025-02-13T23:24:43Z")

</div>

Hi, I’m trying to update my package to use the new VS Code test framework. In my runtest.jl file, I have: @testsnippet MySnippet begin A = \[1 2; 2 4\] end @testitem "LinModel construction" setup=\[MySnippet\] begin …

---

## [Discussion Towards: Incremental Coding/ Native Query Language in Julia](https://discourse.julialang.org/t/discussion-towards-incremental-coding-native-query-language-in-julia/125873)

<div class="topic-metadata">

**Author:** [@GeekyPeas](https://discourse.julialang.org/u/GeekyPeas)\
**Replies:** 5\
**Last updated:** [February 13, 2025, 8:38pm UTC](https://discourse.julialang.org/t/discussion-towards-incremental-coding-native-query-language-in-julia/125873 "2025-02-13T20:38:07Z")

</div>

WARNING: Visionary/ Feeling inspired. Call for advice, suggestions on how to proceed. Summary I imagine to be able to declare only the type of a variable and not assign it any value. This might be useful as It can act a…

---

## [Generically Wrapping Fortran Library](https://discourse.julialang.org/t/generically-wrapping-fortran-library/125877)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 7:58pm UTC](https://discourse.julialang.org/t/generically-wrapping-fortran-library/125877 "2025-02-13T19:58:00Z")

</div>

I am interested in wrapping a Fortran library in Julia, but I find the name mangling a bit problematic for deploying to HPC environments where people may want to use a custom binary. The docs say: “so to call a Fortran …

---

## [Where to put export statements (Sub-Module Pattern) in distributed code?](https://discourse.julialang.org/t/where-to-put-export-statements-sub-module-pattern-in-distributed-code/125871)

<div class="topic-metadata">

**Author:** [@gwr](https://discourse.julialang.org/u/gwr)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 7:26pm UTC](https://discourse.julialang.org/t/where-to-put-export-statements-sub-module-pattern-in-distributed-code/125871 "2025-02-13T19:26:42Z")

</div>

I am working through Tom Kwong’s book "Hands-On Design Patterns and Best Practices with Julia." In Chapter 7 on Maintainability Patterns, Tom talks about organizing code (sub-module pattern) and gives an example where a …

---

## [JuMP-dev 2025](https://discourse.julialang.org/t/jump-dev-2025/121176)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 7:22pm UTC](https://discourse.julialang.org/t/jump-dev-2025/121176 "2025-02-13T19:22:02Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2025 will take place November 17-20, 2025 in Auckland, New Zealand. If you’ve ever wanted a conference excuse for a summer holiday in Aotearoa New Zealand, now is y…

---

## [Observable for holding any Univariate Distribution](https://discourse.julialang.org/t/observable-for-holding-any-univariate-distribution/125876)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 7:19pm UTC](https://discourse.julialang.org/t/observable-for-holding-any-univariate-distribution/125876 "2025-02-13T19:19:48Z")

</div>

How would one create an Observable to hold any univariate distribution? If I do, using Interact, Distributions h = Observable(Normal()) The observable only accepts Normals, so the following fails: h\[\] = Gamma()

---

## [A brain-storm on precompiled Julia](https://discourse.julialang.org/t/a-brain-storm-on-precompiled-julia/125874)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 6:29pm UTC](https://discourse.julialang.org/t/a-brain-storm-on-precompiled-julia/125874 "2025-02-13T18:29:05Z")

</div>

Decades ago, I had a card in my Apple \]\[+ called “Snapshot” (DarkStar Systems), that allowed you to “copy” (er, pirate) software by saving a snapshot of memory to disk. It’s the future: Let’s imagine that you have devel…

---

## [Julia Opencv memory leak](https://discourse.julialang.org/t/julia-opencv-memory-leak/125839)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 8\
**Last updated:** [February 13, 2025, 6:11pm UTC](https://discourse.julialang.org/t/julia-opencv-memory-leak/125839 "2025-02-13T18:11:31Z")

</div>

Hello. Good afternoon. Im using OpenCV.jl and Im facing a memory leak using video capture in this example. May someone help? julia 1.11.3 Win x64 using OpenCV cap = OpenCV.VideoCapture(0) if !OpenCV.isOpene…

---

## [Setting axis properties in a Makie recipe](https://discourse.julialang.org/t/setting-axis-properties-in-a-makie-recipe/125863)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 5:11pm UTC](https://discourse.julialang.org/t/setting-axis-properties-in-a-makie-recipe/125863 "2025-02-13T17:11:40Z")

</div>

I’ve spent a lot of time figuring out how to set axis properties in a Makie recipe. I’m convinced this is not possible. Is this the case?

---

## [Can this performance be improved?](https://discourse.julialang.org/t/can-this-performance-be-improved/125768)

<div class="topic-metadata">

**Author:** [@ilanggear](https://discourse.julialang.org/u/ilanggear)\
**Replies:** 10\
**Last updated:** [February 13, 2025, 5:05pm UTC](https://discourse.julialang.org/t/can-this-performance-be-improved/125768 "2025-02-13T17:05:59Z")

</div>

I have used ProfileView.@profview to generate the attached flame graph. I have read and re-read the documentation, but I’m still not confident of my interpretation, or whether there is something I can improve. The top l…

---

## [Can I run \`include("file")\` for a file stored in a loaded package](https://discourse.julialang.org/t/can-i-run-include-file-for-a-file-stored-in-a-loaded-package/125866)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 3:08pm UTC](https://discourse.julialang.org/t/can-i-run-include-file-for-a-file-stored-in-a-loaded-package/125866 "2025-02-13T15:08:34Z")

</div>

let’s say I have a package, which in its main directory contain a file “some\_file.jl”. if I run using MyPackage is it possible to somehow run include("MyPackage.some\_file.jl") I.e. run some file contained in the pack…

---

## [Help understand allocation in small custom struct](https://discourse.julialang.org/t/help-understand-allocation-in-small-custom-struct/125865)

<div class="topic-metadata">

**Author:** [@Giorgos\_Vretinaris](https://discourse.julialang.org/u/Giorgos_Vretinaris)\
**Replies:** 4\
**Last updated:** [February 13, 2025, 2:19pm UTC](https://discourse.julialang.org/t/help-understand-allocation-in-small-custom-struct/125865 "2025-02-13T14:19:05Z")

</div>

I have the following small custom structs that one of which is recursive in nature abstract type TTNNode{T} end struct LeafNode{T,A\<:AbstractMatrix{T}} \<: TTNNode{T} U::A # Basis matrix U\_ℓ ∈ ℝ^{n\_ℓ × r\_ℓ} …

---

## [Pvalue for Spearman Correlation in julia](https://discourse.julialang.org/t/pvalue-for-spearman-correlation-in-julia/125824)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [February 13, 2025, 2:02pm UTC](https://discourse.julialang.org/t/pvalue-for-spearman-correlation-in-julia/125824 "2025-02-13T14:02:12Z")

</div>

How to find correlation pvalue in case of spearman method? For Pearson, it’s straightforward with function CorrelationTest() but I couldn’t find something similar for spearman.

---

## [Two years experience in biostatistics and data management for NCA using Julia](https://discourse.julialang.org/t/two-years-experience-in-biostatistics-and-data-management-for-nca-using-julia/96345)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 9\
**Last updated:** [February 13, 2025, 1:57pm UTC](https://discourse.julialang.org/t/two-years-experience-in-biostatistics-and-data-management-for-nca-using-julia/96345 "2025-02-13T13:57:08Z")

</div>

Hi! I’m working on bioequivalence and clinical trials and try to include Julia in my pipeline since 2 years. And now want to tell what problems I had and what problems exist now. Usually I used R project, IBM SPSS and …

---

## [OrdinaryDiffEq vcat to make du](https://discourse.julialang.org/t/ordinarydiffeq-vcat-to-make-du/125856)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 1\
**Last updated:** [February 13, 2025, 1:09pm UTC](https://discourse.julialang.org/t/ordinarydiffeq-vcat-to-make-du/125856 "2025-02-13T13:09:09Z")

</div>

Hello, In OrdinaryDiffEq.jl if we define the function as follows: function f(du,u,p,t) x1 = u\[1\] x2 = u\[2\] dx1 = x2 dx2 = -x1 du = vcat(dx1,dx2) return du end the ODE solver fails to solve corr…

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

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