# Latest

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

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

**Page:** 375

---

## [OpenAPI.jl behind Oxygen.jl sometimes doesn't work](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409)

<div class="topic-metadata">

**Author:** [@qwjyh](https://discourse.julialang.org/u/qwjyh)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 6:11am UTC](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409 "2024-06-30T06:11:31Z")

</div>

I’m new to web dev. I’m trying to make a relay server which receives requests from users as a server implemented with Oxygen.jl and sends requests to another server as a client which uses auto-generated client code from…

---

## [Real time plotting (with Makie)](https://discourse.julialang.org/t/real-time-plotting-with-makie/20432)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 13\
**Last updated:** [June 30, 2024, 12:36am UTC](https://discourse.julialang.org/t/real-time-plotting-with-makie/20432 "2024-06-30T00:36:11Z")

</div>

Currently I’m trying to plot real-time measured values (force values from a robot controller). By real-time I mean, at a 125Hz frequency as the values arrive. I’m working with Makie and concluded to this code based on th…

---

## [Alpine Error](https://discourse.julialang.org/t/alpine-error/115987)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 12\
**Last updated:** [June 24, 2024, 7:04pm UTC](https://discourse.julialang.org/t/alpine-error/115987 "2024-06-24T19:04:06Z")

</div>

When I use Alpine to solve an optimization problem, I get the error below. Starting bound-tightening ERROR: LoadError: Constraints of type MathOptInterface.ScalarQuadraticFunction{Float64}-in-MathOptInterface.GreaterT…

---

## [Which pivoting strategy is used in \`LinearAlgebra.bunchkaufman()\` function for Bunch-Kaufman factorization when we still not using rook pivoting?](https://discourse.julialang.org/t/which-pivoting-strategy-is-used-in-linearalgebra-bunchkaufman-function-for-bunch-kaufman-factorization-when-we-still-not-using-rook-pivoting/116399)

<div class="topic-metadata">

**Author:** [@shubh\_b](https://discourse.julialang.org/u/shubh_b)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 8:21pm UTC](https://discourse.julialang.org/t/which-pivoting-strategy-is-used-in-linearalgebra-bunchkaufman-function-for-bunch-kaufman-factorization-when-we-still-not-using-rook-pivoting/116399 "2024-06-29T20:21:02Z")

</div>

When trying to do Bunch-Kaufman factorization of the symmetric matrix A like below: julia\> using LinearAlgebra julia\> M = \[4 12 -16; 9.5 37 -43; 11 -6.5 9\]; julia\> A = Symmetric(M, :L) 3×3 Symmetric{Float64, Matrix{Fl…

---

## [How to create independent normal distribution variables in JuMP](https://discourse.julialang.org/t/how-to-create-independent-normal-distribution-variables-in-jump/116325)

<div class="topic-metadata">

**Author:** [@SSGD](https://discourse.julialang.org/u/SSGD)\
**Replies:** 4\
**Last updated:** [June 29, 2024, 5:01pm UTC](https://discourse.julialang.org/t/how-to-create-independent-normal-distribution-variables-in-jump/116325 "2024-06-29T17:01:57Z")

</div>

Hello :smiley: I followed the previous work to define variables (normal distribution) in JuMP v.1.22.2 and want to use like this: @indepnormal(m\_chance, ω\[i=1:numfarms\], mean=0, var=farms\[i\].σ^2) But I met issues, fol…

---

## [Struggle at using JuMP/MathOptInterface for calculating number of constraints](https://discourse.julialang.org/t/struggle-at-using-jump-mathoptinterface-for-calculating-number-of-constraints/116275)

<div class="topic-metadata">

**Author:** [@SSGD](https://discourse.julialang.org/u/SSGD)\
**Replies:** 6\
**Last updated:** [June 29, 2024, 4:59pm UTC](https://discourse.julialang.org/t/struggle-at-using-jump-mathoptinterface-for-calculating-number-of-constraints/116275 "2024-06-29T16:59:01Z")

</div>

Hello :smiley: I am using JuMP to solve a chance-constrained optimization, the original package is very old and I met issues of reproducing it. Following is one package I am trying to solve but stuck for more than a we…

---

## [Julia Community Prize 2024: Please nominate your candidates](https://discourse.julialang.org/t/julia-community-prize-2024-please-nominate-your-candidates/116394)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 4:56pm UTC](https://discourse.julialang.org/t/julia-community-prize-2024-please-nominate-your-candidates/116394 "2024-06-29T16:56:43Z")

</div>

Hello all, The nomination form for the Julia Community Prizes for 2024 is now open! Please enter your nominations below: Please note that past Community Prize winners (who have been listed in the above form) cannot w…

---

## [Python 3.13 will bring a new REPL](https://discourse.julialang.org/t/python-3-13-will-bring-a-new-repl/114988)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 9\
**Last updated:** [June 29, 2024, 3:43pm UTC](https://discourse.julialang.org/t/python-3-13-will-bring-a-new-repl/114988 "2024-06-29T15:43:39Z")

</div>

It seems that the Julia community is not the only one improving its REPL. Among other things, Python 3.13 will bring a new REPL.

---

## [What is the use case for ScopedValues?](https://discourse.julialang.org/t/what-is-the-use-case-for-scopedvalues/116390)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 2:31pm UTC](https://discourse.julialang.org/t/what-is-the-use-case-for-scopedvalues/116390 "2024-06-29T14:31:29Z")

</div>

I did some googling about ScopedValues, and generally understand that they are useful for threaded applications, but I’m still not tracking their value against just passing a value as an argument. Could someone give me …

---

## [Passing a Julia variable to a callback](https://discourse.julialang.org/t/passing-a-julia-variable-to-a-callback/116370)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 4\
**Last updated:** [June 29, 2024, 1:28pm UTC](https://discourse.julialang.org/t/passing-a-julia-variable-to-a-callback/116370 "2024-06-29T13:28:24Z")

</div>

In HDF5.jl, I have a randomly failing test. Upstream HDF5 started testing HDF5.jl, and noticed that the test would also randomly fail, though at times it seems quite consistent. Thr failing tests involve iteration whe…

---

## [How to release the extra buffer after insert! an array?](https://discourse.julialang.org/t/how-to-release-the-extra-buffer-after-insert-an-array/116385)

<div class="topic-metadata">

**Author:** [@Blumenkranz](https://discourse.julialang.org/u/Blumenkranz)\
**Replies:** 8\
**Last updated:** [June 29, 2024, 9:41am UTC](https://discourse.julialang.org/t/how-to-release-the-extra-buffer-after-insert-an-array/116385 "2024-06-29T09:41:29Z")

</div>

I found that julia allocates a lot when insert! an array for the first time. But for the second or subsequent insert! operations, the memory allocation becomes 0. I guess that the initial insert! pre-allocates memory to …

---

## [Databricks and Julia](https://discourse.julialang.org/t/databricks-and-julia/83617)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 9:34am UTC](https://discourse.julialang.org/t/databricks-and-julia/83617 "2024-06-29T09:34:59Z")

</div>

hi, for my job we are exploring the datalakehouse possibilities in DataBricks. Also we probably need to write new code (currently in PL/SQL) into a language that is accepted in the databricks envirroment. Question: I …

---

## [Modifying OrnsteinUhlenbeckBridge in DifferentialEquations.jl](https://discourse.julialang.org/t/modifying-ornsteinuhlenbeckbridge-in-differentialequations-jl/116168)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 8:00am UTC](https://discourse.julialang.org/t/modifying-ornsteinuhlenbeckbridge-in-differentialequations-jl/116168 "2024-06-29T08:00:53Z")

</div>

Suppose X(t) is an Ornstein-Uhlenbeck (OU) process, and Y(t; t\_0, T, u, v) is the respective OU bridge process such that Y(t\_0) = u, Y(T) = v, and 0 \\lt t \\lt T. I’ve had great use of simulating Y(t) using DiffEqNoisePr…

---

## [Multhreading & GPU memory management](https://discourse.julialang.org/t/multhreading-gpu-memory-management/116297)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 11\
**Last updated:** [June 29, 2024, 7:01am UTC](https://discourse.julialang.org/t/multhreading-gpu-memory-management/116297 "2024-06-29T07:01:48Z")

</div>

I want to perform inference of a Lux model in multithreading. In each thread, I will use X = X |\> dev to move data to GPU and perform inference in GPU. However, it seems when number of threads increase, the GPU memory co…

---

## [How many named colors are there in \`Makie\`?](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 7:07am UTC](https://discourse.julialang.org/t/how-many-named-colors-are-there-in-makie/116373 "2024-06-29T07:07:40Z")

</div>

How many named colors (not the color bars) are there in Makie? For example, :red, :blue, :green, :yellow… Where can I find the full list?

---

## [How to add a legend to a violin plot?](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-violin-plot/116374)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [June 29, 2024, 7:06am UTC](https://discourse.julialang.org/t/how-to-add-a-legend-to-a-violin-plot/116374 "2024-06-29T07:06:51Z")

</div>

fig = Figure() ax = Axis(fig\[1, 1\]) categories = rand(1:3, 1000) values = randn(1000) violin!(ax, categories, values, color=(:red,0.3), label="data1") categories = rand(1:3, 1000) values = randn(1000) violin!(ax, categor…

---

## [I cannot import \`global variable::Type\`](https://discourse.julialang.org/t/i-cannot-import-global-variable-type/112468)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 13\
**Last updated:** [June 29, 2024, 6:40am UTC](https://discourse.julialang.org/t/i-cannot-import-global-variable-type/112468 "2024-06-29T06:40:28Z")

</div>

Hi there, I am using submodules and am surprised that I cannot import a globally defined config value which is not yet initialized. While julia has a special syntax for such undefined globals global variable::Type I …

---

## [Problem with CUDA test](https://discourse.julialang.org/t/problem-with-cuda-test/111627)

<div class="topic-metadata">

**Author:** [@ErwinMoller](https://discourse.julialang.org/u/ErwinMoller)\
**Replies:** 11\
**Last updated:** [June 29, 2024, 6:38am UTC](https://discourse.julialang.org/t/problem-with-cuda-test/111627 "2024-06-29T06:38:23Z")

</div>

Hello, This is my first posting, and I am new to Julia. I have to say I love Julia so far, once I got over my ‘scoping annoyances’. :wink: So far I programmed a multithreaded prime-generating program on the CPU which w…

---

## [Variables for power flow with condition in constraint](https://discourse.julialang.org/t/variables-for-power-flow-with-condition-in-constraint/116343)

<div class="topic-metadata">

**Author:** [@priantop](https://discourse.julialang.org/u/priantop)\
**Replies:** 2\
**Last updated:** [June 29, 2024, 4:42am UTC](https://discourse.julialang.org/t/variables-for-power-flow-with-condition-in-constraint/116343 "2024-06-29T04:42:58Z")

</div>

Hi, I am formulating LP problem using JuMP for electricity dispatch below is the MWE I have variables for power flow and export/import to neighbouring regions defined as follows using JuMP, HiGHS m = Model(HiGHS.Opt…

---

## [Assignment of values to a subset of a subset of indices of an array](https://discourse.julialang.org/t/assignment-of-values-to-a-subset-of-a-subset-of-indices-of-an-array/116369)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 3\
**Last updated:** [June 29, 2024, 4:14am UTC](https://discourse.julialang.org/t/assignment-of-values-to-a-subset-of-a-subset-of-indices-of-an-array/116369 "2024-06-29T04:14:58Z")

</div>

Why does the following give different results? a = zeros(Float32, 10) b = rand(Float32,10) ind1 = \[3,4,6,9\] ind2 = \[2,3,4\] julia\> a\[ind1\[ind2\]\] .= mean(b\[ind1\[ind2\]\]) 3-element view(::Vector{Float32}, \[4, 6, 9\]) with e…

---

## [MTK: how to get all observed and unknown variable as a dataframe](https://discourse.julialang.org/t/mtk-how-to-get-all-observed-and-unknown-variable-as-a-dataframe/116250)

<div class="topic-metadata">

**Author:** [@wangyunyueyueniao](https://discourse.julialang.org/u/wangyunyueyueniao)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 2:23am UTC](https://discourse.julialang.org/t/mtk-how-to-get-all-observed-and-unknown-variable-as-a-dataframe/116250 "2024-06-29T02:23:13Z")

</div>

As the documentation said, a solution can be exported to a dataframe of unkowns. Also I am able to export a couple of observed variables as long as there name is known. But now I want to export all of the observed and u…

---

## [Using Julia LSP with Jupyter Lab and environments](https://discourse.julialang.org/t/using-julia-lsp-with-jupyter-lab-and-environments/116362)

<div class="topic-metadata">

**Author:** [@Joh11](https://discourse.julialang.org/u/Joh11)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 2:12am UTC](https://discourse.julialang.org/t/using-julia-lsp-with-jupyter-lab-and-environments/116362 "2024-06-29T02:12:52Z")

</div>

Hi, I am trying to make the Julia LSP work with Jupyter Lab. I managed to install it, however it is highlighting all of my packages with the “missing reference” warning, even with standard library modules: # here lsp c…

---

## [Multiple solutions from MiniZinc?](https://discourse.julialang.org/t/multiple-solutions-from-minizinc/116367)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 4\
**Last updated:** [June 29, 2024, 12:14am UTC](https://discourse.julialang.org/t/multiple-solutions-from-minizinc/116367 "2024-06-29T00:14:29Z")

</div>

Hi, I am trying to see if it is possible to return multiple solutions from MiniZinc.jl. I am not sure how to set the flag to do so for the MiniZinc solver. Following the example at this stackoverflow question (Multiple o…

---

## [Declaring variables inside a for loop using Threads.@threads has a significant impact on performance](https://discourse.julialang.org/t/declaring-variables-inside-a-for-loop-using-threads-threads-has-a-significant-impact-on-performance/116336)

<div class="topic-metadata">

**Author:** [@Sangjin\_Park](https://discourse.julialang.org/u/Sangjin_Park)\
**Replies:** 5\
**Last updated:** [June 28, 2024, 10:18pm UTC](https://discourse.julialang.org/t/declaring-variables-inside-a-for-loop-using-threads-threads-has-a-significant-impact-on-performance/116336 "2024-06-28T22:18:12Z")

</div>

Hello. This is my first time asking a question, so I apologize if it’s not in any kind of form. I’m also new to programming and Julia. As the title says, I often code by indexing array data and declaring it as a new var…

---

## [How to accurately plot 3D graph with very high peak in Julia?](https://discourse.julialang.org/t/how-to-accurately-plot-3d-graph-with-very-high-peak-in-julia/116317)

<div class="topic-metadata">

**Author:** [@Vinh](https://discourse.julialang.org/u/Vinh)\
**Replies:** 4\
**Last updated:** [June 28, 2024, 9:59pm UTC](https://discourse.julialang.org/t/how-to-accurately-plot-3d-graph-with-very-high-peak-in-julia/116317 "2024-06-28T21:59:08Z")

</div>

As the title says, I’m plotting a graph with very high peaks, but the output is really weird at (x,y)=(0.5,0.5) with no peaks at around 5\*10^11. I’m not really sure why that is. using GLMakie f(x, y) = y^2 / ((x - 0.5)^…

---

## [Issues with porting Turing.jl to RxInfer.jl](https://discourse.julialang.org/t/issues-with-porting-turing-jl-to-rxinfer-jl/115696)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 3\
**Last updated:** [June 28, 2024, 9:49pm UTC](https://discourse.julialang.org/t/issues-with-porting-turing-jl-to-rxinfer-jl/115696 "2024-06-28T21:49:51Z")

</div>

Hi everyone, I’m trying to port a Turing.jl example to RxInfer.jl. However, the following throws an error; any tips on how to reformat? using OrdinaryDiffEq using SciMLSensitivity using RxInfer Y = \[7, 6, 10, 8, 13, 17…

---

## [\[Code Review\] Dirstat ported from C++ and Java](https://discourse.julialang.org/t/code-review-dirstat-ported-from-c-and-java/116324)

<div class="topic-metadata">

**Author:** [@iNverse](https://discourse.julialang.org/u/iNverse)\
**Replies:** 18\
**Last updated:** [June 28, 2024, 8:13pm UTC](https://discourse.julialang.org/t/code-review-dirstat-ported-from-c-and-java/116324 "2024-06-28T20:13:18Z")

</div>

Hi I am writing a simple dirstat program which will traverse a directory and collect various metadata for the file. A task is dispatched to a threadpool when a we encounter a directory. Currently I have implementations i…

---

## [A plea for help with open62541 (OPC UA) binaries](https://discourse.julialang.org/t/a-plea-for-help-with-open62541-opc-ua-binaries/114702)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 6:31pm UTC](https://discourse.julialang.org/t/a-plea-for-help-with-open62541-opc-ua-binaries/114702 "2024-06-28T18:31:47Z")

</div>

Dear Julia community, I am working on a Julia wrapper for the open62541 C library (open62541.org); hoping to bring a working OPC UA ( OPC Unified Architecture - Wikipedia) package to the Julia community and made some go…

---

## [What would be an equivalent julia code](https://discourse.julialang.org/t/what-would-be-an-equivalent-julia-code/116341)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 10\
**Last updated:** [June 28, 2024, 6:17pm UTC](https://discourse.julialang.org/t/what-would-be-an-equivalent-julia-code/116341 "2024-06-28T18:17:48Z")

</div>

I have a piece of code in python def average\_by(lst, fn = lambda x: x): return sum(map(fn, lst), 0.0) / len(lst) average\_by(\[{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }\], lambda x: x\['n'\]) # 5.0 What would be the…

---

## [Modeling Toolkit, linearize nonlinear ODE system without input and simplification](https://discourse.julialang.org/t/modeling-toolkit-linearize-nonlinear-ode-system-without-input-and-simplification/98036)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 13\
**Last updated:** [June 28, 2024, 3:41pm UTC](https://discourse.julialang.org/t/modeling-toolkit-linearize-nonlinear-ode-system-without-input-and-simplification/98036 "2024-06-28T15:41:19Z")

</div>

I have a nonlinear ode system that has a complex structure, modeled with ModelingToolkit. This system shows a damped oscillatory response and is defined as @named ode = ODESystem(eqs, t, \<variables\>, \<parameters\>, tspan…

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

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