# Latest

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

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

**Page:** 466

---

## [Metal.jl and Flux.jl on M1 chip](https://discourse.julialang.org/t/metal-jl-and-flux-jl-on-m1-chip/96882)

<div class="topic-metadata">

**Author:** [@Jacob\_Cahoon](https://discourse.julialang.org/u/Jacob_Cahoon)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 12:50pm UTC](https://discourse.julialang.org/t/metal-jl-and-flux-jl-on-m1-chip/96882 "2024-03-06T12:50:54Z")

</div>

When my loss function is called in the train!() method, I keep getting this error and I don’t know how to fix it. I can’t use CUDA because I am using an M1 chip. Any ideas? Here’s my full code: include("data\_prep.jl") …

---

## [Error "Missing source file" when precompiling using Julia 1.10.2](https://discourse.julialang.org/t/error-missing-source-file-when-precompiling-using-julia-1-10-2/111234)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 11:51am UTC](https://discourse.julialang.org/t/error-missing-source-file-when-precompiling-using-julia-1-10-2/111234 "2024-03-06T11:51:45Z")

</div>

I did the following: git clone https://github.com/aenarete/KitePodModels.jl cd KitePodModels.jl julia --project and get the following error message: julia\> using KitePodModels Updating registry at \`~/.julia/regist…

---

## [Should an in-place FunctionOperator be totally allocation free?](https://discourse.julialang.org/t/should-an-in-place-functionoperator-be-totally-allocation-free/111219)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 11:54am UTC](https://discourse.julialang.org/t/should-an-in-place-functionoperator-be-totally-allocation-free/111219 "2024-03-06T11:54:18Z")

</div>

The code fop = FunctionOperator((v, u, p, t) -\> mul!(v, K\_ff, u), F\_f, zeros(length(F\_f))) prob = LinearProblem(fop, F\_f) @time sol = solve(prob, ALG(), Pl=PRECOND, verbose=verbose) reports allocations: …

---

## [Given up installing any plotting packages](https://discourse.julialang.org/t/given-up-installing-any-plotting-packages/110272)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 35\
**Last updated:** [March 6, 2024, 5:50am UTC](https://discourse.julialang.org/t/given-up-installing-any-plotting-packages/110272 "2024-03-06T05:50:06Z")

</div>

I have given up attempting to install any plotting packages, under any version of Julia. I have tried a variety, including Plots, Makie, GLMakie, Gaston, Unicode, etc. etc. I always get the same error: “Access Denied”.…

---

## [How do I play sound in a notebook (preferably Pluto)?](https://discourse.julialang.org/t/how-do-i-play-sound-in-a-notebook-preferably-pluto/49403)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 7\
**Last updated:** [March 6, 2024, 3:59am UTC](https://discourse.julialang.org/t/how-do-i-play-sound-in-a-notebook-preferably-pluto/49403 "2024-03-06T03:59:34Z")

</div>

I want to build a synthesizer in Julia, and I want to play the output inside the notebook, like this example for Jupyter+Python: IPython Cookbook - 11.7. Creating a sound synthesizer in the Notebook I have searched how …

---

## [Error generating quiver plot with Plots.jl](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208)

<div class="topic-metadata">

**Author:** [@JonathanH](https://discourse.julialang.org/u/JonathanH)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 5:06pm UTC](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208 "2024-03-05T17:06:07Z")

</div>

I am getting an error with the following MWE, which I think should work, based on the documentation for quiver in the Plots.jl package (v1.15.2). The error is: unexpected vi type Vector{Tuple{Float64, Float64}} for quive…

---

## [Using/workaround for unsupported/EOLd operating systems, e.g. CentOS 6. Was: Test julia basic functionality](https://discourse.julialang.org/t/using-workaround-for-unsupported-eold-operating-systems-e-g-centos-6-was-test-julia-basic-functionality/107787)

<div class="topic-metadata">

**Author:** [@kerim](https://discourse.julialang.org/u/kerim)\
**Replies:** 25\
**Last updated:** [March 6, 2024, 1:41am UTC](https://discourse.julialang.org/t/using-workaround-for-unsupported-eold-operating-systems-e-g-centos-6-was-test-julia-basic-functionality/107787 "2024-03-06T01:41:39Z")

</div>

Hi, I work on CentOS 6 and it is known that it ships with GLIBC 2.12 but some packages requires higher version of it (and julia 1.9.4 itself requires at least GLIBC 2.14). I updated GLIBC in custom dir (I can’t risque …

---

## [Hidden allocations when parallelizing with @batch](https://discourse.julialang.org/t/hidden-allocations-when-parallelizing-with-batch/111051)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 13\
**Last updated:** [March 5, 2024, 10:35pm UTC](https://discourse.julialang.org/t/hidden-allocations-when-parallelizing-with-batch/111051 "2024-03-05T22:35:18Z")

</div>

Hello guys! I’ve hit a bit of a roadblock and need a bit of help to overcome it. I’ve made a parallelized reduction function in which I am using Polyester.@batch. It works very well for 1 dimensional arrays, but now I a…

---

## [IterativeSolvers.jl not working as expected with mutating and allocation](https://discourse.julialang.org/t/iterativesolvers-jl-not-working-as-expected-with-mutating-and-allocation/110277)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 9\
**Last updated:** [March 5, 2024, 9:49pm UTC](https://discourse.julialang.org/t/iterativesolvers-jl-not-working-as-expected-with-mutating-and-allocation/110277 "2024-03-05T21:49:00Z")

</div>

I’m trying to solve a simple linear system. However, it seems like the preallocated versions of any IterativeSolvers.jl functions are either much slower or allocating more memory. Here’s the example: using IterativeSol…

---

## [Help me understand juliaup](https://discourse.julialang.org/t/help-me-understand-juliaup/111218)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 10:16pm UTC](https://discourse.julialang.org/t/help-me-understand-juliaup/111218 "2024-03-05T22:16:46Z")

</div>

I have a Mac and I use julia I install julia on my mac manually I wish to use juliaup However I failed to find documentation about juliaup (especially about how it stores various version of julia internally) This is …

---

## [Suggestions needed for bound-constrained least squares solver](https://discourse.julialang.org/t/suggestions-needed-for-bound-constrained-least-squares-solver/35611)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 14\
**Last updated:** [March 5, 2024, 8:42pm UTC](https://discourse.julialang.org/t/suggestions-needed-for-bound-constrained-least-squares-solver/35611 "2024-03-05T20:42:01Z")

</div>

I’m looking for suggestions for a bound-constrained least-squares solver for minimize\_x 1/2||Ax-b||^2 subj to lb ≤ x ≤ ub where A is m-by-n and “tall”, ie, m \>\> n (eg, m=1K, n=10). The solver should have low setup c…

---

## [How to add tab to module with JuliaFormatter](https://discourse.julialang.org/t/how-to-add-tab-to-module-with-juliaformatter/111121)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 7:48pm UTC](https://discourse.julialang.org/t/how-to-add-tab-to-module-with-juliaformatter/111121 "2024-03-05T19:48:52Z")

</div>

Hi all, I would like to modify the default behavior of JuliaFormatter so that it produces module MyModule using ... ... end instead of left alignment: module MyModule using ... ... end Thanks!

---

## [Operation does not match](https://discourse.julialang.org/t/operation-does-not-match/111210)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 7:30pm UTC](https://discourse.julialang.org/t/operation-does-not-match/111210 "2024-03-05T19:30:45Z")

</div>

If I make A=\[2/3 1/3; -1/3 1/3\]. v=\[1,-4\], and make A\*v I get -0.6666666666666666 -1.6666666666666665 Which is fine except that i I make -5/3 I get -1.6666666666666667. Is this just rounding error being different fo…

---

## [Latex in GLMakie, no spaces](https://discourse.julialang.org/t/latex-in-glmakie-no-spaces/111192)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 7\
**Last updated:** [March 5, 2024, 6:26pm UTC](https://discourse.julialang.org/t/latex-in-glmakie-no-spaces/111192 "2024-03-05T18:26:18Z")

</div>

When trying to use Latex with GLMakie in this code: using GLMakie f = Figure(backgroundcolor = "#f5f0f5") ax = Axis(f\[1, 1\], title = L"A Makie Axis", xlabel = L"The x label", ylabel = L"The y label \\omega"…

---

## [Cannot use PlotlyJS](https://discourse.julialang.org/t/cannot-use-plotlyjs/105057)

<div class="topic-metadata">

**Author:** [@Guillaume](https://discourse.julialang.org/u/Guillaume)\
**Replies:** 9\
**Last updated:** [March 5, 2024, 5:54pm UTC](https://discourse.julialang.org/t/cannot-use-plotlyjs/105057 "2024-03-05T17:54:41Z")

</div>

Hi, I have a fresh Julia install on a new computer (windows 11). I can’t install PlotlyJS. import Pkg; Pkg.add("PlotlyJS") using PlotlyJS After the using command, the repl gets stuck indefinitely. Interrupting it retur…

---

## [PlotlyJS causes errors, can't figure out how to use PlotlyLight - how to use Plotly from Julia?](https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853)

<div class="topic-metadata">

**Author:** [@jojob68](https://discourse.julialang.org/u/jojob68)\
**Replies:** 37\
**Last updated:** [March 5, 2024, 5:57pm UTC](https://discourse.julialang.org/t/plotlyjs-causes-errors-cant-figure-out-how-to-use-plotlylight-how-to-use-plotly-from-julia/108853 "2024-03-05T17:57:51Z")

</div>

First post, new to Julia coming from Matlab, so please bear with me, I seem to be struggling with the most basic stuff. After lots of reading, it seems PlotlyJS is the best plotting package for my use case: interactive …

---

## [Graph doesn't display in Julia Notebook (VSCode) using PyPlot](https://discourse.julialang.org/t/graph-doesnt-display-in-julia-notebook-vscode-using-pyplot/111150)

<div class="topic-metadata">

**Author:** [@Matheus](https://discourse.julialang.org/u/Matheus)\
**Replies:** 5\
**Last updated:** [March 5, 2024, 5:48pm UTC](https://discourse.julialang.org/t/graph-doesnt-display-in-julia-notebook-vscode-using-pyplot/111150 "2024-03-05T17:48:27Z")

</div>

I’m having trouble in making the following code work using PyPlot plot(rand(10)) The output I get is: 1-element Vector{PyCall.PyObject}: PyObject \<matplotlib.lines.Line2D object at 0x000001B97E679030\> If I use the …

---

## [Help with UpROOT in Julia](https://discourse.julialang.org/t/help-with-uproot-in-julia/111149)

<div class="topic-metadata">

**Author:** [@rushabhgala](https://discourse.julialang.org/u/rushabhgala)\
**Replies:** 7\
**Last updated:** [March 5, 2024, 5:23pm UTC](https://discourse.julialang.org/t/help-with-uproot-in-julia/111149 "2024-03-05T17:23:38Z")

</div>

This is my code using UpROOT f = TFile("test.root") println(keys(f)) which gives the output \["raw;1", "mul;1", "lar;1", "mul\_lar;1"\] There are about a 100 histograms in raw, mul, lar, mul\_lar of type TH1F How do I p…

---

## [Error spawning threads: possible timing issue as some not starting in 1.10.2](https://discourse.julialang.org/t/error-spawning-threads-possible-timing-issue-as-some-not-starting-in-1-10-2/111206)

<div class="topic-metadata">

**Author:** [@ericsfraga](https://discourse.julialang.org/u/ericsfraga)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 4:38pm UTC](https://discourse.julialang.org/t/error-spawning-threads-possible-timing-issue-as-some-not-starting-in-1-10-2/111206 "2024-03-05T16:38:15Z")

</div>

I have a multi-threaded application (multi-agent system with autonomous agents) which has generally been working fine. I upgraded to 1.10.2 yesterday and since then I noticed that some of the agents were not actually sta…

---

## [\[ANN\] Benchmark networks/graphs with LFRBenchmarkGraphs.jl](https://discourse.julialang.org/t/ann-benchmark-networks-graphs-with-lfrbenchmarkgraphs-jl/111204)

<div class="topic-metadata">

**Author:** [@fcdimitr](https://discourse.julialang.org/u/fcdimitr)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 4:14pm UTC](https://discourse.julialang.org/t/ann-benchmark-networks-graphs-with-lfrbenchmarkgraphs-jl/111204 "2024-03-05T16:14:42Z")

</div>

This is a package for generating Lancichinetti-Fortunato-Radicchi model benchmarks graphs. Such graphs are widely used in benchmarking community detection algorithms. The LFRBenchmarkGraphs.jl package is a simple wrapper…

---

## ["waiting for IO to finish" (1.10 beta2)](https://discourse.julialang.org/t/waiting-for-io-to-finish-1-10-beta2/103240)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 3\
**Last updated:** [March 5, 2024, 4:04pm UTC](https://discourse.julialang.org/t/waiting-for-io-to-finish-1-10-beta2/103240 "2024-03-05T16:04:12Z")

</div>

Trying out the latest beta for v 1.10 on MS-Windows, the package manager gives a bunch of warnings as shown in the title. They displayed while the update was running, and then in the summary at the end. Do they indica…

---

## [How to show the solution of all variables when using DualDecomposition.jl](https://discourse.julialang.org/t/how-to-show-the-solution-of-all-variables-when-using-dualdecomposition-jl/110975)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 4:23pm UTC](https://discourse.julialang.org/t/how-to-show-the-solution-of-all-variables-when-using-dualdecomposition-jl/110975 "2024-03-05T16:23:08Z")

</div>

I am trying to use the DualDecomposition package to solve the farmer test case. The @show DD.primal\_solution(algo) just shows the solution for the CROPS variables. How could I show all variables including CROPS, PURCH, a…

---

## [Doing a plot recipe that plots a varying number of meshes](https://discourse.julialang.org/t/doing-a-plot-recipe-that-plots-a-varying-number-of-meshes/111201)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 3:37pm UTC](https://discourse.julialang.org/t/doing-a-plot-recipe-that-plots-a-varying-number-of-meshes/111201 "2024-03-05T15:37:40Z")

</div>

I would like to create a recipe that can plot a variable number of meshes, supposing I have a list of GeometryBasics objects and a list of positions/quaternions. I’m struggling to get it to work: this is my best attempt…

---

## [Access iRods or Yoda directly from julia code](https://discourse.julialang.org/t/access-irods-or-yoda-directly-from-julia-code/111196)

<div class="topic-metadata">

**Author:** [@Fenrir\_Sivar](https://discourse.julialang.org/u/Fenrir_Sivar)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 2:19pm UTC](https://discourse.julialang.org/t/access-irods-or-yoda-directly-from-julia-code/111196 "2024-03-05T14:19:19Z")

</div>

hi anyone, My institute hosts a yoda instance where all our data resides. There are a ton of python packages to work with Yoda and iRods (the underlying tech), but I haven’t come across any for Julia. Anyone with experi…

---

## [Interactive plots with Plots.jl and VSCode](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 2:04pm UTC](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058 "2024-03-05T14:04:39Z")

</div>

I’ve installed PythonPlot and PlotlyJS backends. A test plot with either backend displayed in VSCode pane, and I see no interactive tools. Here a link to an older topic, recommending trying to display plot in an externa…

---

## ["CodeQL 2.16.3: AI-powered autofixes for Python" etc., add same for Julia? Not just for security?](https://discourse.julialang.org/t/codeql-2-16-3-ai-powered-autofixes-for-python-etc-add-same-for-julia-not-just-for-security/111195)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 1:54pm UTC](https://discourse.julialang.org/t/codeql-2-16-3-ai-powered-autofixes-for-python-etc-add-same-for-julia-not-just-for-security/111195 "2024-03-05T13:54:35Z")

</div>

Note, CodeCL supports many more languages and frameworks: https://codeql.github.com/docs/codeql-overview/supported-languages-and-frameworks/ It was new to me that this existed, I mean I knew some such tools existed, …

---

## [Iterating over types in Union](https://discourse.julialang.org/t/iterating-over-types-in-union/111172)

<div class="topic-metadata">

**Author:** [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 1:07pm UTC](https://discourse.julialang.org/t/iterating-over-types-in-union/111172 "2024-03-05T13:07:22Z")

</div>

Is there a way (that doesn’t involve reaching into private details of Base/Core) to iterate over the types in a Union? In my case I know that it’ll only ever be a small union of concrete types, if that helps. I’m writin…

---

## [Performance of array of structs](https://discourse.julialang.org/t/performance-of-array-of-structs/111156)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 12:34pm UTC](https://discourse.julialang.org/t/performance-of-array-of-structs/111156 "2024-03-05T12:34:51Z")

</div>

I compared array-of-struct and struct-of-array and seems struct-of-array is faster. struct MyStr{T} Δxˣ::T Δxʸ::T Δvˣ::T Δvʸ::T ρᵢ::T ρⱼ::T end function pairs\_calk!(buff, pairs; minthreads::Int …

---

## [40 seconds to view a simple plot with no data in Makie](https://discourse.julialang.org/t/40-seconds-to-view-a-simple-plot-with-no-data-in-makie/111189)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [March 5, 2024, 12:34pm UTC](https://discourse.julialang.org/t/40-seconds-to-view-a-simple-plot-with-no-data-in-makie/111189 "2024-03-05T12:34:49Z")

</div>

I attach a “screen recording” with my phone, as I still need to find a suitable screen recording software. My computer is pretty fast, so no spec issue. Laptop which runs on i7, has NVIDIA built in gpu, plenty of cache …

---

## [Need to reactivate following errors](https://discourse.julialang.org/t/need-to-reactivate-following-errors/111190)

<div class="topic-metadata">

**Author:** [@HAL9000](https://discourse.julialang.org/u/HAL9000)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 12:06pm UTC](https://discourse.julialang.org/t/need-to-reactivate-following-errors/111190 "2024-03-05T12:06:25Z")

</div>

Hi I am using VSCode GameZero and find that quite often I have to re-activate directory from REPL after a run error. I know I have to reactivate because I get a gamezero error when it tries to load fonts. Am I doing s…

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

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