# Latest

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

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

**Page:** 1474

---

## [Q: is Distributed not supported in Pluto?](https://discourse.julialang.org/t/q-is-distributed-not-supported-in-pluto/56277)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 5\
**Last updated:** [March 2, 2021, 3:22pm UTC](https://discourse.julialang.org/t/q-is-distributed-not-supported-in-pluto/56277 "2021-03-02T15:22:27Z")

</div>

Q: is Distributed not supported in Pluto? I am liking Pluto so far but today I ran into this: Only process 1 can add and remove workers cluster\_mgmt\_from\_master\_check @ cluster.jl:974 \[inlined\] #addprocs#37 (::Ba…

---

## [How to read Arrow.jl files from R?](https://discourse.julialang.org/t/how-to-read-arrow-jl-files-from-r/56178)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 7\
**Last updated:** [March 2, 2021, 3:19pm UTC](https://discourse.julialang.org/t/how-to-read-arrow-jl-files-from-r/56178 "2021-03-02T15:19:45Z")

</div>

I used Arrow.write() from Arrow.jl 1.2.4 and read\_feather() from R arrow 3.0.0 but the read said errored: Error in ipc\_\_\_feather\_\_\_Reader\_\_Open(file) : Invalid: Not a Feather V1 or Arrow IPC file How can I read this…

---

## [Define a type alias for an Array of indices that point to the array](https://discourse.julialang.org/t/define-a-type-alias-for-an-array-of-indices-that-point-to-the-array/56333)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 1:59pm UTC](https://discourse.julialang.org/t/define-a-type-alias-for-an-array-of-indices-that-point-to-the-array/56333 "2021-03-02T13:59:51Z")

</div>

I want to define a type alias for n-dimensional arrays of n-dimensional cartesian indices (so an array that holds indices that are able to index that array). I tried julia\> MyType = Array{CartesianIndex{N},N} where N a…

---

## [What is julia lang equivalent to R's %in%?](https://discourse.julialang.org/t/what-is-julia-lang-equivalent-to-rs-in/56314)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [March 2, 2021, 1:54pm UTC](https://discourse.julialang.org/t/what-is-julia-lang-equivalent-to-rs-in/56314 "2021-03-02T13:54:21Z")

</div>

Hello, I have a vector: b = \["NC\_001422", "NZ\_CP008698", "NZ\_CP016318" , "NZ\_CP010905", "NZ\_CP019649", "NZ\_CP029707" , "NZ\_CP011102", "NC\_006905", "NC\_006905", "NC\_009142", "NC\_006322", "NC\_013971", "…

---

## [A question about co/countervariance: \`f((x, y)::Tuple{Int, Any}) = 1\`](https://discourse.julialang.org/t/a-question-about-co-countervariance-f-x-y-tuple-int-any-1/56332)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 1:27pm UTC](https://discourse.julialang.org/t/a-question-about-co-countervariance-f-x-y-tuple-int-any-1/56332 "2021-03-02T13:27:34Z")

</div>

A question about co/countervariance: julia\> f((x, y)::Tuple{Int, Any}) = 1 f (generic function with 1 method) julia\> f((1,1)) 1 julia\> f((x, y)::Pair{Int, Any}) = 1 f (generic function with 2 methods) julia\> f((1=\>1)…

---

## [Are suspended users unsuspended automatically?](https://discourse.julialang.org/t/are-suspended-users-unsuspended-automatically/56320)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 1:24pm UTC](https://discourse.julialang.org/t/are-suspended-users-unsuspended-automatically/56320 "2021-03-02T13:24:37Z")

</div>

E.g after some period of being suspended? Or does it need something from the suspended user? Is there a general policy? Or is it in general forever?

---

## [Smart RecursiveArrayTools.VectorOfArray which allows binary operations with AbstractVector](https://discourse.julialang.org/t/smart-recursivearraytools-vectorofarray-which-allows-binary-operations-with-abstractvector/56327)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 1:02pm UTC](https://discourse.julialang.org/t/smart-recursivearraytools-vectorofarray-which-allows-binary-operations-with-abstractvector/56327 "2021-03-02T13:02:26Z")

</div>

This is a follow-up question from How to solve set of nonlinear fixed-point equations using Anderson acceleration in NLsolve.jl?. Suppose I have a VectorOfArray object z = VectorOfArray(\[rand(4), rand(4)\]) Then the fol…

---

## [PhD positions in energy management optimisation and self propelled particles](https://discourse.julialang.org/t/phd-positions-in-energy-management-optimisation-and-self-propelled-particles/56324)

<div class="topic-metadata">

**Author:** [@mattatlincoln](https://discourse.julialang.org/u/mattatlincoln)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 11:37am UTC](https://discourse.julialang.org/t/phd-positions-in-energy-management-optimisation-and-self-propelled-particles/56324 "2021-03-02T11:37:22Z")

</div>

Hello everyone, we have two funded PhD positions at the School of Mathematics and Physics, the University of Lincoln, UK. Both projects will involve a mix of machine learning and development of differential equation bas…

---

## [How to convert 1-element Array{String,1} to string?](https://discourse.julialang.org/t/how-to-convert-1-element-array-string-1-to-string/56317)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 12:30pm UTC](https://discourse.julialang.org/t/how-to-convert-1-element-array-string-1-to-string/56317 "2021-03-02T12:30:24Z")

</div>

Hello, I have this array: unique(w.Hit) 1-element Array{String,1}: "AC\_000006.1 Human adenovirus D" I would like to get the letters from position 13 to the end but: julia\> unique(w.Hit)\[13:length(unique(w.Hit))\] 0-e…

---

## [An idea related to Kubernetes and a question about possible useful packages in Julia](https://discourse.julialang.org/t/an-idea-related-to-kubernetes-and-a-question-about-possible-useful-packages-in-julia/56326)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 12:15pm UTC](https://discourse.julialang.org/t/an-idea-related-to-kubernetes-and-a-question-about-possible-useful-packages-in-julia/56326 "2021-03-02T12:15:13Z")

</div>

First some background. I’ve been looking at Kubernetes to deploy some Julia code to the cloud, and I find the tooling there non-optimal. Or at least it’s my opinion on them. Kubernetes is basically configured with YAML f…

---

## [Making code and packages available to workers inside module](https://discourse.julialang.org/t/making-code-and-packages-available-to-workers-inside-module/56311)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 11:49am UTC](https://discourse.julialang.org/t/making-code-and-packages-available-to-workers-inside-module/56311 "2021-03-02T11:49:43Z")

</div>

Dear forum, my title explains to some extend what I am trying to achieve. To make it hopefully clearer, I have written the following minimal code as an example. First, I create an ordinary script (scriptA.jl) where the…

---

## [How to stop a thread blocked by readline?](https://discourse.julialang.org/t/how-to-stop-a-thread-blocked-by-readline/56262)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 11:37am UTC](https://discourse.julialang.org/t/how-to-stop-a-thread-blocked-by-readline/56262 "2021-03-02T11:37:34Z")

</div>

Hey all :slight\_smile: I want to use a thread redirecting stderr. The thread should stop after a Threads.Atomic is set to false. My current example is blocked on readline and stops only after something is written to it…

---

## [Choosing algorithm for SVD](https://discourse.julialang.org/t/choosing-algorithm-for-svd/56249)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 5\
**Last updated:** [March 2, 2021, 11:07am UTC](https://discourse.julialang.org/t/choosing-algorithm-for-svd/56249 "2021-03-02T11:07:17Z")

</div>

The svd function in LinearAlgebra package has an option to select the algorithm for factorization method. But could not find proper way to use it. using LinearAlgebra A= rand(Float32, 10, 20); F = svd(A, full=true) # wo…

---

## [Research software engineer at AMAP, Montpellier (south of France)](https://discourse.julialang.org/t/research-software-engineer-at-amap-montpellier-south-of-france/56313)

<div class="topic-metadata">

**Author:** [@rvezy](https://discourse.julialang.org/u/rvezy)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 9:23am UTC](https://discourse.julialang.org/t/research-software-engineer-at-amap-montpellier-south-of-france/56313 "2021-03-02T09:23:54Z")

</div>

We are recruiting a research engineer in software development for the analysis, modelling and simulation of plants (no particular knowledge on plants is required). Link for more details. The position is open by CIRAD (F…

---

## [Including a folder](https://discourse.julialang.org/t/including-a-folder/56308)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 8:51am UTC](https://discourse.julialang.org/t/including-a-folder/56308 "2021-03-02T08:51:51Z")

</div>

Hello, I want to be able to do something like this: module Example include\_folder("my/modules") end And include\_folder should look similar to this: module Utils function include\_folder(path::AbstractString) path…

---

## [Tell Flux not to differentiate something](https://discourse.julialang.org/t/tell-flux-not-to-differentiate-something/56253)

<div class="topic-metadata">

**Author:** [@Michaela\_Maskova](https://discourse.julialang.org/u/Michaela_Maskova)\
**Replies:** 8\
**Last updated:** [March 2, 2021, 8:41am UTC](https://discourse.julialang.org/t/tell-flux-not-to-differentiate-something/56253 "2021-03-02T08:41:42Z")

</div>

Hi, I’m trying to create a model using Flux. The model is quite complicated (it builds on Normalizing Flows, RealNVP) and uses many layers on top of each other. There are two inputs - vector Z and matrix X. X is transfo…

---

## [Plots not working properly](https://discourse.julialang.org/t/plots-not-working-properly/56310)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 8:39am UTC](https://discourse.julialang.org/t/plots-not-working-properly/56310 "2021-03-02T08:39:49Z")

</div>

I’m on Julia 1.5.0 on my work desktop. Yesterday, I updated the packages (Pkg.update()\] since my 3D scatter-plots didn’t work properly. (pyplot showed the data in the 2D plane, and not in 3D; gr put the axes labels insid…

---

## [Plot multiple lines with different ranges in same plot](https://discourse.julialang.org/t/plot-multiple-lines-with-different-ranges-in-same-plot/56304)

<div class="topic-metadata">

**Author:** [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 6:58am UTC](https://discourse.julialang.org/t/plot-multiple-lines-with-different-ranges-in-same-plot/56304 "2021-03-02T06:58:04Z")

</div>

Hello, I would like to plot several lines on a same plot. Each line was created with x in range \[-1,1\] as follows: line\_x\[i\]=-1:0.1:1 line\_y\[i\]=(a\[i\]\* line\_x\[i\] .+ b\[I\]) My problem is that for each line, I would lik…

---

## [Idiomatic Benchmarking](https://discourse.julialang.org/t/idiomatic-benchmarking/56286)

<div class="topic-metadata">

**Author:** [@mileslucas](https://discourse.julialang.org/u/mileslucas)\
**Replies:** 6\
**Last updated:** [March 2, 2021, 6:12am UTC](https://discourse.julialang.org/t/idiomatic-benchmarking/56286 "2021-03-02T06:12:03Z")

</div>

I feel like every time I write a benchmark for a package I’m reinventing the wheel, with slight changes in how I list dependencies, how I organize the actual benchmarks, how I collect results, and how I end up displaying…

---

## [\[ANN\] BijectiveHilbert.jl: Compute Hilbert curves in multiple dimensions](https://discourse.julialang.org/t/ann-bijectivehilbert-jl-compute-hilbert-curves-in-multiple-dimensions/56301)

<div class="topic-metadata">

**Author:** [@adolgert](https://discourse.julialang.org/u/adolgert)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 5:17am UTC](https://discourse.julialang.org/t/ann-bijectivehilbert-jl-compute-hilbert-curves-in-multiple-dimensions/56301 "2021-03-02T05:17:23Z")

</div>

The Hilbert curve algorithm provides a simple way to cluster data for faster storage and retrieval. It’s used to distribute work among high-performance computers. There is a version of R-trees that uses Hilbert curves to…

---

## [Implementation for accessing Cholesky factors](https://discourse.julialang.org/t/implementation-for-accessing-cholesky-factors/56219)

<div class="topic-metadata">

**Author:** [@ksil](https://discourse.julialang.org/u/ksil)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 3:53am UTC](https://discourse.julialang.org/t/implementation-for-accessing-cholesky-factors/56219 "2021-03-02T03:53:42Z")

</div>

Hi everyone! I’ve been a Julia user for several years, but this is my first time posting here, so apologies if this has been asked somewhere before. I was curious about Julia’s implementation of Cholesky factorization —…

---

## [Function inside function is not defined?](https://discourse.julialang.org/t/function-inside-function-is-not-defined/56297)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [March 2, 2021, 3:02am UTC](https://discourse.julialang.org/t/function-inside-function-is-not-defined/56297 "2021-03-02T03:02:21Z")

</div>

I came across this strange behavior: function f(k) if k == 1 g(k) = "k = 1" elseif k == 2 g(k) = "k = 2" end g(k) end f(1) # returns "k = 2" f(2) # errors ERROR: UndefVarError: g not de…

---

## [\[ANN\] A Package to download the currently free Springer books](https://discourse.julialang.org/t/ann-a-package-to-download-the-currently-free-springer-books/38386)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 31\
**Last updated:** [March 2, 2021, 2:22am UTC](https://discourse.julialang.org/t/ann-a-package-to-download-the-currently-free-springer-books/38386 "2021-03-02T02:22:49Z")

</div>

Springer has made some of their books available as pdfs for free on their website during the quarantine. There are already packages in Python and R to download them. Since I couldn’t find one for Julia I thought that wou…

---

## [Fit ODE parameters with different weights for each variable](https://discourse.julialang.org/t/fit-ode-parameters-with-different-weights-for-each-variable/56296)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Zepeda](https://discourse.julialang.org/u/Rodrigo_Zepeda)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 1:09am UTC](https://discourse.julialang.org/t/fit-ode-parameters-with-different-weights-for-each-variable/56296 "2021-03-02T01:09:24Z")

</div>

Hi! I am trying to optimize parameters for an ODE giving different weights to each entry of the solution y inside the L2Loss function. That is all y\[1\]s should have some weights w1 while all y\[3\]s should have some diffe…

---

## [Extracting Ints from a String in a DataFrame](https://discourse.julialang.org/t/extracting-ints-from-a-string-in-a-dataframe/56293)

<div class="topic-metadata">

**Author:** [@statspy](https://discourse.julialang.org/u/statspy)\
**Replies:** 4\
**Last updated:** [March 2, 2021, 12:47am UTC](https://discourse.julialang.org/t/extracting-ints-from-a-string-in-a-dataframe/56293 "2021-03-02T00:47:59Z")

</div>

I have a DataFrame like below: df = DataFrame("Code" =\> \["A03", "W12","C04"\]) The df.Code column is always a 3-character string formed by 1 letter and 2 digits. I need to extract the digits (as int) to a new column le…

---

## [Iterating over a column and changing its value according to a condition](https://discourse.julialang.org/t/iterating-over-a-column-and-changing-its-value-according-to-a-condition/56285)

<div class="topic-metadata">

**Author:** [@statspy](https://discourse.julialang.org/u/statspy)\
**Replies:** 2\
**Last updated:** [March 1, 2021, 10:42pm UTC](https://discourse.julialang.org/t/iterating-over-a-column-and-changing-its-value-according-to-a-condition/56285 "2021-03-01T22:42:20Z")

</div>

I have a .csv file with a column named “Values” ID Values 0 0.201915 1 0.441945 2 0.001931 3 0.221311 4 0.303101 this .csv file has 180900 rows. I need to change the Values according to a condition, l…

---

## [Losses for parameter estimation of Neural SDE](https://discourse.julialang.org/t/losses-for-parameter-estimation-of-neural-sde/50771)

<div class="topic-metadata">

**Author:** [@jlmaccal](https://discourse.julialang.org/u/jlmaccal)\
**Replies:** 15\
**Last updated:** [March 1, 2021, 10:30pm UTC](https://discourse.julialang.org/t/losses-for-parameter-estimation-of-neural-sde/50771 "2021-03-01T22:30:07Z")

</div>

I’m trying to understand the various options for doing parameter estimation on a USDE. I’m completely new to parameter estimation in SDEs, so ELI-dumb-chemist would be appreciated. Background I’m trying to model a physi…

---

## [Failed to precompile JellyMe4](https://discourse.julialang.org/t/failed-to-precompile-jellyme4/56287)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 0\
**Last updated:** [March 1, 2021, 10:27pm UTC](https://discourse.julialang.org/t/failed-to-precompile-jellyme4/56287 "2021-03-01T22:27:04Z")

</div>

What can I do about “Failed to precompile”? using JellyMe4 \[ Info: Precompiling JellyMe4 \[19ac8677-9a15-4623-9afd-84acc6165ce7\] ERROR: Failed to precompile JellyMe4 \[19ac8677-9a15-4623-9afd-84acc6165ce7\] to /home/user/.…

---

## [I made a recursive function to extract a value from a JSON given the key for that](https://discourse.julialang.org/t/i-made-a-recursive-function-to-extract-a-value-from-a-json-given-the-key-for-that/56278)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [March 1, 2021, 9:16pm UTC](https://discourse.julialang.org/t/i-made-a-recursive-function-to-extract-a-value-from-a-json-given-the-key-for-that/56278 "2021-03-01T21:16:47Z")

</div>

I made a recursive function to extract a value from a JSON given the key for that value: function extract(json, key) req = \[\] for (k, v) in pairs(json) if k == key println("FOUND $key == $k"…

---

## [Gnuplot.jl outputs debug text for all \`@gp\` commands](https://discourse.julialang.org/t/gnuplot-jl-outputs-debug-text-for-all-gp-commands/56283)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [March 1, 2021, 8:55pm UTC](https://discourse.julialang.org/t/gnuplot-jl-outputs-debug-text-for-all-gp-commands/56283 "2021-03-01T20:55:23Z")

</div>

I recently upgraded to Julia 1.5 and latest version of Gnuplot. I noticed that gnuplot now has output in the terminal that wasn’t there before. It seems like “errors” but they are not, and the figure is correctly produce…

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

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