# Latest

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

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

**Page:** 549

---

## [Makie: defaulting to minus symbol everywhere?](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 13\
**Last updated:** [November 22, 2023, 3:53pm UTC](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291 "2023-11-22T15:53:13Z")

</div>

I have the feeling that this problem has already been solved, but I haven’t been able to locate the solution. Basically, I want all numeric labels and letterings for negative numbers to use the unicode minus symbol, not…

---

## [Error precompiling Differential Equations: in setfield!, expected LinearAlgebra.QRPivoted](https://discourse.julialang.org/t/error-precompiling-differential-equations-in-setfield-expected-linearalgebra-qrpivoted/106581)

<div class="topic-metadata">

**Author:** [@vxj9800](https://discourse.julialang.org/u/vxj9800)\
**Replies:** 3\
**Last updated:** [November 22, 2023, 3:50pm UTC](https://discourse.julialang.org/t/error-precompiling-differential-equations-in-setfield-expected-linearalgebra-qrpivoted/106581 "2023-11-22T15:50:38Z")

</div>

I am facing the issue of precompiling DifferentialEquations with a fresh install of Julia 1.9.4 in Windows 11. I am not sure if the core in my case issue is the same as the one being discussed above. Following is the out…

---

## [Error precompiling DifferentialEquations: NonlinearLeastSquaresProblem not defined](https://discourse.julialang.org/t/error-precompiling-differentialequations-nonlinearleastsquaresproblem-not-defined/105855)

<div class="topic-metadata">

**Author:** [@bernardofpc](https://discourse.julialang.org/u/bernardofpc)\
**Replies:** 2\
**Last updated:** [November 7, 2023, 10:34am UTC](https://discourse.julialang.org/t/error-precompiling-differentialequations-nonlinearleastsquaresproblem-not-defined/105855 "2023-11-07T10:34:26Z")

</div>

I am using Julia 1.8.5 in VSCode on Windows. I just started a new environment using import Pkg Pkg.activate("math", shared=true) Then I tried to install DifferentialEquations, but got the following error: Precompilin…

---

## [\[ANN\] GoAWS.jl](https://discourse.julialang.org/t/ann-goaws-jl/106578)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 2:47pm UTC](https://discourse.julialang.org/t/ann-goaws-jl/106578 "2023-11-22T14:47:20Z")

</div>

GoAWS.jl wraps the go library goaws to provide a clone of Amazon Web Services (AWS) SQS and SNS services. This facilitates testing and development of code interacting with these services without needing to spin up and au…

---

## [Naming conventions for structs and constructors](https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [November 22, 2023, 12:30pm UTC](https://discourse.julialang.org/t/naming-conventions-for-structs-and-constructors/106568 "2023-11-22T12:30:17Z")

</div>

I often have a struct and one or more constructors for the struct, e.g. """ mutable struct InitialState This struct stores the state of the model at the beginning of an iteration of the learning algorithm. It is up…

---

## [Parallel computing and GPU support in neuralPDE.jl package](https://discourse.julialang.org/t/parallel-computing-and-gpu-support-in-neuralpde-jl-package/104976)

<div class="topic-metadata">

**Author:** [@Aakhash\_Sundaresan](https://discourse.julialang.org/u/Aakhash_Sundaresan)\
**Replies:** 49\
**Last updated:** [November 22, 2023, 11:39am UTC](https://discourse.julialang.org/t/parallel-computing-and-gpu-support-in-neuralpde-jl-package/104976 "2023-11-22T11:39:30Z")

</div>

I’m actually trying to use the NeuralPDE.jl package for solving a system of PDE’s. I dont know for some reason the performance is massively slow for a neural network of size 30 neurons with 3 HL and 9 such individual net…

---

## [LSTM training for a sequence of multiple features using a batch size 30](https://discourse.julialang.org/t/lstm-training-for-a-sequence-of-multiple-features-using-a-batch-size-30/63238)

<div class="topic-metadata">

**Author:** [@reemmasoud123](https://discourse.julialang.org/u/reemmasoud123)\
**Replies:** 10\
**Last updated:** [November 22, 2023, 11:18am UTC](https://discourse.julialang.org/t/lstm-training-for-a-sequence-of-multiple-features-using-a-batch-size-30/63238 "2023-11-22T11:18:34Z")

</div>

I am trying to do batch training using LSTM for a time series data with multiple features. Assuming I have 5000 samples and 5 features for each sample. The input uses 14 days into the past and the output is a single val…

---

## [GLMakie - Question about extracting 3D data](https://discourse.julialang.org/t/glmakie-question-about-extracting-3d-data/106504)

<div class="topic-metadata">

**Author:** [@sajjad\_khan](https://discourse.julialang.org/u/sajjad_khan)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 11:18am UTC](https://discourse.julialang.org/t/glmakie-question-about-extracting-3d-data/106504 "2023-11-22T11:18:14Z")

</div>

Hello! Need an assistance from GLMakie experts. I have a 3D data as x, y and z coordinates that is render as a 2D image. I want to extract the 3D data by drawing a line profile around and then render that as a color code…

---

## [Could not spawn setenv ...7z.exe](https://discourse.julialang.org/t/could-not-spawn-setenv-7z-exe/80620)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 13\
**Last updated:** [November 22, 2023, 11:09am UTC](https://discourse.julialang.org/t/could-not-spawn-setenv-7z-exe/80620 "2023-11-22T11:09:06Z")

</div>

I got a fancy new laptop, heavily administered by the IT dept… When doing up or even just using VScode, the following error message pops up: ERROR: IOError: could not spawn setenv(\`'C:\\Users\\XX\\AppData\\Local\\Programs\\J…

---

## [Allocations with recursive function using kwargs and a callback](https://discourse.julialang.org/t/allocations-with-recursive-function-using-kwargs-and-a-callback/106560)

<div class="topic-metadata">

**Author:** [@tverho](https://discourse.julialang.org/u/tverho)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 10:15am UTC](https://discourse.julialang.org/t/allocations-with-recursive-function-using-kwargs-and-a-callback/106560 "2023-11-22T10:15:07Z")

</div>

Allocations are often something that seem to appear rather unpredictably when you do more complicated things… Even if you’re aware of all the most typical causes of allocations, something new pops up every time. This ten…

---

## [Recursion and while loops: pros and cons](https://discourse.julialang.org/t/recursion-and-while-loops-pros-and-cons/106559)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 9:22am UTC](https://discourse.julialang.org/t/recursion-and-while-loops-pros-and-cons/106559 "2023-11-22T09:22:46Z")

</div>

This recursive function: function foo1(x) y = someoperations(y) if somecondition(y) return y else return foo1(y) end end does essentially the same as with the loop: function foo2(x) …

---

## [How to dispatch on a type alias?](https://discourse.julialang.org/t/how-to-dispatch-on-a-type-alias/106476)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 39\
**Last updated:** [November 22, 2023, 8:11am UTC](https://discourse.julialang.org/t/how-to-dispatch-on-a-type-alias/106476 "2023-11-22T08:11:46Z")

</div>

I have trouble implementing the dispatch I want using type aliases. I want to dispatch on Type{A{T1,B{T3}}} where {T1,T3}, but i do not find the right syntax. I currently have something that looks like : struct A{T1,T2}…

---

## [Prevent Unitful.jl conversion between monetary units](https://discourse.julialang.org/t/prevent-unitful-jl-conversion-between-monetary-units/104712)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 7:53am UTC](https://discourse.julialang.org/t/prevent-unitful-jl-conversion-between-monetary-units/104712 "2023-11-22T07:53:56Z")

</div>

I’ve tried defining two different monetary units using using Unitful: @dimension, @refunit, @u\_str, uconvert @dimension MU "MU" MonetaryUnit @refunit USD "USD" USDollar MU false @refunit EUR "EUR" Euro MU false which …

---

## [My julia code has segfault only on exit - is there a way to simply stop julia without calling into this finalization stuff](https://discourse.julialang.org/t/my-julia-code-has-segfault-only-on-exit-is-there-a-way-to-simply-stop-julia-without-calling-into-this-finalization-stuff/106538)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [November 22, 2023, 7:08am UTC](https://discourse.julialang.org/t/my-julia-code-has-segfault-only-on-exit-is-there-a-way-to-simply-stop-julia-without-calling-into-this-finalization-stuff/106538 "2023-11-22T07:08:40Z")

</div>

I just opened an issue for a segmentation fault with RCall which only happens on exit I would like to find a workaround, i.e. somehow kill Julia without running into those finalizers which cause segmentation fault. It…

---

## [Strange behaviour in the NeuralPDE framework when implementing PINN](https://discourse.julialang.org/t/strange-behaviour-in-the-neuralpde-framework-when-implementing-pinn/106507)

<div class="topic-metadata">

**Author:** [@Aakhash\_Sundaresan](https://discourse.julialang.org/u/Aakhash_Sundaresan)\
**Replies:** 6\
**Last updated:** [November 22, 2023, 6:37am UTC](https://discourse.julialang.org/t/strange-behaviour-in-the-neuralpde-framework-when-implementing-pinn/106507 "2023-11-22T06:37:22Z")

</div>

When I try to train the Neural Network with the LBFGS or BFGS Optimization algorithm, I see that the training speed keeps fluctuating with time. Suddenly the iterations seems to have frozen and no updates are visible and…

---

## [Calculating angular velocity using incremental encoder data](https://discourse.julialang.org/t/calculating-angular-velocity-using-incremental-encoder-data/105180)

<div class="topic-metadata">

**Author:** [@thomasj](https://discourse.julialang.org/u/thomasj)\
**Replies:** 4\
**Last updated:** [November 22, 2023, 6:18am UTC](https://discourse.julialang.org/t/calculating-angular-velocity-using-incremental-encoder-data/105180 "2023-11-22T06:18:43Z")

</div>

I’m trying to measure the angular velocity of a rotating shaft using an encoder. An encoder delivers the angular position at certain time. If the time is known you can in theory calculate the angular velocity by dividi…

---

## [Symbolic integration](https://discourse.julialang.org/t/symbolic-integration/32869)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 12\
**Last updated:** [November 22, 2023, 6:12am UTC](https://discourse.julialang.org/t/symbolic-integration/32869 "2023-11-22T06:12:37Z")

</div>

Is there any recommend package to compute the integration of following？

---

## [How to push scalar into an empty vector](https://discourse.julialang.org/t/how-to-push-scalar-into-an-empty-vector/106555)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 1:04am UTC](https://discourse.julialang.org/t/how-to-push-scalar-into-an-empty-vector/106555 "2023-11-22T01:04:34Z")

</div>

Hi all! I’m trying to create an empty vector that will be pushed with values inside a for loop. I tried the following: δ\_arr = Vector{Any}\[\] ϵ₀\_arr = Vector{Any}\[\] M\_arr = range(0.01e6, 0.9e6, 10) for i in 1:length(…

---

## [How to run julia notebooks on cluster computers?](https://discourse.julialang.org/t/how-to-run-julia-notebooks-on-cluster-computers/75277)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 8\
**Last updated:** [May 15, 2022, 9:29pm UTC](https://discourse.julialang.org/t/how-to-run-julia-notebooks-on-cluster-computers/75277 "2022-05-15T21:29:48Z")

</div>

Hi! I write most of the code in Jupyter notebooks or in Pluto notebooks, however recently I have been asked to shift to cluster computers, However I am unaware of how exactly or even if it is possible to run code written…

---

## [CuSparseMatrixCSC constructor](https://discourse.julialang.org/t/cusparsematrixcsc-constructor/62480)

<div class="topic-metadata">

**Author:** [@zhiwei](https://discourse.julialang.org/u/zhiwei)\
**Replies:** 2\
**Last updated:** [June 7, 2021, 2:30am UTC](https://discourse.julialang.org/t/cusparsematrixcsc-constructor/62480 "2021-06-07T02:30:24Z")

</div>

Hello, I am trying to use the CuSparseMatrixCSC constructor as defined here, but it throws an error. I’m wondering what’s gone wrong. julia\> using CUDA julia\> I = CuArray(\[1,1\]); julia\> J = CuArray(\[1,2\]); julia\> V …

---

## [Get pixel array of a Char](https://discourse.julialang.org/t/get-pixel-array-of-a-char/106426)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 5\
**Last updated:** [November 21, 2023, 10:59pm UTC](https://discourse.julialang.org/t/get-pixel-array-of-a-char/106426 "2023-11-21T22:59:18Z")

</div>

I am doing image processing work where I need to be able to manipulate images as arrays. I would like to make an array with values 0 or 1 such that the 1’s make the shape of a given letter. It is proving surprisingly d…

---

## [Multithreaded calculation slows down to 2 threads, debug how?](https://discourse.julialang.org/t/multithreaded-calculation-slows-down-to-2-threads-debug-how/106454)

<div class="topic-metadata">

**Author:** [@akhuettel](https://discourse.julialang.org/u/akhuettel)\
**Replies:** 10\
**Last updated:** [November 21, 2023, 9:45pm UTC](https://discourse.julialang.org/t/multithreaded-calculation-slows-down-to-2-threads-debug-how/106454 "2023-11-21T21:45:48Z")

</div>

Hi all, I’m running Julia on an AMD EPYC machine with 128 threads to solve a specific numerical problem. The code calculates a 2d coordinate grid and then loops over all the coordinates via Threads.@threads for (a,b) i…

---

## [JuliaCon YouTube Videos FAQ](https://discourse.julialang.org/t/juliacon-youtube-videos-faq/102318)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 12\
**Last updated:** [November 21, 2023, 8:47pm UTC](https://discourse.julialang.org/t/juliacon-youtube-videos-faq/102318 "2023-11-21T20:47:38Z")

</div>

I thought I’d answer some frequently asked questions here about the streams and video uploads on the YouTube Channel: There are issues with the stream of my talk. Please send us an email and we will try to fix the iss…

---

## [Occasionally NaNs when using similar()](https://discourse.julialang.org/t/occasionally-nans-when-using-similar/48224)

<div class="topic-metadata">

**Author:** [@lineycroc](https://discourse.julialang.org/u/lineycroc)\
**Replies:** 37\
**Last updated:** [November 21, 2023, 8:24pm UTC](https://discourse.julialang.org/t/occasionally-nans-when-using-similar/48224 "2023-11-21T20:24:49Z")

</div>

I am occasionally (but not always!) getting NaNs when using the similar command on a Float array. Here is a MME: using Random: seed! function run\_weird\_test() seed!(0) # this really shouldn't do anything... but here…

---

## [Static Analysis vs. Unit Tests](https://discourse.julialang.org/t/static-analysis-vs-unit-tests/106477)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 24\
**Last updated:** [November 21, 2023, 7:51pm UTC](https://discourse.julialang.org/t/static-analysis-vs-unit-tests/106477 "2023-11-21T19:51:31Z")

</div>

That sounds like not enough unit tests.

---

## [CUDA/GPU compatible discretization from MethodOfLines.jl](https://discourse.julialang.org/t/cuda-gpu-compatible-discretization-from-methodoflines-jl/106506)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [November 21, 2023, 7:46pm UTC](https://discourse.julialang.org/t/cuda-gpu-compatible-discretization-from-methodoflines-jl/106506 "2023-11-21T19:46:03Z")

</div>

MethodOfLines.jl (MOL) exports discretize which gives an ODEProblem that can then be directly passed to OrdinaryDiffEq.solve() to get a solution. This works great if you want a CPU evaluation, but it seems not so much i…

---

## [Multi-threaded benchmarking is slow](https://discourse.julialang.org/t/multi-threaded-benchmarking-is-slow/106386)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 12\
**Last updated:** [November 21, 2023, 7:43pm UTC](https://discourse.julialang.org/t/multi-threaded-benchmarking-is-slow/106386 "2023-11-21T19:43:32Z")

</div>

Motivation Running many benchmarks can be slow. Since almost all of them are independent, they can theoretically run easily on parallel. Problem It turns out running the benchmarks in parallel takes more or less equal …

---

## [Nested macro interpolation](https://discourse.julialang.org/t/nested-macro-interpolation/106547)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [November 21, 2023, 7:12pm UTC](https://discourse.julialang.org/t/nested-macro-interpolation/106547 "2023-11-21T19:12:57Z")

</div>

How to interpolate when having nested macros ? E.g., a toy example julia\> using Distributed julia\> using BenchmarkTools julia\> @everywhere function bencheverywhere() for k in 1:2 …

---

## [MethodErrors suggest fixes that may depend on internal bindings](https://discourse.julialang.org/t/methoderrors-suggest-fixes-that-may-depend-on-internal-bindings/106468)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 5\
**Last updated:** [November 21, 2023, 6:35pm UTC](https://discourse.julialang.org/t/methoderrors-suggest-fixes-that-may-depend-on-internal-bindings/106468 "2023-11-21T18:35:21Z")

</div>

On Julia v1.11: julia\> using FillArrays, LinearAlgebra julia\> Zeros(2,2) \* UpperTriangular(Zeros(2,2)) ERROR: MethodError: \*(::Zeros{Float64, 2, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}, ::UpperTriangular{Float64, …

---

## [Gadfly min/max ranges](https://discourse.julialang.org/t/gadfly-min-max-ranges/106540)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [November 21, 2023, 4:59pm UTC](https://discourse.julialang.org/t/gadfly-min-max-ranges/106540 "2023-11-21T16:59:17Z")

</div>

The new version of Gadfly seems to be overriding the min/max values set in color\_continuous(). The code below plot(x=rand(12), y=rand(12), color=rand(12), Scale.color\_continuous(minvalue=-1, maxvalue=100)) produces a…

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

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