# Latest

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

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

**Page:** 1228

---

## [MPI.jl warning with system provided MPI](https://discourse.julialang.org/t/mpi-jl-warning-with-system-provided-mpi/70063)

<div class="topic-metadata">

**Author:** [@hideakiv](https://discourse.julialang.org/u/hideakiv)\
**Replies:** 7\
**Last updated:** [October 25, 2021, 6:06pm UTC](https://discourse.julialang.org/t/mpi-jl-warning-with-system-provided-mpi/70063 "2021-10-25T18:06:01Z")

</div>

I am using MPI.jl on an HPC cluster. I got a warning ┌ Warning: You appear to be using MPI.jl with the default MPI binary on a cluster. │ We recommend using the system-provided MPI, see the Configuration section of th…

---

## [Any examples of how to rotate a grid of points?](https://discourse.julialang.org/t/any-examples-of-how-to-rotate-a-grid-of-points/70211)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [October 25, 2021, 5:44pm UTC](https://discourse.julialang.org/t/any-examples-of-how-to-rotate-a-grid-of-points/70211 "2021-10-25T17:44:57Z")

</div>

I found two packages of interest Rotations.jl and ReferenceFraneRotations.jl - does anyone happen to know an example where it is used to rotate for example a grid of points 45 degrees? I have found a function to generate…

---

## [Evaluation into the closed module \`\_\_anon\_\_\` breaks incremental compilation because the side effects will not be permanent](https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 1\
**Last updated:** [October 25, 2021, 5:18pm UTC](https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346 "2021-10-25T17:18:10Z")

</div>

I try to compile my project: julia --project=@. --startup-file=no --trace-compile=sysimage/precompile.jl test/runtests.jl This compilation gives me the following error: LoadError: Evaluation into the closed module \`\_\_…

---

## [Am I using LSTMs wrong?](https://discourse.julialang.org/t/am-i-using-lstms-wrong/70339)

<div class="topic-metadata">

**Author:** [@Michaela\_Maskova](https://discourse.julialang.org/u/Michaela_Maskova)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 4:45pm UTC](https://discourse.julialang.org/t/am-i-using-lstms-wrong/70339 "2021-10-25T16:45:58Z")

</div>

Hi, everyone. I have a question about the usage of LSTM and other RNN cells with Flux for prediction of data sequences. I’m playing around with Kaggle competition data (Google Brain - Ventilator Pressure Prediction | Ka…

---

## [Initiating a Tuple of Arrays](https://discourse.julialang.org/t/initiating-a-tuple-of-arrays/70325)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 6\
**Last updated:** [October 25, 2021, 4:35pm UTC](https://discourse.julialang.org/t/initiating-a-tuple-of-arrays/70325 "2021-10-25T16:35:12Z")

</div>

Dear all, I would like to initiate a Tuple of Vectors. I usually use map in this case as the return type is often of type Tuple, but for some reason the following MWE outputs a Vector of Vector instead of a Tuple of Vec…

---

## [Scalar Indexing Error: multiplying matrix by scalar](https://discourse.julialang.org/t/scalar-indexing-error-multiplying-matrix-by-scalar/70342)

<div class="topic-metadata">

**Author:** [@naubertc](https://discourse.julialang.org/u/naubertc)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 4:25pm UTC](https://discourse.julialang.org/t/scalar-indexing-error-multiplying-matrix-by-scalar/70342 "2021-10-25T16:25:10Z")

</div>

Hey all, I’ve been trying to use Flux on my GPU and am running into a scalar indexing error when trying to multiply a matrix by a scalar. I found a workaround by creating a function that multiplies two items and then br…

---

## [Package status expectation](https://discourse.julialang.org/t/package-status-expectation/70341)

<div class="topic-metadata">

**Author:** [@Eric](https://discourse.julialang.org/u/Eric)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 3:40pm UTC](https://discourse.julialang.org/t/package-status-expectation/70341 "2021-10-25T15:40:02Z")

</div>

I started a package, and it seemed natural to begin with “alpha” status, which I thought conveyed that it is new and should be tested carefully before choosing to depend on it. Now I am trying to look ahead and hope tha…

---

## [Using the package AxisArrays.jl : how to keep the type AxisArray when making operations?](https://discourse.julialang.org/t/using-the-package-axisarrays-jl-how-to-keep-the-type-axisarray-when-making-operations/70338)

<div class="topic-metadata">

**Author:** [@gqn](https://discourse.julialang.org/u/gqn)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 3:23pm UTC](https://discourse.julialang.org/t/using-the-package-axisarrays-jl-how-to-keep-the-type-axisarray-when-making-operations/70338 "2021-10-25T15:23:49Z")

</div>

Hello, I would like to make descriptive statistics on an AxisArray{Float64,3,…}. For instance, my AxisArray has 3 axes (N, V and T) and I am looking for an operation allowing to divide each component at T=t by its value…

---

## [Avoiding global variables while using DataFrames](https://discourse.julialang.org/t/avoiding-global-variables-while-using-dataframes/70314)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 3\
**Last updated:** [October 25, 2021, 3:15pm UTC](https://discourse.julialang.org/t/avoiding-global-variables-while-using-dataframes/70314 "2021-10-25T15:15:49Z")

</div>

How does one follow the manual’s guidance for performance and avoid global variables while working with DataFrames? For small tables, one could take an approach like this: construct1() = DataFrame(A=1:3, B=5:7, fixed=1)…

---

## [Dash.jl favicon?](https://discourse.julialang.org/t/dash-jl-favicon/70336)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 2:42pm UTC](https://discourse.julialang.org/t/dash-jl-favicon/70336 "2021-10-25T14:42:37Z")

</div>

Is it possible to change the default favicon of a dash app? The Python docs state you need to add an assets folder containing the favicon.ico, but it didn’t work. In my case the assest folder was placed inside the src fo…

---

## [Should we make \`IndexStyle(::Type{\<:AbstractVector})\` returns \`IndexLinear()\` by default?](https://discourse.julialang.org/t/should-we-make-indexstyle-type-abstractvector-returns-indexlinear-by-default/70085)

<div class="topic-metadata">

**Author:** [@N5N3](https://discourse.julialang.org/u/N5N3)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 11:25am UTC](https://discourse.julialang.org/t/should-we-make-indexstyle-type-abstractvector-returns-indexlinear-by-default/70085 "2021-10-22T11:25:14Z")

</div>

Currently, we have eachindex(A::AbstractVector) = axes1(A) But the default IndexStyle of AbstractVector is IndexCartesian() The following example looks a little strange to me julia\> a = view(\[1,2,3\],\[1,2,3\]) 3-elemen…

---

## [Can't figure out how to dev-install unregistered package](https://discourse.julialang.org/t/cant-figure-out-how-to-dev-install-unregistered-package/70298)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 4\
**Last updated:** [October 25, 2021, 12:06pm UTC](https://discourse.julialang.org/t/cant-figure-out-how-to-dev-install-unregistered-package/70298 "2021-10-25T12:06:50Z")

</div>

I’ve created folder test with the following Project.toml: \[deps\] QuantumControlBase = "f10a33bc-5a64-497c-be7b-6f86b4f0c2aa" GRAPELinesearchAnalysis = "290eba36-e2d8-4488-81b6-f66cc44f2186" \[compat\] julia = "1.6" The…

---

## [Seeking software engineer to help build CNC machining engine (Remote)](https://discourse.julialang.org/t/seeking-software-engineer-to-help-build-cnc-machining-engine-remote/70244)

<div class="topic-metadata">

**Author:** [@justinsgray](https://discourse.julialang.org/u/justinsgray)\
**Replies:** 4\
**Last updated:** [October 23, 2021, 10:39pm UTC](https://discourse.julialang.org/t/seeking-software-engineer-to-help-build-cnc-machining-engine-remote/70244 "2021-10-23T22:39:53Z")

</div>

Preparing a part to be CNC machined is way harder than it should be. Toolpath Labs is building next generation automated machining tools to make CNC machining as easy as 3d printing. Our software will help our users (en…

---

## [CartesianIndices, Convolution and other "moving window" computations on GPU](https://discourse.julialang.org/t/cartesianindices-convolution-and-other-moving-window-computations-on-gpu/19474)

<div class="topic-metadata">

**Author:** [@rapus95](https://discourse.julialang.org/u/rapus95)\
**Replies:** 0\
**Last updated:** [January 10, 2019, 2:27pm UTC](https://discourse.julialang.org/t/cartesianindices-convolution-and-other-moving-window-computations-on-gpu/19474 "2019-01-10T14:27:47Z")

</div>

Hey, I want to move some code to the GPU that’s heavy on image processing (using convolution & similar stuff) On the CPU I was doing it manually using a for loop over CartesianIndices. So I’m curious whether that’s the …

---

## [Error writing into a view of an array using CartesianIndices](https://discourse.julialang.org/t/error-writing-into-a-view-of-an-array-using-cartesianindices/16738)

<div class="topic-metadata">

**Author:** [@fabiangans](https://discourse.julialang.org/u/fabiangans)\
**Replies:** 0\
**Last updated:** [October 24, 2018, 2:18pm UTC](https://discourse.julialang.org/t/error-writing-into-a-view-of-an-array-using-cartesianindices/16738 "2018-10-24T14:18:10Z")

</div>

In Julia 0.7 I get an error in the following code: a=rand(10,10) index1 = CartesianIndices((1:2,1:2)) index2 = CartesianIndices((1:2,1:2)) a1 = view(a,index1) a1\[index2\]=rand(2,2) ArgumentError: an array of type \`Carte…

---

## [Better support for running external commands](https://discourse.julialang.org/t/better-support-for-running-external-commands/44933)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 39\
**Last updated:** [October 25, 2021, 10:43am UTC](https://discourse.julialang.org/t/better-support-for-running-external-commands/44933 "2021-10-25T10:43:28Z")

</div>

Currently, in Julia the run function is not as stable as the rest of the Julia. You can’t run external commands with special characters. The different behavior of Cmd from String makes using it inconvenient. Windows sup…

---

## [Slow speed-up in simple GPU kernel](https://discourse.julialang.org/t/slow-speed-up-in-simple-gpu-kernel/70292)

<div class="topic-metadata">

**Author:** [@adm](https://discourse.julialang.org/u/adm)\
**Replies:** 3\
**Last updated:** [October 25, 2021, 10:25am UTC](https://discourse.julialang.org/t/slow-speed-up-in-simple-gpu-kernel/70292 "2021-10-25T10:25:04Z")

</div>

I am trying my first GPU kernel, which essentially boils down to the simplified functions below. I barely get a x1.7 speed up with respect to the multi-threaded version so I’m wondering whether/how the performance of the…

---

## [Broadcasting using slices on the GPU](https://discourse.julialang.org/t/broadcasting-using-slices-on-the-gpu/70290)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 1\
**Last updated:** [October 25, 2021, 10:08am UTC](https://discourse.julialang.org/t/broadcasting-using-slices-on-the-gpu/70290 "2021-10-25T10:08:39Z")

</div>

Hi! I’m trying to broadcast a two argument function over slices on the second argument like so: # using CUDA # todevice = cu todevice = identity x = rand(5) |\> todevice a = rand(2, 5) |\> todevice function kernel(x, a…

---

## [Assigning vector fields from a struct to a vector](https://discourse.julialang.org/t/assigning-vector-fields-from-a-struct-to-a-vector/70259)

<div class="topic-metadata">

**Author:** [@Peter-Jolly](https://discourse.julialang.org/u/Peter-Jolly)\
**Replies:** 8\
**Last updated:** [October 25, 2021, 9:38am UTC](https://discourse.julialang.org/t/assigning-vector-fields-from-a-struct-to-a-vector/70259 "2021-10-25T09:38:53Z")

</div>

Hi I am have trouble assigning vector fields from a struct (myStruct) to a vector (Base\_Case). Please find code below. Essentially, I want to match the numerical values of the vector fields in the struct that match my “…

---

## [Inline Evaluation Question](https://discourse.julialang.org/t/inline-evaluation-question/70297)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [October 25, 2021, 9:22am UTC](https://discourse.julialang.org/t/inline-evaluation-question/70297 "2021-10-25T09:22:42Z")

</div>

Hello, I am using Julia 1.6.2 in vscode 1.61.2 with Julia Language extension version 1.4.3. I’ve noticed sometimes on certain lines I get an inline evaluation to the right. But I don’t really understand how to control …

---

## [See Franklin site without using a web server](https://discourse.julialang.org/t/see-franklin-site-without-using-a-web-server/70306)

<div class="topic-metadata">

**Author:** [@nielsls](https://discourse.julialang.org/u/nielsls)\
**Replies:** 5\
**Last updated:** [October 25, 2021, 9:03am UTC](https://discourse.julialang.org/t/see-franklin-site-without-using-a-web-server/70306 "2021-10-25T09:03:22Z")

</div>

Hey - thanks for the awesome Franklin.jl! Is it possible to generate a site which can be accessed locally without a webserver - i.e. using just a local URL like file:///C:/Users/foo/bar/index.html. Currently, it seems …

---

## [Unsupported feature Hess with user-defined functions using JuMP and Alpine](https://discourse.julialang.org/t/unsupported-feature-hess-with-user-defined-functions-using-jump-and-alpine/70204)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 5\
**Last updated:** [October 25, 2021, 8:46am UTC](https://discourse.julialang.org/t/unsupported-feature-hess-with-user-defined-functions-using-jump-and-alpine/70204 "2021-10-25T08:46:03Z")

</div>

I am trying to use a global solver Alpine in JuMP with user-registered functions. I am getting the same error as mentioned in this Github issue and here discourse post for the same error for Ipopt. The code that reproduc…

---

## [Do really multiple versions of Julia need multiple JULIA\_DEPOT\_PATH?](https://discourse.julialang.org/t/do-really-multiple-versions-of-julia-need-multiple-julia-depot-path/70319)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 25, 2021, 7:33am UTC](https://discourse.julialang.org/t/do-really-multiple-versions-of-julia-need-multiple-julia-depot-path/70319 "2021-10-25T07:33:34Z")

</div>

Hello, on SO there is a conversation about multiple versions of Julia and the need to have a separate JULIA\_DEPOT\_PATH environmental variable for each of them. The fact is that I have been using Julia for several years …

---

## [JuMP optimizing parametric DifferentialEquation](https://discourse.julialang.org/t/jump-optimizing-parametric-differentialequation/70302)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 4\
**Last updated:** [October 25, 2021, 7:32am UTC](https://discourse.julialang.org/t/jump-optimizing-parametric-differentialequation/70302 "2021-10-25T07:32:30Z")

</div>

Hello, I am trying to do the following: I have to optimize some parameters of an ODE, using JuMP (I have an objective function that depends on the solution ode the ODE). Now the problem is that the ODE itself has some o…

---

## [LinearAlgebra.inv matrix inversion slower than MATLAB?](https://discourse.julialang.org/t/linearalgebra-inv-matrix-inversion-slower-than-matlab/70066)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 21\
**Last updated:** [October 25, 2021, 7:04am UTC](https://discourse.julialang.org/t/linearalgebra-inv-matrix-inversion-slower-than-matlab/70066 "2021-10-25T07:04:12Z")

</div>

Why a matrix inversion is slower than MATLAB? I am comparing julia 1.6.3 (2021-09-23) Built by Homebrew (v1.6.3\_1) and MATLAB 9.11.0.1769968 (R2021b) on a late 2013 MacBook Pro 2.6 GHz Dual-Core Intel Core i5 with 16 GB…

---

## [How to use specific convergence measures in Optim.jl?](https://discourse.julialang.org/t/how-to-use-specific-convergence-measures-in-optim-jl/69710)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [October 25, 2021, 3:38am UTC](https://discourse.julialang.org/t/how-to-use-specific-convergence-measures-in-optim-jl/69710 "2021-10-25T03:38:21Z")

</div>

I’m using this code: results = Optim.optimize( obj, Optim.TwiceDifferentiableConstraints(lo, hi), θ0, Optim.IPNewton() ) And getting this output: \* Status: success \* Candidate solution Final objective v…

---

## [How to read a large TSV file using Julia?](https://discourse.julialang.org/t/how-to-read-a-large-tsv-file-using-julia/70300)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 9\
**Last updated:** [October 25, 2021, 1:32am UTC](https://discourse.julialang.org/t/how-to-read-a-large-tsv-file-using-julia/70300 "2021-10-25T01:32:28Z")

</div>

I have a very large TSV file, about 10GB, it has ~10,000 text lines for metadata information (different versions can have different total number of metadata lines), followed by a row of header information for about 20 pa…

---

## [BoundsError when solving non linear system of equations](https://discourse.julialang.org/t/boundserror-when-solving-non-linear-system-of-equations/70180)

<div class="topic-metadata">

**Author:** [@Namitha\_Suresh](https://discourse.julialang.org/u/Namitha_Suresh)\
**Replies:** 7\
**Last updated:** [October 24, 2021, 11:40pm UTC](https://discourse.julialang.org/t/boundserror-when-solving-non-linear-system-of-equations/70180 "2021-10-24T23:40:17Z")

</div>

Hi I’ve been trying to solve a non linear system of equations, but I have 4 equations and two variables so I guess the system is overdetermined and maybe that is the issue, but Mathematica doesn’t seem to have any issue…

---

## [How to inverse a Boolean vector?](https://discourse.julialang.org/t/how-to-inverse-a-boolean-vector/70309)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 1\
**Last updated:** [October 24, 2021, 11:06pm UTC](https://discourse.julialang.org/t/how-to-inverse-a-boolean-vector/70309 "2021-10-24T23:06:32Z")

</div>

I have an Index that is generated as below: Flag = \["A", "B", "C"\] Ind = cmp.(Flag, "A") The results: 3-element Vector{Int64}: 0 1 1 However, what I need is to find where the "A"s are, so I want the inverse values…

---

## [Pluto: a conflict with HTTP](https://discourse.julialang.org/t/pluto-a-conflict-with-http/69039)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 8\
**Last updated:** [October 24, 2021, 9:43pm UTC](https://discourse.julialang.org/t/pluto-a-conflict-with-http/69039 "2021-10-24T21:43:40Z")

</div>

Hi, I have a series of Pluto notebooks that were working without any problems at all. I have already made a static HTML file of each one of them in the past. I have just updated my Julia environment, and now I have a p…

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

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