# Latest

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

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

**Page:** 246

---

## [GtkDropDown menu list update](https://discourse.julialang.org/t/gtkdropdown-menu-list-update/124355)

<div class="topic-metadata">

**Author:** [@daniel.flono](https://discourse.julialang.org/u/daniel.flono)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 12:28pm UTC](https://discourse.julialang.org/t/gtkdropdown-menu-list-update/124355 "2025-01-02T12:28:37Z")

</div>

Hello Everyone, I am creating my first GUI and got stuck. I defined the GUI in xml format and then used GTK4 and the GtkBuilder in the Julia code. The window appears with no problem. I just can’t figure out how to chang…

---

## [Removing error message stickers in Pluto.jl](https://discourse.julialang.org/t/removing-error-message-stickers-in-pluto-jl/124338)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 7\
**Last updated:** [January 2, 2025, 12:22pm UTC](https://discourse.julialang.org/t/removing-error-message-stickers-in-pluto-jl/124338 "2025-01-02T12:22:13Z")

</div>

Can some point out how to remove these stickers when pluto is throwing errors, I believe newer version started this “feature” (@v1.10) pkg\> status Status \`~/.julia/environments/v1.10/Project.toml\` \[7f904dfe\] PlutoUI…

---

## [GeoStats.jl 2025 survey](https://discourse.julialang.org/t/geostats-jl-2025-survey/124362)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 12:21pm UTC](https://discourse.julialang.org/t/geostats-jl-2025-survey/124362 "2025-01-02T12:21:04Z")

</div>

---

## [Conditional function implementation](https://discourse.julialang.org/t/conditional-function-implementation/124356)

<div class="topic-metadata">

**Author:** [@Matthijs\_1971](https://discourse.julialang.org/u/Matthijs_1971)\
**Replies:** 2\
**Last updated:** [January 2, 2025, 11:25am UTC](https://discourse.julialang.org/t/conditional-function-implementation/124356 "2025-01-02T11:25:33Z")

</div>

Please have a look at the code below. #!/usr/bin/env julia bad\_func()::Nothing = println("Default") # Commented in: Case A. Commented out: Case B. function conditional\_implementation(choice::Int64)::Nothing println("…

---

## [Trying to understand Union{Nothing, Some{T}}](https://discourse.julialang.org/t/trying-to-understand-union-nothing-some-t/124348)

<div class="topic-metadata">

**Author:** [@modn4r](https://discourse.julialang.org/u/modn4r)\
**Replies:** 5\
**Last updated:** [January 2, 2025, 10:50am UTC](https://discourse.julialang.org/t/trying-to-understand-union-nothing-some-t/124348 "2025-01-02T10:50:14Z")

</div>

Hi, I am trying to understand the usage of the Some{T}: function test(x::Union{Some{Float64}, Nothing}) if isnothing(x) println("Nothing!") else println("Something!") end end test(nothing) #…

---

## [How to use sol.retcode to catch ODE instability?](https://discourse.julialang.org/t/how-to-use-sol-retcode-to-catch-ode-instability/124274)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [January 2, 2025, 10:08am UTC](https://discourse.julialang.org/t/how-to-use-sol-retcode-to-catch-ode-instability/124274 "2025-01-02T10:08:07Z")

</div>

I would like to make an interactive plot with GLMakie. There are some instances when the ODEs generate instability. I would like to plot a label “INSTABILITY DETECTED” in the plot itself when instability occurs. I under…

---

## [New automerge requirement: Release notes required for breaking package releases](https://discourse.julialang.org/t/new-automerge-requirement-release-notes-required-for-breaking-package-releases/123955)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 50\
**Last updated:** [January 2, 2025, 3:11am UTC](https://discourse.julialang.org/t/new-automerge-requirement-release-notes-required-for-breaking-package-releases/123955 "2025-01-02T03:11:41Z")

</div>

When registering a breaking release of a package, you now need to add release notes to the registration that mention what the breaking changes are, so that your users have an easier time understanding what they need to c…

---

## [PowerModelsDistribution.jl defining new objective](https://discourse.julialang.org/t/powermodelsdistribution-jl-defining-new-objective/124269)

<div class="topic-metadata">

**Author:** [@Glon](https://discourse.julialang.org/u/Glon)\
**Replies:** 4\
**Last updated:** [January 1, 2025, 9:42pm UTC](https://discourse.julialang.org/t/powermodelsdistribution-jl-defining-new-objective/124269 "2025-01-01T21:42:50Z")

</div>

Hello all, What if I want to define a new objective for running OPF in PowerModelsDistribution.jl? How can I do this? If someone can share me an example, I would really appreciate it. Thank you!

---

## [Wind Rose 'hard' stacked barplot edges in GLMakie](https://discourse.julialang.org/t/wind-rose-hard-stacked-barplot-edges-in-glmakie/124277)

<div class="topic-metadata">

**Author:** [@ewillcox](https://discourse.julialang.org/u/ewillcox)\
**Replies:** 5\
**Last updated:** [January 1, 2025, 9:16pm UTC](https://discourse.julialang.org/t/wind-rose-hard-stacked-barplot-edges-in-glmakie/124277 "2025-01-01T21:16:52Z")

</div>

Hello, I am aiming to draw a wind rose similar to the below (from PlotlyJS.jl) in Makie. I can plot a stacked barplot into a PolarAxis: using GLMakie; using ColorSchemes; tbl = (cat = \[1, 1, 1, 2, 2, 2, 3, 3, 3\], …

---

## [SOCP and SDP solver errors in PowerModelsDistribution.jl](https://discourse.julialang.org/t/socp-and-sdp-solver-errors-in-powermodelsdistribution-jl/123945)

<div class="topic-metadata">

**Author:** [@Glon](https://discourse.julialang.org/u/Glon)\
**Replies:** 5\
**Last updated:** [January 1, 2025, 7:39pm UTC](https://discourse.julialang.org/t/socp-and-sdp-solver-errors-in-powermodelsdistribution-jl/123945 "2025-01-01T19:39:22Z")

</div>

Hello all, I am trying to use PowerModelsDistribution to solve a SDP and SOCP formulation. Below is my code. using PowerModelsDistribution using SCS Test\_Case = parse\_file(“C:/ACOPF/Julia/case3balancedbattery.dss”) …

---

## [How to use a custom loss function with reactant?](https://discourse.julialang.org/t/how-to-use-a-custom-loss-function-with-reactant/124337)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 1\
**Last updated:** [January 1, 2025, 2:51pm UTC](https://discourse.julialang.org/t/how-to-use-a-custom-loss-function-with-reactant/124337 "2025-01-01T14:51:42Z")

</div>

I’m trying to make this code work, using MLDatasets,Lux,Reactant,Enzyme,Random,OneHotArrays,MLUtils,Optimisers,Statistics Reactant.set\_default\_backend("gpu") const rng = Random.MersenneTwister(123) const dev = xla\_devi…

---

## [Performance of for loop](https://discourse.julialang.org/t/performance-of-for-loop/124240)

<div class="topic-metadata">

**Author:** [@jgr](https://discourse.julialang.org/u/jgr)\
**Replies:** 7\
**Last updated:** [January 1, 2025, 2:06pm UTC](https://discourse.julialang.org/t/performance-of-for-loop/124240 "2025-01-01T14:06:52Z")

</div>

Hi, I want to run a for loop for matrix M with size (200,200,5). I have been told that for the sake of performance, it is better to loop from the outer to the inner (that is, dimension 3 → dim 2 → 1). But here the size …

---

## [Broadcasting the reshaped data @. versus .=](https://discourse.julialang.org/t/broadcasting-the-reshaped-data-versus/124300)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 13\
**Last updated:** [January 1, 2025, 11:48am UTC](https://discourse.julialang.org/t/broadcasting-the-reshaped-data-versus/124300 "2025-01-01T11:48:39Z")

</div>

I am rewriting this code below using broadcasting to improve performance and clarity. var = zeros(Float64, 9, 109, 50) data = rand(9\*109\*50) for j in 1:9 # Extract the slice of data corresponding to the current \`j\` …

---

## [Setting up Documenter for private Gitlab with PkgTemplates](https://discourse.julialang.org/t/setting-up-documenter-for-private-gitlab-with-pkgtemplates/124311)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 6:33pm UTC](https://discourse.julialang.org/t/setting-up-documenter-for-private-gitlab-with-pkgtemplates/124311 "2024-12-31T18:33:57Z")

</div>

I am setting up a repo on a private gitlab using PkgTemplates.jl. The CI worked with no problem, however, the documentation deployment is not working. I don’t know if I need to pass additional information to Documenter, …

---

## [The state of DataFrames.jl H2O benchmark](https://discourse.julialang.org/t/the-state-of-dataframes-jl-h2o-benchmark/43081)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 53\
**Last updated:** [January 1, 2025, 8:45am UTC](https://discourse.julialang.org/t/the-state-of-dataframes-jl-h2o-benchmark/43081 "2025-01-01T08:45:18Z")

</div>

@jangorecki has released the newest Database-like ops benchmark (by the way - thank you Jan for jour fantastic work!). I have decided to write this post as for the first time with DataFrames.jl 0.21.4 + CSV.jl 0.7.1 we h…

---

## [Are recipes still an "advanced topic"?](https://discourse.julialang.org/t/are-recipes-still-an-advanced-topic/124217)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 6\
**Last updated:** [December 31, 2024, 11:47pm UTC](https://discourse.julialang.org/t/are-recipes-still-an-advanced-topic/124217 "2024-12-31T23:47:10Z")

</div>

I was recently trying to figure out how to let users of my code make some plots, without making Plots.jl (and its hefty list of dependencies) a dependency of the package. Recipes seem like they’re aimed at this use case…

---

## [RFC – ergonomic juliacall syntax for passing Python variables to Julia](https://discourse.julialang.org/t/rfc-ergonomic-juliacall-syntax-for-passing-python-variables-to-julia/124266)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 23\
**Last updated:** [December 31, 2024, 12:28am UTC](https://discourse.julialang.org/t/rfc-ergonomic-juliacall-syntax-for-passing-python-variables-to-julia/124266 "2024-12-31T00:28:04Z")

</div>

I want to get feedback on an API for ergonomically passing Python variables to Julia code via juliacall. Here are a couple of ideas: from juliacall import Main as jl # proposal jl.teval("const MY\_CONST = $(x)", x=my\_py…

---

## [Equivalence to add\_nonlinear\_constraint in new JuMP version](https://discourse.julialang.org/t/equivalence-to-add-nonlinear-constraint-in-new-jump-version/122901)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 10\
**Last updated:** [December 31, 2024, 9:22pm UTC](https://discourse.julialang.org/t/equivalence-to-add-nonlinear-constraint-in-new-jump-version/122901 "2024-12-31T21:22:54Z")

</div>

Hi, I have used the functions add\_nonlinear\_constraint/ add\_nonlinear\_expression/ add\_nonlinear\_objective in the old version of JuMP to add programmatically-generated Expr objects to models. I wonder if these functions …

---

## [Recommendations for Julia Packages for FEA to be used in shape and topology optimization of 3D Shell Structures](https://discourse.julialang.org/t/recommendations-for-julia-packages-for-fea-to-be-used-in-shape-and-topology-optimization-of-3d-shell-structures/124270)

<div class="topic-metadata">

**Author:** [@Edan\_Lazerson](https://discourse.julialang.org/u/Edan_Lazerson)\
**Replies:** 6\
**Last updated:** [December 31, 2024, 6:57pm UTC](https://discourse.julialang.org/t/recommendations-for-julia-packages-for-fea-to-be-used-in-shape-and-topology-optimization-of-3d-shell-structures/124270 "2024-12-31T18:57:55Z")

</div>

Hello everyone, I’m working on my master’s project, which involves shape and topology optimization for a 3D shell structure. Initially, I plan to work within the linear static regime. Instead of writing my own finite el…

---

## [Fine-tuning an LLM for Julia, updates](https://discourse.julialang.org/t/fine-tuning-an-llm-for-julia-updates/114564)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 2:54pm UTC](https://discourse.julialang.org/t/fine-tuning-an-llm-for-julia-updates/114564 "2024-12-31T14:54:53Z")

</div>

Howdy. This is a follow-up to this post on a few generative AI tasks for the Julia community, namely, producing a dataset of good Julia code and fine-tuning a model for Julia specifically. There’s a few bits and pieces…

---

## [CUDA async is not working properly](https://discourse.julialang.org/t/cuda-async-is-not-working-properly/123902)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 4\
**Last updated:** [December 31, 2024, 2:18pm UTC](https://discourse.julialang.org/t/cuda-async-is-not-working-properly/123902 "2024-12-31T14:18:21Z")

</div>

I am trying to run saxpy\_kernel using CUDA async. I have a need to use the user specified stream to run the saxpy\_kernel. It is working good with CUDA.sync, but with CUDA.@async. Here is the minimum working example. Fi…

---

## [QML and Examples not working](https://discourse.julialang.org/t/qml-and-examples-not-working/124293)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 2\
**Last updated:** [December 31, 2024, 1:18pm UTC](https://discourse.julialang.org/t/qml-and-examples-not-working/124293 "2024-12-31T13:18:31Z")

</div>

The discussion on GUI’s and in particular QML made me interested in trying it out to get a flavour of what it does and how to do it. So I went to the QML.jl page to try some examples. The first time through the gui.jl …

---

## [Not able to update for almost one week](https://discourse.julialang.org/t/not-able-to-update-for-almost-one-week/124247)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 11\
**Last updated:** [December 31, 2024, 11:34am UTC](https://discourse.julialang.org/t/not-able-to-update-for-almost-one-week/124247 "2024-12-31T11:34:11Z")

</div>

(@v1.7) pkg\> up Updating registry at \`C:\\Users\\ytian\\.julia\\registries\\General.toml\` ┌ Error: Some registries failed to update: │ — C:\\Users\\ytian\\.julia\\registries\\General.toml — failed to download from https://…

---

## [Interfaces.jl unable to find implementation](https://discourse.julialang.org/t/interfaces-jl-unable-to-find-implementation/124299)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 2\
**Last updated:** [December 31, 2024, 11:52am UTC](https://discourse.julialang.org/t/interfaces-jl-unable-to-find-implementation/124299 "2024-12-31T11:52:50Z")

</div>

Hi. I am trying to implement Interfaces.jl for my package. The code can be found here: SolarPosition.jl/src at main · PVSMC/SolarPosition.jl · GitHub The interface definition is here: SolarPosition.jl/src/PositionInte…

---

## [Is it possible to join two dataframes that returns a view of the original two?](https://discourse.julialang.org/t/is-it-possible-to-join-two-dataframes-that-returns-a-view-of-the-original-two/124296)

<div class="topic-metadata">

**Author:** [@okatsn](https://discourse.julialang.org/u/okatsn)\
**Replies:** 1\
**Last updated:** [December 31, 2024, 2:36am UTC](https://discourse.julialang.org/t/is-it-possible-to-join-two-dataframes-that-returns-a-view-of-the-original-two/124296 "2024-12-31T02:36:32Z")

</div>

In julia programming, is it possible to join two dataframes, where the joined dataframe is essentially a “view” of the original two? For example, julia\> name = DataFrame(ID=\[1, 2, 3\], Name=\["John Doe", "Jane Doe", "J…

---

## [Installation problem](https://discourse.julialang.org/t/installation-problem/124245)

<div class="topic-metadata">

**Author:** [@Gerard](https://discourse.julialang.org/u/Gerard)\
**Replies:** 8\
**Last updated:** [December 30, 2024, 7:11pm UTC](https://discourse.julialang.org/t/installation-problem/124245 "2024-12-30T19:11:37Z")

</div>

I am using curl -fsSL https://install.julialang.org | sh to install Julia on Kubuntu 24.10. I get this error: info: downloading installer curl: (23) Failure writing output to destination juliaup: command failed: downloa…

---

## [\[ANN\] Finch.jl: Sparse and Structured Array Fusion](https://discourse.julialang.org/t/ann-finch-jl-sparse-and-structured-array-fusion/123178)

<div class="topic-metadata">

**Author:** [@willow](https://discourse.julialang.org/u/willow)\
**Replies:** 15\
**Last updated:** [December 30, 2024, 6:33pm UTC](https://discourse.julialang.org/t/ann-finch-jl-sparse-and-structured-array-fusion/123178 "2024-12-30T18:33:06Z")

</div>

Finch.jl: Sparse and Structured Array Fusion Hi everyone, I’m excited to release Finch 1.0.0! Finch is a Julia-to-Julia compiler for sparse or structured multidimensional arrays. Finch empowers users to write high-level …

---

## [How is it possible that parallelized code causes fewer allocations?](https://discourse.julialang.org/t/how-is-it-possible-that-parallelized-code-causes-fewer-allocations/124161)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 19\
**Last updated:** [December 30, 2024, 5:41pm UTC](https://discourse.julialang.org/t/how-is-it-possible-that-parallelized-code-causes-fewer-allocations/124161 "2024-12-30T17:41:58Z")

</div>

This case baffles me: using StructArrays n, s = 10^5, 100; llp = \[rand(1:n,s) for \_=1:n\]; llw = \[rand(-1:0.001:1,s) for \_=1:n\] function sort\_vec!(pp::Vector{tp}, ww::Vector{tw}, by::Function=first) ::Nothing where {tp\<…

---

## [Memory caching for reducing allocations](https://discourse.julialang.org/t/memory-caching-for-reducing-allocations/124260)

<div class="topic-metadata">

**Author:** [@artemsolod](https://discourse.julialang.org/u/artemsolod)\
**Replies:** 6\
**Last updated:** [December 30, 2024, 5:16pm UTC](https://discourse.julialang.org/t/memory-caching-for-reducing-allocations/124260 "2024-12-30T17:16:05Z")

</div>

I am experimenting with the idea of automatically reusing memory from previous allocations. For some workloads like parameter search on fixed data I know that allocations will have the same size between iterations. Preal…

---

## [Julia and WASM](https://discourse.julialang.org/t/julia-and-wasm/108482)

<div class="topic-metadata">

**Author:** [@benslinux](https://discourse.julialang.org/u/benslinux)\
**Replies:** 10\
**Last updated:** [December 30, 2024, 5:04pm UTC](https://discourse.julialang.org/t/julia-and-wasm/108482 "2024-12-30T17:04:48Z")

</div>

I thought this article on WASM and Julia was interesting and a good idea - maybe even inevitable. This is a short excerpt: Julia in WebAssembly by Raymond Minor Huffman B.S. in Computer Science and Engineering Massach…

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

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