# Latest

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

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

**Page:** 822

---

## [CUDA test random failure](https://discourse.julialang.org/t/cuda-test-random-failure/92399)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 2:50pm UTC](https://discourse.julialang.org/t/cuda-test-random-failure/92399 "2023-01-04T14:50:01Z")

</div>

Hi, I am new to Julia gpu computation. I recently installed CUDA.jl, with the following status: (julia) pkg\> st Status \`~/julia/Project.toml\` \[6e4b80f9\] BenchmarkTools v1.3.2 \[052768ef\] CUDA v3.12.0 \[7a1cc6ca\] FFT…

---

## [Are computations with Dual numbers twice as slow as non Duals?](https://discourse.julialang.org/t/are-computations-with-dual-numbers-twice-as-slow-as-non-duals/92502)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 2:39pm UTC](https://discourse.julialang.org/t/are-computations-with-dual-numbers-twice-as-slow-as-non-duals/92502 "2023-01-04T14:39:08Z")

</div>

After reading this I got the impression that computations with dual numbers are typically expected to be twice as slow as non-duals. The reasoning was that both the normal and dual computations have to calculated at each…

---

## [Sort DataFrame by the greater of multiple columns](https://discourse.julialang.org/t/sort-dataframe-by-the-greater-of-multiple-columns/92481)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 5\
**Last updated:** [January 4, 2023, 2:27pm UTC](https://discourse.julialang.org/t/sort-dataframe-by-the-greater-of-multiple-columns/92481 "2023-01-04T14:27:28Z")

</div>

Is there a way to sort a DataFrame by the greater of multiple columns e.g. df = DataFrame(A = \[21,22,18,19\], B = \[18,17,25,30\]) 4×2 DataFrame Row │ A B │ Int64 Int64 ─────┼────────────── 1 │ 21 …

---

## [Understanding allocs/constant propagation issue?](https://discourse.julialang.org/t/understanding-allocs-constant-propagation-issue/92474)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 7\
**Last updated:** [January 4, 2023, 2:30pm UTC](https://discourse.julialang.org/t/understanding-allocs-constant-propagation-issue/92474 "2023-01-04T14:30:17Z")

</div>

Consider the example, using LinearAlgebra, BenchmarkTools function comu\_f!(r, a, b, p, s) mul!(r, a, b, s, p) mul!(r, b, a, -s, true) return nothing end m1, m2, m3 = \[rand(ComplexF64, 10, 10) for \_ in 1:3\]…

---

## [I put my code into modules, much harder to develop now?](https://discourse.julialang.org/t/i-put-my-code-into-modules-much-harder-to-develop-now/92466)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 1:34pm UTC](https://discourse.julialang.org/t/i-put-my-code-into-modules-much-harder-to-develop-now/92466 "2023-01-04T13:34:13Z")

</div>

Hello! Whenever I make a change in a sub-module now I have to restart the entire Julia terminal, for the change to be properly registered in the main script. Is there a way to avoid this? I really like the module struc…

---

## [How to insert a constant element at a list of indices of a Vector of Vectors/Matrices](https://discourse.julialang.org/t/how-to-insert-a-constant-element-at-a-list-of-indices-of-a-vector-of-vectors-matrices/92503)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 12:49pm UTC](https://discourse.julialang.org/t/how-to-insert-a-constant-element-at-a-list-of-indices-of-a-vector-of-vectors-matrices/92503 "2023-01-04T12:49:52Z")

</div>

I have a vector of QuatRotation{Float64}, defined initially as: Q = Vector{QuatRotation{Float64}}(undef, 10) and a vector of indices ids= \[1, 4, 7\]. I want to insert at each index ∈ ids, the rotation Rotations.Unit…

---

## [Setting overal font in figure](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497)

<div class="topic-metadata">

**Author:** [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 11:46am UTC](https://discourse.julialang.org/t/setting-overal-font-in-figure/92497 "2023-01-04T11:46:45Z")

</div>

Hey out there! I have the following problem. I want to set the font for all my plots in Make to a certain font, for example Times New Roman. The following is not working. \[276b4fcb\] WGLMakie v0.8.3 julia\> using WGLMa…

---

## [Is there something like the get() function for namedTuples?](https://discourse.julialang.org/t/is-there-something-like-the-get-function-for-namedtuples/92463)

<div class="topic-metadata">

**Author:** [@rakshith95](https://discourse.julialang.org/u/rakshith95)\
**Replies:** 3\
**Last updated:** [January 4, 2023, 10:50am UTC](https://discourse.julialang.org/t/is-there-something-like-the-get-function-for-namedtuples/92463 "2023-01-04T10:50:18Z")

</div>

Hello, Is there an equivalent of the get() function for dictionaries for NamedTuples? I want to get the value for the ‘key’ of a NamedTuple if it exists, and if it does not assign it to some default value; pretty much …

---

## [Makie - How to serve WGLMakie visualizations on Docker image?](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [January 4, 2023, 10:49am UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048 "2023-01-04T10:49:11Z")

</div>

I am preparing material for the upcoming JuliaEO2023 workshop, and would like to use WGLMakie on the docker image shared by @gaelforget. I understand that I need to map the port where Makie displays visualizations. I tr…

---

## [JuliaCon 2023 CFP is live!](https://discourse.julialang.org/t/juliacon-2023-cfp-is-live/90644)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 10:32am UTC](https://discourse.julialang.org/t/juliacon-2023-cfp-is-live/90644 "2023-01-04T10:32:26Z")

</div>

Hey all! Quick reminder that the JuliaCon 2023 Call for Proposals is now live and closes December 18th. Find out more: JuliaCon 2023 :: pretalx

---

## [Are there any julia zmq.jl examples](https://discourse.julialang.org/t/are-there-any-julia-zmq-jl-examples/76996)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 10:12am UTC](https://discourse.julialang.org/t/are-there-any-julia-zmq-jl-examples/76996 "2023-01-04T10:12:39Z")

</div>

I am investigating using ZMQ to move a data stream around my project and would like to see some examples but I can’t find any for julia. My use case is to take streamed data and filter it to other julia scripts running …

---

## [TSFrames.jl v0.2.0: A timeseries data manipulation package based on DataFrames](https://discourse.julialang.org/t/tsframes-jl-v0-2-0-a-timeseries-data-manipulation-package-based-on-dataframes/92492)

<div class="topic-metadata">

**Author:** [@chiraganand](https://discourse.julialang.org/u/chiraganand)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 9:58am UTC](https://discourse.julialang.org/t/tsframes-jl-v0-2-0-a-timeseries-data-manipulation-package-based-on-dataframes/92492 "2023-01-04T09:58:49Z")

</div>

TSFrames.jl provides convenient interfaces for performing standard manipulations of timeseries data. Why another package? The package can handle heterogeneous tabular data. Promotes code reuse by using widely used and…

---

## [Nothings to Missings, Any to Float with Passmissing and Parse](https://discourse.julialang.org/t/nothings-to-missings-any-to-float-with-passmissing-and-parse/92487)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 9:50am UTC](https://discourse.julialang.org/t/nothings-to-missings-any-to-float-with-passmissing-and-parse/92487 "2023-01-04T09:50:26Z")

</div>

Hi, I have been stumped on how to convert a Any with nothing to a Float64 with missing. The data I am importing from BigQuery using gbq\_query. The returned NULLS are as blank. I try the normal passmissing parse meth…

---

## [ANN: bifurcation package for delay differential equations DDEBifurcationKit](https://discourse.julialang.org/t/ann-bifurcation-package-for-delay-differential-equations-ddebifurcationkit/92270)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 0\
**Last updated:** [December 29, 2022, 1:51pm UTC](https://discourse.julialang.org/t/ann-bifurcation-package-for-delay-differential-equations-ddebifurcationkit/92270 "2022-12-29T13:51:15Z")

</div>

Dear all, I am writing this post to announce a new package DDEBifurcationKit.jl for the study of bifurcations of delay differential equations. It is hosted on the bifurcationkit organisation as it heavily relies on Bifu…

---

## [How to examine properties of a candidate solution vector to an optimization problem in JuMP?](https://discourse.julialang.org/t/how-to-examine-properties-of-a-candidate-solution-vector-to-an-optimization-problem-in-jump/92483)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 7:55am UTC](https://discourse.julialang.org/t/how-to-examine-properties-of-a-candidate-solution-vector-to-an-optimization-problem-in-jump/92483 "2023-01-04T07:55:26Z")

</div>

Suppose I am solving an optimization problem in JuMP (see example below), and I want to try out a candidate solution vectors to the problem and see what it’s objective value and constraint values it yields (in particular…

---

## [\[ANN\] DimensionfulAngles.jl: An extension of Unitful.jl to include angles as a dimension](https://discourse.julialang.org/t/ann-dimensionfulangles-jl-an-extension-of-unitful-jl-to-include-angles-as-a-dimension/92484)

<div class="topic-metadata">

**Author:** [@cmichelenstrofer](https://discourse.julialang.org/u/cmichelenstrofer)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 6:08am UTC](https://discourse.julialang.org/t/ann-dimensionfulangles-jl-an-extension-of-unitful-jl-to-include-angles-as-a-dimension/92484 "2023-01-04T06:08:15Z")

</div>

I wrote a package to include angles as a dimension when using Unitful.jl. It allows for dispatching on Angle quantities. Angles not having a dimension has been the cause of many issues: #570 #531 #537 #392 #216 #38. …

---

## [Getting SQLite data without runtime dispatch](https://discourse.julialang.org/t/getting-sqlite-data-without-runtime-dispatch/91789)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 4:26am UTC](https://discourse.julialang.org/t/getting-sqlite-data-without-runtime-dispatch/91789 "2023-01-04T04:26:42Z")

</div>

I can’t figure out how to avoid runtime dispatch when using SQLite (or understand if the profiler is indicating incorrectly). I ran @profview, and it’s showing most of the time in SQLite.getvalue, I think the call to sql…

---

## [Resize! and empty! immediately, why?](https://discourse.julialang.org/t/resize-and-empty-immediately-why/92093)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 7\
**Last updated:** [January 4, 2023, 4:20am UTC](https://discourse.julialang.org/t/resize-and-empty-immediately-why/92093 "2023-01-04T04:20:32Z")

</div>

hello, found someone else’s code like this abstract type AbstractFoo{T} end struct Foo{T} \<: AbstractFoo{T} a::Vector{T} function Foo{T}(size::Int) where T foo = new(T\[\]) resize!(foo.a, size) …

---

## [Dot product not parallelized on cluster](https://discourse.julialang.org/t/dot-product-not-parallelized-on-cluster/92472)

<div class="topic-metadata">

**Author:** [@nbakas](https://discourse.julialang.org/u/nbakas)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 3:12am UTC](https://discourse.julialang.org/t/dot-product-not-parallelized-on-cluster/92472 "2023-01-04T03:12:00Z")

</div>

I am trying to optimize a code involving a dot product which is called many times. I run the code on a cluster’s node with 256 threads, using the built-in dot. I check with htop the performance of the threads, and only…

---

## [Wrong derivatives saved with SavingCallback](https://discourse.julialang.org/t/wrong-derivatives-saved-with-savingcallback/92471)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 2:40am UTC](https://discourse.julialang.org/t/wrong-derivatives-saved-with-savingcallback/92471 "2023-01-04T02:40:34Z")

</div>

I’m trying to save the derivative values from an ODE using SavingCallback from DiffEqCallbacks.jl. Why is manual\_du not the same as save\_du.saveval in this code? Am I misunderstanding when these values are saved, or is t…

---

## [Surface plot with gaps in data](https://discourse.julialang.org/t/surface-plot-with-gaps-in-data/92441)

<div class="topic-metadata">

**Author:** [@MK-1138](https://discourse.julialang.org/u/MK-1138)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 2:38am UTC](https://discourse.julialang.org/t/surface-plot-with-gaps-in-data/92441 "2023-01-04T02:38:20Z")

</div>

I’m preparing a rather large data set of x, y, z coordinates that I’d like to visualize using Makie surface plot. However, I do not have z coordinates for all (x, y) coordinates, that is, there is a gap in my data. Is it…

---

## [CuArray local scope memory issue](https://discourse.julialang.org/t/cuarray-local-scope-memory-issue/92421)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 2:30am UTC](https://discourse.julialang.org/t/cuarray-local-scope-memory-issue/92421 "2023-01-04T02:30:20Z")

</div>

Hi, recently i’m interested in GPU programming, not purpose on deep learning. In my case, i have quite large boolean vectors and have to get the intersect of them. I think these .== and .&& are very simple operations so …

---

## [Parameter estimation for ODEs with scarce ground truth data](https://discourse.julialang.org/t/parameter-estimation-for-odes-with-scarce-ground-truth-data/91685)

<div class="topic-metadata">

**Author:** [@magnumopus94](https://discourse.julialang.org/u/magnumopus94)\
**Replies:** 4\
**Last updated:** [January 4, 2023, 2:26am UTC](https://discourse.julialang.org/t/parameter-estimation-for-odes-with-scarce-ground-truth-data/91685 "2023-01-04T02:26:58Z")

</div>

Hello all, I’m relatively new to Julia. A brief background about my problem: I have an ODE scheme that gives me the concentration profile over time for 10 compounds and the model contains 11 parameters. However, I am tr…

---

## [What is the deal with copy/paste in the vscode terminal?](https://discourse.julialang.org/t/what-is-the-deal-with-copy-paste-in-the-vscode-terminal/92478)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 5\
**Last updated:** [January 4, 2023, 1:49am UTC](https://discourse.julialang.org/t/what-is-the-deal-with-copy-paste-in-the-vscode-terminal/92478 "2023-01-04T01:49:26Z")

</div>

ctrl-c and ctrl-v used to work (1.66.2). Now I am unable to persuade vscode to use these keys to copy from/ paste to the terminal. Any clues?

---

## [Peculiarity with plotting \`seriestype = :straightlines\`](https://discourse.julialang.org/t/peculiarity-with-plotting-seriestype-straightlines/92299)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 2\
**Last updated:** [January 4, 2023, 1:06am UTC](https://discourse.julialang.org/t/peculiarity-with-plotting-seriestype-straightlines/92299 "2023-01-04T01:06:27Z")

</div>

I’m trying to plot a bunch of infinite straight lines, where each line is defined by a pair of points. julia\> lines = hcat(\[\[(0, 0), (cos(θ), sin(θ))\] for θ=range(0, π, 10)\]...) 2×10 Matrix{Tuple{Real, Real}}: (0, 0) …

---

## [Exponential of a "large" vector is faster in Matlab](https://discourse.julialang.org/t/exponential-of-a-large-vector-is-faster-in-matlab/92468)

<div class="topic-metadata">

**Author:** [@alexdmeyer](https://discourse.julialang.org/u/alexdmeyer)\
**Replies:** 5\
**Last updated:** [January 4, 2023, 12:04am UTC](https://discourse.julialang.org/t/exponential-of-a-large-vector-is-faster-in-matlab/92468 "2023-01-04T00:04:27Z")

</div>

Hi Julia folks, In my current project, the rate-limiting step of a simulation model is evaluating the element-wise exponential of a vector with about N = 30,000 elements: # Julia MWE using Random trials = 10^4 # numb…

---

## [Importing a julia variable into python using PyCall](https://discourse.julialang.org/t/importing-a-julia-variable-into-python-using-pycall/92470)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 11:58pm UTC](https://discourse.julialang.org/t/importing-a-julia-variable-into-python-using-pycall/92470 "2023-01-03T23:58:09Z")

</div>

Why does the following code produce an error? A = 2+2 py""" B = 2 C = A + B """ The error produced is: NameError(“name ‘A’ is not defined”) I guess that I need to pass A into the pycall, but how?

---

## [Unexpected behavior of @async](https://discourse.julialang.org/t/unexpected-behavior-of-async/91921)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 6\
**Last updated:** [January 3, 2023, 11:20pm UTC](https://discourse.julialang.org/t/unexpected-behavior-of-async/91921 "2023-01-03T23:20:11Z")

</div>

I find this easiest to explain with an MWE. Basically, @async is changing values in a remote task when I think it shouldn’t. (Julia 1.8.1) using Distributed fnames = \["inside\_1", "inside\_2"\] addprocs(length(fnames)) @…

---

## [Error when build MATLAB](https://discourse.julialang.org/t/error-when-build-matlab/92050)

<div class="topic-metadata">

**Author:** [@jxpeng98](https://discourse.julialang.org/u/jxpeng98)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 10:40pm UTC](https://discourse.julialang.org/t/error-when-build-matlab/92050 "2023-01-03T22:40:01Z")

</div>

Hello everyone, I use MacBook Pro M1 Max with macOS 13.2. When I try to add the package with MATLAB R2022b. I will get the error: Building MATLAB → \`~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/e263…

---

## [Issue importing Clp for SigmoidalProgramming](https://discourse.julialang.org/t/issue-importing-clp-for-sigmoidalprogramming/91884)

<div class="topic-metadata">

**Author:** [@auchtopus](https://discourse.julialang.org/u/auchtopus)\
**Replies:** 6\
**Last updated:** [January 3, 2023, 8:50pm UTC](https://discourse.julialang.org/t/issue-importing-clp-for-sigmoidalprogramming/91884 "2023-01-03T20:50:49Z")

</div>

Hi! I’m trying to use GitHub - madeleineudell/SigmoidalProgramming.jl: Julia Package for Sigmoidal Programming The Project.toml looks like: name = "SigmoidalProgramming" uuid = "ce2a0656-6bed-5c64-9e01-e7b1ac833b80" k…

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

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