# Latest

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

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

**Page:** 627

---

## [Error precompiling VSCodeServer in Julia 1.11-DEV (nightly)](https://discourse.julialang.org/t/error-precompiling-vscodeserver-in-julia-1-11-dev-nightly/102478)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 3\
**Last updated:** [August 6, 2023, 8:33pm UTC](https://discourse.julialang.org/t/error-precompiling-vscodeserver-in-julia-1-11-dev-nightly/102478 "2023-08-06T20:33:27Z")

</div>

One of my packages is throwing an error in CI on the Julia nightly build (1.11-DEV), so I wanted to test it out locally, in VS Code. However, after installing the nightly build and the necessary packages, when I try to r…

---

## [Effect of Interpolation on ODE Gradient Computation](https://discourse.julialang.org/t/effect-of-interpolation-on-ode-gradient-computation/102525)

<div class="topic-metadata">

**Author:** [@George\_Stepaniants](https://discourse.julialang.org/u/George_Stepaniants)\
**Replies:** 7\
**Last updated:** [August 6, 2023, 8:36pm UTC](https://discourse.julialang.org/t/effect-of-interpolation-on-ode-gradient-computation/102525 "2023-08-06T20:36:52Z")

</div>

I am interested in understanding how to optimize the coefficients of an ODE (such as Lotka-Volterra) under some cost function given that this ODE is influenced by a set of controls c1(t), …, cn(t) for which I observe sim…

---

## [Multiway string substitution](https://discourse.julialang.org/t/multiway-string-substitution/102345)

<div class="topic-metadata">

**Author:** [@Denis\_Ivanov](https://discourse.julialang.org/u/Denis_Ivanov)\
**Replies:** 17\
**Last updated:** [August 6, 2023, 8:15pm UTC](https://discourse.julialang.org/t/multiway-string-substitution/102345 "2023-08-06T20:15:07Z")

</div>

I have set an ambitious goal of modeling some Wolfram Physics Project features into Julia. Because actually, Julia works faster and more efficiently, while the subject is very interesting. A bit later I will be happy to…

---

## [Makie.jl - LaTeX ticks (and other elements)by default](https://discourse.julialang.org/t/makie-jl-latex-ticks-and-other-elements-by-default/102529)

<div class="topic-metadata">

**Author:** [@danieleavitabile](https://discourse.julialang.org/u/danieleavitabile)\
**Replies:** 4\
**Last updated:** [August 6, 2023, 6:57pm UTC](https://discourse.julialang.org/t/makie-jl-latex-ticks-and-other-elements-by-default/102529 "2023-08-06T18:57:33Z")

</div>

Hi All, I have read several posts in which LaTex ticks can be added to Makie manually, by specifying the ticks with a command, for instance here. Close to publication, I would like that by default every text in my figu…

---

## [Image samples and derivatives for direct/photometric image alignment](https://discourse.julialang.org/t/image-samples-and-derivatives-for-direct-photometric-image-alignment/102214)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 6\
**Last updated:** [August 6, 2023, 6:03pm UTC](https://discourse.julialang.org/t/image-samples-and-derivatives-for-direct-photometric-image-alignment/102214 "2023-08-06T18:03:32Z")

</div>

I’m planning to do some direct (or photometric) image alignment (or registration) in Julia. By this I mean methods based on the Lucas-Kanade method. For this I’ll need not only image samples at non-integer locations, but…

---

## [ParallelStencil.jl cannot initialize with parameterized backend](https://discourse.julialang.org/t/parallelstencil-jl-cannot-initialize-with-parameterized-backend/102536)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 0\
**Last updated:** [August 6, 2023, 5:01pm UTC](https://discourse.julialang.org/t/parallelstencil-jl-cannot-initialize-with-parameterized-backend/102536 "2023-08-06T17:01:25Z")

</div>

Hi, I’m trying to use parallelstencil.jl with Threads or CUDA and ran into the following error: julia\> using ParallelStencil julia\> using CUDA julia\> pscheme=CUDA CUDA julia\> @init\_parallel\_stencil(pscheme, Float64, …

---

## [FFTW.jl support fftw\_plan\_many\_dft?](https://discourse.julialang.org/t/fftw-jl-support-fftw-plan-many-dft/102466)

<div class="topic-metadata">

**Author:** [@diadora77](https://discourse.julialang.org/u/diadora77)\
**Replies:** 6\
**Last updated:** [August 6, 2023, 4:52pm UTC](https://discourse.julialang.org/t/fftw-jl-support-fftw-plan-many-dft/102466 "2023-08-06T16:52:08Z")

</div>

Hi - I have a scenario where I’m working with a large number of 3d arrays and want to efficiently calculate FFT’s for each column. I’ve written a few test functions that iterate in various ways across columns in calcula…

---

## [Scatter plot with multiple labels per point](https://discourse.julialang.org/t/scatter-plot-with-multiple-labels-per-point/102477)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 3:25pm UTC](https://discourse.julialang.org/t/scatter-plot-with-multiple-labels-per-point/102477 "2023-08-06T15:25:29Z")

</div>

Suppose I have some a set of items like this: stuct DummyItem x::Float64 y::Float64 labels::Vector{String} end Where labels can have 10-100 elements but only up to max 10 or so unique values. Is there a good way to…

---

## [Error with Relu activation function when solving problem on NeuralPDE](https://discourse.julialang.org/t/error-with-relu-activation-function-when-solving-problem-on-neuralpde/102418)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 20\
**Last updated:** [August 6, 2023, 12:14pm UTC](https://discourse.julialang.org/t/error-with-relu-activation-function-when-solving-problem-on-neuralpde/102418 "2023-08-06T12:14:35Z")

</div>

I tried to solve the ODE problem by PDESystem on NeuralPDE with relu as activation functions. chain =\[Lux.Chain(Dense(1,10,Lux.relu),Dense(10,20,Lux.relu),Dense(20,10,Lux.relu),Dense(10,1)) for \_ in 1:12\] @named pde\_sy…

---

## [Why does Symbolics.@variables return different types dependent on whether a single or multiple variables requested?](https://discourse.julialang.org/t/why-does-symbolics-variables-return-different-types-dependent-on-whether-a-single-or-multiple-variables-requested/102528)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 2\
**Last updated:** [August 6, 2023, 5:09am UTC](https://discourse.julialang.org/t/why-does-symbolics-variables-return-different-types-dependent-on-whether-a-single-or-multiple-variables-requested/102528 "2023-08-06T05:09:28Z")

</div>

See below. julia\> using Symbolics julia\> @variables x::Real 1-element Vector{Num}: x julia\> typeof( x ) Vector{Num} (alias for Array{Num, 1}) julia\> @variables x::Real y::Real 2-element Vector{Num}: x y julia\> ty…

---

## [Convex.jl vs. optimization.jl](https://discourse.julialang.org/t/convex-jl-vs-optimization-jl/102429)

<div class="topic-metadata">

**Author:** [@tapyu](https://discourse.julialang.org/u/tapyu)\
**Replies:** 9\
**Last updated:** [August 6, 2023, 2:19am UTC](https://discourse.julialang.org/t/convex-jl-vs-optimization-jl/102429 "2023-08-06T02:19:58Z")

</div>

I am a little unsure about the difference between these packages. How to know whether I should use optimization.jl or convex.jl? I am pretty used to disciplined convex programming (convex.jl covers it nicely), but Idk wh…

---

## [Lowest Possible Memory For Neural ODE](https://discourse.julialang.org/t/lowest-possible-memory-for-neural-ode/102526)

<div class="topic-metadata">

**Author:** [@prbzrg](https://discourse.julialang.org/u/prbzrg)\
**Replies:** 1\
**Last updated:** [August 6, 2023, 12:22am UTC](https://discourse.julialang.org/t/lowest-possible-memory-for-neural-ode/102526 "2023-08-06T00:22:42Z")

</div>

For a neural ode, what are the best kwargs to pass to the solve function that make it use the lowest possible memory in both direct and AD usage? I use: kwargs = Dict( :alg\_hints =\> \[:nonstiff, :memorybound\], :…

---

## [Optimisers.jl cannot be used with Zygote.jl's implicit gradients](https://discourse.julialang.org/t/optimisers-jl-cannot-be-used-with-zygote-jls-implicit-gradients/102522)

<div class="topic-metadata">

**Author:** [@George\_Stepaniants](https://discourse.julialang.org/u/George_Stepaniants)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 11:23pm UTC](https://discourse.julialang.org/t/optimisers-jl-cannot-be-used-with-zygote-jls-implicit-gradients/102522 "2023-08-05T23:23:11Z")

</div>

I’m having the following issue with using Zygote with Optimisers.jl. Here is an MRE: using Flux, Zygote m = Chain(Dense(10, 5, relu), Dense(5, 2)) gs = gradient(() -\> sum(m(x)), params(m)) opt = ADAM(); Flux.Optimis…

---

## [Symbolics build\_function and usage](https://discourse.julialang.org/t/symbolics-build-function-and-usage/101005)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 1\
**Last updated:** [August 5, 2023, 10:59pm UTC](https://discourse.julialang.org/t/symbolics-build-function-and-usage/101005 "2023-08-05T22:59:29Z")

</div>

Hi, I’m having some trouble using the build\_function tool within the Symbolics package, and a question about how build\_function works. The issue I am having is that executing the function generated by build\_function co…

---

## [Using solution of DDE model as history for another (larger) DDE problem](https://discourse.julialang.org/t/using-solution-of-dde-model-as-history-for-another-larger-dde-problem/102435)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 1\
**Last updated:** [August 5, 2023, 10:56pm UTC](https://discourse.julialang.org/t/using-solution-of-dde-model-as-history-for-another-larger-dde-problem/102435 "2023-08-05T22:56:41Z")

</div>

I want to study effects on a DDE model when I add another component to the system. Using resize! and callbacks doesn’t work. Therefore I want to solve the DDE model for n components across some time span, then use this…

---

## [Precompile error with PlotlyJS and DataFrames](https://discourse.julialang.org/t/precompile-error-with-plotlyjs-and-dataframes/102523)

<div class="topic-metadata">

**Author:** [@jekyllstein](https://discourse.julialang.org/u/jekyllstein)\
**Replies:** 0\
**Last updated:** [August 5, 2023, 8:45pm UTC](https://discourse.julialang.org/t/precompile-error-with-plotlyjs-and-dataframes/102523 "2023-08-05T20:45:22Z")

</div>

I have a package that won’t successfully precompile because one of the plot methods in PlotlyBase that is extended to DataFrames isn’t recognized during precompilation. The package has the following Project.toml name =…

---

## [RustFFT.jl v0.2: AbstractFFTs interface and performance improvements](https://discourse.julialang.org/t/rustfft-jl-v0-2-abstractffts-interface-and-performance-improvements/102502)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 6\
**Last updated:** [August 5, 2023, 5:35pm UTC](https://discourse.julialang.org/t/rustfft-jl-v0-2-abstractffts-interface-and-performance-improvements/102502 "2023-08-05T17:35:31Z")

</div>

A while ago I released the first version of RustFFT.jl and I received two major pieces of feedback: you should implement the AbstractFFTs interface, and it’s kinda slow. This release takes care of both. First of all, th…

---

## [How to see if a variable is defined given the variable name](https://discourse.julialang.org/t/how-to-see-if-a-variable-is-defined-given-the-variable-name/102512)

<div class="topic-metadata">

**Author:** [@David\_Sagan](https://discourse.julialang.org/u/David_Sagan)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 4:54pm UTC](https://discourse.julialang.org/t/how-to-see-if-a-variable-is-defined-given-the-variable-name/102512 "2023-08-05T16:54:42Z")

</div>

Given a variable that is a string. For example: str = “abc” I would like to check if the variable corresponding to the string (in this case abc) is defined. I tried @isdefined(Symbol(str)) but this generates an error…

---

## [\[ANN\] PikaParser.jl -- small and fast parser library](https://discourse.julialang.org/t/ann-pikaparser-jl-small-and-fast-parser-library/93700)

<div class="topic-metadata">

**Author:** [@MirekKratochvil](https://discourse.julialang.org/u/MirekKratochvil)\
**Replies:** 9\
**Last updated:** [August 5, 2023, 4:44pm UTC](https://discourse.julialang.org/t/ann-pikaparser-jl-small-and-fast-parser-library/93700 "2023-08-05T16:44:21Z")

</div>

It has been around half a year since we released the first version of PikaParser.jl, and we’re at 0.5.1 today successfully using it for several local projects\*. So I thought it’s about time to announce it more formally. …

---

## [Plots.jl and (Cairo)Makie not compatible?](https://discourse.julialang.org/t/plots-jl-and-cairo-makie-not-compatible/102509)

<div class="topic-metadata">

**Author:** [@arinbasu](https://discourse.julialang.org/u/arinbasu)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 2:56pm UTC](https://discourse.julialang.org/t/plots-jl-and-cairo-makie-not-compatible/102509 "2023-08-05T14:56:06Z")

</div>

It seems I cannot have both Plots.jl and CairoMakie.jl or Makie.jl at the same time, or install them. I installed CairoMakie.jl with libfreetype 2.13 and it installed with no issues. Then when I tried to install Plots.jl…

---

## [Callback on Internal Stages of TSIT5](https://discourse.julialang.org/t/callback-on-internal-stages-of-tsit5/102415)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 20\
**Last updated:** [August 5, 2023, 1:55pm UTC](https://discourse.julialang.org/t/callback-on-internal-stages-of-tsit5/102415 "2023-08-05T13:55:28Z")

</div>

When I step through my simulation, I can see that there are some internal stages in TSIT5 are giving values that are too large. This is to say – the variable is constrained to give values between 0 and 1 but the internal…

---

## [Tracking memory allocation overhead in @time on mutable struct code](https://discourse.julialang.org/t/tracking-memory-allocation-overhead-in-time-on-mutable-struct-code/102519)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 0\
**Last updated:** [August 5, 2023, 11:56am UTC](https://discourse.julialang.org/t/tracking-memory-allocation-overhead-in-time-on-mutable-struct-code/102519 "2023-08-05T11:56:10Z")

</div>

I was making some experiments with the code mentioned in this StackOverflow thread In julia, why is the memory allocated the same, but the number of allocations vastly different? - Stack Overflow It relates to this blog…

---

## [Filling in missing values within a group using values carried forward and backward](https://discourse.julialang.org/t/filling-in-missing-values-within-a-group-using-values-carried-forward-and-backward/102505)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 4\
**Last updated:** [August 5, 2023, 11:54am UTC](https://discourse.julialang.org/t/filling-in-missing-values-within-a-group-using-values-carried-forward-and-backward/102505 "2023-08-05T11:54:10Z")

</div>

Given a DataFrame with fields :a and :b such that :a is a group variable and :b is a value variable which has many missing values. What is the optimal method to fill the missing values in :b to satisfy the following cond…

---

## [Type parameter display in 1.10 for MethodError](https://discourse.julialang.org/t/type-parameter-display-in-1-10-for-methoderror/102516)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 2\
**Last updated:** [August 5, 2023, 10:51am UTC](https://discourse.julialang.org/t/type-parameter-display-in-1-10-for-methoderror/102516 "2023-08-05T10:51:53Z")

</div>

When Julia 1.10 throws an error, the type parameters in the stacktrace are abbreviated, and I absolutely love it. However, they are not abbreviated in the error message itself when it is a MethodError. Does anyone know t…

---

## [OffsetArrays methods for querying dimensions?](https://discourse.julialang.org/t/offsetarrays-methods-for-querying-dimensions/102507)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 11\
**Last updated:** [August 5, 2023, 10:36am UTC](https://discourse.julialang.org/t/offsetarrays-methods-for-querying-dimensions/102507 "2023-08-05T10:36:55Z")

</div>

From some light reading, I understand that OffsetArrays ahs been a source of a lot of errors, some stemming from use of conventional Array methods like length and size. Why is it not possible to write a package that ove…

---

## [Franklin source file error messages - how to read?](https://discourse.julialang.org/t/franklin-source-file-error-messages-how-to-read/102430)

<div class="topic-metadata">

**Author:** [@tomc](https://discourse.julialang.org/u/tomc)\
**Replies:** 7\
**Last updated:** [August 5, 2023, 6:58am UTC](https://discourse.julialang.org/t/franklin-source-file-error-messages-how-to-read/102430 "2023-08-05T06:58:46Z")

</div>

I’m very new to Franklin and to Julia. I’m finding it impossible to make use of the error message Franklin generates when it doesn’t like something in a website source file. Here is an example of my current quandary - j…

---

## [Why do I get consistently worse performance running as a script than from REPL?](https://discourse.julialang.org/t/why-do-i-get-consistently-worse-performance-running-as-a-script-than-from-repl/102496)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 4\
**Last updated:** [August 5, 2023, 5:15am UTC](https://discourse.julialang.org/t/why-do-i-get-consistently-worse-performance-running-as-a-script-than-from-repl/102496 "2023-08-05T05:15:57Z")

</div>

julia\_ma\_dot\_bench.jl: using LinearAlgebra, BenchmarkTools import MutableArithmetics const MA = MutableArithmetics; setprecision(128); sleep(2) @btime MA.buffered\_operate\_to!(b, o, dot, x, y) setup=(o=BigFloat(); n=50; …

---

## [Alternative URLs for one package in a Registry](https://discourse.julialang.org/t/alternative-urls-for-one-package-in-a-registry/102500)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 3\
**Last updated:** [August 4, 2023, 10:40pm UTC](https://discourse.julialang.org/t/alternative-urls-for-one-package-in-a-registry/102500 "2023-08-04T22:40:18Z")

</div>

Can a Registry store multiple (alternative) URLs for the same package? The assumption being that all the URLs have the same content but Pkg should try the next one if one fails. The motivation is to store both HTTPS and…

---

## [Looping over struct fieldnames in a type-stable way](https://discourse.julialang.org/t/looping-over-struct-fieldnames-in-a-type-stable-way/102508)

<div class="topic-metadata">

**Author:** [@elenev](https://discourse.julialang.org/u/elenev)\
**Replies:** 3\
**Last updated:** [August 5, 2023, 1:10am UTC](https://discourse.julialang.org/t/looping-over-struct-fieldnames-in-a-type-stable-way/102508 "2023-08-05T01:10:52Z")

</div>

I have a function that updates all fields of a struct in a field-specific way. Here an MWE: julia\> mutable struct Foo a b end julia\> calc\_new\_value(x, y) = x\*y calc\_new\_value (generic function wit…

---

## [How to implement periodic boundary conditions with callbacks?](https://discourse.julialang.org/t/how-to-implement-periodic-boundary-conditions-with-callbacks/102493)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 14\
**Last updated:** [August 4, 2023, 8:34pm UTC](https://discourse.julialang.org/t/how-to-implement-periodic-boundary-conditions-with-callbacks/102493 "2023-08-04T20:34:00Z")

</div>

I am trying to use 2 callbacks when solving a differential equation. I am trying to solve for a pendulum, so I have a cyclic coordinate that goes from (-\\pi, \\pi). So when the coordinate goes above \\pi I want it to shif…

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

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