# Latest

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

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

**Page:** 394

---

## [Intersection of level sets](https://discourse.julialang.org/t/intersection-of-level-sets/114913)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 12\
**Last updated:** [June 6, 2024, 9:26am UTC](https://discourse.julialang.org/t/intersection-of-level-sets/114913 "2024-06-06T09:26:57Z")

</div>

Hello! I am computing the intersections of two level sets computed from some input arrays. The idea is that, having retrieved the contours from Makie we can compute the intersections of the curves by iterating over sequ…

---

## [Nearest\_neighbor() and euclidean\_distance in Agents](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 9:15am UTC](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270 "2024-06-06T09:15:29Z")

</div>

Hey, Im working with interaction\_pair() function which uses nearest\_neighbor() to find a pair. Now while applying this function I feel that doesn’t matter how small r value we give in nearest\_neighbor(model\[2\], model, 1…

---

## [Configuring Julia formatter and linter with nvim-lspconfig for neovim](https://discourse.julialang.org/t/configuring-julia-formatter-and-linter-with-nvim-lspconfig-for-neovim/114746)

<div class="topic-metadata">

**Author:** [@mostafatouny](https://discourse.julialang.org/u/mostafatouny)\
**Replies:** 17\
**Last updated:** [June 6, 2024, 7:56am UTC](https://discourse.julialang.org/t/configuring-julia-formatter-and-linter-with-nvim-lspconfig-for-neovim/114746 "2024-06-06T07:56:42Z")

</div>

Hello, For Neovim, I have successfully integrated LanguageServer.jl through lspconfig as instructed here. Auto-completion and hover documentation worked. screenshot I want to integrate JuliaFormatter.jl and StaticLint.…

---

## [Why is dispatching on \`Val\` freezing Julia?](https://discourse.julialang.org/t/why-is-dispatching-on-val-freezing-julia/115267)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 5:26am UTC](https://discourse.julialang.org/t/why-is-dispatching-on-val-freezing-julia/115267 "2024-06-06T05:26:19Z")

</div>

I expected a MethodError but this freezes Julia. f(::Val{0}) = nothing; f(x) = f(Val(x)); f(1) julia\> versioninfo() Julia Version 1.10.3 Commit 0b4590a5507 (2024-04-30 10:59 UTC) Build Info: Official https://julialan…

---

## [Parameter support is broken used with direct\_model](https://discourse.julialang.org/t/parameter-support-is-broken-used-with-direct-model/115266)

<div class="topic-metadata">

**Author:** [@metab0t](https://discourse.julialang.org/u/metab0t)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 3:47am UTC](https://discourse.julialang.org/t/parameter-support-is-broken-used-with-direct-model/115266 "2024-06-06T03:47:27Z")

</div>

using JuMP, Ipopt model = direct\_model(Ipopt.Optimizer()); set\_silent(model) x = @variable(model, lower\_bound = 0.0) @variable(model, p in Parameter(1.0), set\_string\_name=false) @objective(model, Min, x^2) con = @cons…

---

## [Only return mouse position if inside an Axis using GLMakie](https://discourse.julialang.org/t/only-return-mouse-position-if-inside-an-axis-using-glmakie/115204)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 3\
**Last updated:** [June 6, 2024, 1:40am UTC](https://discourse.julialang.org/t/only-return-mouse-position-if-inside-an-axis-using-glmakie/115204 "2024-06-06T01:40:41Z")

</div>

I’m making an interactive heatmap where I get the mouse position and update a second plot. I provided a MWE where a horizontal line moves with the mouse, but I only want to update the line when the mouse is inside of thi…

---

## [Problem Turing bug multivariate Bernoulli](https://discourse.julialang.org/t/problem-turing-bug-multivariate-bernoulli/115183)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 11:27pm UTC](https://discourse.julialang.org/t/problem-turing-bug-multivariate-bernoulli/115183 "2024-06-05T23:27:58Z")

</div>

I am trying to estimate the paremeters of a model using Turing, in the code below there is a toy model for simplicity. This model as output has a 10 dimensional reponse variable. Therefore for each time I have a vector a…

---

## [Get value in nested data structure of arbitrary depth](https://discourse.julialang.org/t/get-value-in-nested-data-structure-of-arbitrary-depth/115254)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [June 5, 2024, 10:19pm UTC](https://discourse.julialang.org/t/get-value-in-nested-data-structure-of-arbitrary-depth/115254 "2024-06-05T22:19:56Z")

</div>

Hi, I would like to acess values of nested data structure with a Tuple representing the fields location in the data structure. The data structure can be of an arbitrary type and depth. Here is a MWE illustrating a few o…

---

## [Storage format for lots of strings](https://discourse.julialang.org/t/storage-format-for-lots-of-strings/115256)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 7\
**Last updated:** [June 5, 2024, 9:50pm UTC](https://discourse.julialang.org/t/storage-format-for-lots-of-strings/115256 "2024-06-05T21:50:54Z")

</div>

Sorry to hijack this thread but I have another problem also with scale and was wondering if anyone has dealt with this scale before. I basically have 180 billion strings, SMILES, that I would like to store and work with …

---

## [Jump Process with Drift](https://discourse.julialang.org/t/jump-process-with-drift/115166)

<div class="topic-metadata">

**Author:** [@Mieszko](https://discourse.julialang.org/u/Mieszko)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 9:47pm UTC](https://discourse.julialang.org/t/jump-process-with-drift/115166 "2024-06-05T21:47:37Z")

</div>

Hey, I am trying to simulate with the use of JumpProcesses.jl the following stochastic differential equation: dX\_t = -X\_tdt + dN\_t. Do you know, if there is any straightforward way of defining the f (drift) function in…

---

## [How to use Observable to Update Multiple Updates to a GLMakie Animation](https://discourse.julialang.org/t/how-to-use-observable-to-update-multiple-updates-to-a-glmakie-animation/115255)

<div class="topic-metadata">

**Author:** [@Thushara\_Gunaratne](https://discourse.julialang.org/u/Thushara_Gunaratne)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 9:04pm UTC](https://discourse.julialang.org/t/how-to-use-observable-to-update-multiple-updates-to-a-glmakie-animation/115255 "2024-06-05T21:04:44Z")

</div>

I’m trying to generate an animation with multiple observables as in the following code: using GLMakie # Define some sample data (replace with your actual data) x = range(0.0, 2.0, length=101) data1 = Observable(sin.(2\*…

---

## [When to use \`using Package: function\` and when to use \`import Package: function\`](https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 20\
**Last updated:** [June 5, 2024, 8:43pm UTC](https://discourse.julialang.org/t/when-to-use-using-package-function-and-when-to-use-import-package-function/115091 "2024-06-05T20:43:54Z")

</div>

I have a package, which imports a couple of package, as well as a couple of extra functions from these. I am trying to figure out whether there is some “rule” for whether to use using Package: function or import Packa…

---

## [JuMPER using solver(Clp,GLPK)](https://discourse.julialang.org/t/jumper-using-solver-clp-glpk/115206)

<div class="topic-metadata">

**Author:** [@jackfr0st11](https://discourse.julialang.org/u/jackfr0st11)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 8:11pm UTC](https://discourse.julialang.org/t/jumper-using-solver-clp-glpk/115206 "2024-06-05T20:11:51Z")

</div>

I have installed JuMPER with specified Julia(1.0) and JuMP(0.18) and i want to try the example code, but failed to add a solver for the model. Here is my code and reported error: I am wondering if it is feasible to …

---

## [Error while defining binary variable in JuMP](https://discourse.julialang.org/t/error-while-defining-binary-variable-in-jump/115249)

<div class="topic-metadata">

**Author:** [@vineetjnair9](https://discourse.julialang.org/u/vineetjnair9)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 8:02pm UTC](https://discourse.julialang.org/t/error-while-defining-binary-variable-in-jump/115249 "2024-06-05T20:02:44Z")

</div>

Hi, I’m trying to initialize a vector of binary variables as follows: model = Model(Gurobi.Optimizer) @variable(model, z\[1:12\], Bin) But I get this error: Exception has occurred: MethodError MethodError: no method m…

---

## [Storing lots of time series](https://discourse.julialang.org/t/storing-lots-of-time-series/115169)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 12\
**Last updated:** [June 5, 2024, 7:35pm UTC](https://discourse.julialang.org/t/storing-lots-of-time-series/115169 "2024-06-05T19:35:46Z")

</div>

Hello, I’ve a large number of time series as result of my simulations. As today the dataset is made of ~1e7 time series (100 points each), stored on disk in .csv files (each one containing 5 of them). I’ll have more (1…

---

## [MTK & structural\_parameters](https://discourse.julialang.org/t/mtk-structural-parameters/115239)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 7:00pm UTC](https://discourse.julialang.org/t/mtk-structural-parameters/115239 "2024-06-05T19:00:17Z")

</div>

I have a gas model where I want to compare two cases: using a fixed “compressibility factor” z computing z from an EoS \[Equation of State\] The idea is to compare the dynamic behavior. So my idea is to add a structural…

---

## [2024 Julia User & Developer Survey](https://discourse.julialang.org/t/2024-julia-user-developer-survey/115188)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 12\
**Last updated:** [June 5, 2024, 6:09pm UTC](https://discourse.julialang.org/t/2024-julia-user-developer-survey/115188 "2024-06-05T18:09:52Z")

</div>

The 2024 Julia User & Developer Survey is now open! Click here to participate: Julia Developer Survey 2024 - Publish. Julia users and developers are encouraged to participate. Please forward and share with colleagues and…

---

## [Fails test at calling \`Docs.undocumented\_names\` in Julia stdlib](https://discourse.julialang.org/t/fails-test-at-calling-docs-undocumented-names-in-julia-stdlib/115224)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 4:58pm UTC](https://discourse.julialang.org/t/fails-test-at-calling-docs-undocumented-names-in-julia-stdlib/115224 "2024-06-05T16:58:04Z")

</div>

I’m editing Julia’s standard library and fail test at the following: @testset "Docstrings" begin @test isempty(Docs.undocumented\_names(Unicode)) end Docstrings: Error During Test at /Users/paalon/git/julia/stdlib/U…

---

## [Preallocating and returning anonymous function](https://discourse.julialang.org/t/preallocating-and-returning-anonymous-function/115241)

<div class="topic-metadata">

**Author:** [@kockahonza](https://discourse.julialang.org/u/kockahonza)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 4:27pm UTC](https://discourse.julialang.org/t/preallocating-and-returning-anonymous-function/115241 "2024-06-05T16:27:51Z")

</div>

Hi, so I’m working on a project and I want to avoid many allocations called in a loop as is often suggested. That said I also want to avoid having to pass all the preallocated arrays/space/whatever it is at every functio…

---

## [Issues in solving Parameter Estimation Optimization with SciMLSensitivity.jl](https://discourse.julialang.org/t/issues-in-solving-parameter-estimation-optimization-with-scimlsensitivity-jl/114791)

<div class="topic-metadata">

**Author:** [@MarcoDellOro](https://discourse.julialang.org/u/MarcoDellOro)\
**Replies:** 11\
**Last updated:** [June 5, 2024, 3:45pm UTC](https://discourse.julialang.org/t/issues-in-solving-parameter-estimation-optimization-with-scimlsensitivity-jl/114791 "2024-06-05T15:45:13Z")

</div>

Hello everybody, I have already asked a question on the same topic (ODEs parameter estimation) but unfortunately I am experiencing some early user issues which I cannot understand how to solve. I am currently using the…

---

## [ModelingToolkit takes forever to precompile on Windows 11](https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 94\
**Last updated:** [June 5, 2024, 3:23pm UTC](https://discourse.julialang.org/t/modelingtoolkit-takes-forever-to-precompile-on-windows-11/114492 "2024-06-05T15:23:38Z")

</div>

I use Windows 11 on an HP Dragonfly laptop. I’ve added a package, and precompiling/updating takes “forever”: I did this change yesterday evening, went out for a meal, etc., and this morning (12 h later or so), the laptop…

---

## [Modifying interaction\_pairs() for EventQueueABM](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 2:27pm UTC](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233 "2024-06-05T14:27:31Z")

</div>

Hello everyone, I’m trying to modify inbuild function interaction\_pairs() to make it usable for EventQueueABM model too. Any suggestion will be helpful… :slight\_smile: Here is original code : function interacting\_pair…

---

## [Stack overflow 2024 Developer survey is out](https://discourse.julialang.org/t/stack-overflow-2024-developer-survey-is-out/115219)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 2:02pm UTC](https://discourse.julialang.org/t/stack-overflow-2024-developer-survey-is-out/115219 "2024-06-05T14:02:33Z")

</div>

The SO 2024 developer study is out and running. I know I missed that last year, so just a heads up, for folks interested in representing the julia people in the survey.

---

## [Elastic collision for particle pairs in 3d EventQueueABM model](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 12:57pm UTC](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231 "2024-06-05T12:57:55Z")

</div>

Hello everyone, I’m trying to make a model where 2 particles in 3d cubical space when comes to certain distance they do elastic collision. Now major issues are that Elastic collision function is just for 2d in Agents.…

---

## [Type instability of discrete mixture distribution](https://discourse.julialang.org/t/type-instability-of-discrete-mixture-distribution/115118)

<div class="topic-metadata">

**Author:** [@mlanghinrichs](https://discourse.julialang.org/u/mlanghinrichs)\
**Replies:** 15\
**Last updated:** [June 5, 2024, 1:22pm UTC](https://discourse.julialang.org/t/type-instability-of-discrete-mixture-distribution/115118 "2024-06-05T13:22:49Z")

</div>

Hi all, I want to define a custom distribution that is a modification of the Geometric distribution (the one that has support {1,2,3,...}) with an additional “atom” at the event 0. I.e. this is a well-defined distributi…

---

## [Flux memory usage high in SRCNN](https://discourse.julialang.org/t/flux-memory-usage-high-in-srcnn/115174)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 1:13pm UTC](https://discourse.julialang.org/t/flux-memory-usage-high-in-srcnn/115174 "2024-06-05T13:13:57Z")

</div>

Hello, First let me preface this by saying I am new to Julia and machine learning. I just wanted to dip my toes into machine learning for fun, started out with OCR using an MLP first and now I’m trying to implement a su…

---

## [How to decipher SciMLBase OptimizationBase OptimizationForwardDiffExt warnings?](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 12:45pm UTC](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225 "2024-06-05T12:45:28Z")

</div>

When fitting a DE params to data, I get warnings like this one: ┌ Warning: dt(2.842170943040401e-14) \<= eps(t)(218.2272500679591) , and step error estimate = 2.359923922574841. Aborting. There is either an error in yo…

---

## [How to allow users to safely change package "constants"?](https://discourse.julialang.org/t/how-to-allow-users-to-safely-change-package-constants/115173)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 19\
**Last updated:** [June 5, 2024, 12:44pm UTC](https://discourse.julialang.org/t/how-to-allow-users-to-safely-change-package-constants/115173 "2024-06-05T12:44:13Z")

</div>

I have a package MyPkg with some numbers that act as settings which for the most part are “constants”. But I would like users to be able to specify some variations of these so I can not define them as const. I’m thinking…

---

## [University proposing Excel training to analyse data :-/](https://discourse.julialang.org/t/university-proposing-excel-training-to-analyse-data/115229)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 12:24pm UTC](https://discourse.julialang.org/t/university-proposing-excel-training-to-analyse-data/115229 "2024-06-05T12:24:23Z")

</div>

From our university newsletter: “Cette formation s’adresse à tous les personnels de l’Université (doctorants, enseignants-chercheurs, …) qui souhaitent utiliser le logiciel Excel pour le traitement de leurs données.” E…

---

## [DrWatson Common Code as Module Issue](https://discourse.julialang.org/t/drwatson-common-code-as-module-issue/115203)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 11\
**Last updated:** [June 5, 2024, 12:15pm UTC](https://discourse.julialang.org/t/drwatson-common-code-as-module-issue/115203 "2024-06-05T12:15:02Z")

</div>

Hello, I am trying to use the functionality of DrWatson described here. But I can’t get it to work. Here is what I have. I’ve got a very basic project that looks like this. ./ ../ .git/ .gitignore Manifest.toml Projec…

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

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