# Latest

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

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

**Page:** 1442

---

## [Pkg.add updates other packages too?](https://discourse.julialang.org/t/pkg-add-updates-other-packages-too/58165)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 2\
**Last updated:** [March 27, 2021, 8:38pm UTC](https://discourse.julialang.org/t/pkg-add-updates-other-packages-too/58165 "2021-03-27T20:38:27Z")

</div>

I installed Julia 1.6 I installed the latest MLJ 0.16 I installed NaiveBayes.jl but got downgraded to MLJ 0.15.2 without my consent! Is this non-consentual downgrading intended? If this is the wrong place please redire…

---

## [\`plan\_rfft\` together used with \`mul!\` and \`@view\` complains about wrong-strides-output](https://discourse.julialang.org/t/plan-rfft-together-used-with-mul-and-view-complains-about-wrong-strides-output/58215)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 24\
**Last updated:** [March 30, 2021, 10:24pm UTC](https://discourse.julialang.org/t/plan-rfft-together-used-with-mul-and-view-complains-about-wrong-strides-output/58215 "2021-03-30T22:24:47Z")

</div>

Hey, initially I wanted to have rfft! but since it doesn’t exist, I tried the workaround mentioned in this discourse discussion. However, mul! complains when used with a plan\_rfft generated matrix: using LinearAlgebra…

---

## [Linearization](https://discourse.julialang.org/t/linearization/58167)

<div class="topic-metadata">

**Author:** [@user1200](https://discourse.julialang.org/u/user1200)\
**Replies:** 3\
**Last updated:** [March 30, 2021, 10:09pm UTC](https://discourse.julialang.org/t/linearization/58167 "2021-03-30T22:09:33Z")

</div>

Hi I have simple objective function (goal), solving with Ipopt for example: Min, sum (sin(data\[i\]\*x) for i=1:length(data) ) I was just curious if there is some way/wrap to achieve : maximize linearity of process to…

---

## [Broadcasting across array of SVectors](https://discourse.julialang.org/t/broadcasting-across-array-of-svectors/57573)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 11\
**Last updated:** [March 30, 2021, 9:36pm UTC](https://discourse.julialang.org/t/broadcasting-across-array-of-svectors/57573 "2021-03-30T21:36:38Z")

</div>

I have an array of S-vectors and I want to do something like: b .%5 and perform the mod across all elements of each vector. So I built this: function Base.rem(x::SVector{Float64},y::Float64)::SVector{Float64} SVector…

---

## [\[ANN\] PackageCompatUI](https://discourse.julialang.org/t/ann-packagecompatui/58118)

<div class="topic-metadata">

**Author:** [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Replies:** 2\
**Last updated:** [March 30, 2021, 9:15pm UTC](https://discourse.julialang.org/t/ann-packagecompatui/58118 "2021-03-30T21:15:25Z")

</div>

PackageCompatUI is a terminal text interface to the \[compat\] section of a Julia Project.toml file. This is particularly useful when setting up \[compat\] for a new package or if you need unusual \[compat\] bounds but is unce…

---

## [Parametrically customized subtypes](https://discourse.julialang.org/t/parametrically-customized-subtypes/58258)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 9:04pm UTC](https://discourse.julialang.org/t/parametrically-customized-subtypes/58258 "2021-03-30T21:04:02Z")

</div>

I think this is the same feature discussed recently by the Symbolics and Julia compiler teams. I would be interested to see what the experts have to say on this topic. For each of many external abstract types T , I want…

---

## [Convert dictionary of dataframes into single dataframe](https://discourse.julialang.org/t/convert-dictionary-of-dataframes-into-single-dataframe/58255)

<div class="topic-metadata">

**Author:** [@waforbes](https://discourse.julialang.org/u/waforbes)\
**Replies:** 5\
**Last updated:** [March 30, 2021, 8:46pm UTC](https://discourse.julialang.org/t/convert-dictionary-of-dataframes-into-single-dataframe/58255 "2021-03-30T20:46:57Z")

</div>

I have a dictionary of dataframes that I want to combine into a single dataframe.

---

## [Rename a row in DataFrames?](https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 8:18pm UTC](https://discourse.julialang.org/t/rename-a-row-in-dataframes/58261 "2021-03-30T20:18:34Z")

</div>

Is it possible to rename a row in DataFrames.jl? Currently it looks like rows are numbered by default 1:n. The function rename!() only changes column names, not row names. My hack is to add a column w/ my desired row …

---

## [Implement iterator over subsets of array](https://discourse.julialang.org/t/implement-iterator-over-subsets-of-array/58251)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 9\
**Last updated:** [March 30, 2021, 7:59pm UTC](https://discourse.julialang.org/t/implement-iterator-over-subsets-of-array/58251 "2021-03-30T19:59:16Z")

</div>

Suppose I have an array like x = \[ 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4 \] I want to loop over the sets of sequences of common numbers, using a syntax like: for set in eachset(x) ... end Where eachset(x) should behav…

---

## [Compat Questions](https://discourse.julialang.org/t/compat-questions/48551)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 10\
**Last updated:** [March 30, 2021, 7:19pm UTC](https://discourse.julialang.org/t/compat-questions/48551 "2021-03-30T19:19:49Z")

</div>

So I maintain a few small packages. Lately, their dependancies have shuffled around because the ecosystem is chugging along (woo!). But, when I go to use one or two of my packages I run into compatability issues. How do…

---

## [Did Julia 1.6 introduced a regression for regex properties?](https://discourse.julialang.org/t/did-julia-1-6-introduced-a-regression-for-regex-properties/58076)

<div class="topic-metadata">

**Author:** [@D\_A](https://discourse.julialang.org/u/D_A)\
**Replies:** 2\
**Last updated:** [March 30, 2021, 7:08pm UTC](https://discourse.julialang.org/t/did-julia-1-6-introduced-a-regression-for-regex-properties/58076 "2021-03-30T19:08:12Z")

</div>

Hello. It seems the latest Julia release (nice job, by the way!) introduced a strange behaviour for regex properties, especially with scripts… text = "aa bb" text |\> collect # 'a': ASCII/Unicode U+0061 (category Ll: Le…

---

## [To understand neural ODE](https://discourse.julialang.org/t/to-understand-neural-ode/58236)

<div class="topic-metadata">

**Author:** [@vavrines](https://discourse.julialang.org/u/vavrines)\
**Replies:** 5\
**Last updated:** [March 30, 2021, 6:37pm UTC](https://discourse.julialang.org/t/to-understand-neural-ode/58236 "2021-03-30T18:37:42Z")

</div>

I find I still don’t fully understand neural ordinary differential equations. As shown in literature (Lu et al., 2017; Haber and Ruthotto, 2017; Chen el al., 2018), a sequence of transformations h(t+1) = h(t) + f(h,th…

---

## [The future is ARM's?](https://discourse.julialang.org/t/the-future-is-arms/41893)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 20\
**Last updated:** [March 30, 2021, 6:28pm UTC](https://discourse.julialang.org/t/the-future-is-arms/41893 "2021-03-30T18:28:26Z")

</div>

we all knew this would be coming more or less but Apple is jumping to ARM fully this time, which potentially means in \< 5 years most macOS devices will be running ARM; according to the tier of support, ARMv8 is tier 1 …

---

## [Distribution cdf calculation](https://discourse.julialang.org/t/distribution-cdf-calculation/58252)

<div class="topic-metadata">

**Author:** [@statspy](https://discourse.julialang.org/u/statspy)\
**Replies:** 2\
**Last updated:** [March 30, 2021, 6:20pm UTC](https://discourse.julialang.org/t/distribution-cdf-calculation/58252 "2021-03-30T18:20:15Z")

</div>

i have the following code that i am using and its working: using Distributions d=Exponential(1000) for i in collect(100:100:1000) print(i,"-\>",cdf(d,i) end The code it working properly. What i need now…

---

## [Log every evaluation of ODE solver](https://discourse.julialang.org/t/log-every-evaluation-of-ode-solver/58107)

<div class="topic-metadata">

**Author:** [@carlisto1250](https://discourse.julialang.org/u/carlisto1250)\
**Replies:** 5\
**Last updated:** [March 30, 2021, 5:37pm UTC](https://discourse.julialang.org/t/log-every-evaluation-of-ode-solver/58107 "2021-03-30T17:37:39Z")

</div>

So, Im getting a lot of warnings (and consequently errors) about NaN and Instability problems while trying to solve my ODE system, like: Warning: NaN dt detected. Likely a NaN value in the state, parameters, or derivati…

---

## [How to format float numbers in human-friendly format?](https://discourse.julialang.org/t/how-to-format-float-numbers-in-human-friendly-format/58209)

<div class="topic-metadata">

**Author:** [@matklad](https://discourse.julialang.org/u/matklad)\
**Replies:** 7\
**Last updated:** [March 30, 2021, 5:25pm UTC](https://discourse.julialang.org/t/how-to-format-float-numbers-in-human-friendly-format/58209 "2021-03-30T17:25:29Z")

</div>

I am writing a short script in Julia, and I need to print a bunch of floating point numbers for the user. If I just print("my number: $f"), I get output like "my number: 2.99999999999" which is too noisy. I want a human-…

---

## [Creating dataframe with column name that is a variable](https://discourse.julialang.org/t/creating-dataframe-with-column-name-that-is-a-variable/58248)

<div class="topic-metadata">

**Author:** [@waforbes](https://discourse.julialang.org/u/waforbes)\
**Replies:** 7\
**Last updated:** [March 30, 2021, 5:23pm UTC](https://discourse.julialang.org/t/creating-dataframe-with-column-name-that-is-a-variable/58248 "2021-03-30T17:23:31Z")

</div>

All of the other columns are correct, i.e. I want “StartPoint” to be the name of the column and it has the data in the variable start\_space. Below, param is a string variable. How do I tell it that I want the column name…

---

## [How to repleace some chars in a HTTP --\> CSV --\> DataFrame workflow?](https://discourse.julialang.org/t/how-to-repleace-some-chars-in-a-http-csv-dataframe-workflow/58232)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 4:45pm UTC](https://discourse.julialang.org/t/how-to-repleace-some-chars-in-a-http-csv-dataframe-workflow/58232 "2021-03-30T16:45:36Z")

</div>

I am trying to pass a (small) CSV file to DataFrame without saving it to disk, but I need first to convert the tabs in spaces, as it is a bit “dirty”. I have tried this but it doesn’t work: urlData = "https://archive.i…

---

## [\[ANN\] IbanGen.jl](https://discourse.julialang.org/t/ann-ibangen-jl/58233)

<div class="topic-metadata">

**Author:** [@xor](https://discourse.julialang.org/u/xor)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 2:36pm UTC](https://discourse.julialang.org/t/ann-ibangen-jl/58233 "2021-03-30T14:36:46Z")

</div>

IbanGen is a package for generating and validating IBANs. When generating IBANs, various parameters can be specified such as country code, account number etc… String IBAN representation can be parsed (with validation) i…

---

## [CUDA.jl tutorial code kernel slower than broadcast](https://discourse.julialang.org/t/cuda-jl-tutorial-code-kernel-slower-than-broadcast/58242)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 4:05pm UTC](https://discourse.julialang.org/t/cuda-jl-tutorial-code-kernel-slower-than-broadcast/58242 "2021-03-30T16:05:06Z")

</div>

Hi, The CUDA.jl tutorial has broadcasted addition, and then a series of steps to write a kernel that’s supposed to be about as fast. But on my machine, the kernel is about 10x slower, and I’d like to understand why. He…

---

## [Multiple dispatch based on argument given?](https://discourse.julialang.org/t/multiple-dispatch-based-on-argument-given/58243)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [March 30, 2021, 4:00pm UTC](https://discourse.julialang.org/t/multiple-dispatch-based-on-argument-given/58243 "2021-03-30T16:00:44Z")

</div>

I have a seemingly simple question. I’m creating a struct with multiple inner constructors and I want to dispatch different methods based on the arguments given. A simple example would be: struct OrderedPair x::Real…

---

## [Cannot take gradient of a function involves \`eachrow\` with Zygote?](https://discourse.julialang.org/t/cannot-take-gradient-of-a-function-involves-eachrow-with-zygote/58098)

<div class="topic-metadata">

**Author:** [@qft](https://discourse.julialang.org/u/qft)\
**Replies:** 3\
**Last updated:** [March 30, 2021, 3:48pm UTC](https://discourse.julialang.org/t/cannot-take-gradient-of-a-function-involves-eachrow-with-zygote/58098 "2021-03-30T15:48:04Z")

</div>

The following code using Zygote gradient(x -\> sum(map(sum, eachcol(x))), rand(3, 4)) gives the error message ERROR: Need an adjoint for constructor Base.Generator{Base.OneTo{Int64}, Base.var"#193#194"{Matrix{Float64}…

---

## [OpenCV: issue with function argument type in Julia binding](https://discourse.julialang.org/t/opencv-issue-with-function-argument-type-in-julia-binding/58207)

<div class="topic-metadata">

**Author:** [@erwanlecarpentier](https://discourse.julialang.org/u/erwanlecarpentier)\
**Replies:** 5\
**Last updated:** [March 30, 2021, 3:36pm UTC](https://discourse.julialang.org/t/opencv-issue-with-function-argument-type-in-julia-binding/58207 "2021-03-30T15:36:30Z")

</div>

Hi! I followed this tutorial to build an OpenCV binding for Julia. Now I am stuck with some functions I do not know how to use. I would like to use the OpenCV.split function whose definition is below in cv\_cxx\_wrap.jl: …

---

## [Topics for JuliaCon 2021 Workshops](https://discourse.julialang.org/t/topics-for-juliacon-2021-workshops/58228)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 2\
**Last updated:** [March 30, 2021, 1:52pm UTC](https://discourse.julialang.org/t/topics-for-juliacon-2021-workshops/58228 "2021-03-30T13:52:21Z")

</div>

I know the schedule of events for this year’s JuliaCon hasn’t been set, but have the topics for the workshops been decided?

---

## [Read .mat file from base64](https://discourse.julialang.org/t/read-mat-file-from-base64/58217)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [March 30, 2021, 1:35pm UTC](https://discourse.julialang.org/t/read-mat-file-from-base64/58217 "2021-03-30T13:35:36Z")

</div>

Suppose I have the following based64 encoded .mat file: using MAT using Base64 mat\_enc = open(base64encode, "01.mat") mat\_dec = base64decode(mat\_enc) open("my\_01.mat", "w") do f write(f, mat\_dec) end data = matread("m…

---

## [Julia application developer \[India/Bangalore\]](https://discourse.julialang.org/t/julia-application-developer-india-bangalore/58229)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 1:31pm UTC](https://discourse.julialang.org/t/julia-application-developer-india-bangalore/58229 "2021-03-30T13:31:56Z")

</div>

We at Julia Computing want to hire full stack Julia developers to join our Juliahub product development team. The work primarily involves developing web applications and distributed compute solutions in Julia. Our goal i…

---

## [Addprocs() does not work](https://discourse.julialang.org/t/addprocs-does-not-work/58211)

<div class="topic-metadata">

**Author:** [@mariok90](https://discourse.julialang.org/u/mariok90)\
**Replies:** 6\
**Last updated:** [March 30, 2021, 1:25pm UTC](https://discourse.julialang.org/t/addprocs-does-not-work/58211 "2021-03-30T13:25:37Z")

</div>

When I use addprocs() julia crashes with that error message: julia\> using Distributed julia\> workers() 1-element Array{Int64,1}: 1 julia\> addprocs() 16-element Array{Int64,1}: 2 3 4 5 6 7 8 9 10 11 …

---

## [Nonlinear Schrodinger equation/quantumoptics.jl](https://discourse.julialang.org/t/nonlinear-schrodinger-equation-quantumoptics-jl/57436)

<div class="topic-metadata">

**Author:** [@narayan](https://discourse.julialang.org/u/narayan)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 1:13pm UTC](https://discourse.julialang.org/t/nonlinear-schrodinger-equation-quantumoptics-jl/57436 "2021-03-30T13:13:10Z")

</div>

I saw in the documentation of quantumoptics.jl that it can simulate Spin F=1 spinor BEC which is basically three nonlinear coupled partial differential equations. I am wondering whether there is a way to solve GP equatio…

---

## [GMSH Mesh Expert to Julia using koehlerson/gmsh.jl](https://discourse.julialang.org/t/gmsh-mesh-expert-to-julia-using-koehlerson-gmsh-jl/58169)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 11:03am UTC](https://discourse.julialang.org/t/gmsh-mesh-expert-to-julia-using-koehlerson-gmsh-jl/58169 "2021-03-30T11:03:03Z")

</div>

Short Version of Query: Consider a unit square (2D) domain and a triangular mesh on this geometry. I would like to perform a loop over all the elements in the mesh, compute the area of each triangle and verify that the …

---

## [Sort and dims=1 for vector input](https://discourse.julialang.org/t/sort-and-dims-1-for-vector-input/58212)

<div class="topic-metadata">

**Author:** [@ovt](https://discourse.julialang.org/u/ovt)\
**Replies:** 8\
**Last updated:** [March 30, 2021, 10:38am UTC](https://discourse.julialang.org/t/sort-and-dims-1-for-vector-input/58212 "2021-03-30T10:38:08Z")

</div>

Hi, I don’t understand why a function like sort doesn’t accept dims=1 for a vector input. Let’s take b=rand(3) for instance. sort(b) works, but sort(b,dims=1) gives an error. It means that, in a case where size(b,2) is …

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

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