# Latest

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

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

**Page:** 1234

---

## [Type instability in ForwardDiff.gradient](https://discourse.julialang.org/t/type-instability-in-forwarddiff-gradient/68973)

<div class="topic-metadata">

**Author:** [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)\
**Replies:** 8\
**Last updated:** [October 20, 2021, 12:04am UTC](https://discourse.julialang.org/t/type-instability-in-forwarddiff-gradient/68973 "2021-10-20T00:04:14Z")

</div>

Working on a nested optimization problem, I noticed that a lot of time was being spent in gradient calls, and a little digging found that doing out-of-place gradients was introducing a type-instability. I followed the a…

---

## [Is it possible to get allocations from 1 to 0 in this code?](https://discourse.julialang.org/t/is-it-possible-to-get-allocations-from-1-to-0-in-this-code/70056)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 12\
**Last updated:** [October 19, 2021, 10:42pm UTC](https://discourse.julialang.org/t/is-it-possible-to-get-allocations-from-1-to-0-in-this-code/70056 "2021-10-19T22:42:37Z")

</div>

Hi, I have been trying to improve the performance of my code. The function below had 7 allocations before and some warning when using @code\_warntype. I made several changes that reduced allocations from 7 to 1 and remov…

---

## [UndefVarError in for loop](https://discourse.julialang.org/t/undefvarerror-in-for-loop/69999)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 33\
**Last updated:** [October 19, 2021, 10:12pm UTC](https://discourse.julialang.org/t/undefvarerror-in-for-loop/69999 "2021-10-19T22:12:59Z")

</div>

Below is my MWE. I do not know why I am having the below error though I am defining it at the beginning? using LinearAlgebra; using BenchmarkTools function curMatRLC(NodeVoltage, dt) if NodeVoltage\[1,1\]==11 return…

---

## [Saving local variables on processor during \`pmap\`](https://discourse.julialang.org/t/saving-local-variables-on-processor-during-pmap/70064)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 10:03pm UTC](https://discourse.julialang.org/t/saving-local-variables-on-processor-during-pmap/70064 "2021-10-19T22:03:45Z")

</div>

Hey, I have a small issue that I haven’t been able to solve for hours. I have a simple pmap, arr2 = pmap(f, arr). Later on, after a bunch of computation on arr2, I get an array arr3 of length equal to arr. I need to do…

---

## [PSA: JavaCall.jl is broken on macOS for Julia 1.6.3 and above](https://discourse.julialang.org/t/psa-javacall-jl-is-broken-on-macos-for-julia-1-6-3-and-above/70068)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [October 19, 2021, 9:26pm UTC](https://discourse.julialang.org/t/psa-javacall-jl-is-broken-on-macos-for-julia-1-6-3-and-above/70068 "2021-10-19T21:26:58Z")

</div>

Because of some changes to how Julia handles signals as of Julia 1.6.3, JavaCall.jl is broken on macOS for Julia 1.6.3 and above. As far as I know, none of the active contributors have the needed hardware to try to resol…

---

## [My wishlist for the next version of Julia](https://discourse.julialang.org/t/my-wishlist-for-the-next-version-of-julia/69987)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 64\
**Last updated:** [October 19, 2021, 9:22pm UTC](https://discourse.julialang.org/t/my-wishlist-for-the-next-version-of-julia/69987 "2021-10-19T21:22:56Z")

</div>

As a Matlab person who recently switched over to Julia, below are some items on my wish list. Many thanks for your consideration! Creating a m x n sized NaN should be as simple as NaN(m, n). Right now, I have to do th…

---

## [\[ParallelStencil\] Wave Equation](https://discourse.julialang.org/t/parallelstencil-wave-equation/70012)

<div class="topic-metadata">

**Author:** [@apattyn](https://discourse.julialang.org/u/apattyn)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 9:07pm UTC](https://discourse.julialang.org/t/parallelstencil-wave-equation/70012 "2021-10-19T21:07:03Z")

</div>

I was looking at ParallelStencil.jl, and trying to just use it to directly solve the second order form of the wave equation. I noticed in the 2D acoustic example that it is broken up into two first order equations, and I…

---

## [Update PlotlyJS plot in Dash with async data](https://discourse.julialang.org/t/update-plotlyjs-plot-in-dash-with-async-data/66298)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 3\
**Last updated:** [October 19, 2021, 8:13pm UTC](https://discourse.julialang.org/t/update-plotlyjs-plot-in-dash-with-async-data/66298 "2021-10-19T20:13:59Z")

</div>

I would like to update a PlotlyJS plot inside Dash with data that is generated asynchronously. A MnWE (minimal not-working example) is here: using Dash, DashHtmlComponents, DashCoreComponents, PlotlyBase app = dash() …

---

## [Ebay server vs home constructed ONLY for julia coding](https://discourse.julialang.org/t/ebay-server-vs-home-constructed-only-for-julia-coding/70044)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 8\
**Last updated:** [October 19, 2021, 7:54pm UTC](https://discourse.julialang.org/t/ebay-server-vs-home-constructed-only-for-julia-coding/70044 "2021-10-19T19:54:16Z")

</div>

Hi all I’ve been putting this off for about a year now as I managed to eke out some more time from my trusty daily driver. I’m going to be starting a new project that will load up about 20 - 30 gb ( minimum) data into …

---

## [Matrix indexing](https://discourse.julialang.org/t/matrix-indexing/70057)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 6:36pm UTC](https://discourse.julialang.org/t/matrix-indexing/70057 "2021-10-19T18:36:35Z")

</div>

I have a matrix A with the size of m x n. How do I get a matrix B with all the columns of A except the columns of n1, n2, and n3? Many thanks.

---

## [How to make this figure](https://discourse.julialang.org/t/how-to-make-this-figure/70051)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 6:40pm UTC](https://discourse.julialang.org/t/how-to-make-this-figure/70051 "2021-10-19T18:40:23Z")

</div>

Hi all… I have a 4D matrix (X,Y,Z,P) and I need to make a figure with slices and isosurfaces… something like the plot bellow. Any idea how to a figure like this in Julia?

---

## [Shell mode causes issues on windows](https://discourse.julialang.org/t/shell-mode-causes-issues-on-windows/51134)

<div class="topic-metadata">

**Author:** [@Rockdeldiablo](https://discourse.julialang.org/u/Rockdeldiablo)\
**Replies:** 6\
**Last updated:** [October 19, 2021, 5:27pm UTC](https://discourse.julialang.org/t/shell-mode-causes-issues-on-windows/51134 "2021-10-19T17:27:01Z")

</div>

Hi everybody, i just installed julia and i am still dealing with various settings,packages and errors. i have recently learned about julia shell mode and I was trying some standard commands with cygwin and cmd. everyth…

---

## [Side effects of using keyword allowduplicates in the unstack function](https://discourse.julialang.org/t/side-effects-of-using-keyword-allowduplicates-in-the-unstack-function/70050)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 4:52pm UTC](https://discourse.julialang.org/t/side-effects-of-using-keyword-allowduplicates-in-the-unstack-function/70050 "2021-10-19T16:52:03Z")

</div>

If I have this df df1 = DataFrame( field = repeat(\["A", "B", "C", "D", "E"\], 12), data = rand(60), group = repeat(1:4, outer = 15)) if i try to do the following i get the suggestion to…

---

## [Next Julia LTS; when?](https://discourse.julialang.org/t/next-julia-lts-when/70030)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 16\
**Last updated:** [October 19, 2021, 4:47pm UTC](https://discourse.julialang.org/t/next-julia-lts-when/70030 "2021-10-19T16:47:29Z")

</div>

Julia 1.6.4 and 1.7-rc2 releases seem imminent, both have 0 issues on their milestones. I know it’s been stated Julia 1.6.x will be the next long-term support version (LTS), but it’s not yet declared such officially (at…

---

## [Converting Postman Prerequest Script to Julia Script](https://discourse.julialang.org/t/converting-postman-prerequest-script-to-julia-script/69832)

<div class="topic-metadata">

**Author:** [@bww00](https://discourse.julialang.org/u/bww00)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 4:16pm UTC](https://discourse.julialang.org/t/converting-postman-prerequest-script-to-julia-script/69832 "2021-10-19T16:16:32Z")

</div>

I would like to convert the following postman js script to julia http requests. We will then translate to a vendor supplied programming language. The Julia code would be used to validate the vendor supplied results Th…

---

## [Using a package imports some other unwanted packages, how to find out where is the unwanted package from?](https://discourse.julialang.org/t/using-a-package-imports-some-other-unwanted-packages-how-to-find-out-where-is-the-unwanted-package-from/70041)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 3:57pm UTC](https://discourse.julialang.org/t/using-a-package-imports-some-other-unwanted-packages-how-to-find-out-where-is-the-unwanted-package-from/70041 "2021-10-19T15:57:51Z")

</div>

I found out some unwanted package A is imported and cause name space conflict with my own module Main. I didn’t import/using package A, so it must be loaded by other other package that I import/using. How could I find ou…

---

## [DifferentialEquations simple usage not working](https://discourse.julialang.org/t/differentialequations-simple-usage-not-working/69985)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 3:55pm UTC](https://discourse.julialang.org/t/differentialequations-simple-usage-not-working/69985 "2021-10-19T15:55:28Z")

</div>

Hi there, I have a very simple ODE problem defined by: f\_norm(x, α) = x - α\*(1 - exp(-x)) f\_norm\_prime(x, α) = 1 - α\*exp(-x) f\_norm\_dprime(x, α) = α\*exp(-x) function dxdN!(dx, x, α, N) f = f\_norm(x, α) fx = f\_n…

---

## [Documentation of stdlibs?](https://discourse.julialang.org/t/documentation-of-stdlibs/70029)

<div class="topic-metadata">

**Author:** [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Replies:** 7\
**Last updated:** [October 19, 2021, 3:16pm UTC](https://discourse.julialang.org/t/documentation-of-stdlibs/70029 "2021-10-19T15:16:02Z")

</div>

Looking through the sources https://github.com/JuliaLang/julia/tree/v1.7.0-rc1/stdlib and comparing to the corresponding documentation, it’s unclear which modules seem to be stdlibs or not. As an example, Tar is an stdli…

---

## [Line breaks in Julia](https://discourse.julialang.org/t/line-breaks-in-julia/70037)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 3:11pm UTC](https://discourse.julialang.org/t/line-breaks-in-julia/70037 "2021-10-19T15:11:03Z")

</div>

So most of the time, I do not need to worry about line breaks like in Matlab (...)? Below is an example of a Julia code that can extend to many lines (I have many A, B, C,… and each of them are very long): IndexT2 = ma…

---

## [Call for Julia Community Prize 2021 Nominations](https://discourse.julialang.org/t/call-for-julia-community-prize-2021-nominations/61827)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 2:53pm UTC](https://discourse.julialang.org/t/call-for-julia-community-prize-2021-nominations/61827 "2021-10-19T14:53:06Z")

</div>

With each year’s JuliaCon, we solicit nominations for the Julia Community Prize in which a few people will win $1,000 and a certificate of accomplishment. Nominations should be for individuals who have made outstanding c…

---

## [Type stability of indexing a tuple in local scope vs global scope](https://discourse.julialang.org/t/type-stability-of-indexing-a-tuple-in-local-scope-vs-global-scope/70007)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [October 19, 2021, 1:34pm UTC](https://discourse.julialang.org/t/type-stability-of-indexing-a-tuple-in-local-scope-vs-global-scope/70007 "2021-10-19T13:34:21Z")

</div>

I know that getproperty is normally not type stable. But I had the mental model that getproperty on a named tuple is magically type stable somehow. And I had the same belief for getindex on a tuple or named tuple. Howeve…

---

## [Pkg.clone keeps asking for my SSH key](https://discourse.julialang.org/t/pkg-clone-keeps-asking-for-my-ssh-key/15155)

<div class="topic-metadata">

**Author:** [@danielc](https://discourse.julialang.org/u/danielc)\
**Replies:** 21\
**Last updated:** [October 19, 2021, 12:49pm UTC](https://discourse.julialang.org/t/pkg-clone-keeps-asking-for-my-ssh-key/15155 "2021-10-19T12:49:12Z")

</div>

Hello, I am running Julia 0.7 on Ubuntu and when I try to clone a package, I get this problem: julia\> using Pkg julia\> Pkg.clone("git@github.com:eford/CORBITS.git") ┌ Warning: Pkg.clone is only kept for legacy CI scri…

---

## [Configure vscode to automatically complete code blocks with 'end' as appropriate](https://discourse.julialang.org/t/configure-vscode-to-automatically-complete-code-blocks-with-end-as-appropriate/56430)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 11:43am UTC](https://discourse.julialang.org/t/configure-vscode-to-automatically-complete-code-blocks-with-end-as-appropriate/56430 "2021-10-19T11:43:30Z")

</div>

I find myself manually typing ‘end’ several lines down from a function header, then moving the cursor back into the function body to create the function. Is it possible to configure VSCode to do this automatically whenev…

---

## [Luxor linewidth scaling](https://discourse.julialang.org/t/luxor-linewidth-scaling/70022)

<div class="topic-metadata">

**Author:** [@jg-854](https://discourse.julialang.org/u/jg-854)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 10:47am UTC](https://discourse.julialang.org/t/luxor-linewidth-scaling/70022 "2021-10-19T10:47:38Z")

</div>

I am creating an application with a zoom feature. I thought to use Luxor.scale, which correctly scales my primitives (boxes, triangles etc.) but preserves the linewidth’s value. Is there any way to include the scaling of…

---

## [Unsigned literal](https://discourse.julialang.org/t/unsigned-literal/69239)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 3\
**Last updated:** [October 19, 2021, 9:38am UTC](https://discourse.julialang.org/t/unsigned-literal/69239 "2021-10-19T09:38:01Z")

</div>

How do you create an UInt64 in julia? The same effect that can be achieved by 0ull for the number 0 in C++.

---

## [DifferentialEquations.jl precompilation error](https://discourse.julialang.org/t/differentialequations-jl-precompilation-error/58139)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 15\
**Last updated:** [October 19, 2021, 9:01am UTC](https://discourse.julialang.org/t/differentialequations-jl-precompilation-error/58139 "2021-10-19T09:01:21Z")

</div>

I’m getting this strange error when I try to compile DifferentialEquations.jl in VSCode. I’ve used this package before in VSCode without any issues; I’m not sure exactly what I did differently this time. The full stackt…

---

## [Weird PRNG behavior](https://discourse.julialang.org/t/weird-prng-behavior/63186)

<div class="topic-metadata">

**Author:** [@palday](https://discourse.julialang.org/u/palday)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 8:01am UTC](https://discourse.julialang.org/t/weird-prng-behavior/63186 "2021-10-19T08:01:30Z")

</div>

It looks like randn!(rng, v) gives different values depending on the type not the eltype of v: julia\> using Random julia\> v1 = Vector{Float64}(undef, 200) julia\> m = Matrix{Float64}(undef, 200, 3) julia\> v2 = view(m, :,…

---

## [Makie - Clipped heatmap](https://discourse.julialang.org/t/makie-clipped-heatmap/70014)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 7:55am UTC](https://discourse.julialang.org/t/makie-clipped-heatmap/70014 "2021-10-19T07:55:21Z")

</div>

Hello! Is there a way to get a clipped heatmap in Makie? MWE would be: # Packages using GLMakie GLMakie.activate!() # Ranges a = -3:0.033:3 b = -3:0.033:3 # Function f(x,y) = (x\*y)/(1-abs(x+y)) # Plot \_fig = Figure(…

---

## [Renaming multiple csv files](https://discourse.julialang.org/t/renaming-multiple-csv-files/70005)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 7:09am UTC](https://discourse.julialang.org/t/renaming-multiple-csv-files/70005 "2021-10-19T07:09:15Z")

</div>

Hello, I am currently working with csv files in my directory with the following naming format (20200702pal.csv) corresponding to a particular day of the year. I would like to rename all the files by adding an underscor…

---

## [How can you add multiple hosts in JULIA\_NO\_VERIFY\_HOSTS?](https://discourse.julialang.org/t/how-can-you-add-multiple-hosts-in-julia-no-verify-hosts/70013)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 7:05am UTC](https://discourse.julialang.org/t/how-can-you-add-multiple-hosts-in-julia-no-verify-hosts/70013 "2021-10-19T07:05:06Z")

</div>

Apparently semi-colon is not a good separator:

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

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