# Latest

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

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

**Page:** 175

---

## [Functionality like tidyverse's any\_of()?](https://discourse.julialang.org/t/functionality-like-tidyverses-any-of/128293)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 2:30pm UTC](https://discourse.julialang.org/t/functionality-like-tidyverses-any-of/128293 "2025-05-01T14:30:36Z")

</div>

Is there any way to achieve functionality like tidyverse’s any\_of()? My use case is that I am reading only certain columns of a file, but there could be columns specified in the call, but non-existent in the file: vars…

---

## [WARNING: both X and Y export "F"; uses of it in module Z must be qualified](https://discourse.julialang.org/t/warning-both-x-and-y-export-f-uses-of-it-in-module-z-must-be-qualified/128574)

<div class="topic-metadata">

**Author:** [@Matthijs\_1971](https://discourse.julialang.org/u/Matthijs_1971)\
**Replies:** 12\
**Last updated:** [May 1, 2025, 1:47pm UTC](https://discourse.julialang.org/t/warning-both-x-and-y-export-f-uses-of-it-in-module-z-must-be-qualified/128574 "2025-05-01T13:47:20Z")

</div>

Some versions of Julia reported warnings like these ones: WARNING: both IOExtras and Base export “readuntil”; uses of it in module WebSockets must be qualified WARNING: both IOExtras and Base export “readuntil”; uses …

---

## [Serializing a Module](https://discourse.julialang.org/t/serializing-a-module/84458)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 4\
**Last updated:** [May 1, 2025, 1:40pm UTC](https://discourse.julialang.org/t/serializing-a-module/84458 "2025-05-01T13:40:07Z")

</div>

Hi, is it possible to deserialize a Module in a new process to get that module (without defining it in the second process first)? I get the following error message when I use the Serialization library as follows Proces…

---

## [Stokes Flow with Pressure Inlet Conditions](https://discourse.julialang.org/t/stokes-flow-with-pressure-inlet-conditions/128577)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 6\
**Last updated:** [May 1, 2025, 10:03am UTC](https://discourse.julialang.org/t/stokes-flow-with-pressure-inlet-conditions/128577 "2025-05-01T10:03:24Z")

</div>

Are there examples of simulating (Navier-)Stokes flow by imposing pressure inlet conditions using VoronoiFVM, WaterLilly, Oceananigans, Trixi or similar? Thx.

---

## [About the show method for LinearAlgebra.jl objects](https://discourse.julialang.org/t/about-the-show-method-for-linearalgebra-jl-objects/128589)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 4\
**Last updated:** [May 1, 2025, 9:32am UTC](https://discourse.julialang.org/t/about-the-show-method-for-linearalgebra-jl-objects/128589 "2025-05-01T09:32:04Z")

</div>

I find it convenient to type this command @show A; in Julia REPL, to get an executable code, e.g., julia\> using LinearAlgebra julia\> A = rand(-9:9, 3, 3); julia\> @show A; A = \[0 -8 -2; -7 -2 3; 1 9 8\] Note that the l…

---

## [Files quota exceeded when trying to install Julia on a cluster with juliaup](https://discourse.julialang.org/t/files-quota-exceeded-when-trying-to-install-julia-on-a-cluster-with-juliaup/128469)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 5:14am UTC](https://discourse.julialang.org/t/files-quota-exceeded-when-trying-to-install-julia-on-a-cluster-with-juliaup/128469 "2025-05-01T05:14:04Z")

</div>

I’m trying to install Julia on a cluster, running this: curl -fsSL https://install.julialang.org | sh -s -- --path $JULIAUP\_DEPOT\_PATH But I get the following error: Now installing Juliaup Error: Failed to extract dow…

---

## [Why isn't SymTridiagonal simply Symmetric(Tridiagonal)](https://discourse.julialang.org/t/why-isnt-symtridiagonal-simply-symmetric-tridiagonal/23698)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 5\
**Last updated:** [May 1, 2025, 1:47am UTC](https://discourse.julialang.org/t/why-isnt-symtridiagonal-simply-symmetric-tridiagonal/23698 "2025-05-01T01:47:24Z")

</div>

Julia defines not only a Tridiagonal type but also a SymTridiagonal type. Why is this type needed compared to Symmetric(Tridiagonal), that could still allow function specialization?

---

## [Performance optimization：Frequently use permutedims function](https://discourse.julialang.org/t/performance-optimization-frequently-use-permutedims-function/128474)

<div class="topic-metadata">

**Author:** [@quantumdreamer](https://discourse.julialang.org/u/quantumdreamer)\
**Replies:** 22\
**Last updated:** [May 1, 2025, 1:33am UTC](https://discourse.julialang.org/t/performance-optimization-frequently-use-permutedims-function/128474 "2025-05-01T01:33:13Z")

</div>

Here is my example： G = rand(8,256,14,288,6)+rand(8,256,14,288,6)\*1im; @elapsed begin G = permutedims(G,\[1,2,4,3,5\]); k = sqrt.(sum(abs2.(reshape(G,589824,1,1,14,6)),dims = 1)); G .\*= k; G = permutedims(…

---

## [Julia in VSCode occasionally crashes upon pressing ctrl+C](https://discourse.julialang.org/t/julia-in-vscode-occasionally-crashes-upon-pressing-ctrl-c/128580)

<div class="topic-metadata">

**Author:** [@JWMeer](https://discourse.julialang.org/u/JWMeer)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 11:31pm UTC](https://discourse.julialang.org/t/julia-in-vscode-occasionally-crashes-upon-pressing-ctrl-c/128580 "2025-04-30T23:31:02Z")

</div>

Recently, I have repeatedly encountered a problem seemingly specific to Julia in VSCode. Occasionally, I will press ctrl+C just to get a clean REPL line (so not to cancel a running command), and Julia will simply crash.…

---

## [Warning says method definition is overwritten, but the overwritten function still works](https://discourse.julialang.org/t/warning-says-method-definition-is-overwritten-but-the-overwritten-function-still-works/128547)

<div class="topic-metadata">

**Author:** [@hawahe](https://discourse.julialang.org/u/hawahe)\
**Replies:** 8\
**Last updated:** [April 30, 2025, 7:54pm UTC](https://discourse.julialang.org/t/warning-says-method-definition-is-overwritten-but-the-overwritten-function-still-works/128547 "2025-04-30T19:54:23Z")

</div>

I have a function foo which works without warning: function foo(start::Union{T, Vector{T}}) where T \<: Real f(i, x::T) = x f(i, x::Vector{T}) = x\[i\] output = rand(T, 10) for i in eachindex(output) …

---

## [VoronoiFVM.BlockStrategy: Results documented?](https://discourse.julialang.org/t/voronoifvm-blockstrategy-results-documented/128576)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 5\
**Last updated:** [April 30, 2025, 6:46pm UTC](https://discourse.julialang.org/t/voronoifvm-blockstrategy-results-documented/128576 "2025-04-30T18:46:07Z")

</div>

Congrats to the VoroniFVM developers to making their BlockStrategy available! Have results obtained using this strategy been reported somewhere? Thx!

---

## [Unable to use PlutoUI elements whilst using Pkg() to activate local env](https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579)

<div class="topic-metadata">

**Author:** [@Koustubh\_Jain](https://discourse.julialang.org/u/Koustubh_Jain)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 5:53pm UTC](https://discourse.julialang.org/t/unable-to-use-plutoui-elements-whilst-using-pkg-to-activate-local-env/128579 "2025-04-30T17:53:21Z")

</div>

Hi all, I am new to Julia and trying to migrate my workflow from MATLAB to Julia. There is package I need to use which is not there in the pkg registry. I had looked up that one can add pkgs to local envs simply by addin…

---

## [Iterating over primes](https://discourse.julialang.org/t/iterating-over-primes/128556)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 11\
**Last updated:** [April 30, 2025, 2:47pm UTC](https://discourse.julialang.org/t/iterating-over-primes/128556 "2025-04-30T14:47:38Z")

</div>

In Project Euler, prime numbers come up quite a lot, but sometimes it is not clear how many prime numbers are needed. To avoid duplicate calculations, and as a challenge to get a bit more familiar with iterators in julia…

---

## [How to import a file in PythonCall](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 2:22pm UTC](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565 "2025-04-30T14:22:41Z")

</div>

I have some python code I’d like to call in Julia. The code is in a file in the same folder as pwd() but no matter what method I use I always get the error ERROR: Python: ModuleNotFoundError: No module named 'x' The fir…

---

## [JSON3 fails to precompile due to embedded NULs in C strings](https://discourse.julialang.org/t/json3-fails-to-precompile-due-to-embedded-nuls-in-c-strings/128482)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 10\
**Last updated:** [April 30, 2025, 1:50pm UTC](https://discourse.julialang.org/t/json3-fails-to-precompile-due-to-embedded-nuls-in-c-strings/128482 "2025-04-30T13:50:33Z")

</div>

Hi all, When trying to precompile JSON3.jl on Julia 1.11.4, the following error occurs: Is there a known fix for this problem? Thank you for your support and guidance. ERROR: LoadError: ArgumentError: embedded NULs a…

---

## [How to make scrool zoom in a single axis in Makie](https://discourse.julialang.org/t/how-to-make-scrool-zoom-in-a-single-axis-in-makie/128570)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 1:23pm UTC](https://discourse.julialang.org/t/how-to-make-scrool-zoom-in-a-single-axis-in-makie/128570 "2025-04-30T13:23:22Z")

</div>

I would like to modify the default behavior in Makie so that scrolling onty changes the vertical axis scale, and shift-scroll changes the horizontal scale. How can I change the behavior of the event based on modifier key…

---

## [Error during backward integration with callback in DifferentialEquations.jl](https://discourse.julialang.org/t/error-during-backward-integration-with-callback-in-differentialequations-jl/128563)

<div class="topic-metadata">

**Author:** [@remydutto](https://discourse.julialang.org/u/remydutto)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 1:19pm UTC](https://discourse.julialang.org/t/error-during-backward-integration-with-callback-in-differentialequations-jl/128563 "2025-04-30T13:19:06Z")

</div>

Hi everyone, I was trying to run the following example using OrdinaryDiffEq function dynamic!(dx, x, p, t) dx\[1\] = exp(-x\[2\] - sin(x\[2\])^2) dx\[2\] = 1. / (x\[2\] + 1.) dx\[3\] = 1. end x0 = \[0., 1.016428257183…

---

## [Optimizing chess engines with Julia... is it possible?](https://discourse.julialang.org/t/optimizing-chess-engines-with-julia-is-it-possible/128529)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 1:06pm UTC](https://discourse.julialang.org/t/optimizing-chess-engines-with-julia-is-it-possible/128529 "2025-04-30T13:06:33Z")

</div>

Time has long passed. I’ve expressed interest in a chess engine in Julia, then the interest died down, and then some other idea, and then lost motivation due to the core code I need to write before I could get to the sea…

---

## [VSCode debugger breaks on unknown command](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571)

<div class="topic-metadata">

**Author:** [@bellon-tiobe](https://discourse.julialang.org/u/bellon-tiobe)\
**Replies:** 1\
**Last updated:** [April 30, 2025, 12:51pm UTC](https://discourse.julialang.org/t/vscode-debugger-breaks-on-unknown-command/128571 "2025-04-30T12:51:59Z")

</div>

For reasons unknown to me, the VSCode Julia debugger stopped working, and now it gives this error message every time I try to debug: Activating project at \`~/Julia/JuliaCheck\` ┌ Error: Some Julia code in the VS Code e…

---

## [Add a UpperHessenberg row in LinearAlgebra.factorize?](https://discourse.julialang.org/t/add-a-upperhessenberg-row-in-linearalgebra-factorize/128530)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 8\
**Last updated:** [April 30, 2025, 12:19pm UTC](https://discourse.julialang.org/t/add-a-upperhessenberg-row-in-linearalgebra-factorize/128530 "2025-04-30T12:19:32Z")

</div>

My intuition is that there should also be a row about UpperHessenberg in this table (and what should be a proper factorization for it). Does my idea make sense?

---

## [Understanding \`\*Bindings\` in \`JuliaLowering.jl\`](https://discourse.julialang.org/t/understanding-bindings-in-julialowering-jl/126941)

<div class="topic-metadata">

**Author:** [@iuliadmtru](https://discourse.julialang.org/u/iuliadmtru)\
**Replies:** 7\
**Last updated:** [April 30, 2025, 8:39am UTC](https://discourse.julialang.org/t/understanding-bindings-in-julialowering-jl/126941 "2025-04-30T08:39:31Z")

</div>

Hi everyone! I am trying to understand the building pieces of JuliaLowering.jl. I am very new to compilers so I apologise in advance if my questions have very obvious answers. I don’t understand the behaviour of Binding…

---

## [.== and .\<= inside Zygote.gradient() are inaccurate on GPU](https://discourse.julialang.org/t/and-inside-zygote-gradient-are-inaccurate-on-gpu/128269)

<div class="topic-metadata">

**Author:** [@ivanightingale](https://discourse.julialang.org/u/ivanightingale)\
**Replies:** 10\
**Last updated:** [April 30, 2025, 3:07am UTC](https://discourse.julialang.org/t/and-inside-zygote-gradient-are-inaccurate-on-gpu/128269 "2025-04-30T03:07:05Z")

</div>

Hello, I’ve encountered some very bizzare behaviors with equality .== and inequality .\<= when using Flux.jl on GPU. Below is a small example: using CUDA using Flux device = gpu\_device() # device = cpu\_device() y = \[0,…

---

## [Incrementally pretty print a table, one row at a time](https://discourse.julialang.org/t/incrementally-pretty-print-a-table-one-row-at-a-time/128544)

<div class="topic-metadata">

**Author:** [@luke-kiernan](https://discourse.julialang.org/u/luke-kiernan)\
**Replies:** 1\
**Last updated:** [April 30, 2025, 1:55am UTC](https://discourse.julialang.org/t/incrementally-pretty-print-a-table-one-row-at-a-time/128544 "2025-04-30T01:55:38Z")

</div>

I’m comparing some Newton’s method-type iterative solvers. I’d like to pretty print the progress of the iterative method, so I can tell if the search is making good progress. If I didn’t care about performance, I’d just …

---

## [Correctness and Multiple Dispatch (Help explain to a julia noob)](https://discourse.julialang.org/t/correctness-and-multiple-dispatch-help-explain-to-a-julia-noob/128171)

<div class="topic-metadata">

**Author:** [@damiansimon2](https://discourse.julialang.org/u/damiansimon2)\
**Replies:** 13\
**Last updated:** [April 30, 2025, 12:18am UTC](https://discourse.julialang.org/t/correctness-and-multiple-dispatch-help-explain-to-a-julia-noob/128171 "2025-04-30T00:18:26Z")

</div>

Hello, i hope this is the right place to ask this and this horse hasnt been beaten to death. I am new to Julia and i love JIT compilation and multiple dispatch. I recently read (and tried to understand) Yuri Vishnevsky\`…

---

## [Function compiles twice but is called just once](https://discourse.julialang.org/t/function-compiles-twice-but-is-called-just-once/128536)

<div class="topic-metadata">

**Author:** [@StevenWhitaker](https://discourse.julialang.org/u/StevenWhitaker)\
**Replies:** 4\
**Last updated:** [April 29, 2025, 10:09pm UTC](https://discourse.julialang.org/t/function-compiles-twice-but-is-called-just-once/128536 "2025-04-29T22:09:48Z")

</div>

Consider the following code: julia\> @generated function f(x) @info "Compiling f" return :(x + 1) end f (generic function with 1 method) julia\> function type\_unstable(y::Vector{Number}) …

---

## [How to simplify Array type w/o mem alloc](https://discourse.julialang.org/t/how-to-simplify-array-type-w-o-mem-alloc/128535)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 5\
**Last updated:** [April 29, 2025, 7:57pm UTC](https://discourse.julialang.org/t/how-to-simplify-array-type-w-o-mem-alloc/128535 "2025-04-29T19:57:37Z")

</div>

after reinterpreting and dropdimsing on an Array, the result is a complicated type which nominally is equivalent to just an Array. i can use collect to simplify it, but it allocates memory. is there a way to simplify i…

---

## [Cannot stop active code in jupyter notebook vscode](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 6\
**Last updated:** [April 29, 2025, 5:12pm UTC](https://discourse.julialang.org/t/cannot-stop-active-code-in-jupyter-notebook-vscode/119663 "2025-04-29T17:12:42Z")

</div>

Curious if others have had this issue using Julia w/ Jupyter Notebooks in VSCode. Notebooks otherwise work fine, except I can never actually seem to interrupt running cells (i.e., the stop and interrupt buttons are essen…

---

## [Personal package precompiles everytime I restart Julia (running on HPC)](https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 5:10pm UTC](https://discourse.julialang.org/t/personal-package-precompiles-everytime-i-restart-julia-running-on-hpc/128534 "2025-04-29T17:10:59Z")

</div>

Basically, I have a personal package (let’s call it MyPackage.jl). It is located in the same folder as I run my scripts. I have added it to the environment using Pkg.develop("MyPackage/") Every time I start a Julia pro…

---

## [Arrows for annotation in Makie.jl](https://discourse.julialang.org/t/arrows-for-annotation-in-makie-jl/108374)

<div class="topic-metadata">

**Author:** [@nari](https://discourse.julialang.org/u/nari)\
**Replies:** 4\
**Last updated:** [April 29, 2025, 4:37pm UTC](https://discourse.julialang.org/t/arrows-for-annotation-in-makie-jl/108374 "2025-04-29T16:37:30Z")

</div>

Makie.jl has arrows, which are suitable for illustrating vector fields, and annotations seem to be out of their intended use. If we want to annotate with arrows like matplotlib’s anotations, what is the best way in Maki…

---

## [Strange performance results about function mul! with views](https://discourse.julialang.org/t/strange-performance-results-about-function-mul-with-views/128532)

<div class="topic-metadata">

**Author:** [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Replies:** 1\
**Last updated:** [April 29, 2025, 4:10pm UTC](https://discourse.julialang.org/t/strange-performance-results-about-function-mul-with-views/128532 "2025-04-29T16:10:06Z")

</div>

aaaa = zeros(1000,1000) bbbb = ones(1,10000) cccc = ones(10000,1000) range = \[1\] @btime mul!(@view(aaaa\[range,:\]),bbbb,cccc); → BLAS.get\_num\_threads() → 1 27.416 ms (3 allocations: 112 bytes) BLAS.get\_num\_threads()…

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

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