# Latest

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

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

**Page:** 930

---

## [\[Makie\] Latex in tick labels](https://discourse.julialang.org/t/makie-latex-in-tick-labels/86980)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 4:15pm UTC](https://discourse.julialang.org/t/makie-latex-in-tick-labels/86980 "2022-09-09T16:15:06Z")

</div>

How do you render a latex expression for the ticks in a Makie plot ? Example: ax = Axis(Figure()\[1,1\]) xlims!(ax, 1, nothing) ax.xscale = log2 ax.xticks = (\[1, 8, 32\], \[L"2^0", L"2^3", L"2^5"\]) values = \[1,2,3,4,5,6\] p…

---

## [Why more BLAS threads take more time](https://discourse.julialang.org/t/why-more-blas-threads-take-more-time/86975)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 4:14pm UTC](https://discourse.julialang.org/t/why-more-blas-threads-take-more-time/86975 "2022-09-09T16:14:35Z")

</div>

Hi, I wrote a deep learning model using MNIST data and when I ran it on PC and server respectively, I encountered some performance issues. More details are listed below. About the devices I’m using. the PC have 1 phy…

---

## [Fast small integer matrix multiplication](https://discourse.julialang.org/t/fast-small-integer-matrix-multiplication/86981)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 11\
**Last updated:** [September 9, 2022, 3:03pm UTC](https://discourse.julialang.org/t/fast-small-integer-matrix-multiplication/86981 "2022-09-09T15:03:38Z")

</div>

Hi, I need to multiply a lot of times a vector B of integers of size 64 by a 24x64 integer matrix B. Currently the fastest way I found is simply A\*B, which is very fast if the matrix are converted to Float32 (which I’d…

---

## [Finishing a task](https://discourse.julialang.org/t/finishing-a-task/86784)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 5\
**Last updated:** [September 9, 2022, 2:41pm UTC](https://discourse.julialang.org/t/finishing-a-task/86784 "2022-09-09T14:41:13Z")

</div>

If I’m manipulating tasks with yieldto, without the scheduler, when a task finishes it just hangs the REPL (i.e. yieldto(@task 1+1) hangs). So I have to yieldto back to the main task at the end (or is there some other wa…

---

## [Inline animation using PyPlot](https://discourse.julialang.org/t/inline-animation-using-pyplot/86992)

<div class="topic-metadata">

**Author:** [@KK\_JuliaNoob](https://discourse.julialang.org/u/KK_JuliaNoob)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 2:23pm UTC](https://discourse.julialang.org/t/inline-animation-using-pyplot/86992 "2022-09-09T14:23:18Z")

</div>

Is there a simple example of using PyPlot to create animated SVG plots inline in a Jupyter notebook? Ideally, I’d like to do this without writing to a file first.

---

## [How would I separate a vector into groups where the values are close?](https://discourse.julialang.org/t/how-would-i-separate-a-vector-into-groups-where-the-values-are-close/86988)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 6\
**Last updated:** [September 9, 2022, 2:13pm UTC](https://discourse.julialang.org/t/how-would-i-separate-a-vector-into-groups-where-the-values-are-close/86988 "2022-09-09T14:13:23Z")

</div>

Say I have a vector v = \[vcat(1:10); vcat(24:4:40); vcat(500:10:560); vcat(1000:2:1020)\] The values have a wide range but there are groups where the values are close to each other. How would I seperate these groups int…

---

## [Why I can't connect 2 complex dots using plot(\[z1\],\[z2\]...)?](https://discourse.julialang.org/t/why-i-cant-connect-2-complex-dots-using-plot-z1-z2/86986)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 1:54pm UTC](https://discourse.julialang.org/t/why-i-cant-connect-2-complex-dots-using-plot-z1-z2/86986 "2022-09-09T13:54:32Z")

</div>

Hi all, I try this code: using Plots, LaTeXStrings z1 = 4+2im z2 = 4-2im z3 = z1+z2 z4 = z1-z2 plot(\[z1\], framestyle = :zerolines, label=L"z = 4 + 2i"; st=:scatter, legend=:outerright) plot!(\[z2\], label=L"z = 4 - 2i"…

---

## [ComplexRegions.jl Package to plot complex plot z = a +ib](https://discourse.julialang.org/t/complexregions-jl-package-to-plot-complex-plot-z-a-ib/86982)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 9\
**Last updated:** [September 9, 2022, 1:36pm UTC](https://discourse.julialang.org/t/complexregions-jl-package-to-plot-complex-plot-z-a-ib/86982 "2022-09-09T13:36:43Z")

</div>

Hi all, I am trying to add this package: ComplexRegions.jl then it comes: I want to plot a simple complex equation like: z = 3 -i But I can’t even add the package, due to some restriction / problem with Colors pa…

---

## [Generate type specific code when type is a variable in a loop](https://discourse.julialang.org/t/generate-type-specific-code-when-type-is-a-variable-in-a-loop/86947)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 12\
**Last updated:** [September 9, 2022, 12:58pm UTC](https://discourse.julialang.org/t/generate-type-specific-code-when-type-is-a-variable-in-a-loop/86947 "2022-09-09T12:58:35Z")

</div>

I have a package where I have a growing amount of types that contain each a specific type of data. Each type follows a minimal interface described by : A container number Cnum A description Cdescription Each type C…

---

## [Displaying a DataFrame in jupyter without column types](https://discourse.julialang.org/t/displaying-a-dataframe-in-jupyter-without-column-types/86505)

<div class="topic-metadata">

**Author:** [@artemsolod](https://discourse.julialang.org/u/artemsolod)\
**Replies:** 8\
**Last updated:** [September 9, 2022, 12:41pm UTC](https://discourse.julialang.org/t/displaying-a-dataframe-in-jupyter-without-column-types/86505 "2022-09-09T12:41:00Z")

</div>

I’d like to display a dataframe without secondary header of types in jupyter cell output but can not figure out how to do it. My best attempt prints HTML that I want but does not render it. using DataFrames df = DataFra…

---

## [~7x compliation time regression in the following data reading code](https://discourse.julialang.org/t/7x-compliation-time-regression-in-the-following-data-reading-code/86951)

<div class="topic-metadata">

**Author:** [@artemsolod](https://discourse.julialang.org/u/artemsolod)\
**Replies:** 6\
**Last updated:** [September 9, 2022, 12:11pm UTC](https://discourse.julialang.org/t/7x-compliation-time-regression-in-the-following-data-reading-code/86951 "2022-09-09T12:11:46Z")

</div>

I noticed a big regression in my data reading code (read csv.zip files from a folder). Stripping it down I get significant time difference between 1.7.3 and 1.8.0. This setup is quite fragile, for example, DataFrames is…

---

## [Approaches to find optimal X on large simulation model when you have only (X,Y) (no gradient, hessian,...)](https://discourse.julialang.org/t/approaches-to-find-optimal-x-on-large-simulation-model-when-you-have-only-x-y-no-gradient-hessian/86925)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 15\
**Last updated:** [September 9, 2022, 11:47am UTC](https://discourse.julialang.org/t/approaches-to-find-optimal-x-on-large-simulation-model-when-you-have-only-x-y-no-gradient-hessian/86925 "2022-09-09T11:47:39Z")

</div>

I have a large (i.e. 1 hour run time, 1 core) bio-economic simulation model and I want to find which combination of some inputs minimise the sum of this inputs given a fixed output of the model. In practice, I want to f…

---

## [Julia debugging](https://discourse.julialang.org/t/julia-debugging/86512)

<div class="topic-metadata">

**Author:** [@AbhimanyuAryan](https://discourse.julialang.org/u/AbhimanyuAryan)\
**Replies:** 4\
**Last updated:** [August 30, 2022, 4:04pm UTC](https://discourse.julialang.org/t/julia-debugging/86512 "2022-08-30T16:04:37Z")

</div>

Can someone point me into Julia’s VSCode debugging Guide/Tutorial(if possible a video tutorial) like C++ in Visual Studio? I want to run the script and step out, step in, and set breakpoints. See values of variables etc …

---

## [High memory usage in v1.8.0 vs v1.7.2](https://discourse.julialang.org/t/high-memory-usage-in-v1-8-0-vs-v1-7-2/86559)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 8:54am UTC](https://discourse.julialang.org/t/high-memory-usage-in-v1-8-0-vs-v1-7-2/86559 "2022-09-09T08:54:09Z")

</div>

I have a calculation that runs over two days. The memory usage stays below 3GB when using 1.7.2, but grows very slowly to over 30GB in 1.8.0 until the OOM killer terminates julia. It takes about a day to get there though…

---

## [Functions in function](https://discourse.julialang.org/t/functions-in-function/86958)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 13\
**Last updated:** [September 9, 2022, 8:54am UTC](https://discourse.julialang.org/t/functions-in-function/86958 "2022-09-09T08:54:00Z")

</div>

I have 2 functions: f1(a1; a2=1, a3="a") # a4, a5, ... f2(b1; b2='k', b3=2.0) # b4, b5, ... I want to write a function which includes both functions and accepts all parameters of functions. What is the best way to do t…

---

## [Large Tikhonov inverse of Matrix -\> CUDA?](https://discourse.julialang.org/t/large-tikhonov-inverse-of-matrix-cuda/86971)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 0\
**Last updated:** [September 9, 2022, 7:45am UTC](https://discourse.julialang.org/t/large-tikhonov-inverse-of-matrix-cuda/86971 "2022-09-09T07:45:39Z")

</div>

Hi, I want to explicitly obtain a Tikhonov inverse of an ill-conditioned matrix, for example: julia\> using LinearAlgebra julia\> BLAS.set\_num\_threads(12) julia\> function Tikhonov(M, λ=1e-15) Tm = inv(M'…

---

## [How to make code that reads and writes to a variable thread safe?](https://discourse.julialang.org/t/how-to-make-code-that-reads-and-writes-to-a-variable-thread-safe/86961)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 1\
**Last updated:** [September 9, 2022, 7:23am UTC](https://discourse.julialang.org/t/how-to-make-code-that-reads-and-writes-to-a-variable-thread-safe/86961 "2022-09-09T07:23:05Z")

</div>

The following (pseudo)code is not thread-safe: mutable struct MutableState x::Int end function f(state) y = state.x z = y^2 state.x = z end state = MutableState(3) # now run f(state) in parallel f…

---

## [Saving models in MLJ - only final ones without data](https://discourse.julialang.org/t/saving-models-in-mlj-only-final-ones-without-data/86873)

<div class="topic-metadata">

**Author:** [@julien\_goo](https://discourse.julialang.org/u/julien_goo)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 5:58am UTC](https://discourse.julialang.org/t/saving-models-in-mlj-only-final-ones-without-data/86873 "2022-09-09T05:58:23Z")

</div>

Hi all, I have built ML pipelines using MLJ to predict on live data (randomforest models for now + time serie crossval + grid search of hyperparams). It works like a charm. However, I have a question. I have to seriali…

---

## [Understanding Julia](https://discourse.julialang.org/t/understanding-julia/86967)

<div class="topic-metadata">

**Author:** [@IssaIssa1](https://discourse.julialang.org/u/IssaIssa1)\
**Replies:** 4\
**Last updated:** [September 9, 2022, 12:05am UTC](https://discourse.julialang.org/t/understanding-julia/86967 "2022-09-09T00:05:54Z")

</div>

Hello, I am new to julia. I am trying to understand the logic behind the following code. I know that && is a logical and but what excatly does it mean in this case? I appreciate your help. for i = 1:len(d) set = se…

---

## [Named args of a function](https://discourse.julialang.org/t/named-args-of-a-function/86965)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 10:02pm UTC](https://discourse.julialang.org/t/named-args-of-a-function/86965 "2022-09-08T22:02:02Z")

</div>

I have a function with named args: f1(a1; a2=1, a3="a") I have the Symbols :a2 and :a3 but this does not work: f1(a1; :a2=1, :a3="a") Given the symbols how do I assign a value to the named arguments of f1 in the func…

---

## [Jluna: a new Julia \<-\> C++ wrapper](https://discourse.julialang.org/t/jluna-a-new-julia-c-wrapper/77486)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 18\
**Last updated:** [September 8, 2022, 9:44pm UTC](https://discourse.julialang.org/t/jluna-a-new-julia-c-wrapper/77486 "2022-09-08T21:44:13Z")

</div>

Available here: https://github.com/Clemapfel/jluna (Edit: the license of the library has been changed to MIT, making it freely available without restrictions) I have spend the last few months, full-time, writing a Julia…

---

## [Creating one column from another](https://discourse.julialang.org/t/creating-one-column-from-another/86960)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 5\
**Last updated:** [September 8, 2022, 9:09pm UTC](https://discourse.julialang.org/t/creating-one-column-from-another/86960 "2022-09-08T21:09:07Z")

</div>

Suppose I have a dataframe column (or a vector) with a sequence of numbers ranging from 1 to 4 (for example). Suppose also that a second column or vector must be constructed in the following way: The new column has a 3,…

---

## [How to extract the right-hand side function from a differential equation solution?](https://discourse.julialang.org/t/how-to-extract-the-right-hand-side-function-from-a-differential-equation-solution/86764)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 8\
**Last updated:** [September 8, 2022, 8:26pm UTC](https://discourse.julialang.org/t/how-to-extract-the-right-hand-side-function-from-a-differential-equation-solution/86764 "2022-09-08T20:26:31Z")

</div>

Hey, Basically, I want to extract the right hand side function f from the solution of a differential equation \\dot{x} = f(x). For a minimum working example consider the following julia\> using DifferentialEquations ju…

---

## [An object of name x is already attached to this model. If this is intended, consider using the anonymous construction syntax](https://discourse.julialang.org/t/an-object-of-name-x-is-already-attached-to-this-model-if-this-is-intended-consider-using-the-anonymous-construction-syntax/86896)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 7:33pm UTC](https://discourse.julialang.org/t/an-object-of-name-x-is-already-attached-to-this-model-if-this-is-intended-consider-using-the-anonymous-construction-syntax/86896 "2022-09-08T19:33:22Z")

</div>

I am using Ipopt to solve the non linear optimization problem. My code is running but gives an error when the final solution is to be dispalyed as " An object of name x is already attached to this model. If this is inten…

---

## [Question about global variable behavior](https://discourse.julialang.org/t/question-about-global-variable-behavior/86956)

<div class="topic-metadata">

**Author:** [@Brian\_Becsi](https://discourse.julialang.org/u/Brian_Becsi)\
**Replies:** 4\
**Last updated:** [September 8, 2022, 7:27pm UTC](https://discourse.julialang.org/t/question-about-global-variable-behavior/86956 "2022-09-08T19:27:48Z")

</div>

Hello! I am trying to code Cramer’s rule from linear algebra in Julia. I am running into some variable behavior I don’t quite understand. Here’s the code (forgive the lack of “verbatim” I’m not sure how to format in dis…

---

## [Utilizing @turbo / @tturbo in Performance Critical Code](https://discourse.julialang.org/t/utilizing-turbo-tturbo-in-performance-critical-code/86940)

<div class="topic-metadata">

**Author:** [@nosewitz](https://discourse.julialang.org/u/nosewitz)\
**Replies:** 4\
**Last updated:** [September 8, 2022, 7:22pm UTC](https://discourse.julialang.org/t/utilizing-turbo-tturbo-in-performance-critical-code/86940 "2022-09-08T19:22:36Z")

</div>

I am writing a KNN prediction algorithm from scratch and I wanted to see if I can squeeze even more performance out of with LoopVectorization’s @turbo macros. However when trying to compile the method, it seems that init…

---

## [LoopVectorization Pre-compilation error](https://discourse.julialang.org/t/loopvectorization-pre-compilation-error/86886)

<div class="topic-metadata">

**Author:** [@MHaensel](https://discourse.julialang.org/u/MHaensel)\
**Replies:** 4\
**Last updated:** [September 8, 2022, 6:17pm UTC](https://discourse.julialang.org/t/loopvectorization-pre-compilation-error/86886 "2022-09-08T18:17:04Z")

</div>

Hi. First of all, this is my first post here and I apologize in advance should I have violated any of the usual “style rules” for this kind of question and also for it potentially being a bit naive. The issue I am facin…

---

## [Optional submodule that does type piracy](https://discourse.julialang.org/t/optional-submodule-that-does-type-piracy/86950)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 5:46pm UTC](https://discourse.julialang.org/t/optional-submodule-that-does-type-piracy/86950 "2022-09-08T17:46:34Z")

</div>

I am making a package where a small subset of the functionality currently requires type piracy. I’d like to make users have to explicitly import this package separately from the main package in order to access this funct…

---

## [Setting miter limit in Makie](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952)

<div class="topic-metadata">

**Author:** [@Michael\_Young](https://discourse.julialang.org/u/Michael_Young)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 5:16pm UTC](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952 "2022-09-08T17:16:44Z")

</div>

Hello, I was wondering if there was a way to set the miter limit in Makie? I couldn’t find this in the documentation. The default for CairoMakie appears to be 10 which leads to a lot of artifacts when i have lines with a…

---

## [Error for code that has been running for weeks (Circuitscape, LAPACK)](https://discourse.julialang.org/t/error-for-code-that-has-been-running-for-weeks-circuitscape-lapack/86944)

<div class="topic-metadata">

**Author:** [@icancellare](https://discourse.julialang.org/u/icancellare)\
**Replies:** 7\
**Last updated:** [September 8, 2022, 3:48pm UTC](https://discourse.julialang.org/t/error-for-code-that-has-been-running-for-weeks-circuitscape-lapack/86944 "2022-09-08T15:48:32Z")

</div>

Running Circuitscape models and am getting an error for a new set. I am creating the input files in R, this code/process has been working for weeks, but as I am changing some things in the model I am unsure what this par…

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

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