# Latest

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

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

**Page:** 426

---

## [Weird empty sum behavior in JuMP](https://discourse.julialang.org/t/weird-empty-sum-behavior-in-jump/113386)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 9:36pm UTC](https://discourse.julialang.org/t/weird-empty-sum-behavior-in-jump/113386 "2024-04-24T21:36:57Z")

</div>

I am coding basic AC OPF model. The following sum results in an error: -(Vd\[n\]^2+Vq\[n\]^2)\*sum(gs\[sh\] for sh in bus\_shunts\[n\]) LoadError: MethodError: no method matching zero(::Type{MutableArithmetics.Zero}) Closest ca…

---

## [CodeSculptor.jl: take AST's apart, play with them, and put them back together. A significant upgrade to MacroTools.splitdef() and splitarg()](https://discourse.julialang.org/t/codesculptor-jl-take-asts-apart-play-with-them-and-put-them-back-together-a-significant-upgrade-to-macrotools-splitdef-and-splitarg/113476)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 9:13pm UTC](https://discourse.julialang.org/t/codesculptor-jl-take-asts-apart-play-with-them-and-put-them-back-together-a-significant-upgrade-to-macrotools-splitdef-and-splitarg/113476 "2024-04-24T21:13:34Z")

</div>

---

## [Request help solving a Mathematical Programming with Equilibrium Constraints problem in JuMP?](https://discourse.julialang.org/t/request-help-solving-a-mathematical-programming-with-equilibrium-constraints-problem-in-jump/41802)

<div class="topic-metadata">

**Author:** [@jack\_rabbit](https://discourse.julialang.org/u/jack_rabbit)\
**Replies:** 10\
**Last updated:** [April 24, 2024, 7:58pm UTC](https://discourse.julialang.org/t/request-help-solving-a-mathematical-programming-with-equilibrium-constraints-problem-in-jump/41802 "2024-04-24T19:58:36Z")

</div>

Hi, I am pretty new to both Julia and JuMP. Please feel free to point out any aspects that I didn’t understand well. I am trying to solve a Mathematical Programming with Equilibrium Constraints (MPEC) problem using the…

---

## [\[ANN\] DynamicQuantities.jl: type stable physical quantities](https://discourse.julialang.org/t/ann-dynamicquantities-jl-type-stable-physical-quantities/99963)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 40\
**Last updated:** [April 24, 2024, 7:53pm UTC](https://discourse.julialang.org/t/ann-dynamicquantities-jl-type-stable-physical-quantities/99963 "2024-04-24T19:53:55Z")

</div>

Happy to share DynamicQuantities.jl, a library that defines a simple, statically-typed Quantity object for working with physical units in Julia. Physical quantities are stored as values, as opposed to the pa…

---

## [Combine multiple Arrays into one large dataframe matrix:](https://discourse.julialang.org/t/combine-multiple-arrays-into-one-large-dataframe-matrix/113411)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 7:20pm UTC](https://discourse.julialang.org/t/combine-multiple-arrays-into-one-large-dataframe-matrix/113411 "2024-04-24T19:20:25Z")

</div>

I’ve attempted multiple ways to populate the “missing” values of my DataFrame with the appropriate values, I created the shell of a DataFrame that looks like this: ResVert\_matrix 1826×372 DataFrame Row │ decyr AGM…

---

## [Techniques for defining commutative functions](https://discourse.julialang.org/t/techniques-for-defining-commutative-functions/113406)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 5\
**Last updated:** [April 24, 2024, 7:04pm UTC](https://discourse.julialang.org/t/techniques-for-defining-commutative-functions/113406 "2024-04-24T19:04:01Z")

</div>

I stumbled into a curious problem that seems like it surely must already been solved by someone before, maybe even somewhere in Base that I’m just not familar with. I figured I’d consult the brain-trust here to see if an…

---

## [Resolve ambiguous date comparisons with possible missing return?](https://discourse.julialang.org/t/resolve-ambiguous-date-comparisons-with-possible-missing-return/113409)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 6:08pm UTC](https://discourse.julialang.org/t/resolve-ambiguous-date-comparisons-with-possible-missing-return/113409 "2024-04-24T18:08:30Z")

</div>

Opinion: Some Date comparisons are, in certain contexts, ambiguous. The Julia Dates package refrains from defining operations where these operations are ambiguous. For example: using Dates max(Quarter(1), Month(1))…

---

## [Help with Levenberg-Marquardt Optimization in Homography](https://discourse.julialang.org/t/help-with-levenberg-marquardt-optimization-in-homography/112740)

<div class="topic-metadata">

**Author:** [@dennispureza](https://discourse.julialang.org/u/dennispureza)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 5:57pm UTC](https://discourse.julialang.org/t/help-with-levenberg-marquardt-optimization-in-homography/112740 "2024-04-24T17:57:13Z")

</div>

Hi! I have to solve an optmization problem of refining a Homography matrix using the Levenberg-Marquardt method. My reference is in Java and calls a function in the following way: Optimize(Val; Jac; X; Y; h) Where: V…

---

## [Why do views of offsetarrays have one-based indexing if bounds are specified?](https://discourse.julialang.org/t/why-do-views-of-offsetarrays-have-one-based-indexing-if-bounds-are-specified/24633)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 14\
**Last updated:** [April 24, 2024, 4:52pm UTC](https://discourse.julialang.org/t/why-do-views-of-offsetarrays-have-one-based-indexing-if-bounds-are-specified/24633 "2024-04-24T16:52:17Z")

</div>

The index seems to be one-based or otherwise depending on whether I explicitly specify the lower and upper bounds or leave it implicit. Why is this the case? julia\> a=zeros(-1:1); julia\> b=view(a,-1:1); axes(b) (Base.O…

---

## [Minimum Spanning Tree](https://discourse.julialang.org/t/minimum-spanning-tree/35845)

<div class="topic-metadata">

**Author:** [@JosenildoFerreira](https://discourse.julialang.org/u/JosenildoFerreira)\
**Replies:** 9\
**Last updated:** [April 24, 2024, 4:35pm UTC](https://discourse.julialang.org/t/minimum-spanning-tree/35845 "2024-04-24T16:35:22Z")

</div>

Hi everyone, I want the vectors combination of a minimum spanning tree. I don’t think that I was very clear, but its like the following example, I have this array, generated by the function kruskal\_mst from the LightGrap…

---

## [Native Windows vs WSL2](https://discourse.julialang.org/t/native-windows-vs-wsl2/113468)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 4:24pm UTC](https://discourse.julialang.org/t/native-windows-vs-wsl2/113468 "2024-04-24T16:24:00Z")

</div>

There is a comparison of Julia running either natively in Windows vs in WSL2 (Ubuntu) from approximately four years ago (link1, link2) Has the situation changed? or is there still a significant performance gap in favor …

---

## [How to use WeakRef inside construtor?](https://discourse.julialang.org/t/how-to-use-weakref-inside-construtor/113405)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 4:14pm UTC](https://discourse.julialang.org/t/how-to-use-weakref-inside-construtor/113405 "2024-04-24T16:14:46Z")

</div>

Hi there, I am trying to create a self-updating object which kills its own updating process as soon as it is finalized mutable struct SelfUpdating value function SelfUpdating(value) finalize(x) = Thread…

---

## [How to get a coordinates of the square in a heatmap using Observables?](https://discourse.julialang.org/t/how-to-get-a-coordinates-of-the-square-in-a-heatmap-using-observables/112573)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 4\
**Last updated:** [April 24, 2024, 4:05pm UTC](https://discourse.julialang.org/t/how-to-get-a-coordinates-of-the-square-in-a-heatmap-using-observables/112573 "2024-04-24T16:05:49Z")

</div>

I have an image (or heatmap) and I want to be able to click and find x and y indexes of clicked area using Observables. How could it be possible?

---

## [Julia 1.10.2 crashes when embedded from Python due to \`libgomp.so\` compiled with GCC 13.2](https://discourse.julialang.org/t/julia-1-10-2-crashes-when-embedded-from-python-due-to-libgomp-so-compiled-with-gcc-13-2/113456)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 1\
**Last updated:** [April 24, 2024, 3:43pm UTC](https://discourse.julialang.org/t/julia-1-10-2-crashes-when-embedded-from-python-due-to-libgomp-so-compiled-with-gcc-13-2/113456 "2024-04-24T15:43:59Z")

</div>

Hi, I have the problem with embedded Julia 1.10.2 when called from Python, although the problem does not appear when called from C. Specifically, segmentation fault occurs in libgomp.so shipped with Julia 1.10.2 becaus…

---

## [Adding external parameters to neural network](https://discourse.julialang.org/t/adding-external-parameters-to-neural-network/112968)

<div class="topic-metadata">

**Author:** [@KianH](https://discourse.julialang.org/u/KianH)\
**Replies:** 5\
**Last updated:** [April 24, 2024, 3:03pm UTC](https://discourse.julialang.org/t/adding-external-parameters-to-neural-network/112968 "2024-04-24T15:03:41Z")

</div>

Is there any way in Lux.jl or Flux.jl to create a function for a UDE and add some parameter, for instance the parameter c in the function rhs!(...) to a neural network so that the parameter c is also estimated through th…

---

## [Makie fonts not always behaving as expected - Arial Bold and Symbol fonts](https://discourse.julialang.org/t/makie-fonts-not-always-behaving-as-expected-arial-bold-and-symbol-fonts/113450)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 2:42pm UTC](https://discourse.julialang.org/t/makie-fonts-not-always-behaving-as-expected-arial-bold-and-symbol-fonts/113450 "2024-04-24T14:42:28Z")

</div>

This is an extremely minor inconvinience, so if there is no fix it doesn’t really matter, but if there is a simple fix / I’m being dumb I’d like to know I can’t get Arial Bold to work, only Arial Rounded MT Bold julia\>…

---

## [ERROR: Method overwriting is not permitted during Module precompilation. Use \`\_\_precompile\_\_(false)\` to opt-out of precompilation](https://discourse.julialang.org/t/error-method-overwriting-is-not-permitted-during-module-precompilation-use-precompile-false-to-opt-out-of-precompilation/109191)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 8\
**Last updated:** [April 24, 2024, 2:39pm UTC](https://discourse.julialang.org/t/error-method-overwriting-is-not-permitted-during-module-precompilation-use-precompile-false-to-opt-out-of-precompilation/109191 "2024-04-24T14:39:45Z")

</div>

Hello, I switched to julia 1.10 and see that one of my packages now shows an error during precompilation ERROR: Method overwriting is not permitted during Module precompilation. Use \`\_\_precompile\_\_(false)\` to opt-out o…

---

## [ERROR: LoadError: ArgumentError: Package LaplaceRedux does not have MLJBase in its dependencies](https://discourse.julialang.org/t/error-loaderror-argumenterror-package-laplaceredux-does-not-have-mljbase-in-its-dependencies/113250)

<div class="topic-metadata">

**Author:** [@Rockdeldiablo](https://discourse.julialang.org/u/Rockdeldiablo)\
**Replies:** 11\
**Last updated:** [April 24, 2024, 12:30pm UTC](https://discourse.julialang.org/t/error-loaderror-argumenterror-package-laplaceredux-does-not-have-mljbase-in-its-dependencies/113250 "2024-04-24T12:30:48Z")

</div>

Hi, i was trying to make some modifications to the laplaceredux package but i am having some issues with the environment. everything worked until i tried to add MLJBase to the environment, now julia tells me ERROR: Lo…

---

## [Drawing 3d polygons in Makie](https://discourse.julialang.org/t/drawing-3d-polygons-in-makie/65466)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 11\
**Last updated:** [April 24, 2024, 2:26pm UTC](https://discourse.julialang.org/t/drawing-3d-polygons-in-makie/65466 "2024-04-24T14:26:55Z")

</div>

I’m trying to draw 3D polygons, but the only working way I found is cumbersome: is there some simple command I missed e.g. poly(X, Y, Z, color=C) that will allow me to plot 3D polygons in Makie ? using GLMakie # cols =…

---

## [Empty Array with nonzero size along some dimension, should they be disallowed?](https://discourse.julialang.org/t/empty-array-with-nonzero-size-along-some-dimension-should-they-be-disallowed/113449)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 1:57pm UTC](https://discourse.julialang.org/t/empty-array-with-nonzero-size-along-some-dimension-should-they-be-disallowed/113449 "2024-04-24T13:57:12Z")

</div>

On both LTS and nightly we have: julia\> a = Array{Int}(undef, 0, 1) 0×1 Matrix{Int64} julia\> size(a) (0, 1) julia\> length(a) 0 Is this a bug? I’d actually have expected the construction attempt to throw. Couldn’t fin…

---

## [Matrix assembly](https://discourse.julialang.org/t/matrix-assembly/111324)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 5\
**Last updated:** [March 7, 2024, 9:17pm UTC](https://discourse.julialang.org/t/matrix-assembly/111324 "2024-03-07T21:17:32Z")

</div>

Hi, I am trying to understand this equation and implementing it in julia. where sigma is second order tensor assuming dimension n1n1. and Nd is shape function matric for scalar value so dimension is 1n2. How this mul…

---

## [\[crosspost\] Summer School on Numerica Methods in QIS](https://discourse.julialang.org/t/crosspost-summer-school-on-numerica-methods-in-qis/113445)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 12:58pm UTC](https://discourse.julialang.org/t/crosspost-summer-school-on-numerica-methods-in-qis/113445 "2024-04-24T12:58:24Z")

</div>

Hi, QIS folks! A cross-post from the general board (look there for more details) The NSF Center for Quantum Networks and the Unitary Fund will be running a summer school on classical numerical methods for quantum infor…

---

## [Summer School on Julia in Quantum Information Science](https://discourse.julialang.org/t/summer-school-on-julia-in-quantum-information-science/113444)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 12:53pm UTC](https://discourse.julialang.org/t/summer-school-on-julia-in-quantum-information-science/113444 "2024-04-24T12:53:00Z")

</div>

The NSF Center for Quantum Networks and Unitary Fund are sponsoring a summer school on Classical Numerical Methods in Quantum Information Science, taking place in Boston (August 12th-18th). Majority of the content will b…

---

## [JULIA\_PKG\_PRECOMPILE\_AUTO=0 does not seem to work](https://discourse.julialang.org/t/julia-pkg-precompile-auto-0-does-not-seem-to-work/113434)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 11\
**Last updated:** [April 24, 2024, 12:40pm UTC](https://discourse.julialang.org/t/julia-pkg-precompile-auto-0-does-not-seem-to-work/113434 "2024-04-24T12:40:29Z")

</div>

Hi there, for development purposes I would like to turn off precompilation, I found JULIA\_PKG\_PRECOMPILE\_AUTO, but it apparently does not work JULIA\_PKG\_PRECOMPILE\_AUTO=0 julia \_ \_ \_ \_(\_)\_ | …

---

## [Zero order hold interpolation](https://discourse.julialang.org/t/zero-order-hold-interpolation/113430)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 10:01am UTC](https://discourse.julialang.org/t/zero-order-hold-interpolation/113430 "2024-04-24T10:01:17Z")

</div>

Is there a way to do a zero order hold interpolations using DataInterpolations.jl

---

## [Help us with the JuliaCon social media strategy!](https://discourse.julialang.org/t/help-us-with-the-juliacon-social-media-strategy/113428)

<div class="topic-metadata">

**Author:** [@Cainevb](https://discourse.julialang.org/u/Cainevb)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 8:37am UTC](https://discourse.julialang.org/t/help-us-with-the-juliacon-social-media-strategy/113428 "2024-04-24T08:37:37Z")

</div>

Hello everyone! I’m Caine, an intern currently working on developing the social media marketing strategy for JuliaCon 2024 :grin: I’m conducting research which looks into your expectations and preferences for JuliaCon s…

---

## [Any package implementing Savitzky-Golay filters or related?](https://discourse.julialang.org/t/any-package-implementing-savitzky-golay-filters-or-related/9717)

<div class="topic-metadata">

**Author:** [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Replies:** 3\
**Last updated:** [April 24, 2024, 7:18am UTC](https://discourse.julialang.org/t/any-package-implementing-savitzky-golay-filters-or-related/9717 "2024-04-24T07:18:20Z")

</div>

Hello everyone, I’m not sure this is the correct category, so feel free to put it elsewhere. I’m looking for a Julia package that implements a Savitzky-Golay filter or similar. I have FTIR spectroscopic data from whic…

---

## [Isocaps in GLMakie](https://discourse.julialang.org/t/isocaps-in-glmakie/113395)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [April 24, 2024, 7:00am UTC](https://discourse.julialang.org/t/isocaps-in-glmakie/113395 "2024-04-24T07:00:34Z")

</div>

Are there any ways in GLMakie to add isocaps to a cut of an isosurface? Something like this:

---

## [Clipboard through ssh](https://discourse.julialang.org/t/clipboard-through-ssh/113421)

<div class="topic-metadata">

**Author:** [@thomasj](https://discourse.julialang.org/u/thomasj)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 5:58am UTC](https://discourse.julialang.org/t/clipboard-through-ssh/113421 "2024-04-24T05:58:11Z")

</div>

I’m using ssh -X user@IPADDRESS to access a computer on which I run julia. I would like to use the clipboard function to paste data on the local computer. Both computer are running Linux, and are using wayland. If both…

---

## [How to extract box centers from a boxplot (StatsPlots.jl)](https://discourse.julialang.org/t/how-to-extract-box-centers-from-a-boxplot-statsplots-jl/113417)

<div class="topic-metadata">

**Author:** [@JonathanH](https://discourse.julialang.org/u/JonathanH)\
**Replies:** 0\
**Last updated:** [April 24, 2024, 2:32am UTC](https://discourse.julialang.org/t/how-to-extract-box-centers-from-a-boxplot-statsplots-jl/113417 "2024-04-24T02:32:37Z")

</div>

I have some code (attached) for generating a box plot overlayed with a “jitter” plot (Jittered points — geom\_jitter • ggplot2) – that is, each box has a bunch of scatter points that are aligned with it. I am trying to ex…

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

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