# Latest

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

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

**Page:** 491

---

## [Makie Label](https://discourse.julialang.org/t/makie-label/109721)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [February 7, 2024, 7:23am UTC](https://discourse.julialang.org/t/makie-label/109721 "2024-02-07T07:23:57Z")

</div>

Is this supposed to work? julia\> let f = Figure() ax = Axis(f\[1,1\]) Label(ax, "hello") f end ERROR: MethodError: no method matching \_block(::Type{Label}, ::Axis; text::String) Cl…

---

## [Problem loading Distributions package in Pluto](https://discourse.julialang.org/t/problem-loading-distributions-package-in-pluto/109814)

<div class="topic-metadata">

**Author:** [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Replies:** 2\
**Last updated:** [February 7, 2024, 6:43am UTC](https://discourse.julialang.org/t/problem-loading-distributions-package-in-pluto/109814 "2024-02-07T06:43:25Z")

</div>

I am using Pluto for assigning homework, and one of my students is unable to load the Distributions package. The error they get after running “using Distributions” is below. Subsequently, the functions from the Distribut…

---

## [Non-numeric Dual{ForwardDiff.Tag...} output when solving DAE](https://discourse.julialang.org/t/non-numeric-dual-forwarddiff-tag-output-when-solving-dae/109589)

<div class="topic-metadata">

**Author:** [@David\_F](https://discourse.julialang.org/u/David_F)\
**Replies:** 12\
**Last updated:** [February 7, 2024, 6:28am UTC](https://discourse.julialang.org/t/non-numeric-dual-forwarddiff-tag-output-when-solving-dae/109589 "2024-02-07T06:28:41Z")

</div>

While solving a system of DAE using the integrator interface, I face a weird behavior with derivatives of the solution vector. At random steps, the resultant value (da here) is returned as non-numeric but a “Dual”. Each …

---

## [De-bugging method](https://discourse.julialang.org/t/de-bugging-method/109852)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 5:30am UTC](https://discourse.julialang.org/t/de-bugging-method/109852 "2024-02-07T05:30:31Z")

</div>

I like to execute code line by line with CTRL/SHIFT +Enter (rather than F5 Debug) I often begin a function with two lines of the form global X = (; function\_inputs ) (; function\_inputs) = X So if an error occurs I…

---

## [Eval() fails inside a function when it works stand alone](https://discourse.julialang.org/t/eval-fails-inside-a-function-when-it-works-stand-alone/109846)

<div class="topic-metadata">

**Author:** [@Paul\_Warburton](https://discourse.julialang.org/u/Paul_Warburton)\
**Replies:** 6\
**Last updated:** [February 7, 2024, 4:15am UTC](https://discourse.julialang.org/t/eval-fails-inside-a-function-when-it-works-stand-alone/109846 "2024-02-07T04:15:35Z")

</div>

I have this code, which works just fine outside of the function but when I enclose it inside the function it fails at the eval() command with the following hard to decipher message. I have looked at other similar proble…

---

## [Type vs tuple that contains a type, Type vs DataType](https://discourse.julialang.org/t/type-vs-tuple-that-contains-a-type-type-vs-datatype/109850)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 3:11am UTC](https://discourse.julialang.org/t/type-vs-tuple-that-contains-a-type-type-vs-datatype/109850 "2024-02-07T03:11:52Z")

</div>

Is there a rationale for the failure here: julia\> Val(Int) Val{Int64}() julia\> Val((Int,)) ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Tuple{DataType} Stacktrace: \[1\] Val(x::Tuple{DataT…

---

## [Interactive visualization of fundamental concepts in calculus/linear algebra](https://discourse.julialang.org/t/interactive-visualization-of-fundamental-concepts-in-calculus-linear-algebra/90407)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 8\
**Last updated:** [February 7, 2024, 12:54am UTC](https://discourse.julialang.org/t/interactive-visualization-of-fundamental-concepts-in-calculus-linear-algebra/90407 "2024-02-07T00:54:11Z")

</div>

Is there any publicly available material suitable for in-class teaching of mathematical principles that provides interactive visualization of concepts such as eigenvectors, matrix rotation, extremal points of function gr…

---

## [Mybinder.org broken for Julia repos?](https://discourse.julialang.org/t/mybinder-org-broken-for-julia-repos/108743)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 18\
**Last updated:** [February 6, 2024, 11:59pm UTC](https://discourse.julialang.org/t/mybinder-org-broken-for-julia-repos/108743 "2024-02-06T23:59:47Z")

</div>

I’ve been using GitHub - mitmath/binder-env: Binder environments for MIT math courses for several of my courses (as a backup for the small number of students who have trouble installing Julia on their own computers), and…

---

## [Trouble with \`append!\`](https://discourse.julialang.org/t/trouble-with-append/109706)

<div class="topic-metadata">

**Author:** [@scheinerman](https://discourse.julialang.org/u/scheinerman)\
**Replies:** 7\
**Last updated:** [February 6, 2024, 11:53pm UTC](https://discourse.julialang.org/t/trouble-with-append/109706 "2024-02-06T23:53:26Z")

</div>

I often want to add an item to the end of a list (i.e., to a Vector). This works fine: julia\> x = \[1,2,3,4\] 4-element Vector{Int64}: 1 2 3 4 julia\> append!(x,5) 5-element Vector{Int64}: 1 2 3 4 5 But this doe…

---

## [Vectorize Julia JuMP code](https://discourse.julialang.org/t/vectorize-julia-jump-code/109844)

<div class="topic-metadata">

**Author:** [@sati](https://discourse.julialang.org/u/sati)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 11:39pm UTC](https://discourse.julialang.org/t/vectorize-julia-jump-code/109844 "2024-02-06T23:39:38Z")

</div>

Hi all, I have the code below. How can we write this code in a vectorized way? using JuMP using SparseArrays model = Model() D = \[1,2,3\] L = \[1,2,3,4,5\] line2dem = sparse(\[1, 2, 3\], \[1, 2, 3\], \[1, 1, 1\], 8, 3) lineIRe…

---

## [Handling concurrent writes to websocket](https://discourse.julialang.org/t/handling-concurrent-writes-to-websocket/109843)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 11:16pm UTC](https://discourse.julialang.org/t/handling-concurrent-writes-to-websocket/109843 "2024-02-06T23:16:46Z")

</div>

We have a server handling websocket connections that can be written to by async tasks. It turns out that a simple Socket.send(ws, msg) is not protecting against concurrent use. I came up with a message queue that uses C…

---

## [Seeking guidance on implementing a simple interactive flow chart](https://discourse.julialang.org/t/seeking-guidance-on-implementing-a-simple-interactive-flow-chart/109258)

<div class="topic-metadata">

**Author:** [@wobagi](https://discourse.julialang.org/u/wobagi)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 10:14pm UTC](https://discourse.julialang.org/t/seeking-guidance-on-implementing-a-simple-interactive-flow-chart/109258 "2024-02-06T22:14:27Z")

</div>

Hello everyone, I’m a newcomer to the Makie community. I am currently struggling to develop a very simple flowchart in which specific Julia objects are represented as rectangular nodes on a drawing, connected by arrows. …

---

## [No method matching default\_algorithm in SDDEProblem; SDEProblem and DDEProblem work](https://discourse.julialang.org/t/no-method-matching-default-algorithm-in-sddeproblem-sdeproblem-and-ddeproblem-work/109749)

<div class="topic-metadata">

**Author:** [@cjoshliu](https://discourse.julialang.org/u/cjoshliu)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 10:00pm UTC](https://discourse.julialang.org/t/no-method-matching-default-algorithm-in-sddeproblem-sdeproblem-and-ddeproblem-work/109749 "2024-02-06T22:00:27Z")

</div>

Hi, I tried running the example from the SDDE solvers documentation using DifferentialEquations function hayes\_modelf(du, u, h, p, t) τ, a, b, c, α, β, γ = p du .= a .\* u .+ b .\* h(p, t - τ) .+ c end function h…

---

## [DifferentialEquations.jl - Solving ODE with "alg\_hints=\[:stiff\]" is 20x slower, any alternatives?](https://discourse.julialang.org/t/differentialequations-jl-solving-ode-with-alg-hints-stiff-is-20x-slower-any-alternatives/109750)

<div class="topic-metadata">

**Author:** [@FJRubio](https://discourse.julialang.org/u/FJRubio)\
**Replies:** 8\
**Last updated:** [February 6, 2024, 9:59pm UTC](https://discourse.julialang.org/t/differentialequations-jl-solving-ode-with-alg-hints-stiff-is-20x-slower-any-alternatives/109750 "2024-02-06T21:59:13Z")

</div>

I am solving several thousand systems of ODEs, with an explicit Jacobian, using DifferentialEquations.jl. These systems are similar to the competitive Lotka-Volterra model. In some cases (depending on the parameter value…

---

## [Error installing Makie.jl - can't connect to download isoband](https://discourse.julialang.org/t/error-installing-makie-jl-cant-connect-to-download-isoband/109720)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 9:51pm UTC](https://discourse.julialang.org/t/error-installing-makie-jl-cant-connect-to-download-isoband/109720 "2024-02-06T21:51:45Z")

</div>

Getting an error during install that it cannot add package isoband. Looks like connection issues but it downloaded the prior packages just fine. Running on M1 Mac. pkg\> add GLMakie Resolving package versions... Do…

---

## [@assert: what is the proper tool?](https://discourse.julialang.org/t/assert-what-is-the-proper-tool/36217)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 12\
**Last updated:** [February 6, 2024, 9:48pm UTC](https://discourse.julialang.org/t/assert-what-is-the-proper-tool/36217 "2024-02-06T21:48:21Z")

</div>

Apparently @assert can be elided by the compiler for some optimization level. What is the recommended easy and fool-proof ways of asserting program behaviours?

---

## [Improve speed SDP variable entries continuous 0-1 in Convex.jl](https://discourse.julialang.org/t/improve-speed-sdp-variable-entries-continuous-0-1-in-convex-jl/109794)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 4\
**Last updated:** [February 6, 2024, 9:44pm UTC](https://discourse.julialang.org/t/improve-speed-sdp-variable-entries-continuous-0-1-in-convex-jl/109794 "2024-02-06T21:44:39Z")

</div>

Hi I am trying to solve a large SDP with two matrix constraints using SCS in Convex.jl. I want to constrain all entries of my variable (a matrix) to all be continuous between 0 and 1, and was wondering what the most eff…

---

## [Using MKL doesn't work](https://discourse.julialang.org/t/using-mkl-doesnt-work/109833)

<div class="topic-metadata">

**Author:** [@yhuang](https://discourse.julialang.org/u/yhuang)\
**Replies:** 5\
**Last updated:** [February 6, 2024, 8:36pm UTC](https://discourse.julialang.org/t/using-mkl-doesnt-work/109833 "2024-02-06T20:36:35Z")

</div>

I installed MKL via add MKL and when I checked if it works, it says julia\> using LinearAlgebra julia\> BLAS.get\_config() LinearAlgebra.BLAS.LBTConfig Libraries: └ \[ILP64\] libopenblas64\_.so julia\> using MKL julia\> BLA…

---

## [Understanding use of interactive thread pool](https://discourse.julialang.org/t/understanding-use-of-interactive-thread-pool/109815)

<div class="topic-metadata">

**Author:** [@samtkaplan](https://discourse.julialang.org/u/samtkaplan)\
**Replies:** 5\
**Last updated:** [February 6, 2024, 8:35pm UTC](https://discourse.julialang.org/t/understanding-use-of-interactive-thread-pool/109815 "2024-02-06T20:35:59Z")

</div>

Hello, I am trying to understand when the “interactive” thread pool is used vs when the “default” thread pool is used. My expectation is that the “default” thread pool is used unless we explicitly ask for the interacti…

---

## [Error adding CUDA on Windows 11 and Julia 1.10. It works with Julia 1.9](https://discourse.julialang.org/t/error-adding-cuda-on-windows-11-and-julia-1-10-it-works-with-julia-1-9/109476)

<div class="topic-metadata">

**Author:** [@LucB](https://discourse.julialang.org/u/LucB)\
**Replies:** 8\
**Last updated:** [February 6, 2024, 8:08pm UTC](https://discourse.julialang.org/t/error-adding-cuda-on-windows-11-and-julia-1-10-it-works-with-julia-1-9/109476 "2024-02-06T20:08:30Z")

</div>

Hi, I use juliaup to have 1.10 and 1.9 version. I have an application working with 1.9, CUDA (ML with Flux). When I switch to Julia 1.10 I’m unable to add CUDA. (I have the last NVIDIA driver installed). This is the err…

---

## [Using CUDA in ubuntu 22.04 for Julia](https://discourse.julialang.org/t/using-cuda-in-ubuntu-22-04-for-julia/109828)

<div class="topic-metadata">

**Author:** [@gradureau](https://discourse.julialang.org/u/gradureau)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 7:53pm UTC](https://discourse.julialang.org/t/using-cuda-in-ubuntu-22-04-for-julia/109828 "2024-02-06T19:53:26Z")

</div>

Hey everyone, I am using ubuntu 22.04 and I am trying to use the GPU of my computer to train neural models using Flux. Here is the CUDA version I get using nvidia-smi : ±------------------------------------------------…

---

## [\[ANN\] RecursiveDicts.jl](https://discourse.julialang.org/t/ann-recursivedicts-jl/109830)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 6:26pm UTC](https://discourse.julialang.org/t/ann-recursivedicts-jl/109830 "2024-02-06T18:26:37Z")

</div>

I’m very pleased to announce my first registered Julia package: RecursiveDicts.jl. This is a very simple concept (and package): a RecursiveDict{K,V} is a Dict where the keytype is K and the valtype is Union{V,RecursiveD…

---

## [Trainning UODE over multiple species](https://discourse.julialang.org/t/trainning-uode-over-multiple-species/100440)

<div class="topic-metadata">

**Author:** [@James\_Fernandez](https://discourse.julialang.org/u/James_Fernandez)\
**Replies:** 0\
**Last updated:** [June 16, 2023, 9:49am UTC](https://discourse.julialang.org/t/trainning-uode-over-multiple-species/100440 "2023-06-16T09:49:42Z")

</div>

I am trying to model the Lotka-Volterra system for multiple species. The system is defined as: \\left\\{\\begin{matrix} \\frac{\\mathrm{d} x}{\\mathrm{d} t}=\\alpha x - \\beta xy\\\\ \\frac{\\mathrm{d} y}{\\mathrm{d} t}=-\\del…

---

## [How to make ridgeline plot (sparkline, joyplot) using Plots.jl?](https://discourse.julialang.org/t/how-to-make-ridgeline-plot-sparkline-joyplot-using-plots-jl/109826)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 5:59pm UTC](https://discourse.julialang.org/t/how-to-make-ridgeline-plot-sparkline-joyplot-using-plots-jl/109826 "2024-02-06T17:59:00Z")

</div>

I want to make a plot like this one: Makie has an example but I want to make the same in Plots.jl in order to not use 2 packages. More specifically, I’d like to have: no 3D, “parallax” or any kind of perspective d…

---

## [Using multiple cores but the speed doesn't increase](https://discourse.julialang.org/t/using-multiple-cores-but-the-speed-doesnt-increase/109066)

<div class="topic-metadata">

**Author:** [@soldin](https://discourse.julialang.org/u/soldin)\
**Replies:** 21\
**Last updated:** [February 6, 2024, 6:03pm UTC](https://discourse.julialang.org/t/using-multiple-cores-but-the-speed-doesnt-increase/109066 "2024-02-06T18:03:16Z")

</div>

Hi, I am remotely accessing CPU with 42 cores. I ran the following command julia --threads 40 in the REPL and set julia.NumThreads": 40 in VSC. Threads.nthreads() gives 40. But there is no improvement in the speed. Ki…

---

## [Similarity of Julia to Asymptote Programming Language](https://discourse.julialang.org/t/similarity-of-julia-to-asymptote-programming-language/109801)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 4\
**Last updated:** [February 6, 2024, 4:59pm UTC](https://discourse.julialang.org/t/similarity-of-julia-to-asymptote-programming-language/109801 "2024-02-06T16:59:30Z")

</div>

I am just getting started in Julia but am very familiar with the Asymptote graphics program scripting language - Asymptote It seems to me that the Asymptote language has many of Julia’s features and is similar (nowhere…

---

## [Calculation of gain margin fails](https://discourse.julialang.org/t/calculation-of-gain-margin-fails/109819)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [February 6, 2024, 4:42pm UTC](https://discourse.julialang.org/t/calculation-of-gain-margin-fails/109819 "2024-02-06T16:42:46Z")

</div>

I have the following code: using ControlSystemsBase Ts = 0.01 Ku = 100/5e6 K2 = 5e6 num = \[Ku \* Ts\] den = \[1, -1\] P = tf(num, den, Ts) # plant C = K2 sys = feedback(P, C) ol\_sys = P\*C margin(ol\_sys) If I create a bod…

---

## [Custom NamedTuple dynamic creation](https://discourse.julialang.org/t/custom-namedtuple-dynamic-creation/109807)

<div class="topic-metadata">

**Author:** [@ImreMD](https://discourse.julialang.org/u/ImreMD)\
**Replies:** 5\
**Last updated:** [February 6, 2024, 4:40pm UTC](https://discourse.julialang.org/t/custom-namedtuple-dynamic-creation/109807 "2024-02-06T16:40:32Z")

</div>

Hello guys, wondering if there’s a way of dynamically assign keys to a NamedTuple something like this: function create\_named\_tuple(x, y, z) mynames = (:position, :y, :z) mydata = (x, "free","get") return NamedTup…

---

## [Sorted Array implementation?](https://discourse.julialang.org/t/sorted-array-implementation/5897)

<div class="topic-metadata">

**Author:** [@raff](https://discourse.julialang.org/u/raff)\
**Replies:** 21\
**Last updated:** [February 6, 2024, 3:57pm UTC](https://discourse.julialang.org/t/sorted-array-implementation/5897 "2024-02-06T15:57:41Z")

</div>

Is there any implementation of sorted array? I need to store a sorted list of integer. I will frequently check what is the k-th value in the list and in what position a particular value is in the list. I checked Sorted…

---

## [Using symbolic variables in control systems](https://discourse.julialang.org/t/using-symbolic-variables-in-control-systems/109810)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [February 6, 2024, 3:11pm UTC](https://discourse.julialang.org/t/using-symbolic-variables-in-control-systems/109810 "2024-02-06T15:11:41Z")

</div>

Is it possible to use symbolic variables when defining a discrete time control system? The following code fails: using ControlSystemsBase, ModelingToolkit @parameters Ts # Ts = 0.01 Ku = 200/5e6 K2 = 5e6 num = \[Ku \* …

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

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