# Latest

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

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

**Page:** 584

---

## [Setting up Makie on Mac](https://discourse.julialang.org/t/setting-up-makie-on-mac/62991)

<div class="topic-metadata">

**Author:** [@Rajith\_Vidanaarachch](https://discourse.julialang.org/u/Rajith_Vidanaarachch)\
**Replies:** 10\
**Last updated:** [October 5, 2023, 12:12pm UTC](https://discourse.julialang.org/t/setting-up-makie-on-mac/62991 "2023-10-05T12:12:14Z")

</div>

I had the same problem as this guy (https://discourse.julialang.org/t/no-backend-available-glmakie-cairomakie-wglmakie/62984) with Makie, so I decided to try just GLMakie to figure out what’s going on. These are my step…

---

## [How to use BinaryBuilder.jl for non-Julia project?](https://discourse.julialang.org/t/how-to-use-binarybuilder-jl-for-non-julia-project/104560)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 5\
**Last updated:** [October 5, 2023, 12:06pm UTC](https://discourse.julialang.org/t/how-to-use-binarybuilder-jl-for-non-julia-project/104560 "2023-10-05T12:06:51Z")

</div>

I have a C++ project with no external dependencies other than GCC. I’m able to produce tarballs that work across different Linux distributions by compiling on CentOS 7 which has old versions of GCC and glibc. To build ta…

---

## [ChainRulesCore.rrule that just calls another rrule](https://discourse.julialang.org/t/chainrulescore-rrule-that-just-calls-another-rrule/104278)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 13\
**Last updated:** [October 5, 2023, 11:18am UTC](https://discourse.julialang.org/t/chainrulescore-rrule-that-just-calls-another-rrule/104278 "2023-10-05T11:18:25Z")

</div>

I have defined a type Rotor{T} representing a unit quaternion. It’s possible to construct a Rotor{T} in terms of its components — which avoids the (very slightly) expensive step of normalization. There’s also a functio…

---

## [Inline labeling on line plot (using Plots.jl)](https://discourse.julialang.org/t/inline-labeling-on-line-plot-using-plots-jl/104250)

<div class="topic-metadata">

**Author:** [@Brent](https://discourse.julialang.org/u/Brent)\
**Replies:** 2\
**Last updated:** [October 5, 2023, 10:27am UTC](https://discourse.julialang.org/t/inline-labeling-on-line-plot-using-plots-jl/104250 "2023-10-05T10:27:11Z")

</div>

Is there a way to do inline labeling (or direct labeling) of lines in a line plot using the Plots.jl package? I’m looking for something similar to the package matplotlib-label-lines for Python. Some examples from the doc…

---

## [Easy way to plot a circle given as a vector of vectors (pointwise) as line plot?](https://discourse.julialang.org/t/easy-way-to-plot-a-circle-given-as-a-vector-of-vectors-pointwise-as-line-plot/104574)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 15\
**Last updated:** [October 5, 2023, 9:30am UTC](https://discourse.julialang.org/t/easy-way-to-plot-a-circle-given-as-a-vector-of-vectors-pointwise-as-line-plot/104574 "2023-10-05T09:30:15Z")

</div>

Is there an easier way to plot a shape (in geometric sense, not Plots.jl’s) given as a vector of points (i.e. 2D-vectors)? using Plots # approximately a circle vector\_of\_points = \[\[0.708441362115303, 1.413585198669223\]…

---

## [Creating a PNG-image of a VegaLite-diagram directly in memory?](https://discourse.julialang.org/t/creating-a-png-image-of-a-vegalite-diagram-directly-in-memory/104570)

<div class="topic-metadata">

**Author:** [@Miroslav-Stimac](https://discourse.julialang.org/u/Miroslav-Stimac)\
**Replies:** 1\
**Last updated:** [October 5, 2023, 8:59am UTC](https://discourse.julialang.org/t/creating-a-png-image-of-a-vegalite-diagram-directly-in-memory/104570 "2023-10-05T08:59:11Z")

</div>

Hello, I created the diagram fig with VegaLite.jl and want to send it via e-mail by using SMTPClient.jl without creating a temporary file, but using IOBuffer to do it directly in the memory. I tried this here, but it d…

---

## [How to convert a string to a symbolic expression?](https://discourse.julialang.org/t/how-to-convert-a-string-to-a-symbolic-expression/104527)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [October 5, 2023, 8:36am UTC](https://discourse.julialang.org/t/how-to-convert-a-string-to-a-symbolic-expression/104527 "2023-10-05T08:36:45Z")

</div>

How can I convert a string to a symbolic expression? The following code fails: using Symbolics @variables R a A Γ ρ U Q Q1 Q = 0.5A\*R\*a\*Γ\*ρ\*(U^2) Q\_string::String = repr(Q) # how to convert Q\_string back into a symb…

---

## [Vote: Julia support in Jetbrains Notebooks](https://discourse.julialang.org/t/vote-julia-support-in-jetbrains-notebooks/104558)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 9:30pm UTC](https://discourse.julialang.org/t/vote-julia-support-in-jetbrains-notebooks/104558 "2023-10-04T21:30:19Z")

</div>

Jetbrains IDEs provide the opportunity to launch Notebooks in them: That is available in Pycharm, the most popular Python IDE in the world. So good expose, to be compatible with that. :wink: As they are recently al…

---

## [Sampling without replacement](https://discourse.julialang.org/t/sampling-without-replacement/1073)

<div class="topic-metadata">

**Author:** [@SPV](https://discourse.julialang.org/u/SPV)\
**Replies:** 9\
**Last updated:** [October 5, 2023, 5:54am UTC](https://discourse.julialang.org/t/sampling-without-replacement/1073 "2023-10-05T05:54:32Z")

</div>

rand(1:20, 3) gives three random integers in \[1:20\] with replacement. I see there are some threads on github on this issue, but I am not sure what is the recommended way with Julia 0.5 to sample without replacement.

---

## [Issues found in OpenCV.jl](https://discourse.julialang.org/t/issues-found-in-opencv-jl/104426)

<div class="topic-metadata">

**Author:** [@Rakesh](https://discourse.julialang.org/u/Rakesh)\
**Replies:** 1\
**Last updated:** [October 5, 2023, 3:03am UTC](https://discourse.julialang.org/t/issues-found-in-opencv-jl/104426 "2023-10-05T03:03:14Z")

</div>

Hi, @Ashwani\_Rathee thanks for creating this package. I have found some issues in OpenCV.jl while I am recently using this package. Some array operations like findall slow and using high memory on OpenCV.Mat compared A…

---

## [Using SciMLOperators in LinearSolve](https://discourse.julialang.org/t/using-scimloperators-in-linearsolve/104596)

<div class="topic-metadata">

**Author:** [@j35](https://discourse.julialang.org/u/j35)\
**Replies:** 0\
**Last updated:** [October 4, 2023, 11:52pm UTC](https://discourse.julialang.org/t/using-scimloperators-in-linearsolve/104596 "2023-10-04T23:52:32Z")

</div>

I’m trying to use FunctionOperators from SciMLOperators, to solve a linear problem using matrix free method. But I’m getting wrong result. What am I doing wrong here? Thanks in advance. Here is the MWE. using SparseArr…

---

## [Julia as first language](https://discourse.julialang.org/t/julia-as-first-language/104383)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 117\
**Last updated:** [October 4, 2023, 8:53pm UTC](https://discourse.julialang.org/t/julia-as-first-language/104383 "2023-10-04T20:53:55Z")

</div>

Is Julia a language, that can be described to be suitable as a first programming language? I think it has the potential to be that. Tim Holy thinks so as well. As somebody, who is highly interested into programming for…

---

## [Curried Broadcasting Comparison Operators](https://discourse.julialang.org/t/curried-broadcasting-comparison-operators/90613)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 5\
**Last updated:** [October 4, 2023, 8:18pm UTC](https://discourse.julialang.org/t/curried-broadcasting-comparison-operators/90613 "2023-10-04T20:18:19Z")

</div>

This is not what I expected: julia\> \>(2) === .\>(2) true julia\> .\>(1:4) 4-element Vector{Base.Fix2{typeof(\>), Int64}}: (::Base.Fix2{typeof(\>), Int64}) (generic function with 1 method) (::Base.Fix2{typeof(\>), Int64}) (…

---

## [How to optimize a neural network with a "traditional" optimizer?](https://discourse.julialang.org/t/how-to-optimize-a-neural-network-with-a-traditional-optimizer/104580)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 6:50pm UTC](https://discourse.julialang.org/t/how-to-optimize-a-neural-network-with-a-traditional-optimizer/104580 "2023-10-04T18:50:44Z")

</div>

Nowadays neural networks are represented as trees with parameters as leaves. This is how PyTorch, JAX and Julia’s Flux do it. It doesn’t let one update all parameters at once like x = x - lr \* grad(objective)(x), so libr…

---

## [Output automatic time steps taken by solvers while specifying \`saveat\`](https://discourse.julialang.org/t/output-automatic-time-steps-taken-by-solvers-while-specifying-saveat/104578)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 6:26pm UTC](https://discourse.julialang.org/t/output-automatic-time-steps-taken-by-solvers-while-specifying-saveat/104578 "2023-10-04T18:26:06Z")

</div>

Many solvers in OrdinaryDiffEq.jl for solving stiff ODEs use automatic time-stepping. From what I understand, if I specify saveat, then sol.t is the time steps I specify in saveat, and if I leave saveat untouched, then s…

---

## [Plots and click events](https://discourse.julialang.org/t/plots-and-click-events/104253)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 9\
**Last updated:** [October 4, 2023, 5:13pm UTC](https://discourse.julialang.org/t/plots-and-click-events/104253 "2023-10-04T17:13:20Z")

</div>

Hi All, I wonder, if any of the Plots’ backends provides an infrastructure to handle click events. According to this page Click events in Julia, PlotlyJS should support it. However, I’d be keen to use the plotlyjs() bac…

---

## [Can't get CUDA.jl to see cuda in Ubuntu](https://discourse.julialang.org/t/cant-get-cuda-jl-to-see-cuda-in-ubuntu/101340)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 16\
**Last updated:** [October 4, 2023, 4:55pm UTC](https://discourse.julialang.org/t/cant-get-cuda-jl-to-see-cuda-in-ubuntu/101340 "2023-10-04T16:55:32Z")

</div>

I’m on a Dell Laptop with an NVIDIA RTX A2000 8GB Laptop. I’ve installed nvidia-driver-535, nvidia-cuda-toolkit, and cuda (and probably other things) via apt. I can’t seem to find a particular error. I run with JULIA\_DE…

---

## [Documenter.jl failed to build on a GitHub action, how can I run locally commit to gh-pages?](https://discourse.julialang.org/t/documenter-jl-failed-to-build-on-a-github-action-how-can-i-run-locally-commit-to-gh-pages/104579)

<div class="topic-metadata">

**Author:** [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Replies:** 3\
**Last updated:** [October 4, 2023, 4:33pm UTC](https://discourse.julialang.org/t/documenter-jl-failed-to-build-on-a-github-action-how-can-i-run-locally-commit-to-gh-pages/104579 "2023-10-04T16:33:45Z")

</div>

What is the simplest way to build docs with Documenter.jl locally and push the appropriate updates to gh-pages? When I build locally I get ┌ Warning: Documenter could not auto-detect the building environment Skipping de…

---

## [Fast Generation of Arrays of Prime Numbers](https://discourse.julialang.org/t/fast-generation-of-arrays-of-prime-numbers/101120)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 32\
**Last updated:** [October 4, 2023, 4:06pm UTC](https://discourse.julialang.org/t/fast-generation-of-arrays-of-prime-numbers/101120 "2023-10-04T16:06:43Z")

</div>

I believe Primes.jl is not nearly as fast as prime number generators available in other languages, such as PrimeSieve.org (Python version). I would love to learn I’m wrong so I wouldn’t have to worry and could move on i…

---

## [Base.@ccallable blows chunks](https://discourse.julialang.org/t/base-ccallable-blows-chunks/104572)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 9\
**Last updated:** [October 4, 2023, 3:18pm UTC](https://discourse.julialang.org/t/base-ccallable-blows-chunks/104572 "2023-10-04T15:18:12Z")

</div>

Not much documentation out there I have found to help me with this. Do we not allow setting of references in the @ccallable function? I’ve had this problem with every function I tried to define as @ccallable for use in…

---

## [Toggle indefinite loop in Pluto Notebook](https://discourse.julialang.org/t/toggle-indefinite-loop-in-pluto-notebook/104495)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 2\
**Last updated:** [October 4, 2023, 1:21pm UTC](https://discourse.julialang.org/t/toggle-indefinite-loop-in-pluto-notebook/104495 "2023-10-04T13:21:49Z")

</div>

I knew that I could use observables from Makie to update plots without redrawing them. But I just discovered that when using WGLMakie, this also works in pluto notebooks. Sweet! So I want to use this functionality to pl…

---

## [Wrapping C++ class](https://discourse.julialang.org/t/wrapping-c-class/102573)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 11\
**Last updated:** [October 4, 2023, 12:08pm UTC](https://discourse.julialang.org/t/wrapping-c-class/102573 "2023-10-04T12:08:38Z")

</div>

Okay, I have a MWE that duplicates my issue: My wrapper correctly gives me the main application. The main application manages some other classes as members, but when I get those members back - they seem to not work. This…

---

## [How I can change script for speed up](https://discourse.julialang.org/t/how-i-can-change-script-for-speed-up/104136)

<div class="topic-metadata">

**Author:** [@Take1234](https://discourse.julialang.org/u/Take1234)\
**Replies:** 4\
**Last updated:** [October 4, 2023, 12:35pm UTC](https://discourse.julialang.org/t/how-i-can-change-script-for-speed-up/104136 "2023-10-04T12:35:46Z")

</div>

Hi Experts ,I’m just start studing Julia. But I’m in truble. Berrow 2D turblence simulation code is that I translated from Matlab. But It is not working well, very slow and use a lot of memory so I couldn’t run 3D versi…

---

## [Breakpoint/infiltrate inside a gradient calculation (Zygote or ReverseDiff)?](https://discourse.julialang.org/t/breakpoint-infiltrate-inside-a-gradient-calculation-zygote-or-reversediff/104568)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 4\
**Last updated:** [October 4, 2023, 12:20pm UTC](https://discourse.julialang.org/t/breakpoint-infiltrate-inside-a-gradient-calculation-zygote-or-reversediff/104568 "2023-10-04T12:20:23Z")

</div>

I’m trying to debug why Zygote and ReverseDiff don’t work with MethodOfLines, however, I’m struggling to break inside the gradient calculation. Zygote and ReverseDiff are changing the types of some inputs. Breakpoints in…

---

## [Disable automatic Pkg Garbage Collection](https://discourse.julialang.org/t/disable-automatic-pkg-garbage-collection/104491)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 3\
**Last updated:** [October 4, 2023, 11:48am UTC](https://discourse.julialang.org/t/disable-automatic-pkg-garbage-collection/104491 "2023-10-04T11:48:50Z")

</div>

Once upon a time Pkg didn’t ever delete old versions of packages that were no longer in use. Now it periodically does so automatically when doing other operations. I would like that to stop, because I have so much hard…

---

## [Solver-specific callback for custom termination rule for LP Barrier using Gurobi and JuMP](https://discourse.julialang.org/t/solver-specific-callback-for-custom-termination-rule-for-lp-barrier-using-gurobi-and-jump/104391)

<div class="topic-metadata">

**Author:** [@FelixSchmidt](https://discourse.julialang.org/u/FelixSchmidt)\
**Replies:** 13\
**Last updated:** [October 4, 2023, 9:10am UTC](https://discourse.julialang.org/t/solver-specific-callback-for-custom-termination-rule-for-lp-barrier-using-gurobi-and-jump/104391 "2023-10-04T09:10:49Z")

</div>

Hi all, I am implementing a Benders-like bundle method algorithm to solve a large-scale stochastic linear program. I want to use on-demand inexact cuts, i.e. I would like to solve the subproblems accurately only if they…

---

## [Is there a package that performs first and second order conservative remapping?](https://discourse.julialang.org/t/is-there-a-package-that-performs-first-and-second-order-conservative-remapping/104563)

<div class="topic-metadata">

**Author:** [@k945](https://discourse.julialang.org/u/k945)\
**Replies:** 0\
**Last updated:** [October 4, 2023, 9:07am UTC](https://discourse.julialang.org/t/is-there-a-package-that-performs-first-and-second-order-conservative-remapping/104563 "2023-10-04T09:07:02Z")

</div>

In Daniel Sheas’ regridding overview, they advise that for discontinuous variables (eg, 3 hourly precipitation) it may be better to use First- and Second-Order Conservative Remapping. I need to interpolate some data and …

---

## [Solving steady state in julia](https://discourse.julialang.org/t/solving-steady-state-in-julia/104559)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [October 4, 2023, 8:43am UTC](https://discourse.julialang.org/t/solving-steady-state-in-julia/104559 "2023-10-04T08:43:47Z")

</div>

I was looking for some solvers for my example model to find steady state values for states. I found SSRootfind() and DynamicSS(). Upon reading I felt. It is much better to use DynamicSS as for SSRootfind() your initial v…

---

## [Julia on VSCode Notebook does not clean RAM and hangs if notebook restarted](https://discourse.julialang.org/t/julia-on-vscode-notebook-does-not-clean-ram-and-hangs-if-notebook-restarted/104535)

<div class="topic-metadata">

**Author:** [@Simone\_Gabbriellini](https://discourse.julialang.org/u/Simone_Gabbriellini)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 8:37am UTC](https://discourse.julialang.org/t/julia-on-vscode-notebook-does-not-clean-ram-and-hangs-if-notebook-restarted/104535 "2023-10-04T08:37:12Z")

</div>

I have a notebook I use in VSCode, with a kernel Julia 1.9.3, that uses the package Agents. I launch a distributed simulation on 10 cores on my Ubuntu 18.04. The model loads a CSV file (50MB), then I launch, say, 30 simu…

---

## [How to use the package ParallelStencil.jl to solve linear equation A\*x=b in GPU?](https://discourse.julialang.org/t/how-to-use-the-package-parallelstencil-jl-to-solve-linear-equation-a-x-b-in-gpu/69562)

<div class="topic-metadata">

**Author:** [@liaoweiyang2017](https://discourse.julialang.org/u/liaoweiyang2017)\
**Replies:** 9\
**Last updated:** [October 4, 2023, 8:23am UTC](https://discourse.julialang.org/t/how-to-use-the-package-parallelstencil-jl-to-solve-linear-equation-a-x-b-in-gpu/69562 "2023-10-04T08:23:23Z")

</div>

For example, I can use the following code to solve linear equation in GPU, but this package Krylov.jl cannot support the complex matrix input, so when solving the complex linear equation, it has a poor efficiency. I foun…

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

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