# Latest

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

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

**Page:** 642

---

## [Calculating the 3d volume between arbitrary planes](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793)

<div class="topic-metadata">

**Author:** [@Gavin\_Held](https://discourse.julialang.org/u/Gavin_Held)\
**Replies:** 8\
**Last updated:** [July 19, 2023, 8:39pm UTC](https://discourse.julialang.org/t/calculating-the-3d-volume-between-arbitrary-planes/101793 "2023-07-19T20:39:10Z")

</div>

Hello, So I am trying to find an efficient way to calculate the volume between planes (e.g. the ones in the image). The planes are not parallel with one another, and I have not found any resources online that have be…

---

## [How to iterate in a thread safe way?](https://discourse.julialang.org/t/how-to-iterate-in-a-thread-safe-way/101727)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 18\
**Last updated:** [July 19, 2023, 8:33pm UTC](https://discourse.julialang.org/t/how-to-iterate-in-a-thread-safe-way/101727 "2023-07-19T20:33:55Z")

</div>

I have the following code: λ\_noms = sort(unique(vcat(7:0.1:9.5, 7.8:0.02:8.2, 7.98:0.005:8.02))) rel\_sigmas = zeros(length(λ\_noms)) i = 1 Threads.@threads for λ\_nom in λ\_noms println("lambda\_nom: $λ\_nom") rel\_si…

---

## [How to create struct where type parameter is a parametric type itself?](https://discourse.julialang.org/t/how-to-create-struct-where-type-parameter-is-a-parametric-type-itself/101723)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 6\
**Last updated:** [July 19, 2023, 8:05pm UTC](https://discourse.julialang.org/t/how-to-create-struct-where-type-parameter-is-a-parametric-type-itself/101723 "2023-07-19T20:05:44Z")

</div>

I’m simplifying my code here, but the problem is like this: struct MyType{Array{T\<:Real}} field::T function MyType(x::Array{T}) where T\<:Real new{Array{T}}(sum(x)) end end A workaround I found is to…

---

## [System of BVPs with complex dependent variables](https://discourse.julialang.org/t/system-of-bvps-with-complex-dependent-variables/79636)

<div class="topic-metadata">

**Author:** [@Fishperson](https://discourse.julialang.org/u/Fishperson)\
**Replies:** 2\
**Last updated:** [April 18, 2022, 4:25pm UTC](https://discourse.julialang.org/t/system-of-bvps-with-complex-dependent-variables/79636 "2022-04-18T16:25:45Z")

</div>

Hi, I have the sort of thankless job of writing up a Julia-implementation for what I guess is a matrix-version of a Riccati equation using the DifferentialEquations.jl package. More spesifically this is a boundary value…

---

## [Automatically Update WebApp Components like Plots with Genie/Stipple](https://discourse.julialang.org/t/automatically-update-webapp-components-like-plots-with-genie-stipple/77725)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 7:51pm UTC](https://discourse.julialang.org/t/automatically-update-webapp-components-like-plots-with-genie-stipple/77725 "2023-07-19T19:51:19Z")

</div>

Hello, I would like to know if there is a generic way of automatically update e.g. plots or other elements on the webpage created with stippleUI without explicit triggering some buttons or sliders. I would like to run a…

---

## [CuArray error when running NeuralPDE.jl on JuliaHub](https://discourse.julialang.org/t/cuarray-error-when-running-neuralpde-jl-on-juliahub/101798)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 6:49pm UTC](https://discourse.julialang.org/t/cuarray-error-when-running-neuralpde-jl-on-juliahub/101798 "2023-07-19T18:49:52Z")

</div>

Hi everyone! I was trying to test the GPU ability of NeuralPDE.jl on the JuliaHub, my network is defined like this: # Neural network inner = 25 chain = Chain(Dense(3,inner,Lux.σ), Dense(inner,inner,Lux.σ)…

---

## [Adjoint method in gridap](https://discourse.julialang.org/t/adjoint-method-in-gridap/100529)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 9\
**Last updated:** [July 19, 2023, 6:23pm UTC](https://discourse.julialang.org/t/adjoint-method-in-gridap/100529 "2023-07-19T18:23:28Z")

</div>

Hi, I am trying to understand this code of gridap tutorial 18 but i couldnt is there anyone who can explain how below equation is written in julia as below? dg/dpt=−2ℜ\[w^†(dA/dpt u)\] function Dgfdpf(pf\_vec; β, η, phys\_…

---

## [Remove allocations from splatting?](https://discourse.julialang.org/t/remove-allocations-from-splatting/101749)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 18\
**Last updated:** [July 19, 2023, 5:36pm UTC](https://discourse.julialang.org/t/remove-allocations-from-splatting/101749 "2023-07-19T17:36:03Z")

</div>

I have a simple function and cannot figure out where allocations happening. using BenchmarkTools p2s(x, y) = (360.0 + x) % 360, (360.0 + y) % 360.0 # 0 allocations function p2s!(p::T, s::T) where T \<: VecOrMat …

---

## [How to examine a pointer address?](https://discourse.julialang.org/t/how-to-examine-a-pointer-address/101791)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 5:11pm UTC](https://discourse.julialang.org/t/how-to-examine-a-pointer-address/101791 "2023-07-19T17:11:29Z")

</div>

I am wrapping a library that returns an opaque structure. The call that gives me my result looks like: z = @ccall mylib.returns\_opaque()::Ptr{Cvoid} If the structure is properly initialized, it will be nonzero (i.e. n…

---

## [Get info about variables and functions in REPL](https://discourse.julialang.org/t/get-info-about-variables-and-functions-in-repl/101790)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 4:25pm UTC](https://discourse.julialang.org/t/get-info-about-variables-and-functions-in-repl/101790 "2023-07-19T16:25:07Z")

</div>

I know that there is the function varinfo(). But how can I get only a list of: global variables global constants global structs global enums global functions and not a mix of everything?

---

## [Interrupts in @async code](https://discourse.julialang.org/t/interrupts-in-async-code/95837)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 20\
**Last updated:** [July 19, 2023, 4:16pm UTC](https://discourse.julialang.org/t/interrupts-in-async-code/95837 "2023-07-19T16:16:08Z")

</div>

I’m trying to wrap my head around how Julia handles interrupts in @async code. I have three different scripts that I’m trying to interrupt using ctrl+c, with various degrees of success. Script1: julia\> @async begin …

---

## [PyCall build fails during Conda installation on Win 11](https://discourse.julialang.org/t/pycall-build-fails-during-conda-installation-on-win-11/101786)

<div class="topic-metadata">

**Author:** [@Disperser3804](https://discourse.julialang.org/u/Disperser3804)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 4:11pm UTC](https://discourse.julialang.org/t/pycall-build-fails-during-conda-installation-on-win-11/101786 "2023-07-19T16:11:55Z")

</div>

On a fresh Win 11 and Julia 1.9.2 installation, building PyCall results in an error during the miniconda installation step: ERROR: Error building PyCall: ┌ Info: Using the Python distribution in the Conda package by def…

---

## [Saving data a scan at a time and reading as a contiguous block](https://discourse.julialang.org/t/saving-data-a-scan-at-a-time-and-reading-as-a-contiguous-block/101691)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 11\
**Last updated:** [July 19, 2023, 3:52pm UTC](https://discourse.julialang.org/t/saving-data-a-scan-at-a-time-and-reading-as-a-contiguous-block/101691 "2023-07-19T15:52:59Z")

</div>

I am looking at collecting data from an instrument. The data comes in multiple channels of one to sixteen channels, for this example lets use 4. It is collected with a specified frame size, for the sake of argument cal…

---

## [ANN: SimulatedNeuralMoments v2.0.0](https://discourse.julialang.org/t/ann-simulatedneuralmoments-v2-0-0/101627)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 3:32pm UTC](https://discourse.julialang.org/t/ann-simulatedneuralmoments-v2-0-0/101627 "2023-07-19T15:32:52Z")

</div>

v2.0.0 is out. Fixes a bug that slipped in somewhere in the 1.0.x series, which led to sub-par results. :japanese\_goblin: Performance is now back to what it should be. There is some restructuring and minor API changes. …

---

## [Printf with custom format (custom data type)](https://discourse.julialang.org/t/printf-with-custom-format-custom-data-type/101782)

<div class="topic-metadata">

**Author:** [@shiroghost](https://discourse.julialang.org/u/shiroghost)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 2:52pm UTC](https://discourse.julialang.org/t/printf-with-custom-format-custom-data-type/101782 "2023-07-19T14:52:43Z")

</div>

Hi all, Is it possible to add format specifiers to printf for custom data types? Thanks

---

## [Homoclinic loop accuracy DifferentialEquations.jl](https://discourse.julialang.org/t/homoclinic-loop-accuracy-differentialequations-jl/97456)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 25\
**Last updated:** [July 19, 2023, 2:19pm UTC](https://discourse.julialang.org/t/homoclinic-loop-accuracy-differentialequations-jl/97456 "2023-07-19T14:19:24Z")

</div>

Hello! I try get homoclinic loop to saddle focus for system of Rossler. With the given parameters, the homoclinic definitely exists, according to some articles. To get homoclinic loop, I integrate in backward time. Whe…

---

## [Debugger doesn't stop at breakpoints when running tests (but does during normal execution)](https://discourse.julialang.org/t/debugger-doesnt-stop-at-breakpoints-when-running-tests-but-does-during-normal-execution/93202)

<div class="topic-metadata">

**Author:** [@eott-siz](https://discourse.julialang.org/u/eott-siz)\
**Replies:** 11\
**Last updated:** [July 19, 2023, 1:37pm UTC](https://discourse.julialang.org/t/debugger-doesnt-stop-at-breakpoints-when-running-tests-but-does-during-normal-execution/93202 "2023-07-19T13:37:53Z")

</div>

Julia 1.7.3 VS Code 1.74.3 Julia extension 1.38.2 I’m having a problem where, when I run tests with the debugger on the program I’m working on, the debugger doesn’t stop at any breakpoints I set. If I run the program …

---

## [How does copying slices work?](https://discourse.julialang.org/t/how-does-copying-slices-work/101777)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 6\
**Last updated:** [July 19, 2023, 12:46pm UTC](https://discourse.julialang.org/t/how-does-copying-slices-work/101777 "2023-07-19T12:46:29Z")

</div>

julia\> data=\[1,2,3,4,5,6,0,0,0\] 9-element Vector{Int64}: julia\> data\[6:9\].=data\[3:6\] julia\> data 9-element Vector{Int64}: 1 2 3 4 5 3 4 5 6 why in this example data\[9\] =6 and not =data\[3\]? I’m fine with it w…

---

## [Building a strong Julia chess engine](https://discourse.julialang.org/t/building-a-strong-julia-chess-engine/101726)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 14\
**Last updated:** [July 19, 2023, 12:39pm UTC](https://discourse.julialang.org/t/building-a-strong-julia-chess-engine/101726 "2023-07-19T12:39:39Z")

</div>

Should we build a strong chess engine? How do I go about it? I need to get started by interfacing with UCI, but how? Then, what next? Any idea to leverage Julia’s strength? For example, I’m thinking of generating code us…

---

## [Unable to use @sk\_import](https://discourse.julialang.org/t/unable-to-use-sk-import/101779)

<div class="topic-metadata">

**Author:** [@shoram](https://discourse.julialang.org/u/shoram)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 12:30pm UTC](https://discourse.julialang.org/t/unable-to-use-sk-import/101779 "2023-07-19T12:30:29Z")

</div>

Hello all, I’m trying to Scikitlearn.jl package to learn ML with Julia (I’m trying to transition from python to Julia). However, for the life of me I can’t get the @sk\_import to work with me. I keep getting the followin…

---

## [GLMakie: hide control widgets before saving?](https://discourse.julialang.org/t/glmakie-hide-control-widgets-before-saving/101721)

<div class="topic-metadata">

**Author:** [@mwlidar](https://discourse.julialang.org/u/mwlidar)\
**Replies:** 5\
**Last updated:** [July 19, 2023, 12:22pm UTC](https://discourse.julialang.org/t/glmakie-hide-control-widgets-before-saving/101721 "2023-07-19T12:22:19Z")

</div>

Using GLMakie I created a nice 3D view of my data surrounded by some widget (Sliders, Textboxes) to control the appearance (see below). If I now want to save this to a file I would like to only the data, the title and th…

---

## [I want to improve package how to do it](https://discourse.julialang.org/t/i-want-to-improve-package-how-to-do-it/101776)

<div class="topic-metadata">

**Author:** [@Denis\_Ivanov](https://discourse.julialang.org/u/Denis_Ivanov)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 11:09am UTC](https://discourse.julialang.org/t/i-want-to-improve-package-how-to-do-it/101776 "2023-07-19T11:09:36Z")

</div>

Hi! I am interested in number theory, including Egyptian fractions. Got interesting results on Julia for OEIS. I found this package, but quite old (4 years) and author does not respond to issues. Package does not have …

---

## [Possibility to convert SciMLBase.SplitODEProblem to SciMLBase.ODEProblem](https://discourse.julialang.org/t/possibility-to-convert-scimlbase-splitodeproblem-to-scimlbase-odeproblem/101732)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 11:00am UTC](https://discourse.julialang.org/t/possibility-to-convert-scimlbase-splitodeproblem-to-scimlbase-odeproblem/101732 "2023-07-19T11:00:47Z")

</div>

I was wondering whether there is a neat way of converting a split ODE problem of the form SplitODEProblem{isinplace}(f1,f2,u0,tspan,p=NullParameters();kwargs...) to an usual ODE problem ODEProblem{isinplace,specialize}…

---

## [Capture stdout and stderr in case a command fails](https://discourse.julialang.org/t/capture-stdout-and-stderr-in-case-a-command-fails/101772)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [July 19, 2023, 8:59am UTC](https://discourse.julialang.org/t/capture-stdout-and-stderr-in-case-a-command-fails/101772 "2023-07-19T08:59:11Z")

</div>

What is the current recommended pattern for capturing the output of stdout and stderr of a command? I tried something like log = IOBuffer() redirect\_stdio(; stdout = log, stderr = log) do if success(cmd) no…

---

## [Libcurl error when adding new package with Julia 1.9.2 Linux System](https://discourse.julialang.org/t/libcurl-error-when-adding-new-package-with-julia-1-9-2-linux-system/101755)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [July 19, 2023, 8:31am UTC](https://discourse.julialang.org/t/libcurl-error-when-adding-new-package-with-julia-1-9-2-linux-system/101755 "2023-07-19T08:31:19Z")

</div>

Hi all, so I delete .julia directory from old Julia -1.7.3 then I download Julia 1.9.2 and set the path to this new Julia, but then when I try to add a new package this error happens

---

## [Factorization with Symbolics package](https://discourse.julialang.org/t/factorization-with-symbolics-package/101773)

<div class="topic-metadata">

**Author:** [@Alf](https://discourse.julialang.org/u/Alf)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 8:26am UTC](https://discourse.julialang.org/t/factorization-with-symbolics-package/101773 "2023-07-19T08:26:23Z")

</div>

I am starting to use the Julia package Symbolics for symbolic Maths but I can not figure out how to factorize a polynomial. I want to get the same as with SymPy. using SymPy @vars x factor(x^2 + 2x + 1) that returns …

---

## [Plot WIndow Does Not Show Up for Fresh Install Julia-1.9.2 with Plots](https://discourse.julialang.org/t/plot-window-does-not-show-up-for-fresh-install-julia-1-9-2-with-plots/101768)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 7:56am UTC](https://discourse.julialang.org/t/plot-window-does-not-show-up-for-fresh-install-julia-1-9-2-with-plots/101768 "2023-07-19T07:56:55Z")

</div>

I have installed Julia-1.9.2 and just add one package Plots try this simple code: using Plots gr() f(x) = exp(x) plot(f) the plot window / GUI window is not showing. How to fix this?

---

## [Incorrect coverage report that flags line with \`end\`](https://discourse.julialang.org/t/incorrect-coverage-report-that-flags-line-with-end/101767)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [July 19, 2023, 7:30am UTC](https://discourse.julialang.org/t/incorrect-coverage-report-that-flags-line-with-end/101767 "2023-07-19T07:30:29Z")

</div>

See Codecov, where the line with end is flagged as uncovered, but lines leading up to it are covered. I wonder how to get the report working correctly?

---

## [How to use Makie's (CairoMakie) heatmap for a matrix with some empty positions?](https://discourse.julialang.org/t/how-to-use-makies-cairomakie-heatmap-for-a-matrix-with-some-empty-positions/101762)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 5:56am UTC](https://discourse.julialang.org/t/how-to-use-makies-cairomakie-heatmap-for-a-matrix-with-some-empty-positions/101762 "2023-07-19T05:56:52Z")

</div>

I am using this code to produce a heatmap with Makie using the backend of CairoMakie agent\_money(xx,yy) = id\_in\_position( (xx,yy) , schelling ) \> 0 ? schelling\[ id\_in\_position( (xx,yy) , schelling ) \].money : -1 xs = 1…

---

## [Flux.@functor won't work on custom layer (empty parameters)](https://discourse.julialang.org/t/flux-functor-wont-work-on-custom-layer-empty-parameters/101587)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 5:46am UTC](https://discourse.julialang.org/t/flux-functor-wont-work-on-custom-layer-empty-parameters/101587 "2023-07-19T05:46:35Z")

</div>

I’m having a hard time understanding the behavior of the @functor macro. See the snippets below: For the first one, I follow the tutorial on custom layers step by step and it works. For the second one, I alter the code s…

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

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