# Latest

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

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

**Page:** 563

---

## [Interactive Plot in Agents.jl not clickable](https://discourse.julialang.org/t/interactive-plot-in-agents-jl-not-clickable/105747)

<div class="topic-metadata">

**Author:** [@Kemper](https://discourse.julialang.org/u/Kemper)\
**Replies:** 7\
**Last updated:** [November 3, 2023, 2:14pm UTC](https://discourse.julialang.org/t/interactive-plot-in-agents-jl-not-clickable/105747 "2023-11-03T14:14:50Z")

</div>

Hi everyone! I am starting with agent based modelling, but I am not sure if this is a problem with Agents.jl or a general one: I try to do a very simple interactive plot, and the plot as well as the buttons and slide b…

---

## [Coherence between signals](https://discourse.julialang.org/t/coherence-between-signals/102772)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 14\
**Last updated:** [November 3, 2023, 2:09pm UTC](https://discourse.julialang.org/t/coherence-between-signals/102772 "2023-11-03T14:09:17Z")

</div>

I have two signals, lets call them U\_1 and U\_2. Both are time series of wind speeds, measured at different locations. They are more or less coherent. What I would like to know is how does the coherence between these sign…

---

## [Looking for an Exact LP Solver](https://discourse.julialang.org/t/looking-for-an-exact-lp-solver/105696)

<div class="topic-metadata">

**Author:** [@isaac.rubberducky](https://discourse.julialang.org/u/isaac.rubberducky)\
**Replies:** 8\
**Last updated:** [November 3, 2023, 1:48pm UTC](https://discourse.julialang.org/t/looking-for-an-exact-lp-solver/105696 "2023-11-03T13:48:36Z")

</div>

I have an algorithm that iteratively runs an LP until a stability condition is met. It is guaranteed to stabilize in theory, and in practice it almost always does as well. However, sometimes the rounding error generated …

---

## [Optimization problem: make as many friends as possible](https://discourse.julialang.org/t/optimization-problem-make-as-many-friends-as-possible/105694)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 10\
**Last updated:** [November 3, 2023, 1:44pm UTC](https://discourse.julialang.org/t/optimization-problem-make-as-many-friends-as-possible/105694 "2023-11-03T13:44:54Z")

</div>

Julians, I heard you like performance contests, here is one. Problem statement: A company wants to teach its employees how to work on tasks. It also wants them to make as many friends as possible. Two people become fri…

---

## [Does map have a traversal order?](https://discourse.julialang.org/t/does-map-have-a-traversal-order/105755)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 1:43pm UTC](https://discourse.julialang.org/t/does-map-have-a-traversal-order/105755 "2023-11-03T13:43:19Z")

</div>

Suppose that in map(f, a1, ...) the function f has side-effects, and a1 etc are ordered collections (eg arrays or similar). Is map guaranteed to traverse the arguments in the linear-index ordering, or could that theoret…

---

## [Genie.jl, global session variables](https://discourse.julialang.org/t/genie-jl-global-session-variables/33260)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 1:33pm UTC](https://discourse.julialang.org/t/genie-jl-global-session-variables/33260 "2023-11-03T13:33:19Z")

</div>

I need to write a very easy web application, in which I need to use Julia’s function. So I try to use Genie. To be honest, I don’t find good documentation, even the official doc isn’t full. I wrote the simplest example.…

---

## [\`Type(val)\` vs \`convert(Type, val)\` (Converting more than 365 days to months and years)](https://discourse.julialang.org/t/type-val-vs-convert-type-val-converting-more-than-365-days-to-months-and-years/105684)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 14\
**Last updated:** [November 3, 2023, 1:32pm UTC](https://discourse.julialang.org/t/type-val-vs-convert-type-val-converting-more-than-365-days-to-months-and-years/105684 "2023-11-03T13:32:37Z")

</div>

I was wondering how many years were between two events. So I define the timepoints, and find their difference: julia\> using Dates julia\> d0 = Date(1980, 6, 17) 1980-06-17 julia\> d1 = Date(2015, 1, 4) 2015-01-04 julia\>…

---

## [JuliaCon Local 2023 - Eindhoven Announced](https://discourse.julialang.org/t/juliacon-local-2023-eindhoven-announced/101475)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 1:19pm UTC](https://discourse.julialang.org/t/juliacon-local-2023-eindhoven-announced/101475 "2023-11-03T13:19:00Z")

</div>

See JuliaCon Local Eindhoven 2023

---

## [Should the manual discuss type parameters of keyword arguments?](https://discourse.julialang.org/t/should-the-manual-discuss-type-parameters-of-keyword-arguments/105752)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [November 3, 2023, 12:34pm UTC](https://discourse.julialang.org/t/should-the-manual-discuss-type-parameters-of-keyword-arguments/105752 "2023-11-03T12:34:14Z")

</div>

Type parameters for keyword arguments are currently a convenience form, equivalent to saving the result of a typeof, perform a subtype check when that is specified. Eg foo(; a::C) where {C \<: Integer} = :C is more o…

---

## [Building Julia 1.10 on Windows](https://discourse.julialang.org/t/building-julia-1-10-on-windows/105744)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [November 3, 2023, 10:35am UTC](https://discourse.julialang.org/t/building-julia-1-10-on-windows/105744 "2023-11-03T10:35:36Z")

</div>

How can I build Julia from source on Windows? Which toolchain and compiler should I install?

---

## [How I learned to stop worrying about being fastest and love microbenchmarks](https://discourse.julialang.org/t/how-i-learned-to-stop-worrying-about-being-fastest-and-love-microbenchmarks/105268)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 22\
**Last updated:** [November 3, 2023, 10:05am UTC](https://discourse.julialang.org/t/how-i-learned-to-stop-worrying-about-being-fastest-and-love-microbenchmarks/105268 "2023-11-03T10:05:10Z")

</div>

I love microbenchmarks. Once in a while on this forum, some Julian discovers a GitHub repo with a microbenchmark that compares the speed of different programming languages. Typically, Julia does poorly compared to C or …

---

## [ERROR: The following package names could not be resolved: \* Dataframes](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved-dataframes/105746)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 2\
**Last updated:** [November 3, 2023, 9:17am UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved-dataframes/105746 "2023-11-03T09:17:54Z")

</div>

Hey all, As in my daily routine I was about to work with dataframes but today the package Dataframes.jl is not working. I have of course installed the package some time ago, but today I had to reinstall it after I got t…

---

## [How can I give a function to eigs() in julia like matlab](https://discourse.julialang.org/t/how-can-i-give-a-function-to-eigs-in-julia-like-matlab/105699)

<div class="topic-metadata">

**Author:** [@Meteoooor](https://discourse.julialang.org/u/Meteoooor)\
**Replies:** 6\
**Last updated:** [November 3, 2023, 7:57am UTC](https://discourse.julialang.org/t/how-can-i-give-a-function-to-eigs-in-julia-like-matlab/105699 "2023-11-03T07:57:05Z")

</div>

I have the following matlab code: function \[ DomRVec, DomEig, Error \] = MyEigs( Tup, Tdn, NumofValue, SpeString, Dbond, Dspin, InitVec ) VecDim = Dbond^2; Tup = reshape( permute( Tup, \[ 1, 3, 2 \] ), \[ Dbond \* Dspin, D…

---

## [Plotting Trouble and GR](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724)

<div class="topic-metadata">

**Author:** [@ivanricardo](https://discourse.julialang.org/u/ivanricardo)\
**Replies:** 4\
**Last updated:** [November 3, 2023, 6:00am UTC](https://discourse.julialang.org/t/plotting-trouble-and-gr/105724 "2023-11-03T06:00:20Z")

</div>

Hello, I have been struggling with the base Plots package and have been getting the following error every time I try to plot /home/ivan/.julia/artifacts/7f59a0ec3d19c98dce30a3ba8ea9cbd8824ce4a6/bin/gksqt: /usr/bin/…/li…

---

## [Scale Division in Makie](https://discourse.julialang.org/t/scale-division-in-makie/105650)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 1\
**Last updated:** [November 1, 2023, 1:17pm UTC](https://discourse.julialang.org/t/scale-division-in-makie/105650 "2023-11-01T13:17:27Z")

</div>

Hi, I was wondering if there is a way to put a scale division in a heatmap plot using Makie. See the following plot as a reference, where I would like to implement both the line and the value in the corner that is positi…

---

## [PlotlyJS 0.18.11 hangs when trying "using" - but only the first time!](https://discourse.julialang.org/t/plotlyjs-0-18-11-hangs-when-trying-using-but-only-the-first-time/105636)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 8\
**Last updated:** [November 3, 2023, 5:57am UTC](https://discourse.julialang.org/t/plotlyjs-0-18-11-hangs-when-trying-using-but-only-the-first-time/105636 "2023-11-03T05:57:53Z")

</div>

I am experiencing a strange behavior with PlotlyJS 0.18.11. The first time I try “using” the package, Julia hangs. If I interrupt the process (CTRL-C, I am on Windows 10) I get error different error messages in VSCode o…

---

## [Save Flux model to ONNX?](https://discourse.julialang.org/t/save-flux-model-to-onnx/70335)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 14\
**Last updated:** [November 3, 2023, 3:06am UTC](https://discourse.julialang.org/t/save-flux-model-to-onnx/70335 "2023-11-03T03:06:57Z")

</div>

How to save a Flux model to ONNX? Is there currently a way to do it?

---

## [Avoiding allocations in a map over a tuple](https://discourse.julialang.org/t/avoiding-allocations-in-a-map-over-a-tuple/105734)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 11:24pm UTC](https://discourse.julialang.org/t/avoiding-allocations-in-a-map-over-a-tuple/105734 "2023-11-02T23:24:55Z")

</div>

Is there a way to avoid allocations in this function without using a generated function? function foo(t::Tuple) map(t) do x isodd(x) ? 1 : 1.0 end end julia\> using BenchmarkTools julia\> t = (1, 2, 3, 4…

---

## [What is the equivalent of numpy.random.choice for generating a non-uniform random sample based on a user supplied probability?](https://discourse.julialang.org/t/what-is-the-equivalent-of-numpy-random-choice-for-generating-a-non-uniform-random-sample-based-on-a-user-supplied-probability/34461)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 10:35pm UTC](https://discourse.julialang.org/t/what-is-the-equivalent-of-numpy-random-choice-for-generating-a-non-uniform-random-sample-based-on-a-user-supplied-probability/34461 "2023-11-02T22:35:14Z")

</div>

Hi, I’m on the lookout for the equivalent of \[numpy.random.choice()\](numpy.random.choice — NumPy v1.15 Manual). I want to generate random indices based on non-uniform random sampling. For example, I can do this with N…

---

## [Wram start of HermitianPSDCone in JuMP](https://discourse.julialang.org/t/wram-start-of-hermitianpsdcone-in-jump/105491)

<div class="topic-metadata">

**Author:** [@akirakyle](https://discourse.julialang.org/u/akirakyle)\
**Replies:** 11\
**Last updated:** [November 2, 2023, 10:14pm UTC](https://discourse.julialang.org/t/wram-start-of-hermitianpsdcone-in-jump/105491 "2023-11-02T22:14:43Z")

</div>

I’m having trouble figuring out how to use set\_start\_value with HermitianPSDCone. Here’s a minimal script based on the the quantum discrimination example in the docs: using JuMP using LinearAlgebra import COSMO ρs = \[…

---

## [Can someone explain closures to me](https://discourse.julialang.org/t/can-someone-explain-closures-to-me/105605)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 13\
**Last updated:** [November 2, 2023, 8:21pm UTC](https://discourse.julialang.org/t/can-someone-explain-closures-to-me/105605 "2023-11-02T20:21:41Z")

</div>

Hi, I am familiar with what a closure is (a function that captures state outside its scope) but I am interested in how they work in Julia so that I can understand performance. In Performance Tips there is a section dedi…

---

## [Define macros depending on optimization level](https://discourse.julialang.org/t/define-macros-depending-on-optimization-level/105714)

<div class="topic-metadata">

**Author:** [@mancolric](https://discourse.julialang.org/u/mancolric)\
**Replies:** 3\
**Last updated:** [November 2, 2023, 7:45pm UTC](https://discourse.julialang.org/t/define-macros-depending-on-optimization-level/105714 "2023-11-02T19:45:45Z")

</div>

I would like to define the macro const var"@lvec" = const var"@turbo @." if Julia is started with optimization levels 2 or 3, and const var"@lvec" = const var"@." otherwise. My main motivation is that I use @tturbo @. v…

---

## [Storing and importing structure containing a PyObject](https://discourse.julialang.org/t/storing-and-importing-structure-containing-a-pyobject/105711)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 2\
**Last updated:** [November 2, 2023, 7:38pm UTC](https://discourse.julialang.org/t/storing-and-importing-structure-containing-a-pyobject/105711 "2023-11-02T19:38:25Z")

</div>

So I want to store a structure called Results which contains the following: (:rgi\_id, :H, :S, :B, :V, :Vx, :Vy, :Δx, :Δy, :gdir) Where :H, :S, :B, :V, :Vx, :Vy, are 2D matrices :rgi\_id, is a string :Δx, :Δy, are floa…

---

## [VSCode's 'Go to definition' to recognise functions from other libraries](https://discourse.julialang.org/t/vscodes-go-to-definition-to-recognise-functions-from-other-libraries/105688)

<div class="topic-metadata">

**Author:** [@molecularMaestro](https://discourse.julialang.org/u/molecularMaestro)\
**Replies:** 6\
**Last updated:** [November 2, 2023, 7:14pm UTC](https://discourse.julialang.org/t/vscodes-go-to-definition-to-recognise-functions-from-other-libraries/105688 "2023-11-02T19:14:41Z")

</div>

I cannot seem to inspect functions or classes defined in external libraries using VSCode’s ‘Go to definition’ (F12) feature. For example, with the following simple example: using Plots plot(\[1, 2, 3\], \[1, 2, 3\]) I get…

---

## [Adding compat entry to stdlib breaks tests on Julia 1.3](https://discourse.julialang.org/t/adding-compat-entry-to-stdlib-breaks-tests-on-julia-1-3/105705)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 10\
**Last updated:** [November 2, 2023, 6:58pm UTC](https://discourse.julialang.org/t/adding-compat-entry-to-stdlib-breaks-tests-on-julia-1-3/105705 "2023-11-02T18:58:33Z")

</div>

I’m trying to register a new package version, and JuliaRegistrator asked me to add a compat entry for LinearAlgebra.jl. I added LinearAlgebra = "1" to my compat entry, but then my Github CI tests for Julia 1.3 fail with …

---

## [ModelingToolkit | Error with uncertain parameters using Measurements.jl](https://discourse.julialang.org/t/modelingtoolkit-error-with-uncertain-parameters-using-measurements-jl/105701)

<div class="topic-metadata">

**Author:** [@fabianmueller](https://discourse.julialang.org/u/fabianmueller)\
**Replies:** 7\
**Last updated:** [November 2, 2023, 6:46pm UTC](https://discourse.julialang.org/t/modelingtoolkit-error-with-uncertain-parameters-using-measurements-jl/105701 "2023-11-02T18:46:22Z")

</div>

Hello! :slight\_smile: Lately I am always getting an error when simulating a ModelingToolkit.jl model with uncertain parameters from Measurements.jl. I have the feeling that this worked before and the error especially ca…

---

## [Would you want the REPL to warn against performance traps, at least non-const globals?](https://discourse.julialang.org/t/would-you-want-the-repl-to-warn-against-performance-traps-at-least-non-const-globals/105719)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 6:45pm UTC](https://discourse.julialang.org/t/would-you-want-the-repl-to-warn-against-performance-traps-at-least-non-const-globals/105719 "2023-11-02T18:45:51Z")

</div>

https://www.reddit.com/r/Julia/comments/17m7knl/same\_code\_in\_julia\_takes\_6\_minutes\_vs\_15\_seconds/ const s = 6; const L = sqrt(11); r(z) = 1 ./sqrt.(s^2 - (L-z).^2) That’s part of larger code that was 24x slower than …

---

## [Accurate timing (in Julia or otherwise). strace; Also terminal "cooked mode" happening?](https://discourse.julialang.org/t/accurate-timing-in-julia-or-otherwise-strace-also-terminal-cooked-mode-happening/105716)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 6:10pm UTC](https://discourse.julialang.org/t/accurate-timing-in-julia-or-otherwise-strace-also-terminal-cooked-mode-happening/105716 "2023-11-02T18:10:30Z")

</div>

TL;DR Wouldn’t RDTSC assembly instruction be best, or even currently used (it seems not used, though maybe a next best option)? I’m doing: julia\> time\_ns() # implied by @time and I believe @btime 0x000c3f1aaef6b319 a…

---

## [How to do a 2d interpolation?](https://discourse.julialang.org/t/how-to-do-a-2d-interpolation/105698)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [November 2, 2023, 2:49pm UTC](https://discourse.julialang.org/t/how-to-do-a-2d-interpolation/105698 "2023-11-02T14:49:48Z")

</div>

How can I do a 2D interpolation on a regular grid? This works (1D): using PyPlot, Interpolations TSR = 2.0:1.0:10.0 TSR\_fine = 2.0:0.01:10.0 CP1 = sin.(TSR) plot(TSR, CP1) itp\_cubic1 = cubic\_spline\_interpolation(TSR…

---

## [\[Call for Collaborators\]: Tool for Extracting Treatment Pathways in Patient Populations Standardized in the OMOP CDM](https://discourse.julialang.org/t/call-for-collaborators-tool-for-extracting-treatment-pathways-in-patient-populations-standardized-in-the-omop-cdm/105704)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [November 2, 2023, 2:34pm UTC](https://discourse.julialang.org/t/call-for-collaborators-tool-for-extracting-treatment-pathways-in-patient-populations-standardized-in-the-omop-cdm/105704 "2023-11-02T14:34:34Z")

</div>

Hi folks :wave: This is a call for collaborators for a project I am starting! I’d love collaborators on this work if you are interested in the idea; I’ll be working on it at any rate! Details as follows: Title: Tool f…

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

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