# Latest

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

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

**Page:** 352

---

## [Using Multi-start with local MINLP solvers in Julia](https://discourse.julialang.org/t/using-multi-start-with-local-minlp-solvers-in-julia/117634)

<div class="topic-metadata">

**Author:** [@Lunima](https://discourse.julialang.org/u/Lunima)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 8:17am UTC](https://discourse.julialang.org/t/using-multi-start-with-local-minlp-solvers-in-julia/117634 "2024-07-31T08:17:37Z")

</div>

Hi everyone! When reading the Knitro documentation I saw it could use a multi-start method to solver non-convex MINLP to global optimality even though it is a local solver. Is it possible to implement such a method in …

---

## [How to drop singleton dimensions in a type stable way?](https://discourse.julialang.org/t/how-to-drop-singleton-dimensions-in-a-type-stable-way/117653)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 8\
**Last updated:** [July 31, 2024, 7:39am UTC](https://discourse.julialang.org/t/how-to-drop-singleton-dimensions-in-a-type-stable-way/117653 "2024-07-31T07:39:25Z")

</div>

I have a 3D array A which is obtained by calculating a certain function over a grid specified by axes xs, ys and zs. These axes can be either an AbstractVector{Number} or a Number. When any of the axes is a Number, the c…

---

## [Custom layer in Lux](https://discourse.julialang.org/t/custom-layer-in-lux/117642)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 2:42am UTC](https://discourse.julialang.org/t/custom-layer-in-lux/117642 "2024-07-31T02:42:09Z")

</div>

Hi, I’m trying to implement a custom layer in Lux that is similar to a linear layer but needs to apply a user-defined mask to the weights. It needs to compute h(x) = g(b + (W ⊙ M)(x)) where g is an activation function…

---

## [Is there a way to change the default CairoMakie.jl temp directory?](https://discourse.julialang.org/t/is-there-a-way-to-change-the-default-cairomakie-jl-temp-directory/117576)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 2\
**Last updated:** [July 29, 2024, 9:42pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-change-the-default-cairomakie-jl-temp-directory/117576 "2024-07-29T21:42:44Z")

</div>

I’m using Julia on my phone and so CairoMakie.jl can’t display plots directly, but it does save it to a temp directory. But this directory is very inconvenient since it’s buried under two VM layers (Android-\>termux-\>Ubun…

---

## [ApproxFun Tutorials Discretization Error](https://discourse.julialang.org/t/approxfun-tutorials-discretization-error/117612)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 4\
**Last updated:** [July 30, 2024, 9:44pm UTC](https://discourse.julialang.org/t/approxfun-tutorials-discretization-error/117612 "2024-07-30T21:44:09Z")

</div>

How can the accuracy in the computed solution in the ApproxFun Tutorials be adapted/changed? Is there a way top set the number of basis functions being used for e.g. a coarse, intermediate and fine scale approximation? H…

---

## [New failure to precompile](https://discourse.julialang.org/t/new-failure-to-precompile/117635)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 8:19pm UTC](https://discourse.julialang.org/t/new-failure-to-precompile/117635 "2024-07-30T20:19:15Z")

</div>

I’ve been away for three weeks. Now my script won’t work. I haven’t changed anything knowingly. #using Pkg #Pkg.instantiate() #Pkg.update() using GeoStats, GeoIO, CSV, DataFrames, Colors, ColorSchemes, PDFmerger gives …

---

## [GLMakie elements too small on hidipi screen](https://discourse.julialang.org/t/glmakie-elements-too-small-on-hidipi-screen/117649)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 7:53pm UTC](https://discourse.julialang.org/t/glmakie-elements-too-small-on-hidipi-screen/117649 "2024-07-30T19:53:45Z")

</div>

In GLMakie on a 4k screen everything in my plot seems too small. I tried Figure(px\_per\_unit=16, pt\_per\_unit=16) but that didn’t do anything afaict.

---

## [Using Tasks 101](https://discourse.julialang.org/t/using-tasks-101/114878)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 15\
**Last updated:** [July 30, 2024, 7:49pm UTC](https://discourse.julialang.org/t/using-tasks-101/114878 "2024-07-30T19:49:31Z")

</div>

I’m not sure if this is the right place to post this, but I spent a lot of time learning about Tasks recently for a project at work, and wrote up a blog post tutorial summarizing how to use them: https://www.lesswrong.co…

---

## [Triggering CI run by release of a new pre-release Julia version?](https://discourse.julialang.org/t/triggering-ci-run-by-release-of-a-new-pre-release-julia-version/117646)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 0\
**Last updated:** [July 30, 2024, 7:03pm UTC](https://discourse.julialang.org/t/triggering-ci-run-by-release-of-a-new-pre-release-julia-version/117646 "2024-07-30T19:03:18Z")

</div>

see the post header :slight\_smile:

---

## [Saving/loading a neural network trained with NeuralPDE](https://discourse.julialang.org/t/saving-loading-a-neural-network-trained-with-neuralpde/117583)

<div class="topic-metadata">

**Author:** [@gradureau](https://discourse.julialang.org/u/gradureau)\
**Replies:** 3\
**Last updated:** [July 30, 2024, 4:42pm UTC](https://discourse.julialang.org/t/saving-loading-a-neural-network-trained-with-neuralpde/117583 "2024-07-30T16:42:39Z")

</div>

Hello everybody, I am using neuralPDE to train neural networks and I wish to save them in files to use them later. It works just fine if I use the standard Lux layers. Yet I wish to use the following custom layer at the…

---

## [RCall not working - package 'stats' not found](https://discourse.julialang.org/t/rcall-not-working-package-stats-not-found/93206)

<div class="topic-metadata">

**Author:** [@Danilo\_Carajiliascov](https://discourse.julialang.org/u/Danilo_Carajiliascov)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 4:13pm UTC](https://discourse.julialang.org/t/rcall-not-working-package-stats-not-found/93206 "2024-07-30T16:13:17Z")

</div>

Hi, Everyone! Can someone help me with these errors, please? It was working yesterday at night and today mornig started to show the errors above :pensive: After loading package (“using RCall”) ┌ Warning: RCall.jl: Du…

---

## [Reading hdf5 files with ascii headers](https://discourse.julialang.org/t/reading-hdf5-files-with-ascii-headers/117632)

<div class="topic-metadata">

**Author:** [@Tim\_Hultberg](https://discourse.julialang.org/u/Tim_Hultberg)\
**Replies:** 0\
**Last updated:** [July 30, 2024, 2:25pm UTC](https://discourse.julialang.org/t/reading-hdf5-files-with-ascii-headers/117632 "2024-07-30T14:25:07Z")

</div>

In my program I have to read data from a large number of hdf5 files with a fixed size (3307) ascii header added. For now, I loop through the files and write a temporary file to disk without the disturbing ascii header a…

---

## [How do I make a Makie.jl recipe which defaults to 3D rendering?](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631)

<div class="topic-metadata">

**Author:** [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 1:44pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631 "2024-07-30T13:44:23Z")

</div>

I have a recipe that used to run fine with Makie 0.15. In the current Makie version (0.21) it renders as 2D unless I pass the keyword argument axis=(type=Makie.Axis3,). How can I make 3D rendering the default?

---

## [Macro interpolation of Symbols without \`eval\`](https://discourse.julialang.org/t/macro-interpolation-of-symbols-without-eval/117603)

<div class="topic-metadata">

**Author:** [@joh](https://discourse.julialang.org/u/joh)\
**Replies:** 3\
**Last updated:** [July 30, 2024, 12:37pm UTC](https://discourse.julialang.org/t/macro-interpolation-of-symbols-without-eval/117603 "2024-07-30T12:37:57Z")

</div>

I am trying to write a macro for setting up a submodule in my package. Since this is called at precompile time, I cannot use eval (otherwise I get InitError: Evaluation into the closed module ImportEval breaks incrementa…

---

## [REPL in VS Code does not start in the project's environment anymore](https://discourse.julialang.org/t/repl-in-vs-code-does-not-start-in-the-projects-environment-anymore/117627)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 12:31pm UTC](https://discourse.julialang.org/t/repl-in-vs-code-does-not-start-in-the-projects-environment-anymore/117627 "2024-07-30T12:31:30Z")

</div>

I’ve noticed this only recently, I don’t know the reason. Until now, when I started a Julia REPL (e.g. Alt+J, Alt+O) the active environment was the one selected by the extension (as seen in “Julia env” in the lower bar).…

---

## [Macro with variable argument list combined with closure](https://discourse.julialang.org/t/macro-with-variable-argument-list-combined-with-closure/117623)

<div class="topic-metadata">

**Author:** [@nietzsche](https://discourse.julialang.org/u/nietzsche)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 11:19am UTC](https://discourse.julialang.org/t/macro-with-variable-argument-list-combined-with-closure/117623 "2024-07-30T11:19:06Z")

</div>

Hi, i have a question about variable arguments in macros together with the scope of them. Function count\_test() should be a closure over the variable count and the lambda should be generated with a macro. It should b…

---

## [Plotting observed of DiscreteSystem](https://discourse.julialang.org/t/plotting-observed-of-discretesystem/117620)

<div class="topic-metadata">

**Author:** [@binnisb](https://discourse.julialang.org/u/binnisb)\
**Replies:** 4\
**Last updated:** [July 30, 2024, 10:52am UTC](https://discourse.julialang.org/t/plotting-observed-of-discretesystem/117620 "2024-07-30T10:52:47Z")

</div>

Hey. I wanted to try out MTK so I am moving an Excel calculation I had set up for calculating monthly repayments of a inflation linked loan to MTK. I got the model running. My issue is how to plot the observed values, …

---

## [This about chefs, but programmers might wish to pay attention too](https://discourse.julialang.org/t/this-about-chefs-but-programmers-might-wish-to-pay-attention-too/117578)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 8\
**Last updated:** [July 30, 2024, 9:38am UTC](https://discourse.julialang.org/t/this-about-chefs-but-programmers-might-wish-to-pay-attention-too/117578 "2024-07-30T09:38:51Z")

</div>

Machines might not take your job. But they could make it worse (economist.com)

---

## [On work environments and noise](https://discourse.julialang.org/t/on-work-environments-and-noise/117481)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 26\
**Last updated:** [July 30, 2024, 9:32am UTC](https://discourse.julialang.org/t/on-work-environments-and-noise/117481 "2024-07-30T09:32:47Z")

</div>

In Julia has ruined my work experience - #67 by kapple, @kapple posted: This generated an engaging discussion on noise and work, enough so that I figured it’d be worth splitting the topic to have a dedicated place for …

---

## [Agents.jl problem with the step! function](https://discourse.julialang.org/t/agents-jl-problem-with-the-step-function/117598)

<div class="topic-metadata">

**Author:** [@Farouk](https://discourse.julialang.org/u/Farouk)\
**Replies:** 6\
**Last updated:** [July 30, 2024, 9:26am UTC](https://discourse.julialang.org/t/agents-jl-problem-with-the-step-function/117598 "2024-07-30T09:26:24Z")

</div>

Hi I am new to Agents.jl and Julia, I am following the official online tutorial on the Shelling’s model, however I am facing a hard time with the step! function, I tried to use the same source code as in the tutorial but…

---

## [Enable multiple Cores for Jupyter Lab](https://discourse.julialang.org/t/enable-multiple-cores-for-jupyter-lab/18658)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 12\
**Last updated:** [July 30, 2024, 8:25am UTC](https://discourse.julialang.org/t/enable-multiple-cores-for-jupyter-lab/18658 "2024-07-30T08:25:20Z")

</div>

I have found some resources on this online, but nothing which I actually is able to understand fully. I want to enable multiple cores when I run JupyterLab (also notebooks). This link (Setting JULIA\_NUM\_THREADS in an I…

---

## [Type instability of empty \`Array\` with elemental types parameterized by \`UnionAll\`](https://discourse.julialang.org/t/type-instability-of-empty-array-with-elemental-types-parameterized-by-unionall/117618)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 5:14am UTC](https://discourse.julialang.org/t/type-instability-of-empty-array-with-elemental-types-parameterized-by-unionall/117618 "2024-07-30T05:14:43Z")

</div>

MWE: julia\> v1 = Tuple{AbstractVector{Float64}, Int64}\[\] Tuple{AbstractVector{Float64}, Int64}\[\] julia\> first.(v1) AbstractVector{Float64}\[\] julia\> v2 = Tuple{AbstractArray{Float64}, Int64}\[\] Tuple{AbstractArray{Float…

---

## [How to speed up ipopt with HSL ma86 using parallel processing](https://discourse.julialang.org/t/how-to-speed-up-ipopt-with-hsl-ma86-using-parallel-processing/117567)

<div class="topic-metadata">

**Author:** [@Chi\_Jan](https://discourse.julialang.org/u/Chi_Jan)\
**Replies:** 7\
**Last updated:** [July 30, 2024, 2:42am UTC](https://discourse.julialang.org/t/how-to-speed-up-ipopt-with-hsl-ma86-using-parallel-processing/117567 "2024-07-30T02:42:18Z")

</div>

Hi community, I was previously using IPOPT with MUMPS (which is the default) to solve my problem, but the performance was a bit slow. I obtained an academic license for HSL and successfully downloaded and ran the code as…

---

## [Register array of symbolic functions](https://discourse.julialang.org/t/register-array-of-symbolic-functions/117602)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [July 30, 2024, 2:26am UTC](https://discourse.julialang.org/t/register-array-of-symbolic-functions/117602 "2024-07-30T02:26:13Z")

</div>

Dear all, I have the following issue with JuMP: I define an array of symbolic expression I want to use as constraint in a mathematical program. In particular, I have defined my function in the array gn and I want to wri…

---

## [Parallel matrix col/row operations give incorrect results](https://discourse.julialang.org/t/parallel-matrix-col-row-operations-give-incorrect-results/117549)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 8\
**Last updated:** [July 29, 2024, 8:26pm UTC](https://discourse.julialang.org/t/parallel-matrix-col-row-operations-give-incorrect-results/117549 "2024-07-29T20:26:35Z")

</div>

When doing gaussian elimination in parallel, I noticed incorrect results when I pass tuples of several matrices: using LinearAlgebra function add\_col!(X::Matrix{tw}, w::tw, j1::Int, j2::Int) where {tw} for i=1:siz…

---

## [How to improve efficiency of my linear algebra code (matrix equivalency)](https://discourse.julialang.org/t/how-to-improve-efficiency-of-my-linear-algebra-code-matrix-equivalency/110572)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 33\
**Last updated:** [July 29, 2024, 8:23pm UTC](https://discourse.julialang.org/t/how-to-improve-efficiency-of-my-linear-algebra-code-matrix-equivalency/110572 "2024-07-29T20:23:20Z")

</div>

I wish to write a function decompose\_diag\_over\_field! that, given an mxn matrix X over a field, decomposes it in-place as X=U\*D\*V, where D is a diagonal mxn matrix and U,V are invertible mxm and nxn matrices, with inver…

---

## [Pkg.update fail SSL](https://discourse.julialang.org/t/pkg-update-fail-ssl/114305)

<div class="topic-metadata">

**Author:** [@daro.slai](https://discourse.julialang.org/u/daro.slai)\
**Replies:** 7\
**Last updated:** [July 29, 2024, 6:39pm UTC](https://discourse.julialang.org/t/pkg-update-fail-ssl/114305 "2024-07-29T18:39:26Z")

</div>

Hi everyone, I’m trying to Pkg.update() a project / env I’m working on and I get the following error: ERROR: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn't know how to co…

---

## [Julia v1.11.0-rc2 is now available](https://discourse.julialang.org/t/julia-v1-11-0-rc2-is-now-available/117604)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 5:27pm UTC](https://discourse.julialang.org/t/julia-v1-11-0-rc2-is-now-available/117604 "2024-07-29T17:27:28Z")

</div>

The Julia developers are pleased to announce that the second release candidate for Julia v1.11.0 is now available. You can download binaries using JuliaUp or from https://julialang.org/downloads/ in the “upcoming release…

---

## [Thread-safe array building](https://discourse.julialang.org/t/thread-safe-array-building/3275)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 21\
**Last updated:** [October 24, 2017, 4:09pm UTC](https://discourse.julialang.org/t/thread-safe-array-building/3275 "2017-10-24T16:09:35Z")

</div>

I want to use threading to build a result. But it seems push! isn’t thread-safe: num\_monte = Int(1e6) solution\_data = Vector{Float64}() Threads.@threads for i in 1:num\_monte push!(solution\_data,i) …

---

## [Objects not being finalized until exit() when using multithreading. Is this a bug?](https://discourse.julialang.org/t/objects-not-being-finalized-until-exit-when-using-multithreading-is-this-a-bug/117595)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 2\
**Last updated:** [July 29, 2024, 4:17pm UTC](https://discourse.julialang.org/t/objects-not-being-finalized-until-exit-when-using-multithreading-is-this-a-bug/117595 "2024-07-29T16:17:21Z")

</div>

Here’s a script which defines a mutable struct Foo, creates 10 of them, loops over them using Threads.@threads and then calls GC: mutable struct Foo value::Int function Foo(value) finalizer(new(value)) d…

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

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