# Latest

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

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

**Page:** 1130

---

## [Reporting allocations per stream in multithread CUDA.jl application](https://discourse.julialang.org/t/reporting-allocations-per-stream-in-multithread-cuda-jl-application/75866)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 1\
**Last updated:** [February 7, 2022, 9:50am UTC](https://discourse.julialang.org/t/reporting-allocations-per-stream-in-multithread-cuda-jl-application/75866 "2022-02-07T09:50:32Z")

</div>

Is there a reliable way to monitor CUDA.jl allocations for each stream in a multithreaded application? In trying to track down the source of some excessive allocations using @CUDA.time macros, I am seeing some operations…

---

## [Efficient way of doing linear regression](https://discourse.julialang.org/t/efficient-way-of-doing-linear-regression/31232)

<div class="topic-metadata">

**Author:** [@Johncowk](https://discourse.julialang.org/u/Johncowk)\
**Replies:** 44\
**Last updated:** [February 7, 2022, 9:35am UTC](https://discourse.julialang.org/t/efficient-way-of-doing-linear-regression/31232 "2022-02-07T09:35:17Z")

</div>

Hello, I need an efficient way to performs linear regression because I have to fit several segments in a big for loops which takes time to achieve. In the past, their was a linreg function which has been depreciated. Cu…

---

## [User-defined gradient and hessian ADNLPModels.jl](https://discourse.julialang.org/t/user-defined-gradient-and-hessian-adnlpmodels-jl/75940)

<div class="topic-metadata">

**Author:** [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 9:31am UTC](https://discourse.julialang.org/t/user-defined-gradient-and-hessian-adnlpmodels-jl/75940 "2022-02-07T09:31:13Z")

</div>

Hello, I am trying to solve a nonlinear optimization problem using NLPModels.jl. As seen from here, the model takes only the objective function and the constraints and compute the gradient and hessian using ForwardDiff.…

---

## [Getindex, to\_indices, and CartesianIndex type inference failure](https://discourse.julialang.org/t/getindex-to-indices-and-cartesianindex-type-inference-failure/75781)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [February 7, 2022, 9:24am UTC](https://discourse.julialang.org/t/getindex-to-indices-and-cartesianindex-type-inference-failure/75781 "2022-02-07T09:24:30Z")

</div>

I’m defining a multi-dimensional Hankel array, as follows: struct Hankel{T,N,V\<:AbstractArray{T},D\<:Tuple{Vararg{Int}}} \<: AbstractArray{T,N} v::V d::D function Hankel(v::AbstractArray, d::Tuple{Vararg{Int}}…

---

## [Missing reference when developing a package in VSCode](https://discourse.julialang.org/t/missing-reference-when-developing-a-package-in-vscode/75939)

<div class="topic-metadata">

**Author:** [@CarloLucibello](https://discourse.julialang.org/u/CarloLucibello)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 9:23am UTC](https://discourse.julialang.org/t/missing-reference-when-developing-a-package-in-vscode/75939 "2022-02-07T09:23:59Z")

</div>

Hi all, I’m developing a package with VSCode so the package environment is activated in VSCode. The package name is GraphNeuralNetworks. In order to test some features, I created a test.jl file in the project root fol…

---

## [Fraction bar is not visible in Makie plot with text! and annotations! methods](https://discourse.julialang.org/t/fraction-bar-is-not-visible-in-makie-plot-with-text-and-annotations-methods/75938)

<div class="topic-metadata">

**Author:** [@fnoessler](https://discourse.julialang.org/u/fnoessler)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 9:16am UTC](https://discourse.julialang.org/t/fraction-bar-is-not-visible-in-makie-plot-with-text-and-annotations-methods/75938 "2022-02-07T09:16:49Z")

</div>

Hello, I tried to insert an equation with the text! and annotations! methods in Makie. Unfortunately, the fraction bar is not visible for me. However, the fraction bar is visible in the Axis title, xlabel, ylabel and th…

---

## [In Plots.jl, can I have a single x axis for a grid of plots?](https://discourse.julialang.org/t/in-plots-jl-can-i-have-a-single-x-axis-for-a-grid-of-plots/44764)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 11\
**Last updated:** [February 7, 2022, 8:46am UTC](https://discourse.julialang.org/t/in-plots-jl-can-i-have-a-single-x-axis-for-a-grid-of-plots/44764 "2022-02-07T08:46:34Z")

</div>

I have an array of plots (49 of them so it’s a fairly large figure) plts = Plots.Plot\[\] for i = 1:49 p = plot(...) push!(plts, p) end plot(plts..., layout = 49, size=(2000, 2000), link=:x, margin=-1mm) I have tw…

---

## [Debugger status and future plans?](https://discourse.julialang.org/t/debugger-status-and-future-plans/43638)

<div class="topic-metadata">

**Author:** [@tue](https://discourse.julialang.org/u/tue)\
**Replies:** 122\
**Last updated:** [February 7, 2022, 3:52am UTC](https://discourse.julialang.org/t/debugger-status-and-future-plans/43638 "2022-02-07T03:52:37Z")

</div>

I am a big fan of Julia as a programming language, but the lack of a decent debugger keeps turning me away every time I seriously consider changing to it. Now last time I tested the debugging environment out was last su…

---

## [Inferred type of \`pmap\`](https://discourse.julialang.org/t/inferred-type-of-pmap/75930)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 0\
**Last updated:** [February 7, 2022, 3:35am UTC](https://discourse.julialang.org/t/inferred-type-of-pmap/75930 "2022-02-07T03:35:57Z")

</div>

When applying pmap, it seems like type inference breaks down, as shown below: julia\> using Distributed julia\> f(x) = pmap(val -\> val^2, \[x\]) f (generic function with 1 method) julia\> @code\_warntype f(2) Variables #se…

---

## [Reduce error in non Hermitian matrix diagonalization](https://discourse.julialang.org/t/reduce-error-in-non-hermitian-matrix-diagonalization/75877)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 2:40am UTC](https://discourse.julialang.org/t/reduce-error-in-non-hermitian-matrix-diagonalization/75877 "2022-02-07T02:40:35Z")

</div>

Hi, guys: I have limited knowledge about julia and other coding languages. Recently I am trying to diagonalize a series of matrices. Each matrix is obtained by some recursion relation and it is supposed to be Hermitian.…

---

## [Automatic differentiation of complex matrix fails](https://discourse.julialang.org/t/automatic-differentiation-of-complex-matrix-fails/75733)

<div class="topic-metadata">

**Author:** [@Eriklw](https://discourse.julialang.org/u/Eriklw)\
**Replies:** 11\
**Last updated:** [February 7, 2022, 1:06am UTC](https://discourse.julialang.org/t/automatic-differentiation-of-complex-matrix-fails/75733 "2022-02-07T01:06:55Z")

</div>

While automatic differentiation with Zygote works fine for matrices with element in Float64 it fails for elements in ComplexF64: ‘’’ using Zygote function svdtest(A) U,S,V = svd(A) a = S\[1\] return a end A = rand(…

---

## [What can't figure out the .. notation in a using statement means?](https://discourse.julialang.org/t/what-cant-figure-out-the-notation-in-a-using-statement-means/75927)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 6\
**Last updated:** [February 7, 2022, 1:02am UTC](https://discourse.julialang.org/t/what-cant-figure-out-the-notation-in-a-using-statement-means/75927 "2022-02-07T01:02:50Z")

</div>

Hi there noob question. I am using vscode to try to figure out the notation in a Pkg. I can’t figure out what the using line does? module Reader using ..Client: read\_one AND if somone could tell me how to figure th…

---

## [Adding new playlists to Julia YT Channel](https://discourse.julialang.org/t/adding-new-playlists-to-julia-yt-channel/75901)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 3:48pm UTC](https://discourse.julialang.org/t/adding-new-playlists-to-julia-yt-channel/75901 "2022-02-06T15:48:18Z")

</div>

First nine videos on Julia YT channels were uploaded in March of 2013 and they are from some gathering happening probably on MIT. Among attends you have the most important people in Julia community, so in thong-in-chick …

---

## [\[ANN\] Cleaner.jl: A toolbox of simple solutions for common data cleaning problems v1.0](https://discourse.julialang.org/t/ann-cleaner-jl-a-toolbox-of-simple-solutions-for-common-data-cleaning-problems-v1-0/75902)

<div class="topic-metadata">

**Author:** [@TheRoniOne](https://discourse.julialang.org/u/TheRoniOne)\
**Replies:** 1\
**Last updated:** [February 6, 2022, 11:54pm UTC](https://discourse.julialang.org/t/ann-cleaner-jl-a-toolbox-of-simple-solutions-for-common-data-cleaning-problems-v1-0/75902 "2022-02-06T23:54:42Z")

</div>

After months of development, I finally consider Cleaner.jl to be feature complete and stable enough to release version 1.0 Current features are: Format column names to make them unique and fit snake\_case or camelCase …

---

## [Using Float128 in RandomMatrices](https://discourse.julialang.org/t/using-float128-in-randommatrices/75921)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 2\
**Last updated:** [February 6, 2022, 11:15pm UTC](https://discourse.julialang.org/t/using-float128-in-randommatrices/75921 "2022-02-06T23:15:03Z")

</div>

Hi guys: I am using the package RandomMatrices to generate Haar random unitary matrices. But recently I want to generate unitary matrices with higher precision. So I found the package Quadmath which provides Float128 ob…

---

## [JuliaCall Python library - is it safe for server use](https://discourse.julialang.org/t/juliacall-python-library-is-it-safe-for-server-use/75918)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 9:28pm UTC](https://discourse.julialang.org/t/juliacall-python-library-is-it-safe-for-server-use/75918 "2022-02-06T21:28:42Z")

</div>

I am using Flask and Nginx for a simple stats project. The usecase is that my front end invites the user to upload a spreadsheet. The back end uses Julia. I call Julia using Python JuliaCall. Is this way of doing things…

---

## [Complex Number Support in NLSolve](https://discourse.julialang.org/t/complex-number-support-in-nlsolve/36748)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 0\
**Last updated:** [March 30, 2020, 3:17pm UTC](https://discourse.julialang.org/t/complex-number-support-in-nlsolve/36748 "2020-03-30T15:17:59Z")

</div>

What is the scope of complex number support in NLSolve? I found an example in this issue, Allow complex numbers · Issue #112 · JuliaNLSolvers/NLsolve.jl · GitHub using NLsolve function f!(x, fvec) fvec\[1\] = (x\[1\]+…

---

## [Change datatype for subset of DataFrame columns](https://discourse.julialang.org/t/change-datatype-for-subset-of-dataframe-columns/75767)

<div class="topic-metadata">

**Author:** [@enzomar](https://discourse.julialang.org/u/enzomar)\
**Replies:** 6\
**Last updated:** [February 6, 2022, 8:21pm UTC](https://discourse.julialang.org/t/change-datatype-for-subset-of-dataframe-columns/75767 "2022-02-06T20:21:45Z")

</div>

Suppose I have this dataframe: df = DataFrame(A = Any\[rand() for i in 1:10\], B = \[“a”,“b”,“c”,“d”,“e”,“f”,“g”,“h”,“i”,“j”\], C = Any\[rand() for i in 1:10\]) I want to change the datatype of columns A and B programmatical…

---

## [Const variables](https://discourse.julialang.org/t/const-variables/42956)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 29\
**Last updated:** [July 13, 2020, 10:57pm UTC](https://discourse.julialang.org/t/const-variables/42956 "2020-07-13T22:57:41Z")

</div>

I am sure this issue has been debated before. By now, I have learned that all global variables must be constants. But I am less clear on global variables that are a function of other global variables, already defined as…

---

## [Is it possible to index an array with a tuple?](https://discourse.julialang.org/t/is-it-possible-to-index-an-array-with-a-tuple/75886)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 10\
**Last updated:** [February 6, 2022, 6:29pm UTC](https://discourse.julialang.org/t/is-it-possible-to-index-an-array-with-a-tuple/75886 "2022-02-06T18:29:54Z")

</div>

Is this the only way? julia\> a 5-element Vector{Float64}: 3.00000e+00 2.00000e+00 5.00000e+00 9.02242e-01 7.68556e-01 julia\> t (3, 2, 5) julia\> a\[\[t...\]\] 3-element Vector{Float64}: 5.00000e+00 2.00000e+00 7.68…

---

## [Problems in calling multiprocess functions on github actions](https://discourse.julialang.org/t/problems-in-calling-multiprocess-functions-on-github-actions/75905)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 5:30pm UTC](https://discourse.julialang.org/t/problems-in-calling-multiprocess-functions-on-github-actions/75905 "2022-02-06T17:30:13Z")

</div>

I am writing a Julia course, where the script is compiled to MD and then to HTML using Literate.jl and Documenter.jl on GitHub actions. The problem is in this snippet: using Distributed, BenchmarkTools a = rand(1:35,10…

---

## [TTFX with DataFrames and CSV](https://discourse.julialang.org/t/ttfx-with-dataframes-and-csv/75432)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 40\
**Last updated:** [February 6, 2022, 4:43pm UTC](https://discourse.julialang.org/t/ttfx-with-dataframes-and-csv/75432 "2022-02-06T16:43:11Z")

</div>

I have a very simple little program: @time using CSV, DataFrames input=""" time,ping 1,25.7 2,31.8 """ io = IOBuffer(input) @time df = CSV.read(io, DataFrame) close(io) df Output: julia\> include("bench.jl") 3.0629…

---

## [Segmentation fault on Mac](https://discourse.julialang.org/t/segmentation-fault-on-mac/75897)

<div class="topic-metadata">

**Author:** [@EmiliaKo](https://discourse.julialang.org/u/EmiliaKo)\
**Replies:** 2\
**Last updated:** [February 6, 2022, 4:01pm UTC](https://discourse.julialang.org/t/segmentation-fault-on-mac/75897 "2022-02-06T16:01:23Z")

</div>

Hi, I wrote some Julia code and it is working on Windows 11 but not on OSX. When I run the code in terminal on Mac, I get segmentation fault (see below). How can I solve the issue? Thank you for any advice. signal (11…

---

## [Macro: escaping, evaluation, scope etc,](https://discourse.julialang.org/t/macro-escaping-evaluation-scope-etc/75875)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 6\
**Last updated:** [February 6, 2022, 3:37pm UTC](https://discourse.julialang.org/t/macro-escaping-evaluation-scope-etc/75875 "2022-02-06T15:37:42Z")

</div>

Playing around with macros. macro gk(x) ks = keys(eval(x)) return ks end p = (a=1, b="b") julia\> @gk p (:a, :b) That’s OK, that’s what I want. Now, if the macro is defined inside a separate module, I couldn’t…

---

## [What is the "compat" admonition in Documenter used for?](https://discourse.julialang.org/t/what-is-the-compat-admonition-in-documenter-used-for/75900)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [February 6, 2022, 2:49pm UTC](https://discourse.julialang.org/t/what-is-the-compat-admonition-in-documenter-used-for/75900 "2022-02-06T14:49:46Z")

</div>

Sorry to be dumb, but what “compat” means in “Compat admonition” in Documenter ? And now that I am trying to post… what’s the relation with the “compat” session in Project.toml ?

---

## [Looking for Julia asynchronous coding and callback handling videos, examples or text?](https://discourse.julialang.org/t/looking-for-julia-asynchronous-coding-and-callback-handling-videos-examples-or-text/75899)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 0\
**Last updated:** [February 6, 2022, 1:17pm UTC](https://discourse.julialang.org/t/looking-for-julia-asynchronous-coding-and-callback-handling-videos-examples-or-text/75899 "2022-02-06T13:17:27Z")

</div>

Hi all I am coming from python and learnt about how to handle asynch from the splendid Dave Beazley. I see lashings of asynch, callbacks and wrappers in my future so I want to make a good start. I have done the google…

---

## [Overwhelmed by broadcast interface. Help me 🥺](https://discourse.julialang.org/t/overwhelmed-by-broadcast-interface-help-me/75823)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 17\
**Last updated:** [February 6, 2022, 12:47pm UTC](https://discourse.julialang.org/t/overwhelmed-by-broadcast-interface-help-me/75823 "2022-02-06T12:47:21Z")

</div>

I am writing code that would benefit from generic generator arithmetic over a vector type. In general, Vector{PrimeGenerator} suffices, but it introduces duplication of irrelevant data. Thus, I am attempting to subtype A…

---

## [Can't run any program in my environment: \`homedir(): no such file or directory\`](https://discourse.julialang.org/t/cant-run-any-program-in-my-environment-homedir-no-such-file-or-directory/75893)

<div class="topic-metadata">

**Author:** [@pxeger](https://discourse.julialang.org/u/pxeger)\
**Replies:** 1\
**Last updated:** [February 6, 2022, 9:58am UTC](https://discourse.julialang.org/t/cant-run-any-program-in-my-environment-homedir-no-such-file-or-directory/75893 "2022-02-06T09:58:15Z")

</div>

I’m running Julia in a very minimal Linux container environment with a largely read-only filesystem. The system is based on Arch Linux, and Julia was just installed from Arch’s repositories (pacman -Syu julia, version 1.…

---

## [Matrix{Vector} -\> Vector{Matrix}](https://discourse.julialang.org/t/matrix-vector-vector-matrix/75896)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [February 6, 2022, 9:34am UTC](https://discourse.julialang.org/t/matrix-vector-vector-matrix/75896 "2022-02-06T09:34:15Z")

</div>

I have a matrix of k-vectors, how can I get a k-vector of matrices? k = 5 julia\> m = reshape(\[rand(k) for \_ in 1:6\], 2,3) 2×3 Matrix{Vector{Float64}}: \[0.428997, 0.769875, 0.441121, 0.467842, 0.596864\] … \[0.722121, …

---

## [Keyring package in Julia](https://discourse.julialang.org/t/keyring-package-in-julia/20057)

<div class="topic-metadata">

**Author:** [@ValdarT](https://discourse.julialang.org/u/ValdarT)\
**Replies:** 2\
**Last updated:** [February 6, 2022, 7:42am UTC](https://discourse.julialang.org/t/keyring-package-in-julia/20057 "2022-02-06T07:42:46Z")

</div>

Is there a Julia package for accessing system keyring (platform independently), akin to the ones in Python and R? I searched and didn’t find one but perhaps I missed something.

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

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