# Latest

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

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

**Page:** 450

---

## [Change value of a constant in the objective function](https://discourse.julialang.org/t/change-value-of-a-constant-in-the-objective-function/112082)

<div class="topic-metadata">

**Author:** [@pedroripper](https://discourse.julialang.org/u/pedroripper)\
**Replies:** 2\
**Last updated:** [March 26, 2024, 12:37am UTC](https://discourse.julialang.org/t/change-value-of-a-constant-in-the-objective-function/112082 "2024-03-26T00:37:38Z")

</div>

Greetings, I have a JuMP model that is being instantiated at some point of my code. I will be running optimize!(model) several times and, for each, I would like to change the value of the coefficient given as a paramet…

---

## [Peculiar Issue: The same function when defined in a package is 10x slower](https://discourse.julialang.org/t/peculiar-issue-the-same-function-when-defined-in-a-package-is-10x-slower/112110)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [March 26, 2024, 12:19am UTC](https://discourse.julialang.org/t/peculiar-issue-the-same-function-when-defined-in-a-package-is-10x-slower/112110 "2024-03-26T00:19:57Z")

</div>

Hello! I do not have a MWE since it is something I have spotted in developing a nested package. What I noticed is that if I have a function such as; function SPHExample.ComputeInteractions!(Position, Kernel, KernelGrad…

---

## [Redirect a plot type in Makie while keeping color consistent](https://discourse.julialang.org/t/redirect-a-plot-type-in-makie-while-keeping-color-consistent/111975)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 8\
**Last updated:** [March 22, 2024, 9:11pm UTC](https://discourse.julialang.org/t/redirect-a-plot-type-in-makie-while-keeping-color-consistent/111975 "2024-03-22T21:11:38Z")

</div>

I have a histogram type that I’d like to customize its plotting for a few type of plots: Scatter, BarPlot, Hist, StepHist etc. For some of them, this is very straight forward: julia\> using CairoMakie julia\> struct MyH…

---

## [How to define a new matrix type?](https://discourse.julialang.org/t/how-to-define-a-new-matrix-type/112098)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 8:24pm UTC](https://discourse.julialang.org/t/how-to-define-a-new-matrix-type/112098 "2024-03-25T20:24:15Z")

</div>

How do I define a thin wrapper type around a matrix? I assumed that from LinearAlgebra should do what I want. However, it throws an error: struct MyMatrix{T,S\<:AbstractMatrix{\<:T}} \<: AbstractMatrix{T} data::S …

---

## [Parsing a string with quotations](https://discourse.julialang.org/t/parsing-a-string-with-quotations/112052)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 5\
**Last updated:** [March 25, 2024, 8:11pm UTC](https://discourse.julialang.org/t/parsing-a-string-with-quotations/112052 "2024-03-25T20:11:47Z")

</div>

I’m writing a small package involving some user interaction in the style of unix command line interactive utilities. The package SimpleArgParse.jl with some adaptations would do the parsing, however it needs to be provid…

---

## [Error in testset base/aqua, test failed at \\CUDA\\htRwP\\test\\base\\aqua.jl](https://discourse.julialang.org/t/error-in-testset-base-aqua-test-failed-at-cuda-htrwp-test-base-aqua-jl/111994)

<div class="topic-metadata">

**Author:** [@NikoBiele](https://discourse.julialang.org/u/NikoBiele)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 7:36pm UTC](https://discourse.julialang.org/t/error-in-testset-base-aqua-test-failed-at-cuda-htrwp-test-base-aqua-jl/111994 "2024-03-25T19:36:39Z")

</div>

Hi all, First of all I appreciate all of the work that has been and is being put into making GPU programming possible in Julia. :slight\_smile: I am new to GPU programming, and I basically just installed CUDA.jl and tri…

---

## [Insight on QuadGK instability on backwards integration](https://discourse.julialang.org/t/insight-on-quadgk-instability-on-backwards-integration/112090)

<div class="topic-metadata">

**Author:** [@aner-sanchez](https://discourse.julialang.org/u/aner-sanchez)\
**Replies:** 2\
**Last updated:** [March 25, 2024, 5:58pm UTC](https://discourse.julialang.org/t/insight-on-quadgk-instability-on-backwards-integration/112090 "2024-03-25T17:58:00Z")

</div>

Has someone an insight on why julia\> quadgk(s-\>(1-s)^(-0.9),0,1,rtol=1e-6,atol=1e-8,maxevals=10^10) (9.772220920299885, 0.011179284983380677) julia\> quadgk(s-\>s^(-0.9),0,1) (9.999999279144092, 1.4665863410199572e-7) c…

---

## [Error while installing Trixi.jl](https://discourse.julialang.org/t/error-while-installing-trixi-jl/112091)

<div class="topic-metadata">

**Author:** [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 5:41pm UTC](https://discourse.julialang.org/t/error-while-installing-trixi-jl/112091 "2024-03-25T17:41:51Z")

</div>

I am having issue while adding Trixi.jl using Pkg. Below screenshot has all details including my version. And one more thing I am using wsl in VScode terminal.

---

## [File picker for Makie](https://discourse.julialang.org/t/file-picker-for-makie/32295)

<div class="topic-metadata">

**Author:** [@miki\_berkovich](https://discourse.julialang.org/u/miki_berkovich)\
**Replies:** 4\
**Last updated:** [March 25, 2024, 5:15pm UTC](https://discourse.julialang.org/t/file-picker-for-makie/32295 "2024-03-25T17:15:58Z")

</div>

hello, i’m new to Makie and i’m trying to build a GUI to plot data from a CSV file. to load the file i want the user to choose a CSV and then pars the data to the plot. i was looking for something like the “filepicker”…

---

## [I don't understand how to do self-referencial parametric typing](https://discourse.julialang.org/t/i-dont-understand-how-to-do-self-referencial-parametric-typing/112080)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [March 25, 2024, 4:25pm UTC](https://discourse.julialang.org/t/i-dont-understand-how-to-do-self-referencial-parametric-typing/112080 "2024-03-25T16:25:48Z")

</div>

I’m trying to build two tree node types that keep track of a set of instances of each other. FooNode{T, C \<: Set} childs::C foo::T end BarNode{G, D \<: Set} childs::D bar::G end T and G are other parametr…

---

## [Why is Flux.destructure type unstable?](https://discourse.julialang.org/t/why-is-flux-destructure-type-unstable/111963)

<div class="topic-metadata">

**Author:** [@Iris\_Allevi](https://discourse.julialang.org/u/Iris_Allevi)\
**Replies:** 6\
**Last updated:** [March 25, 2024, 3:51pm UTC](https://discourse.julialang.org/t/why-is-flux-destructure-type-unstable/111963 "2024-03-25T15:51:04Z")

</div>

I was building a simple model and at some point I needed to “unroll” it to get all the parameters in an array. So I tired with Flux.destructure. I got some type instability, so I checked the documentation and I tried wi…

---

## [Get names and versions of loaded modules](https://discourse.julialang.org/t/get-names-and-versions-of-loaded-modules/42289)

<div class="topic-metadata">

**Author:** [@uwechsler](https://discourse.julialang.org/u/uwechsler)\
**Replies:** 6\
**Last updated:** [March 25, 2024, 3:03pm UTC](https://discourse.julialang.org/t/get-names-and-versions-of-loaded-modules/42289 "2024-03-25T15:03:22Z")

</div>

Is there a way to get the names and version numbers of the currently loaded modules in a Julia session?

---

## [Julia Gender Inclusive Community Hour: Letícia Maria Pequeno Madureira (Saturday, April 6)](https://discourse.julialang.org/t/julia-gender-inclusive-community-hour-leticia-maria-pequeno-madureira-saturday-april-6/112085)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 0\
**Last updated:** [March 25, 2024, 2:26pm UTC](https://discourse.julialang.org/t/julia-gender-inclusive-community-hour-leticia-maria-pequeno-madureira-saturday-april-6/112085 "2024-03-25T14:26:39Z")

</div>

Hey everyone, Julia Gender Inclusive is hosting our next Community Hour on Saturday, 6 April at 11AM EDT / 3PM UTC / 5PM CEST / 8.30PM IST, beginning with a short talk by Letícia Maria Pequeno Madureira! Sign-up here f…

---

## [TerminalUserInterfaces.jl question](https://discourse.julialang.org/t/terminaluserinterfaces-jl-question/112043)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 6\
**Last updated:** [March 25, 2024, 1:51pm UTC](https://discourse.julialang.org/t/terminaluserinterfaces-jl-question/112043 "2024-03-25T13:51:21Z")

</div>

I try to use TerminalUserInterfaces.jl and the list example: TerminalUserInterfaces.jl/examples/list.jl at main · kdheepak/TerminalUserInterfaces.jl · GitHub to create a list of options. This part is fine and works. No…

---

## [Missing Reference warning from VS code Julia extension linter](https://discourse.julialang.org/t/missing-reference-warning-from-vs-code-julia-extension-linter/112084)

<div class="topic-metadata">

**Author:** [@j-adel](https://discourse.julialang.org/u/j-adel)\
**Replies:** 0\
**Last updated:** [March 25, 2024, 1:13pm UTC](https://discourse.julialang.org/t/missing-reference-warning-from-vs-code-julia-extension-linter/112084 "2024-03-25T13:13:26Z")

</div>

Simply having a package added to the global environment (through \] add) and then in a new Julia file having the line using Example, the linter shows a warning “Missing reference: Example” for the package and any used fun…

---

## [Matrix Dimension mismatch](https://discourse.julialang.org/t/matrix-dimension-mismatch/112073)

<div class="topic-metadata">

**Author:** [@Sharara](https://discourse.julialang.org/u/Sharara)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 11:23am UTC](https://discourse.julialang.org/t/matrix-dimension-mismatch/112073 "2024-03-25T11:23:34Z")

</div>

Hi I checked all similar topics but, I think they did not match my case, I faced mismatch matrix size several times, for different conditions, (while I am sure the matrices and sizes are true and because I am trying t…

---

## [Set seed GLMNet.jl](https://discourse.julialang.org/t/set-seed-glmnet-jl/112071)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 0\
**Last updated:** [March 25, 2024, 9:22am UTC](https://discourse.julialang.org/t/set-seed-glmnet-jl/112071 "2024-03-25T09:22:41Z")

</div>

Hello! I’m using GLMNet.jl to obtain a logistic regression model. How can I set a seed so that every time I run function glmnetcv with the same parameters I get the same result? Thank you!

---

## [Update Problem-Julia in Mac OS](https://discourse.julialang.org/t/update-problem-julia-in-mac-os/112064)

<div class="topic-metadata">

**Author:** [@Sharara](https://discourse.julialang.org/u/Sharara)\
**Replies:** 10\
**Last updated:** [March 25, 2024, 8:57am UTC](https://discourse.julialang.org/t/update-problem-julia-in-mac-os/112064 "2024-03-25T08:57:49Z")

</div>

Hello everybody I tried to update my Julia and then update JuMP, Because I have the following Error in my code: ERROR: UndefVarError: \`Model\` not defined Stacktrace: \[1\] solve\_are(A::Matrix{Float64}, B::Matrix{Float6…

---

## [Any way of doing \`f(::T) where Base.issingletontype(T)\`?](https://discourse.julialang.org/t/any-way-of-doing-f-t-where-base-issingletontype-t/112066)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 4\
**Last updated:** [March 25, 2024, 7:57am UTC](https://discourse.julialang.org/t/any-way-of-doing-f-t-where-base-issingletontype-t/112066 "2024-03-25T07:57:28Z")

</div>

Basically I want a dynamic union of singleton types.

---

## [Variable not found](https://discourse.julialang.org/t/variable-not-found/111865)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 3\
**Last updated:** [March 25, 2024, 7:55am UTC](https://discourse.julialang.org/t/variable-not-found/111865 "2024-03-25T07:55:45Z")

</div>

Hi Guys Please refer to the below code. It was running perfectly and now for some reason I am getting the following error, “ERROR: UndefVarError: sol not defined”. Which makes no sense it has been defined… Any assistan…

---

## [How to speed up this Kronecker Multiplication?](https://discourse.julialang.org/t/how-to-speed-up-this-kronecker-multiplication/112063)

<div class="topic-metadata">

**Author:** [@vikram\_backup](https://discourse.julialang.org/u/vikram_backup)\
**Replies:** 7\
**Last updated:** [March 25, 2024, 7:21am UTC](https://discourse.julialang.org/t/how-to-speed-up-this-kronecker-multiplication/112063 "2024-03-25T07:21:06Z")

</div>

I am writing a code that gives me tensor product of the required Pauli matrices, and I am doing this using kron function. using StaticArrays #%% We are definig the Pauli matrices here. σˣ=SA\[0 1.0; 1 0\] #\\sigma^x σᶻ=…

---

## [Problem installing CPLEX.jl with CPLEX 22.1.1 on Mac OS](https://discourse.julialang.org/t/problem-installing-cplex-jl-with-cplex-22-1-1-on-mac-os/111967)

<div class="topic-metadata">

**Author:** [@mposs](https://discourse.julialang.org/u/mposs)\
**Replies:** 12\
**Last updated:** [March 25, 2024, 7:20am UTC](https://discourse.julialang.org/t/problem-installing-cplex-jl-with-cplex-22-1-1-on-mac-os/111967 "2024-03-25T07:20:23Z")

</div>

Hello I just installed CPLEX 22.1.1 poss@Mac-de-Michael x86-64\_osx % pwd /Applications/CPLEX\_Studio\_Community2211/cplex/bin/x86-64\_osx In configured CPLEX\_STUDIO\_BINARIES as requested: julia\> ENV\["CPLEX\_STUDIO\_BINARI…

---

## [PColormesh equivalent in Makie](https://discourse.julialang.org/t/pcolormesh-equivalent-in-makie/104075)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 6\
**Last updated:** [March 25, 2024, 4:01am UTC](https://discourse.julialang.org/t/pcolormesh-equivalent-in-makie/104075 "2024-03-25T04:01:16Z")

</div>

I’m looking for a Makie equivalent to the matplotlib pcolormesh. I attempted to do this with the mesh plotting function in CairoMakie. I’m testing my code by trying to reproduce this plot from the pcolormesh documentati…

---

## [A macro for parametrized functions](https://discourse.julialang.org/t/a-macro-for-parametrized-functions/111977)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 8\
**Last updated:** [March 25, 2024, 2:18am UTC](https://discourse.julialang.org/t/a-macro-for-parametrized-functions/111977 "2024-03-25T02:18:17Z")

</div>

I am contemplating writing a macro @parameterized that turns @parameterized function ControlField( t; # variable ΔT₁, ΔT₂, ΔT₃, ϕ₁=0.0, ϕ₂=0.0, ϕ₃=0.0, E₀₁, E₀₂, E₀₃, # parameters a::Float64=100.0 # constan…

---

## [Package for implementing regression with spatial correlation](https://discourse.julialang.org/t/package-for-implementing-regression-with-spatial-correlation/111893)

<div class="topic-metadata">

**Author:** [@JedPhillips](https://discourse.julialang.org/u/JedPhillips)\
**Replies:** 1\
**Last updated:** [March 24, 2024, 11:03pm UTC](https://discourse.julialang.org/t/package-for-implementing-regression-with-spatial-correlation/111893 "2024-03-24T23:03:59Z")

</div>

Are there any Julia packages that allow one to specify spatial correlation (or any correlation structure) when implementing generalizes least squares regression? I’m looking for something akin to the gls() function in th…

---

## [Deepcopy dangers and drawbacks for nested data structures](https://discourse.julialang.org/t/deepcopy-dangers-and-drawbacks-for-nested-data-structures/111998)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 9\
**Last updated:** [March 24, 2024, 10:10pm UTC](https://discourse.julialang.org/t/deepcopy-dangers-and-drawbacks-for-nested-data-structures/111998 "2024-03-24T22:10:59Z")

</div>

Since reading this issue: Should \`copy\` be renamed \`shallowcopy\`? · Issue #42796 · JuliaLang/julia · GitHub I have always avoided using deepcopy. Now I have a situation in which to define custom copy methods for my type…

---

## [Define another function in the definition of a function](https://discourse.julialang.org/t/define-another-function-in-the-definition-of-a-function/112016)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 9\
**Last updated:** [March 24, 2024, 9:52pm UTC](https://discourse.julialang.org/t/define-another-function-in-the-definition-of-a-function/112016 "2024-03-24T21:52:31Z")

</div>

I learned from somewhere I can’t remember that Julia allows defining a function in the definition of another function. Is there any detailed introduction for this usage? Thanks in advance!

---

## [Features coefficients - GLMNet.jl](https://discourse.julialang.org/t/features-coefficients-glmnet-jl/112053)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 0\
**Last updated:** [March 24, 2024, 9:53pm UTC](https://discourse.julialang.org/t/features-coefficients-glmnet-jl/112053 "2024-03-24T21:53:37Z")

</div>

Hello! I’m using GLMNet.jl to obtain a logistic regression model. My database contains 17 features. After training the model, how can I obtain the coefficients associated to each of these features, so it is possible to…

---

## [Julia Pkg (CSV DataFrames Eirene)](https://discourse.julialang.org/t/julia-pkg-csv-dataframes-eirene/112039)

<div class="topic-metadata">

**Author:** [@Meshach\_Ndlovu](https://discourse.julialang.org/u/Meshach_Ndlovu)\
**Replies:** 2\
**Last updated:** [March 24, 2024, 9:05pm UTC](https://discourse.julialang.org/t/julia-pkg-csv-dataframes-eirene/112039 "2024-03-24T21:05:28Z")

</div>

Hello esteemed experts, I am seeking assistance with running specific Julia packages in a Jupyter notebook. However, I encountered the following error message. As a newcomer to Julia, I would greatly appreciate your gui…

---

## [\[ANN\] NestedTerms.jl - concept](https://discourse.julialang.org/t/ann-nestedterms-jl-concept/112051)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 0\
**Last updated:** [March 24, 2024, 8:54pm UTC](https://discourse.julialang.org/t/ann-nestedterms-jl-concept/112051 "2024-03-24T20:54:03Z")

</div>

NestedTerms.jl is a concept package for correct nested terms fitting . Install import Pkg Pkg.add(url = "https://github.com/PharmCat/NestedTerms.jl.git") Example using NestedTerms using StatsModels, CSV, DataFrames, Ca…

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

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