# Latest

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

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

**Page:** 474

---

## [How to change constant variable inside a package for testing](https://discourse.julialang.org/t/how-to-change-constant-variable-inside-a-package-for-testing/110739)

<div class="topic-metadata">

**Author:** [@Maysam\_Gholampour](https://discourse.julialang.org/u/Maysam_Gholampour)\
**Replies:** 6\
**Last updated:** [February 27, 2024, 3:14am UTC](https://discourse.julialang.org/t/how-to-change-constant-variable-inside-a-package-for-testing/110739 "2024-02-27T03:14:51Z")

</div>

I am developing a new package. In package I have defined couple of constant variables. as it is not possible to redefine constant variable, I can’t change the constant variables for testing. we need to reset the Julia. I…

---

## [Formatting or Format?](https://discourse.julialang.org/t/formatting-or-format/9477)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 19\
**Last updated:** [February 26, 2024, 11:29pm UTC](https://discourse.julialang.org/t/formatting-or-format/9477 "2024-02-26T23:29:23Z")

</div>

Formatting.jl is nice but it doesn’t seem to be maintained…? Format.jl is a fork that looks more active. What’s the story here? Are we going to consolidate these?

---

## [WGLMakie in JupyterLab default mouse interaction](https://discourse.julialang.org/t/wglmakie-in-jupyterlab-default-mouse-interaction/110811)

<div class="topic-metadata">

**Author:** [@myrddin89](https://discourse.julialang.org/u/myrddin89)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 10:58pm UTC](https://discourse.julialang.org/t/wglmakie-in-jupyterlab-default-mouse-interaction/110811 "2024-02-26T22:58:48Z")

</div>

Using WGLMakie 0.9.8 and JupyterLab 4.0 (macOS), the mouse interaction on the figure clashes with the JupyterLab UI. For example, it is not possible to reset the axis with ctrl-click as it triggers a right-click on the J…

---

## [Gamedev with GLMakie (the path less taken). Is it possible?](https://discourse.julialang.org/t/gamedev-with-glmakie-the-path-less-taken-is-it-possible/110733)

<div class="topic-metadata">

**Author:** [@sorumehta](https://discourse.julialang.org/u/sorumehta)\
**Replies:** 7\
**Last updated:** [February 26, 2024, 9:22pm UTC](https://discourse.julialang.org/t/gamedev-with-glmakie-the-path-less-taken-is-it-possible/110733 "2024-02-26T21:22:05Z")

</div>

I was looking for a programming language which I could call home, and after some analysis, I found Julia to suit my taste (Nim was a close second). I would like to make games in this language. I looked at some packages,…

---

## [Scipy.signal.iirfilter equivalent in DSP.jl and more](https://discourse.julialang.org/t/scipy-signal-iirfilter-equivalent-in-dsp-jl-and-more/110783)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 3\
**Last updated:** [February 26, 2024, 8:46pm UTC](https://discourse.julialang.org/t/scipy-signal-iirfilter-equivalent-in-dsp-jl-and-more/110783 "2024-02-26T20:46:15Z")

</div>

Hello, I did some DSP about 20 years ago but didn’t tackled that field recently. In order to get back to it I’m planning to build some Pluto.jl notebooks in this field. I found this blog post Applying digital filters …

---

## [How to improve Julia (in 2.0 taking from \[research\] languages): E.g. 2nd class functions](https://discourse.julialang.org/t/how-to-improve-julia-in-2-0-taking-from-research-languages-e-g-2nd-class-functions/110793)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 9:31pm UTC](https://discourse.julialang.org/t/how-to-improve-julia-in-2-0-taking-from-research-languages-e-g-2nd-class-functions/110793 "2024-02-26T21:31:01Z")

</div>

In general, I’m pointing to research I find interesting, and asking what can, and should be adopted in Julia. Or if you had to do it again, were designing a better (Julia) language, what you would do? Some programming l…

---

## [How to copy array back from GPU do CPU?](https://discourse.julialang.org/t/how-to-copy-array-back-from-gpu-do-cpu/110802)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 8:59pm UTC](https://discourse.julialang.org/t/how-to-copy-array-back-from-gpu-do-cpu/110802 "2024-02-26T20:59:45Z")

</div>

Let’s say I have a done a computation on a GPU. How do I copy this data back to the CPU, so that I can play around with it on CPU (like make the plots) and save it to disk (more important for me)?

---

## [Efficient way for executing multiple models](https://discourse.julialang.org/t/efficient-way-for-executing-multiple-models/110804)

<div class="topic-metadata">

**Author:** [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 7:51pm UTC](https://discourse.julialang.org/t/efficient-way-for-executing-multiple-models/110804 "2024-02-26T19:51:11Z")

</div>

Cheers, Let chain be a Flux.Chain of FCNs. I want to execute each of the chained models independently with the same input array, then concatenate all outputs as the model result. I did the following: using Flux: Chain…

---

## [Basis and non-basis matrix](https://discourse.julialang.org/t/basis-and-non-basis-matrix/110219)

<div class="topic-metadata">

**Author:** [@mohammad\_amini](https://discourse.julialang.org/u/mohammad_amini)\
**Replies:** 14\
**Last updated:** [February 26, 2024, 7:35pm UTC](https://discourse.julialang.org/t/basis-and-non-basis-matrix/110219 "2024-02-26T19:35:46Z")

</div>

I am seeking methods to identify the basis and non-basis matrices in HiGHS, or determine the status of variables and columns within the basis and non-basis. Additionally, I am curious about accessing the final simplex ta…

---

## [\[ANN\] HMMBase.jl - A lightweight and efficient Hidden Markov Model abstraction](https://discourse.julialang.org/t/ann-hmmbase-jl-a-lightweight-and-efficient-hidden-markov-model-abstraction/21604)

<div class="topic-metadata">

**Author:** [@maxmouchet](https://discourse.julialang.org/u/maxmouchet)\
**Replies:** 17\
**Last updated:** [February 26, 2024, 7:35pm UTC](https://discourse.julialang.org/t/ann-hmmbase-jl-a-lightweight-and-efficient-hidden-markov-model-abstraction/21604 "2024-02-26T19:35:23Z")

</div>

Hi, I’d like to introduce HMMBase.jl. A package providing basic building blocks for hidden Markov models in Julia. Motivation While there are many implementations of HMMs for Julia, and other languages, I found out tha…

---

## [\[ANN\] DotEnv.jl 1.0](https://discourse.julialang.org/t/ann-dotenv-jl-1-0/110770)

<div class="topic-metadata">

**Author:** [@tecosaur](https://discourse.julialang.org/u/tecosaur)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 11:41am UTC](https://discourse.julialang.org/t/ann-dotenv-jl-1-0/110770 "2024-02-26T11:41:58Z")

</div>

I’ve recently resurrected the DotEnv.jl package, and am delighted to announce the 1.0 release! :partying\_face: The codebase has been entirely rewritten, and should now be both more robust and featureful. In particular,…

---

## [Unsure about properties](https://discourse.julialang.org/t/unsure-about-properties/110756)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 11\
**Last updated:** [February 26, 2024, 3:34pm UTC](https://discourse.julialang.org/t/unsure-about-properties/110756 "2024-02-26T15:34:10Z")

</div>

I like the syntax of properties, like that they’re not the same as fields, and that I don’t have to export them. I’m considering switching from using accessor functions to properties in a large chunk of code, but I’m not…

---

## [Unit-testing best practices for CUDA.jl?](https://discourse.julialang.org/t/unit-testing-best-practices-for-cuda-jl/110746)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 11\
**Last updated:** [February 26, 2024, 5:08pm UTC](https://discourse.julialang.org/t/unit-testing-best-practices-for-cuda-jl/110746 "2024-02-26T17:08:59Z")

</div>

I’m writing a CUDA kernel for DynamicExpressions here and was wondering what the best practices are for unit-testing it on CPU-only machines? My current idea is to modify the GPU kernel so that I can manually specify th…

---

## [Best practices for feature compatible only with specific version of dependency](https://discourse.julialang.org/t/best-practices-for-feature-compatible-only-with-specific-version-of-dependency/110792)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 4:57pm UTC](https://discourse.julialang.org/t/best-practices-for-feature-compatible-only-with-specific-version-of-dependency/110792 "2024-02-26T16:57:44Z")

</div>

In my DocumenterInterLinks package, I would like to add a specific feature that is compatible only with Documenter \>= 1.3.0. Generally, the package is compatible with Documenter \>= 1.0.0, and I’d like to keep it that way…

---

## [Adding the result of a tensor contraction to a preallocated array](https://discourse.julialang.org/t/adding-the-result-of-a-tensor-contraction-to-a-preallocated-array/110789)

<div class="topic-metadata">

**Author:** [@paulp](https://discourse.julialang.org/u/paulp)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 4:19pm UTC](https://discourse.julialang.org/t/adding-the-result-of-a-tensor-contraction-to-a-preallocated-array/110789 "2024-02-26T16:19:40Z")

</div>

Hi all, I’d like to perform an arbitrary contraction between two tensors and add the result to an existing array, without allocating an additional array. Tullio has the operation that I want, here is a simple example: u…

---

## [Installation error](https://discourse.julialang.org/t/installation-error/110785)

<div class="topic-metadata">

**Author:** [@Igor](https://discourse.julialang.org/u/Igor)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 3:47pm UTC](https://discourse.julialang.org/t/installation-error/110785 "2024-02-26T15:47:59Z")

</div>

Installation not finished. Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use statu…

---

## [@unpack from Catalyst reaction system and unused variables](https://discourse.julialang.org/t/unpack-from-catalyst-reaction-system-and-unused-variables/110766)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 9\
**Last updated:** [February 26, 2024, 3:26pm UTC](https://discourse.julialang.org/t/unpack-from-catalyst-reaction-system-and-unused-variables/110766 "2024-02-26T15:26:27Z")

</div>

Hi all. I have happily been using Catalyst.jl (and of course related packages, such as ModelingToolkit.jl and DifferentialEquations.jl), but when remaking problems while using EnsembleProblem I encountered some odd behav…

---

## [How do I make background in Makie transparent](https://discourse.julialang.org/t/how-do-i-make-background-in-makie-transparent/61958)

<div class="topic-metadata">

**Author:** [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Replies:** 12\
**Last updated:** [February 26, 2024, 3:18pm UTC](https://discourse.julialang.org/t/how-do-i-make-background-in-makie-transparent/61958 "2024-02-26T15:18:17Z")

</div>

I’m trying to get plots with transparent (nothing at all) background in Makie using GLMakie F = Figure() ax = Axis(F\[1,1\]) θ = 0:0.1:2pi X = cos.(θ) Y = sin.(θ) lines!(X,Y) hidespines!(ax) hidedecorations!(ax) save("ic…

---

## [Displaying an image from a matrix using Gtk4](https://discourse.julialang.org/t/displaying-an-image-from-a-matrix-using-gtk4/104748)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 5\
**Last updated:** [February 26, 2024, 2:47pm UTC](https://discourse.julialang.org/t/displaying-an-image-from-a-matrix-using-gtk4/104748 "2024-02-26T14:47:42Z")

</div>

I want to display an image using Gtk, and be able to change the pixels later. I love ImageView and Makie, but I’m trying to do something as simple and low-level as possibel. There are a couple of examples in the forum u…

---

## [Warning/Error handling from complex, sparse array on SVD (PROPACK)](https://discourse.julialang.org/t/warning-error-handling-from-complex-sparse-array-on-svd-propack/110779)

<div class="topic-metadata">

**Author:** [@KSfairopoulos](https://discourse.julialang.org/u/KSfairopoulos)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 2:16pm UTC](https://discourse.julialang.org/t/warning-error-handling-from-complex-sparse-array-on-svd-propack/110779 "2024-02-26T14:16:45Z")

</div>

Let’s assume I have a sparse matrix with complex entries. I want to perform svd on it. So, I use the Propack package (do you have any better suggestions?). I do this with the command: tsvdvals(gs, k=p), where I retain …

---

## [What is the fastest way to check if a hermitian matrix is positive semi-definite?](https://discourse.julialang.org/t/what-is-the-fastest-way-to-check-if-a-hermitian-matrix-is-positive-semi-definite/110769)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 7\
**Last updated:** [February 26, 2024, 1:46pm UTC](https://discourse.julialang.org/t/what-is-the-fastest-way-to-check-if-a-hermitian-matrix-is-positive-semi-definite/110769 "2024-02-26T13:46:00Z")

</div>

Hello, I would like to check if a hermitian matrix is positive semi-definite (the smallest eigenvalue is \>= 0). The simplest implementation would be using LinearAlgebra is\_positive(A::Hermitian) = eigmin(A) ≥ 0 and ru…

---

## [Errors precompiling HomotopyContinuation.jl](https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774)

<div class="topic-metadata">

**Author:** [@Simon238](https://discourse.julialang.org/u/Simon238)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 1:17pm UTC](https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774 "2024-02-26T13:17:51Z")

</div>

I am trying to install the HomotopyContinuation.jl package, but I get an error when I try to precompile this package. This is because the following packages throw an error when precomiling: ✗ MPFR\_jll ✗ FLINT\_jll ✗ MP…

---

## [Mathematical basics for working with Turing?](https://discourse.julialang.org/t/mathematical-basics-for-working-with-turing/110631)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [February 26, 2024, 12:16pm UTC](https://discourse.julialang.org/t/mathematical-basics-for-working-with-turing/110631 "2024-02-26T12:16:21Z")

</div>

Hello everyone, I have been working with Turing on small models for a while now but still many times I don’t understand errors and concepts which are embedded in Turing functioning. For example intuition for forward or…

---

## [Building Julia on a Raspberry Pi](https://discourse.julialang.org/t/building-julia-on-a-raspberry-pi/110632)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 5\
**Last updated:** [February 26, 2024, 11:33am UTC](https://discourse.julialang.org/t/building-julia-on-a-raspberry-pi/110632 "2024-02-26T11:33:16Z")

</div>

I’m trying to build Julia from source (v1.10.1) on a Raspberry Pi (4 Model B, with OS 64-bit, Lite, Bookworm on it). It’s been a struggle… I’ve installed zram, and that does help with the process, but it does occasionall…

---

## [Need access to ImageInpainting.jl](https://discourse.julialang.org/t/need-access-to-imageinpainting-jl/110404)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [February 26, 2024, 11:10am UTC](https://discourse.julialang.org/t/need-access-to-imageinpainting-jl/110404 "2024-02-26T11:10:54Z")

</div>

I wrote this package a long time ago, when I co-founded JuliaImages. I am not an org owner anymore, and can’t access the repository settings to fix TAGBOT keys. Can an owner of JuliaImages please help fix this? I want t…

---

## [DataFrame to multidimensional array](https://discourse.julialang.org/t/dataframe-to-multidimensional-array/91686)

<div class="topic-metadata">

**Author:** [@m\_pink](https://discourse.julialang.org/u/m_pink)\
**Replies:** 6\
**Last updated:** [February 26, 2024, 7:10am UTC](https://discourse.julialang.org/t/dataframe-to-multidimensional-array/91686 "2024-02-26T07:10:09Z")

</div>

Hey, Suppose I have a Dataframe that corresponds to a multidimensional function. Something like this: df = DataFrame(\[(a = x, b = y, c = z,d = x+y+z) for x in 1:6 for y in 1:4 for z in 1:2\]) What is the best way to tr…

---

## [LibCEED.jl: do you use it?](https://discourse.julialang.org/t/libceed-jl-do-you-use-it/110737)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [February 25, 2024, 2:04pm UTC](https://discourse.julialang.org/t/libceed-jl-do-you-use-it/110737 "2024-02-25T14:04:56Z")

</div>

I’d be interested in looking at some use cases for this library. If your package is on Github, do let me know. Many thanks!

---

## [Can I recover variable names to PATH labels? JuMP-\>MOI-\>PATHSolver-\>PATH-\>JuMP](https://discourse.julialang.org/t/can-i-recover-variable-names-to-path-labels-jump-moi-pathsolver-path-jump/110703)

<div class="topic-metadata">

**Author:** [@EliLazarus](https://discourse.julialang.org/u/EliLazarus)\
**Replies:** 2\
**Last updated:** [February 26, 2024, 2:19am UTC](https://discourse.julialang.org/t/can-i-recover-variable-names-to-path-labels-jump-moi-pathsolver-path-jump/110703 "2024-02-26T02:19:17Z")

</div>

I am passing named variable/constraints to JuMP. Is there a way to track the variable/constraint name linked to the row f\[ #\] which is what is reported by PATH (looks like unnamed rows as in this example without names)? …

---

## [V1.10 appreciation thread](https://discourse.julialang.org/t/v1-10-appreciation-thread/108103)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 12\
**Last updated:** [February 26, 2024, 12:17am UTC](https://discourse.julialang.org/t/v1-10-appreciation-thread/108103 "2024-02-26T00:17:18Z")

</div>

I just want to say thanks for this release. I’ve been using it locally for months now, and going back to v1.9 just to test… man this is a major step forward. Load times are drastically better (order of magnitude for wh…

---

## [Reason for duplicated llvm code in pseudo-vtable](https://discourse.julialang.org/t/reason-for-duplicated-llvm-code-in-pseudo-vtable/110719)

<div class="topic-metadata">

**Author:** [@wheeheee](https://discourse.julialang.org/u/wheeheee)\
**Replies:** 7\
**Last updated:** [February 25, 2024, 11:45pm UTC](https://discourse.julialang.org/t/reason-for-duplicated-llvm-code-in-pseudo-vtable/110719 "2024-02-25T23:45:45Z")

</div>

Apologies if this is answered somewhere else, but I couldn’t find it. I have the following two functions; testvt is intended to do some sort of dispatch, while remaining type-stable: @noinline f(x, a, b, c, ::Val{N}) w…

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

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