# Latest

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

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

**Page:** 571

---

## [Why trying to remove .arrow file fails with IOError on Windows?](https://discourse.julialang.org/t/why-trying-to-remove-arrow-file-fails-with-ioerror-on-windows/105273)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 2\
**Last updated:** [October 23, 2023, 4:56pm UTC](https://discourse.julialang.org/t/why-trying-to-remove-arrow-file-fails-with-ioerror-on-windows/105273 "2023-10-23T16:56:31Z")

</div>

This is (hopefully) an MWE of my actual problem: using Arrow, DataFrames if true data = DataFrame(a=1:4, b=\["M", "F", "F", "M"\]) Arrow.write("MWE.arrow", data; file = false) Arrow.Stream("MWE.arrow") GC.…

---

## [Solving a nonlinear equation with NonlinearSolve.jl 2.X](https://discourse.julialang.org/t/solving-a-nonlinear-equation-with-nonlinearsolve-jl-2-x/105303)

<div class="topic-metadata">

**Author:** [@marast](https://discourse.julialang.org/u/marast)\
**Replies:** 12\
**Last updated:** [October 23, 2023, 4:08pm UTC](https://discourse.julialang.org/t/solving-a-nonlinear-equation-with-nonlinearsolve-jl-2-x/105303 "2023-10-23T16:08:40Z")

</div>

Hello, starting from NonlinearSolve.jl version 2.0 my code stopped working. I reduced it to the following MWE: using NonlinearSolve function exec\_mwe() f(u, p) = \[(u\[1\] - p\[1\])^2 + (u\[2\] - p\[2\])^2\] u0 = rand(2…

---

## [Modify existing Lux models](https://discourse.julialang.org/t/modify-existing-lux-models/105199)

<div class="topic-metadata">

**Author:** [@Andreu](https://discourse.julialang.org/u/Andreu)\
**Replies:** 4\
**Last updated:** [October 23, 2023, 3:30pm UTC](https://discourse.julialang.org/t/modify-existing-lux-models/105199 "2023-10-23T15:30:34Z")

</div>

Is there a systematic approach to obtain a modified version of an existing Lux model? The documentation of the Lux layer interface is clear: “once constructed a model architecture cannot change.” However, we may want to…

---

## [Pluto hangs while loading in VSC](https://discourse.julialang.org/t/pluto-hangs-while-loading-in-vsc/105176)

<div class="topic-metadata">

**Author:** [@friscodelrosario](https://discourse.julialang.org/u/friscodelrosario)\
**Replies:** 4\
**Last updated:** [October 23, 2023, 3:13pm UTC](https://discourse.julialang.org/t/pluto-hangs-while-loading-in-vsc/105176 "2023-10-23T15:13:12Z")

</div>

After “Pluto: Start a notebook” in the VSC command palette, I get Pluto loading, where it hangs. Perhaps this red dot is an alert to something?

---

## [FromFile.jl's @from should be recognized by the julia-vscode extension](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 3:00pm UTC](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293 "2023-10-23T15:00:30Z")

</div>

FromFile.jl fans are pushing to integrate FromFile.jl functionality integrated into Julia itself. Part of the motivation is to improve compatability of the VSCode extension with FromFile.jl. There was pull request to do…

---

## [Makie and observables](https://discourse.julialang.org/t/makie-and-observables/105261)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [October 23, 2023, 2:47pm UTC](https://discourse.julialang.org/t/makie-and-observables/105261 "2023-10-23T14:47:12Z")

</div>

Disclaimer : I’m totally unsure if this question is sound or not. In the Makie - Problems with synchronous updates documentation, it is clearly stated that multiple updates of the plots can occur when only one really is…

---

## [Accessing Different Indexes in Arrays](https://discourse.julialang.org/t/accessing-different-indexes-in-arrays/105284)

<div class="topic-metadata">

**Author:** [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Replies:** 7\
**Last updated:** [October 23, 2023, 2:35pm UTC](https://discourse.julialang.org/t/accessing-different-indexes-in-arrays/105284 "2023-10-23T14:35:46Z")

</div>

Hello, I have the current function in Julia but I realize it is quite repetitive and bad. Is there any way of generalizing this function? I want to create a function that takes in an array and range and returns the arra…

---

## [Can NeuralPDE use neural nets with more than 1 outputs?](https://discourse.julialang.org/t/can-neuralpde-use-neural-nets-with-more-than-1-outputs/105163)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 2\
**Last updated:** [October 23, 2023, 1:59pm UTC](https://discourse.julialang.org/t/can-neuralpde-use-neural-nets-with-more-than-1-outputs/105163 "2023-10-23T13:59:47Z")

</div>

Hi. In the following code, I would like to use one neural net with 3 outputs instead of 3 neural nets with 1 output each. I got errors when I try. Is it possible ? All the example I have seen use different nets for diff…

---

## [How to use multithreading appropriately?](https://discourse.julialang.org/t/how-to-use-multithreading-appropriately/105154)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 1:26pm UTC](https://discourse.julialang.org/t/how-to-use-multithreading-appropriately/105154 "2023-10-23T13:26:18Z")

</div>

Functions having same output but different multithreading setting have very different performances. Why would this happen? Are there any rules to conform when using multithreading? Below shows the code snippets of data …

---

## [Error message related to the GMT.jl package](https://discourse.julialang.org/t/error-message-related-to-the-gmt-jl-package/105272)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 2\
**Last updated:** [October 23, 2023, 1:14pm UTC](https://discourse.julialang.org/t/error-message-related-to-the-gmt-jl-package/105272 "2023-10-23T13:14:06Z")

</div>

My code was running perfectly fine on my Intel-based MacBook Pro, but it gave me the error below while running on Apple Silicon chips. Does anyone know what is going on? Many thanks. \[6464\] signal (11.2): Segmentation …

---

## [Linearization with ModelingToolkit gives different results](https://discourse.julialang.org/t/linearization-with-modelingtoolkit-gives-different-results/105131)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 12:48pm UTC](https://discourse.julialang.org/t/linearization-with-modelingtoolkit-gives-different-results/105131 "2023-10-23T12:48:53Z")

</div>

Using the methods linearize\_symbolic and linearize gives different results, even though the results should be the same. Could be a bug in my code, or in ModelingToolkit. I share the code here, even though it is still pre…

---

## [How to use Zygote.gradient where mapslices uses a function that includes a parameter?](https://discourse.julialang.org/t/how-to-use-zygote-gradient-where-mapslices-uses-a-function-that-includes-a-parameter/105307)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 11:07am UTC](https://discourse.julialang.org/t/how-to-use-zygote-gradient-where-mapslices-uses-a-function-that-includes-a-parameter/105307 "2023-10-23T11:07:40Z")

</div>

Original post below. I found the documentation for SliceMap.mapcols which explicitly states this isn’t supported: Note that if f itself contains parameters, their gradients are also not tracked.. So… if I need to do maps…

---

## [Writing legible JuMP models](https://discourse.julialang.org/t/writing-legible-jump-models/105280)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 10:44am UTC](https://discourse.julialang.org/t/writing-legible-jump-models/105280 "2023-10-23T10:44:44Z")

</div>

I maintain a few large integer programming routines using the Python OR-Tools package. I have grown quite attached to the following code style, which breaks the compilation of the larger optimization problem into self-co…

---

## [\[ANN\] TerminalPager.jl v0.5.0](https://discourse.julialang.org/t/ann-terminalpager-jl-v0-5-0/104122)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 11\
**Last updated:** [October 23, 2023, 9:50am UTC](https://discourse.julialang.org/t/ann-terminalpager-jl-v0-5-0/104122 "2023-10-23T09:50:34Z")

</div>

Hi everyone! I am releasing today TerminalPager.jl v0.5 with some nice new features (and some breaking changes :D). Visual Mode We now have a visual mode (type v), where you can see a vertical visual line to scroll thr…

---

## [Makie - Is there a way to draw text on the surface of a mesh?](https://discourse.julialang.org/t/makie-is-there-a-way-to-draw-text-on-the-surface-of-a-mesh/105290)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 9:11am UTC](https://discourse.julialang.org/t/makie-is-there-a-way-to-draw-text-on-the-surface-of-a-mesh/105290 "2023-10-23T09:11:02Z")

</div>

Hello. Is there a way in Makie to draw text on the surface of a mesh? that is to say if I have fig = figure() mesh!(fig\[1,1\], v, t) text!(fig\[1,1\], -0.4, 0.2, 0.4; text = "OK") is there a way to have the text be place…

---

## [Modeling with a spline a signal peak's shape from multiple datasets that captured the same event](https://discourse.julialang.org/t/modeling-with-a-spline-a-signal-peaks-shape-from-multiple-datasets-that-captured-the-same-event/104795)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 7\
**Last updated:** [October 23, 2023, 9:00am UTC](https://discourse.julialang.org/t/modeling-with-a-spline-a-signal-peaks-shape-from-multiple-datasets-that-captured-the-same-event/104795 "2023-10-23T09:00:46Z")

</div>

I have time series data in which the recorded values capture a signal (i.e., peak) that emerges from an elevated noise floor (i.e., baseline; can be modeled as a straight line). The shape of the peak in the various time …

---

## [Question about PGFPlotsX](https://discourse.julialang.org/t/question-about-pgfplotsx/105295)

<div class="topic-metadata">

**Author:** [@Isaac\_Smith](https://discourse.julialang.org/u/Isaac_Smith)\
**Replies:** 1\
**Last updated:** [October 23, 2023, 9:00am UTC](https://discourse.julialang.org/t/question-about-pgfplotsx/105295 "2023-10-23T09:00:06Z")

</div>

In the Plots.jl documentation about the PGFPlotsX backend, they mention how exporting the plot as a tikzpicture allows the user to rescale the plot using \\includegraphics, but I am not quite understanding how you would d…

---

## [The Optimization Problem with Nested Loops in Julia](https://discourse.julialang.org/t/the-optimization-problem-with-nested-loops-in-julia/104833)

<div class="topic-metadata">

**Author:** [@Umut\_Can\_Turhan](https://discourse.julialang.org/u/Umut_Can_Turhan)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 8:02am UTC](https://discourse.julialang.org/t/the-optimization-problem-with-nested-loops-in-julia/104833 "2023-10-23T08:02:55Z")

</div>

Hi everyone, I have a problem related to the optimization problem with nested loops. I use QuantumOptics.jl (qojulia.org) module to calculate for some physical situation. First of all, let me share my code and explain it…

---

## [Why would Franklin fail because "\`@sprintf\` not defined"?](https://discourse.julialang.org/t/why-would-franklin-fail-because-sprintf-not-defined/104912)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [October 23, 2023, 7:30am UTC](https://discourse.julialang.org/t/why-would-franklin-fail-because-sprintf-not-defined/104912 "2023-10-23T07:30:47Z")

</div>

This is while building GMT docs, but both GMT and the GMT docs repo have Printf as a dependency. And locally the build works fine. This error in particular raised when running this case but there are several other ex…

---

## [Smoothed Spline Interpolation compatible with ForwardDiff?](https://discourse.julialang.org/t/smoothed-spline-interpolation-compatible-with-forwarddiff/104344)

<div class="topic-metadata">

**Author:** [@MHaensel](https://discourse.julialang.org/u/MHaensel)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 5:22am UTC](https://discourse.julialang.org/t/smoothed-spline-interpolation-compatible-with-forwarddiff/104344 "2023-10-23T05:22:13Z")

</div>

Hi, I am wondering whether someone has insights on the following: I have a complicated function inside which I perform smoothed (1-D) Cubic Spline interpolation using an irregular grid. Right now I am using the Dierckx…

---

## [GeoTables: "UndefVarError: \`load\` not defined" but can load with GeoIO](https://discourse.julialang.org/t/geotables-undefvarerror-load-not-defined-but-can-load-with-geoio/105221)

<div class="topic-metadata">

**Author:** [@Funsway](https://discourse.julialang.org/u/Funsway)\
**Replies:** 4\
**Last updated:** [October 23, 2023, 12:27am UTC](https://discourse.julialang.org/t/geotables-undefvarerror-load-not-defined-but-can-load-with-geoio/105221 "2023-10-23T00:27:07Z")

</div>

Hi all, I am new to Julia and is working on a project that uses the GeoTables packages. However, it gave me the “UndefVarError: load not defined” when GeoTables.load(“xxx.shp”), but, if I do, GeoIO.load(“xxx.shp”), i…

---

## [Penguin Pair Plot](https://discourse.julialang.org/t/penguin-pair-plot/105296)

<div class="topic-metadata">

**Author:** [@math4mad](https://discourse.julialang.org/u/math4mad)\
**Replies:** 0\
**Last updated:** [October 23, 2023, 12:54am UTC](https://discourse.julialang.org/t/penguin-pair-plot/105296 "2023-10-23T00:54:47Z")

</div>

Code is ugly,Importantly it works, and I think it’s looking good using MLJ, DataFrames, GLMakie, CSV, Pipe # 1. data processing fetch(str) = str |\> d -\> CSV.File(d, missingstring="NA") |\> DataFrame |\> dropmissing to…

---

## [Profiling crashing or perhaps non-responsive - where to report?](https://discourse.julialang.org/t/profiling-crashing-or-perhaps-non-responsive-where-to-report/104879)

<div class="topic-metadata">

**Author:** [@orebas](https://discourse.julialang.org/u/orebas)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 12:12am UTC](https://discourse.julialang.org/t/profiling-crashing-or-perhaps-non-responsive-where-to-report/104879 "2023-10-23T00:12:23Z")

</div>

I am trying to profile a package I am working on. I have code that runs successfully when called normally, or with @time. When run under “@profile”, it runs partway and then seems to crash. The REPL becomes totally no…

---

## [Changing the field value inside the structure](https://discourse.julialang.org/t/changing-the-field-value-inside-the-structure/105281)

<div class="topic-metadata">

**Author:** [@kiboko123](https://discourse.julialang.org/u/kiboko123)\
**Replies:** 5\
**Last updated:** [October 22, 2023, 8:38pm UTC](https://discourse.julialang.org/t/changing-the-field-value-inside-the-structure/105281 "2023-10-22T20:38:22Z")

</div>

Hi everyone, I have some structure with only one field. Is it possible to declare some function inside this structure that use field variable and change its components. For example I have following code: using Paramet…

---

## [Non-Deterministic Memory Allocation?](https://discourse.julialang.org/t/non-deterministic-memory-allocation/104941)

<div class="topic-metadata">

**Author:** [@mcmuffin6o](https://discourse.julialang.org/u/mcmuffin6o)\
**Replies:** 17\
**Last updated:** [October 22, 2023, 7:25pm UTC](https://discourse.julialang.org/t/non-deterministic-memory-allocation/104941 "2023-10-22T19:25:10Z")

</div>

After running a short script several times without making changes (using include("script.jl"); from the REPL), I noticed that the number and total size of memory allocations was not constant. How (and why?) can this happ…

---

## [NVLink's Compatibility with KernalAbstractions](https://discourse.julialang.org/t/nvlinks-compatibility-with-kernalabstractions/105267)

<div class="topic-metadata">

**Author:** [@TzuYaoHuang](https://discourse.julialang.org/u/TzuYaoHuang)\
**Replies:** 3\
**Last updated:** [October 22, 2023, 7:17pm UTC](https://discourse.julialang.org/t/nvlinks-compatibility-with-kernalabstractions/105267 "2023-10-22T19:17:14Z")

</div>

I am planning to build a workstation with two NVIDIA GPUs (A6000-ish) connected with NVLink since we would like to run some memory-intensive tasks – high-resolution CFD simulation (WaterLily.jl parallelized by KernalAbst…

---

## [Introductive material on Bayesian Networks inference / probabilistic programming?](https://discourse.julialang.org/t/introductive-material-on-bayesian-networks-inference-probabilistic-programming/105017)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 12\
**Last updated:** [October 22, 2023, 6:01pm UTC](https://discourse.julialang.org/t/introductive-material-on-bayesian-networks-inference-probabilistic-programming/105017 "2023-10-22T18:01:27Z")

</div>

Hello, any (gentle) introductory material to suggest on the topic of Bayesian Networks and probabilistic programming ? Or knowledge I need in advance in order to understand it ? Context: I have clear the concepts of dis…

---

## [My vscode debugging experience is abysmal](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 8\
**Last updated:** [October 22, 2023, 5:31pm UTC](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275 "2023-10-22T17:31:26Z")

</div>

Hi! Sorry for the flaming title… but I’m really frustrated. For me, the vscode debugger just never works; I always end up putting print and show statements somewhere and relying on revise. That also works, but sometimes …

---

## [Error while indexing an array](https://discourse.julialang.org/t/error-while-indexing-an-array/105274)

<div class="topic-metadata">

**Author:** [@jddorellanao](https://discourse.julialang.org/u/jddorellanao)\
**Replies:** 6\
**Last updated:** [October 22, 2023, 5:20pm UTC](https://discourse.julialang.org/t/error-while-indexing-an-array/105274 "2023-10-22T17:20:51Z")

</div>

I’m trying to code the next equation: Here, S is an array of size (n,n) A is an array of size n H is an array of size (n,n) T is an array of size n Ť is an array of size n with the cumulative sum of T (Tc in the c…

---

## [Get fontsize in Luxor](https://discourse.julialang.org/t/get-fontsize-in-luxor/105084)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 3\
**Last updated:** [October 22, 2023, 3:08pm UTC](https://discourse.julialang.org/t/get-fontsize-in-luxor/105084 "2023-10-22T15:08:20Z")

</div>

How do I get the font size that has been set with the setfont function? The function get\_fontsize gives me the size that has been set with the fontsize function.

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

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