# Latest

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

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

**Page:** 464

---

## [How to change parmaters for solver in GLMakie?](https://discourse.julialang.org/t/how-to-change-parmaters-for-solver-in-glmakie/111351)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 1:30pm UTC](https://discourse.julialang.org/t/how-to-change-parmaters-for-solver-in-glmakie/111351 "2024-03-08T13:30:16Z")

</div>

Hello, I am trying to make an interactive figure of a SIV system. I have implemented a parameter vector with Parsers so that each parameter is accessed by name. But how can I change such a vector with lift from GLMakie…

---

## [Makie won't display during record after update](https://discourse.julialang.org/t/makie-wont-display-during-record-after-update/111341)

<div class="topic-metadata">

**Author:** [@lpv](https://discourse.julialang.org/u/lpv)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 1:26pm UTC](https://discourse.julialang.org/t/makie-wont-display-during-record-after-update/111341 "2024-03-08T13:26:46Z")

</div>

Hello! Yesterday I’ve updated Julia from 1.6.4 to 1.10.2 on two computers, one on Windows 11 and the other on Ubunto 20.4. After updating, I am unable to monitor my plot during record on either. For example, in the code…

---

## [\`Libdl.dlopen\` versus \`dlfcn.h\`'s \`dlopen\`](https://discourse.julialang.org/t/libdl-dlopen-versus-dlfcn-h-s-dlopen/111331)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 1:26pm UTC](https://discourse.julialang.org/t/libdl-dlopen-versus-dlfcn-h-s-dlopen/111331 "2024-03-08T13:26:12Z")

</div>

On my system, I see // Build with // \`gcc test\_libpython.c -ldl\` #include \<stdio.h\> #include \<dlfcn.h\> int main() { void\* handle = dlopen("/usr/lib/x86\_64-linux-gnu/libpython3.10.so.1.0", RTLD\_LAZY | RTLD\_DEEPBIND…

---

## [Changing Elements Problem in Combinations of Any Array](https://discourse.julialang.org/t/changing-elements-problem-in-combinations-of-any-array/111355)

<div class="topic-metadata">

**Author:** [@Umut\_Can\_Turhan](https://discourse.julialang.org/u/Umut_Can_Turhan)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 1:08pm UTC](https://discourse.julialang.org/t/changing-elements-problem-in-combinations-of-any-array/111355 "2024-03-08T13:08:55Z")

</div>

Assume that I’ve created an permutation array: sample = \[0,0\],\[1,0\],\[0,1\] Per\_arr = \[\[α,β\] for α in sample for β in sample\] # Output 9-element Vector{Vector{Vector{Int64}}}: \[\[0, 0\], \[0, 0\]\] \[\[0, 0\], \[1, 0\]\] \[\[0, 0\]…

---

## [How to find the path to the artifacts directory?](https://discourse.julialang.org/t/how-to-find-the-path-to-the-artifacts-directory/111316)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 12:48pm UTC](https://discourse.julialang.org/t/how-to-find-the-path-to-the-artifacts-directory/111316 "2024-03-08T12:48:03Z")

</div>

Searching seemed to lead to things like @artifact\_str but all this error (???). I need to programmatically get the full path of ~/.julia/artifacts but taking into account too that the JULIA\_DEPOT\_PATH may have been set…

---

## [\[WARNING\] juliawiki.com is AI generated phishing links and SEO spam, do not use it](https://discourse.julialang.org/t/warning-juliawiki-com-is-ai-generated-phishing-links-and-seo-spam-do-not-use-it/111327)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 12:37pm UTC](https://discourse.julialang.org/t/warning-juliawiki-com-is-ai-generated-phishing-links-and-seo-spam-do-not-use-it/111327 "2024-03-08T12:37:59Z")

</div>

In October 2023 a new website juliawiki.com was registered, since then it has had thousands of articles added which are clearly generated by AI, posted by bot accounts. If you look at the log of recently created articles…

---

## [Is there something like the DistributionLambda layer from Keras in Flux?](https://discourse.julialang.org/t/is-there-something-like-the-distributionlambda-layer-from-keras-in-flux/111352)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 12:10pm UTC](https://discourse.julialang.org/t/is-there-something-like-the-distributionlambda-layer-from-keras-in-flux/111352 "2024-03-08T12:10:04Z")

</div>

DistributionLambda I guess it could use Distributions.jl.

---

## [Couldn't use TransformedTargetModel() function in MLJ](https://discourse.julialang.org/t/couldnt-use-transformedtargetmodel-function-in-mlj/111347)

<div class="topic-metadata">

**Author:** [@Realyyc](https://discourse.julialang.org/u/Realyyc)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 11:26am UTC](https://discourse.julialang.org/t/couldnt-use-transformedtargetmodel-function-in-mlj/111347 "2024-03-08T11:26:10Z")

</div>

I’ve downloaded MLJ pkg, but : using MLJ TransformedTargetModel() UndefVarError: \`TransformedTargetModel\` not defined Stacktrace: \[1\] top-level scope @ In\[22\]:10 I don’t know if the function is actually not in t…

---

## [Numerical computation density function from distribution with autodifferentiation](https://discourse.julialang.org/t/numerical-computation-density-function-from-distribution-with-autodifferentiation/111302)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 16\
**Last updated:** [March 8, 2024, 10:44am UTC](https://discourse.julialang.org/t/numerical-computation-density-function-from-distribution-with-autodifferentiation/111302 "2024-03-08T10:44:13Z")

</div>

I have a non-standard multivariate distribution function/copula (here, a copula in the MWE). I am trying to compute the density function by taking the cross-partial derivatives of the distribution/copula with respect to …

---

## [Can some one tell me a package similar to cashocs in pytorch?](https://discourse.julialang.org/t/can-some-one-tell-me-a-package-similar-to-cashocs-in-pytorch/111340)

<div class="topic-metadata">

**Author:** [@Praveen\_Kumar](https://discourse.julialang.org/u/Praveen_Kumar)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 9:47am UTC](https://discourse.julialang.org/t/can-some-one-tell-me-a-package-similar-to-cashocs-in-pytorch/111340 "2024-03-08T09:47:51Z")

</div>

I found a pytorch package named cashocs for doing optimal control and shape optimization. cashocs: A Computational, Adjoint-Based Shape Optimization and Optimal Control Software. Is there any similar package in julia?

---

## [Calculating a large sum of positive and negative integers gives wrong answer](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334)

<div class="topic-metadata">

**Author:** [@SherlockSage](https://discourse.julialang.org/u/SherlockSage)\
**Replies:** 7\
**Last updated:** [March 8, 2024, 9:13am UTC](https://discourse.julialang.org/t/calculating-a-large-sum-of-positive-and-negative-integers-gives-wrong-answer/111334 "2024-03-08T09:13:29Z")

</div>

Hello! I am trying to solve a Project Euler problem (#193) to get the squarefree integers less than the large number 2^50. I normally wouldn’t just post the code here directly because of spoilers for the problem except I…

---

## [How do I save a TunedModel with MLJ? DeterministicTunedModel has no field artifact\_location](https://discourse.julialang.org/t/how-do-i-save-a-tunedmodel-with-mlj-deterministictunedmodel-has-no-field-artifact-location/111307)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 8:03am UTC](https://discourse.julialang.org/t/how-do-i-save-a-tunedmodel-with-mlj-deterministictunedmodel-has-no-field-artifact-location/111307 "2024-03-08T08:03:44Z")

</div>

I want to train a self tuning model with MLJ. I set up my model, it trains, but when I want to save the machine, I get the error message that DeterministicTunedModel has no field artifact\_location. Any idea how to solv…

---

## [Eval a string with runtime defined functions](https://discourse.julialang.org/t/eval-a-string-with-runtime-defined-functions/111290)

<div class="topic-metadata">

**Author:** [@phyxmeow](https://discourse.julialang.org/u/phyxmeow)\
**Replies:** 14\
**Last updated:** [March 8, 2024, 7:30am UTC](https://discourse.julialang.org/t/eval-a-string-with-runtime-defined-functions/111290 "2024-03-08T07:30:50Z")

</div>

Hello, how to make this work? And if possible, work performantly. julia\> function foo(str, n) f(x) = x+n eval(Meta.parse(str)) end foo (generic function with 2 methods) julia\> foo("f(1)", 5…

---

## [How to print solver status and reason for termination for NLopt and Optimization.jl](https://discourse.julialang.org/t/how-to-print-solver-status-and-reason-for-termination-for-nlopt-and-optimization-jl/111308)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 7:48pm UTC](https://discourse.julialang.org/t/how-to-print-solver-status-and-reason-for-termination-for-nlopt-and-optimization-jl/111308 "2024-03-07T19:48:18Z")

</div>

I am searching for a minimum using NLopt.LN\_SBPLX. The optimizer stops prematurely after ~100 iterations without throwing any errors or printing any messages. display(sol) simply returns the last parameter vector that wa…

---

## [Use WGLMakie from Genie](https://discourse.julialang.org/t/use-wglmakie-from-genie/60985)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 5:04am UTC](https://discourse.julialang.org/t/use-wglmakie-from-genie/60985 "2024-03-08T05:04:05Z")

</div>

Genie is a web framework and WGLMakie makes web-interactive graphics, normally by using JSServe.jl. Is it possible to use WGLMakie in a Genie site? How would you suggest doing it? cc @essenciary @sdanisch

---

## [Clear cache Julia REPL, plots](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 10:49pm UTC](https://discourse.julialang.org/t/clear-cache-julia-repl-plots/111297 "2024-03-07T22:49:19Z")

</div>

I noted that with GLMakie, Plots and PythonPlot, when I open julia repl and run include"name\_file.jl") to visualize a plot, axis stack one on top of the other. Some times this happens with legends too. Any way to clear …

---

## [Generated functions and reflection](https://discourse.julialang.org/t/generated-functions-and-reflection/111301)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 9:49pm UTC](https://discourse.julialang.org/t/generated-functions-and-reflection/111301 "2024-03-07T21:49:50Z")

</div>

Why is it the case that reflection is not permitted from within generated functions? (I know that e.g. Zygote does it, but I get the impression that’s frowned upon). I had a search through old posts but can’t find a clea…

---

## [\[BioSequences\] data structure to keep mutations (delta) of a sequence](https://discourse.julialang.org/t/biosequences-data-structure-to-keep-mutations-delta-of-a-sequence/111263)

<div class="topic-metadata">

**Author:** [@Marco\_Antoniotti](https://discourse.julialang.org/u/Marco_Antoniotti)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 9:38pm UTC](https://discourse.julialang.org/t/biosequences-data-structure-to-keep-mutations-delta-of-a-sequence/111263 "2024-03-07T21:38:40Z")

</div>

Hi we are looking to a data structure to keep tract of the “evolution” of a sequence. What suggestions do you have in this respect? LongSubSeq views look useful, but they always refer to the the “main” sequence. What…

---

## [Linear relationship between Xoshiro tasks](https://discourse.julialang.org/t/linear-relationship-between-xoshiro-tasks/110454)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 29\
**Last updated:** [March 6, 2024, 4:39pm UTC](https://discourse.julialang.org/t/linear-relationship-between-xoshiro-tasks/110454 "2024-03-06T16:39:36Z")

</div>

Cool, I didn’t see that! Quite sweet addition to my initial unprincipled PR. However, I fear that your construction is somewhat broken. The problem is that you can easily construct task trees that imply linear relatio…

---

## [Changing the size of the \`target\` using MLJ's Learning Networks](https://discourse.julialang.org/t/changing-the-size-of-the-target-using-mljs-learning-networks/111002)

<div class="topic-metadata">

**Author:** [@barakber](https://discourse.julialang.org/u/barakber)\
**Replies:** 6\
**Last updated:** [March 7, 2024, 8:19pm UTC](https://discourse.julialang.org/t/changing-the-size-of-the-target-using-mljs-learning-networks/111002 "2024-03-07T20:19:51Z")

</div>

Hi. I have a Static transformer ( \<: Static ) that changes the size of the input (X). It’s using sliding windows, so that size(X\_tag)\[1\] = size(X)\[1\] - window\_size. I’m trying to figure out what’s the right way to chang…

---

## [MLJ.save() and restoring with machine() don't work](https://discourse.julialang.org/t/mlj-save-and-restoring-with-machine-dont-work/110535)

<div class="topic-metadata">

**Author:** [@Paulo\_Refosco](https://discourse.julialang.org/u/Paulo_Refosco)\
**Replies:** 11\
**Last updated:** [March 7, 2024, 8:06pm UTC](https://discourse.julialang.org/t/mlj-save-and-restoring-with-machine-dont-work/110535 "2024-03-07T20:06:47Z")

</div>

Hello! I made a simple XGBoost model with the pipeline below, fitted it with data and tried to save it and then restore it, but when restoring it (even if in the same notebook) I get error on trying to apply predict. An…

---

## [Filling a StructArray in a type-stable manner](https://discourse.julialang.org/t/filling-a-structarray-in-a-type-stable-manner/111319)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 8:05pm UTC](https://discourse.julialang.org/t/filling-a-structarray-in-a-type-stable-manner/111319 "2024-03-07T20:05:11Z")

</div>

I am trying to create StructArray’s reading from a ROOT file with the UnROOT.jl package, which provides a NamedTuple interface, in a type-stable manner. The following code illustrates the problem: using StructArrays usi…

---

## [Using SciPy Optimization](https://discourse.julialang.org/t/using-scipy-optimization/111317)

<div class="topic-metadata">

**Author:** [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 7:58pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317 "2024-03-07T19:58:21Z")

</div>

Hello, Regarding the capabilities of SciPy.jl, it seems it cannot incorporate the constraints SciPy.NonlinearConstraints? Thanks

---

## [Naming of ScopedValues](https://discourse.julialang.org/t/naming-of-scopedvalues/110747)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 26\
**Last updated:** [March 7, 2024, 7:29pm UTC](https://discourse.julialang.org/t/naming-of-scopedvalues/110747 "2024-03-07T19:29:41Z")

</div>

A bit off topic, but it confuses me that my old friend from Lisp, the \*dynamic-variable\*, is called ScopedValue in Julia. I gather that’s what they’re called in Java? My gripe is that what differs between lexical scope…

---

## [\[JuMP\] Speeding up constraint violation inspection](https://discourse.julialang.org/t/jump-speeding-up-constraint-violation-inspection/111303)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 6:59pm UTC](https://discourse.julialang.org/t/jump-speeding-up-constraint-violation-inspection/111303 "2024-03-07T18:59:20Z")

</div>

Hello, I’m trying to make an oracle that checks for constraint violations in a solved model (ie. constraints that were not initially in the model) and add some of them to the model to then reoptimize. The inspector look…

---

## [Typing Question](https://discourse.julialang.org/t/typing-question/111315)

<div class="topic-metadata">

**Author:** [@irslushy](https://discourse.julialang.org/u/irslushy)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 6:54pm UTC](https://discourse.julialang.org/t/typing-question/111315 "2024-03-07T18:54:17Z")

</div>

Hello! Why is it that Union{Missing, Float64} \<: Union{Any} yields true but Matrix{Union{Missing, Float64}} \<: Matrix{Union{Any}} yields false

---

## [Gamezero Draw Programmatically change colour rgb causes error](https://discourse.julialang.org/t/gamezero-draw-programmatically-change-colour-rgb-causes-error/111262)

<div class="topic-metadata">

**Author:** [@HAL9000](https://discourse.julialang.org/u/HAL9000)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 5:49pm UTC](https://discourse.julialang.org/t/gamezero-draw-programmatically-change-colour-rgb-causes-error/111262 "2024-03-07T17:49:54Z")

</div>

I am trying to control colour shade programmatically however when i try to create colorant string either by colorant’rgb((val),(val),$(val)‘) or Colorant’rgb(‘string(val)’,‘string(val)’,‘string(val)’)’’ The draw method…

---

## [Makie: Triangle face colour, mesh](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011)

<div class="topic-metadata">

**Author:** [@timmm](https://discourse.julialang.org/u/timmm)\
**Replies:** 10\
**Last updated:** [March 7, 2024, 5:06pm UTC](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011 "2024-03-07T17:06:13Z")

</div>

I have a question about Makie, when plotting triangulated mesh surfaces is it possible to colour with flat coloured patches? Like: Triangular surface plot - MATLAB trisurf - MathWorks Deutschland Compared to the exampl…

---

## [How to print elements of a matrix in LaTeX formatting?](https://discourse.julialang.org/t/how-to-print-elements-of-a-matrix-in-latex-formatting/111309)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 5:02pm UTC](https://discourse.julialang.org/t/how-to-print-elements-of-a-matrix-in-latex-formatting/111309 "2024-03-07T17:02:07Z")

</div>

Given a matrix A = \[\[182740835762038560236502360265029360346025236045;; 2\]; \[328470287402983460892460286408129634;; 4\]\] I’d like to get LaTeX-formatted output, one element per line, e.g.: latexprint(A) A\_{1,1} = 18…

---

## [Erasing a line in the REPL](https://discourse.julialang.org/t/erasing-a-line-in-the-repl/111244)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [March 7, 2024, 4:45pm UTC](https://discourse.julialang.org/t/erasing-a-line-in-the-repl/111244 "2024-03-07T16:45:11Z")

</div>

Hi, is there a way to erase a line from the REPL ? I’m using ProgressMeter but I’d also like to occasionally print a line when an event occurs. I made the following MWE. Basically, I’d like the “I reached…” statement t…

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

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