# Latest

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

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

**Page:** 1022

---

## [Specific columns in dataframe transform](https://discourse.julialang.org/t/specific-columns-in-dataframe-transform/82109)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 6\
**Last updated:** [June 2, 2022, 8:31pm UTC](https://discourse.julialang.org/t/specific-columns-in-dataframe-transform/82109 "2022-06-02T20:31:27Z")

</div>

mydf = DataFrame(a = \[1,2,3\], b = \[1, missing, 2\]) Works: mydf = transform(mydf, AsTable(\[:a, :b\]) =\> ByRow(x -\> x.a + x.b ) =\> :c) Works: mydf = transform(mydf,…

---

## [High numbers becoming negative](https://discourse.julialang.org/t/high-numbers-becoming-negative/82150)

<div class="topic-metadata">

**Author:** [@Gabrielforest](https://discourse.julialang.org/u/Gabrielforest)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 8:27pm UTC](https://discourse.julialang.org/t/high-numbers-becoming-negative/82150 "2022-06-02T20:27:29Z")

</div>

Why 20^18 has a negative result?

---

## [Unable to setup Jupyter notebook for the course](https://discourse.julialang.org/t/unable-to-setup-jupyter-notebook-for-the-course/82113)

<div class="topic-metadata">

**Author:** [@muntasir](https://discourse.julialang.org/u/muntasir)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 8:22pm UTC](https://discourse.julialang.org/t/unable-to-setup-jupyter-notebook-for-the-course/82113 "2022-06-02T20:22:35Z")

</div>

Hi. I followed the instructions for downloading Julia, Jupyter, Anaconda, and Visual Studio. I want to take Logan Kilpatrick’s Introduction to Julia (for programmers) course. I am unable to setup the Jupyter notebook t…

---

## [What does this result mean?](https://discourse.julialang.org/t/what-does-this-result-mean/82137)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 14\
**Last updated:** [June 2, 2022, 7:49pm UTC](https://discourse.julialang.org/t/what-does-this-result-mean/82137 "2022-06-02T19:49:17Z")

</div>

julia\> A = \[2, 2, 2\] 3-element Vector{Int64}: 2 2 2 julia\> all(A, dims = 1) 1-element Vector{Bool}: 0 Why does this code return 0, not 1?

---

## [Arrows overlaps points in 3D Axis](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146)

<div class="topic-metadata">

**Author:** [@Mixpap](https://discourse.julialang.org/u/Mixpap)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 6:44pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146 "2022-06-02T18:44:55Z")

</div>

Hi, I don’t know if I am doing something wrong, or if this is already mentioned somewhere else (I searched a lot) but when I am adding an arrow in 3D axis then it is overlapping all the points. For example: using Distr…

---

## [DiffEqFlux.sciml\_train doesn't accept an adtype](https://discourse.julialang.org/t/diffeqflux-sciml-train-doesnt-accept-an-adtype/81688)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 2\
**Last updated:** [June 2, 2022, 6:43pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train-doesnt-accept-an-adtype/81688 "2022-06-02T18:43:34Z")

</div>

This code works OK using DifferentialEquations, DiffEqFlux, GalacticOptim function lotka\_volterra!(du, u, p, t) x, y = u α, β, δ, γ = p du\[1\] = α\*x - β\*x\*y du\[2\] = -δ\*y + γ\*x\*y end u0 = \[1.0, 1.0\] tspan = (0.0…

---

## [Software Engineering Positions (Computer Vision, Computational Optics) at Metalenz \[Boston, MA\]](https://discourse.julialang.org/t/software-engineering-positions-computer-vision-computational-optics-at-metalenz-boston-ma/82139)

<div class="topic-metadata">

**Author:** [@platawiec](https://discourse.julialang.org/u/platawiec)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 6:05pm UTC](https://discourse.julialang.org/t/software-engineering-positions-computer-vision-computational-optics-at-metalenz-boston-ma/82139 "2022-06-02T18:05:46Z")

</div>

Metalenz is a growing, venture-backed start-up commercializing meta-optic vision systems. Come join our team! We have open roles which contribute to the development and engineering of an entirely new class of vision sys…

---

## [Use of hash code in integer hashing](https://discourse.julialang.org/t/use-of-hash-code-in-integer-hashing/82068)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 5:49pm UTC](https://discourse.julialang.org/t/use-of-hash-code-in-integer-hashing/82068 "2022-06-02T17:49:54Z")

</div>

I’m curious about the design of the integer hashing functions. Someone in my company coming from Python was annoyed to discover that the second argument to hash doesn’t produce very different results for incremented valu…

---

## [Complex{AbstractFloat}: Not working as intended](https://discourse.julialang.org/t/complex-abstractfloat-not-working-as-intended/82141)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 5:19pm UTC](https://discourse.julialang.org/t/complex-abstractfloat-not-working-as-intended/82141 "2022-06-02T17:19:05Z")

</div>

I want to write a type-generic function with signature foo(parameter::Complex{AbstractFloat}) such that I can use it like Input = 42 + 42\*im foo(convert(Complex{Float32}, Input)) foo(convert(Complex{Float64}, Input)) …

---

## [Specifying RetCodes in Event when solving ODE](https://discourse.julialang.org/t/specifying-retcodes-in-event-when-solving-ode/82145)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 4:55pm UTC](https://discourse.julialang.org/t/specifying-retcodes-in-event-when-solving-ode/82145 "2022-06-02T16:55:32Z")

</div>

Suppose I want to add a discrete event when solving an ODE using DifferentialEquations.jl, and if the condition is met I want to terminate the solving process. I can do that with the following: cb1\_fun(u,t,integrator) =…

---

## [Escaping double quotes in calling Julia from Windows command line](https://discourse.julialang.org/t/escaping-double-quotes-in-calling-julia-from-windows-command-line/82085)

<div class="topic-metadata">

**Author:** [@njio](https://discourse.julialang.org/u/njio)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 4:20pm UTC](https://discourse.julialang.org/t/escaping-double-quotes-in-calling-julia-from-windows-command-line/82085 "2022-06-02T16:20:59Z")

</div>

Hello, I’m trying to run a few Julia commands from the Windows terminal without having to manually open an instance. I’m hoping to use this command to automatically run a Julia script from Matlab, but I’m having trouble …

---

## [Bug with Julia 1.7.1 and CUDA 3.3](https://discourse.julialang.org/t/bug-with-julia-1-7-1-and-cuda-3-3/74052)

<div class="topic-metadata">

**Author:** [@shiroghost](https://discourse.julialang.org/u/shiroghost)\
**Replies:** 26\
**Last updated:** [June 2, 2022, 4:12pm UTC](https://discourse.julialang.org/t/bug-with-julia-1-7-1-and-cuda-3-3/74052 "2022-06-02T16:12:05Z")

</div>

Hi, The following lines of code: b, r = CUDA.threadIdx().x, CUDA.blockIdx().x Ush = @cuStaticSharedMem(T, (D,2)) for id1 in N:-1:1 bu1, ru1 = up((b, r), id1, lp) Ush\[b,1\] = U\[b,id1,r\] …

---

## [Julia v1.7.3 has been released](https://discourse.julialang.org/t/julia-v1-7-3-has-been-released/81683)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 27\
**Last updated:** [June 2, 2022, 3:16pm UTC](https://discourse.julialang.org/t/julia-v1-7-3-has-been-released/81683 "2022-06-02T15:16:26Z")

</div>

Julia version 1.7.3, the third patch release in the 1.7 series of releases, is now available. Binaries are available at https://julialang.org/downloads/ for the following platforms, listed here by support tier: Tier 1:…

---

## [String validation with dedicated type](https://discourse.julialang.org/t/string-validation-with-dedicated-type/82136)

<div class="topic-metadata">

**Author:** [@lvignoli](https://discourse.julialang.org/u/lvignoli)\
**Replies:** 0\
**Last updated:** [June 2, 2022, 2:13pm UTC](https://discourse.julialang.org/t/string-validation-with-dedicated-type/82136 "2022-06-02T14:13:47Z")

</div>

Hi, I am writing functions that expect string arguments containing only 'X', 'Y' and 'Z', such as "XYZXYZZYX". Rather than checking in each functions that the arguments are matched by a certain regex, it seems only natu…

---

## [Julia vs Trilinos](https://discourse.julialang.org/t/julia-vs-trilinos/82128)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 8\
**Last updated:** [June 2, 2022, 2:15pm UTC](https://discourse.julialang.org/t/julia-vs-trilinos/82128 "2022-06-02T14:15:07Z")

</div>

Hi all, I am just learning about Julia, and see another package for mathematics named Trilinos. TrilinosHandsOnTutorial · trilinos/Trilinos\_tutorial Wiki https://trilinos.github.io/ I was thinking and wondering if I …

---

## [Using AMDGPU.jl with an AMD APU](https://discourse.julialang.org/t/using-amdgpu-jl-with-an-amd-apu/82134)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 2:02pm UTC](https://discourse.julialang.org/t/using-amdgpu-jl-with-an-amd-apu/82134 "2022-06-02T14:02:33Z")

</div>

I was trying AMDGPU.jl with an AMD APU. I was convinced that ROCm did not support APU’s, but this thread gave me hope that it might work. I have a desktop with a Ryzen 4750G APU. I am running linux (Kubuntu 21.10 with a…

---

## [Are Julia Channels/Futures thread safe (with a failing code example)?](https://discourse.julialang.org/t/are-julia-channels-futures-thread-safe-with-a-failing-code-example/64490)

<div class="topic-metadata">

**Author:** [@orenbenkiki](https://discourse.julialang.org/u/orenbenkiki)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 1:01pm UTC](https://discourse.julialang.org/t/are-julia-channels-futures-thread-safe-with-a-failing-code-example/64490 "2022-06-02T13:01:30Z")

</div>

I thought the answer is “obviously they are”, but I get an intermittent deadlock in the following code: using Base.Threads using Distributed iterations = parse(Int, ARGS\[1\]) println("threads: $(nthreads())") println("…

---

## [AMDGPU-error](https://discourse.julialang.org/t/amdgpu-error/64990)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 9\
**Last updated:** [July 22, 2021, 11:34am UTC](https://discourse.julialang.org/t/amdgpu-error/64990 "2021-07-22T11:34:40Z")

</div>

Hi, on my manjaro (arch linux) system (with a ryzen 4500u, no dedicated GPU) I get an error initiating a simple ROCArray: a=ROCArray(\[1,2,3\]) 3-element ROCVector{Int64}: Error showing value of type ROCVector{Int64}: ER…

---

## [Rewrite Packages from Python](https://discourse.julialang.org/t/rewrite-packages-from-python/79888)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 7\
**Last updated:** [June 2, 2022, 12:53pm UTC](https://discourse.julialang.org/t/rewrite-packages-from-python/79888 "2022-06-02T12:53:47Z")

</div>

I am trying to advance my Julia language skill and (some concepts). Therefore am trying to work throw the book “Deep Learning and the Game of GO” but not writing the Code in Python but in Julia. I get some problems wit…

---

## [Error Nonlinear expressions may contain only scalar expressions](https://discourse.julialang.org/t/error-nonlinear-expressions-may-contain-only-scalar-expressions/82124)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 12:53pm UTC](https://discourse.julialang.org/t/error-nonlinear-expressions-may-contain-only-scalar-expressions/82124 "2022-06-02T12:53:43Z")

</div>

countBM=6 model= Model() @variable(model,x\[ i in 1:30\]) BendMom=Array{Any}(undef,countBM) zz=@NLexpression(model,\[ i in 1:30\],x\[i\]+i) BendMom\[1\]=@NLexpression(model,zz+1) julia\> BendMom\[1\]=@NLexpression(model,zz+1…

---

## [Use Julia in vscode (as a flatpak)](https://discourse.julialang.org/t/use-julia-in-vscode-as-a-flatpak/79889)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 12:41pm UTC](https://discourse.julialang.org/t/use-julia-in-vscode-as-a-flatpak/79889 "2022-06-02T12:41:43Z")

</div>

VS Code is normally distributed for my distro as a SNAP (which had the side effect for me) that vs code started in about 30 % of the cases I started my PC. Hence I switched to the Flatpak package of VS Code-OSS. After …

---

## [Unexpectedly high memory usage when running CUFFT.ifft()](https://discourse.julialang.org/t/unexpectedly-high-memory-usage-when-running-cufft-ifft/82108)

<div class="topic-metadata">

**Author:** [@dnakaikit](https://discourse.julialang.org/u/dnakaikit)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 12:04pm UTC](https://discourse.julialang.org/t/unexpectedly-high-memory-usage-when-running-cufft-ifft/82108 "2022-06-02T12:04:41Z")

</div>

I want to use CUDA.jl instead of CUDA C/C++ on Jetson nano (Single-board computer with GPU), but I am puzzled by the inexplicable memory usage when executing CUFFT.ifft(). I have confirmed that the memory usage of the Ju…

---

## [Abstract vector-multiplier type](https://discourse.julialang.org/t/abstract-vector-multiplier-type/82119)

<div class="topic-metadata">

**Author:** [@EdTi](https://discourse.julialang.org/u/EdTi)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 11:54am UTC](https://discourse.julialang.org/t/abstract-vector-multiplier-type/82119 "2022-06-02T11:54:57Z")

</div>

Hello everyone, I’m implementing a linear map. This operator basically applies three matrices one after the other, to a vector. Example : you have an SPD matrix A, and you have L its incomplete Cholesky factor, and I wa…

---

## [Is it possible to test using CI if a package update breaks a specific downstream package?](https://discourse.julialang.org/t/is-it-possible-to-test-using-ci-if-a-package-update-breaks-a-specific-downstream-package/82123)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 11:52am UTC](https://discourse.julialang.org/t/is-it-possible-to-test-using-ci-if-a-package-update-breaks-a-specific-downstream-package/82123 "2022-06-02T11:52:08Z")

</div>

Suppose I have packages A and B, where B depends on A. I push an update to A, which might break B. Now I want to test B against my PR to A automatically, possibly by including the test in the CI run (using GitHub actions…

---

## [Intermediate value type instability](https://discourse.julialang.org/t/intermediate-value-type-instability/82103)

<div class="topic-metadata">

**Author:** [@uliano](https://discourse.julialang.org/u/uliano)\
**Replies:** 16\
**Last updated:** [June 2, 2022, 10:26am UTC](https://discourse.julialang.org/t/intermediate-value-type-instability/82103 "2022-06-02T10:26:37Z")

</div>

Hello, I have something like: function goofy(num\_of\_bits::Integer,...) if num\_of\_bits \> 64 tmp=zero(UInt128) else tmp=zero(UInt64) end ... end which if num\_of\_bits is \<= 64 runs quite fa…

---

## [Flux 13.3 ;ERROR: UndefVarError: depwarn not defined](https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 10:10am UTC](https://discourse.julialang.org/t/flux-13-3-error-undefvarerror-depwarn-not-defined/82118 "2022-06-02T10:10:39Z")

</div>

julia\> versioninfo() Julia Version 1.7.3 Commit 742b9abb4d (2022-05-06 12:58 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GH WORD\_SIZE: 64 LIBM: libopenlibm LLVM…

---

## [IJulia kernel not working](https://discourse.julialang.org/t/ijulia-kernel-not-working/82122)

<div class="topic-metadata">

**Author:** [@Gridsof](https://discourse.julialang.org/u/Gridsof)\
**Replies:** 0\
**Last updated:** [June 2, 2022, 10:13am UTC](https://discourse.julialang.org/t/ijulia-kernel-not-working/82122 "2022-06-02T10:13:44Z")

</div>

Hi, I have a centrelized julia installation on a cluster. I installed the IJulia packages in a different directory and now the kernel cannot start with the following error: ArgumentError: Package IJulia not found in cur…

---

## [VS code custom Sysimage, startup time for "run in REPL" and "run as new process"](https://discourse.julialang.org/t/vs-code-custom-sysimage-startup-time-for-run-in-repl-and-run-as-new-process/82115)

<div class="topic-metadata">

**Author:** [@nabajour](https://discourse.julialang.org/u/nabajour)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 9:49am UTC](https://discourse.julialang.org/t/vs-code-custom-sysimage-startup-time-for-run-in-repl-and-run-as-new-process/82115 "2022-06-02T09:49:11Z")

</div>

Hi all, I’m trying to get the startup time of julia down. I created a JuliaSysImage.toml, giving an execution script that exercises frequently used functions I want to precompile. I then ran the build sysimage task. I…

---

## [Inconsistant message in Julia 1.8-rc1](https://discourse.julialang.org/t/inconsistant-message-in-julia-1-8-rc1/82104)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 8:33am UTC](https://discourse.julialang.org/t/inconsistant-message-in-julia-1-8-rc1/82104 "2022-06-02T08:33:58Z")

</div>

When running tests of the package KiteControllers I see this message: Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ cannot be upgraded. To see why use \`status --outdated\` If I …

---

## [How to detect globals (inadvertently used) in a function?](https://discourse.julialang.org/t/how-to-detect-globals-inadvertently-used-in-a-function/82011)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 8:21am UTC](https://discourse.julialang.org/t/how-to-detect-globals-inadvertently-used-in-a-function/82011 "2022-06-02T08:21:13Z")

</div>

There is probably a simple answer, but it has somehow escaped me. Is there a way to list the variables used in a function? In particular, I want to spot any globals that are inadvertently used. a = 1 fn1(x) = a + x …

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

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