# Latest

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

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

**Page:** 1784

---

## [Gradients of custom functions with Flux](https://discourse.julialang.org/t/gradients-of-custom-functions-with-flux/37041)

<div class="topic-metadata">

**Author:** [@snisher](https://discourse.julialang.org/u/snisher)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 4:46pm UTC](https://discourse.julialang.org/t/gradients-of-custom-functions-with-flux/37041 "2020-04-05T16:46:23Z")

</div>

Hi, I’m trying to implement MAML, but I’m getting an error when calculating a gradient using Flux. The error occurs when trying to get the gradient of another function, inner\_loop. Some research indicates this is an out…

---

## [Bug in var() when supplying means as vectors](https://discourse.julialang.org/t/bug-in-var-when-supplying-means-as-vectors/36979)

<div class="topic-metadata">

**Author:** [@gabehassler](https://discourse.julialang.org/u/gabehassler)\
**Replies:** 4\
**Last updated:** [April 5, 2020, 4:36pm UTC](https://discourse.julialang.org/t/bug-in-var-when-supplying-means-as-vectors/36979 "2020-04-05T16:36:32Z")

</div>

I’m trying to standardize (subtract the mean and divide by the standard deviation) of each column in a matrix. In doing so, I think I’v discovered a bug in the var() function when supplying the means. The following code…

---

## [Got good results for some tasks and got an error for other tasks in a job array?](https://discourse.julialang.org/t/got-good-results-for-some-tasks-and-got-an-error-for-other-tasks-in-a-job-array/37049)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 4:22pm UTC](https://discourse.julialang.org/t/got-good-results-for-some-tasks-and-got-an-error-for-other-tasks-in-a-job-array/37049 "2020-04-05T16:22:42Z")

</div>

I am using my university HPC cluster and I have a job array to do some similar optimization problems using the package Optim.jl. Tasks should use the same packages and etc. They should only differ in the starting values.…

---

## [SIR modeling in Soss](https://discourse.julialang.org/t/sir-modeling-in-soss/36680)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 16\
**Last updated:** [April 5, 2020, 3:31pm UTC](https://discourse.julialang.org/t/sir-modeling-in-soss/36680 "2020-04-05T15:31:10Z")

</div>

I spent some time yesterday getting as SIR epidemiology model working in Soss. I see this a lot as a differential equation, but that doesn’t make sense for real data, because what we really observe are counts. So I used …

---

## [StructArrays should be in Julia stdlib?](https://discourse.julialang.org/t/structarrays-should-be-in-julia-stdlib/37012)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 4\
**Last updated:** [April 5, 2020, 1:50pm UTC](https://discourse.julialang.org/t/structarrays-should-be-in-julia-stdlib/37012 "2020-04-05T13:50:15Z")

</div>

this package offers a functionality which is so commonly desirable and so ‘natural’ and that in my humble opinion makes this package worthy of being in the StdLib, what do you guys think?

---

## [JSON in Julia](https://discourse.julialang.org/t/json-in-julia/37016)

<div class="topic-metadata">

**Author:** [@JeffLYU](https://discourse.julialang.org/u/JeffLYU)\
**Replies:** 3\
**Last updated:** [April 5, 2020, 1:31pm UTC](https://discourse.julialang.org/t/json-in-julia/37016 "2020-04-05T13:31:33Z")

</div>

When i tried to install JSON, error message pop up, not sure how to fix it.

---

## [Compiling 1.3.1 fails with undefined LLVM error](https://discourse.julialang.org/t/compiling-1-3-1-fails-with-undefined-llvm-error/36985)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 12:23pm UTC](https://discourse.julialang.org/t/compiling-1-3-1-fails-with-undefined-llvm-error/36985 "2020-04-05T12:23:08Z")

</div>

About 2 months ago I compiled Julia1.3.1 from source, there was no problem. Now, Julia1.4.0 compiles from source, however checking out the 1.3.1 and compiling (same steps as before) gives an error about undefined refer…

---

## [Entrys with Gtk](https://discourse.julialang.org/t/entrys-with-gtk/37008)

<div class="topic-metadata">

**Author:** [@luanvehe9123](https://discourse.julialang.org/u/luanvehe9123)\
**Replies:** 3\
**Last updated:** [April 5, 2020, 11:06am UTC](https://discourse.julialang.org/t/entrys-with-gtk/37008 "2020-04-05T11:06:09Z")

</div>

Hello I am new in this software, I am designing an interfaz using Gtk, but I have some problems using entrys, I can´t do that my variables saves when I enter the numerical value in an entry. Help me please.

---

## [\[ANN\] AxisKeys.jl](https://discourse.julialang.org/t/ann-axiskeys-jl/37052)

<div class="topic-metadata">

**Author:** [@mcabbott](https://discourse.julialang.org/u/mcabbott)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 10:36am UTC](https://discourse.julialang.org/t/ann-axiskeys-jl/37052 "2020-04-05T10:36:46Z")

</div>

AxisKeys.jl is another take on roughly the problem addressed by AxisArrays.jl (and xarray), of storing a list of “keys” alongside each axis of a multi-dimensional array. This one tries to be simpler in that: There are…

---

## ["Your CUDA installation does not provide libcudadevrt" even though it is available in /usr/local/cuda-10.0](https://discourse.julialang.org/t/your-cuda-installation-does-not-provide-libcudadevrt-even-though-it-is-available-in-usr-local-cuda-10-0/37011)

<div class="topic-metadata">

**Author:** [@rmz](https://discourse.julialang.org/u/rmz)\
**Replies:** 4\
**Last updated:** [April 5, 2020, 10:19am UTC](https://discourse.julialang.org/t/your-cuda-installation-does-not-provide-libcudadevrt-even-though-it-is-available-in-usr-local-cuda-10-0/37011 "2020-04-05T10:19:16Z")

</div>

I’ve gotten access to a nice machine with a rack full of GPUs running ubuntu. However I can’t get Julia 1.4.0 to use any of the GPUs. Do you have any suggestions for investegations I could do to figure out what’s wrong…

---

## [Why does Pkg.update() downgrade from Flux0.10 to 0.8?](https://discourse.julialang.org/t/why-does-pkg-update-downgrade-from-flux0-10-to-0-8/37043)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 8:14am UTC](https://discourse.julialang.org/t/why-does-pkg-update-downgrade-from-flux0-10-to-0-8/37043 "2020-04-05T08:14:21Z")

</div>

Hello I just installed julia1.4 (mac), and was installing needed packages. From previous experience, I know that the thing to do is install Flux first, then install other packages, that way it will select compatible pa…

---

## [How to return the value and the weight of sampled element?](https://discourse.julialang.org/t/how-to-return-the-value-and-the-weight-of-sampled-element/36992)

<div class="topic-metadata">

**Author:** [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Replies:** 5\
**Last updated:** [April 5, 2020, 5:37am UTC](https://discourse.julialang.org/t/how-to-return-the-value-and-the-weight-of-sampled-element/36992 "2020-04-05T05:37:49Z")

</div>

I want to sample 1 element from values with specified weights: values=\[1,3,6,7,9\] weights=\[0.1,0,4,0.3,0.1,0.1\] I need to have access to the element sampled but also to its weight in weights. With the command using S…

---

## [Where is the compiler?](https://discourse.julialang.org/t/where-is-the-compiler/37042)

<div class="topic-metadata">

**Author:** [@Charles\_Parker](https://discourse.julialang.org/u/Charles_Parker)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 4:53am UTC](https://discourse.julialang.org/t/where-is-the-compiler/37042 "2020-04-05T04:53:35Z")

</div>

Installed JuliaPro 1.4.0-1 on Mac. I wish to run from the command line and don’t like IDEs. I need to add the path to the julia command to my bash\_profile. Where is it (the command not my profile:)? Thanx … Charlie

---

## [Multilple plots on the same gragh](https://discourse.julialang.org/t/multilple-plots-on-the-same-gragh/37040)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 1:15am UTC](https://discourse.julialang.org/t/multilple-plots-on-the-same-gragh/37040 "2020-04-05T01:15:16Z")

</div>

I’m able to graph two functions with plots using Plots U(E,W)= (40-E)^2/sqrt(W) #Utility function E = 0:40 W = 10:100 UC=contour(E,W,U) B(E,W)= -(40-E)/W # budget line function E = 0:40 BL=contour(E,W,B) How would I…

---

## [NLopt: Finding errors in objective function](https://discourse.julialang.org/t/nlopt-finding-errors-in-objective-function/37018)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 7\
**Last updated:** [April 4, 2020, 10:43pm UTC](https://discourse.julialang.org/t/nlopt-finding-errors-in-objective-function/37018 "2020-04-04T22:43:59Z")

</div>

When the objective function throws an exception, NLopt catches it and halts the optimization gracefully. The NLopt run produces no indication that anything went wrong, except for the FORCED\_STOP return value. How can I…

---

## [Plot Nedelec edge elements (Makie)](https://discourse.julialang.org/t/plot-nedelec-edge-elements-makie/36988)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 8:29pm UTC](https://discourse.julialang.org/t/plot-nedelec-edge-elements-makie/36988 "2020-04-04T20:29:23Z")

</div>

How can I plot Nedelec finite element data in Julia, preferably with Makie? So far, I’ve been using the standard Lagrangian finite elements which can be plotted with nodal data points using Makie. Now, I’d like to plot t…

---

## [Check if a solver supports VariablePrimalStart](https://discourse.julialang.org/t/check-if-a-solver-supports-variableprimalstart/37015)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 9:32pm UTC](https://discourse.julialang.org/t/check-if-a-solver-supports-variableprimalstart/37015 "2020-04-04T21:32:49Z")

</div>

Is there a way to check if a solver supports MOI.VariablePrimalStart? Something like this: MOI.supports(JuMP.backend(m), MOI.VariablePrimalStart) but it seems that I’m missing something:

---

## [Standardize dataset with StatsBase](https://discourse.julialang.org/t/standardize-dataset-with-statsbase/37034)

<div class="topic-metadata">

**Author:** [@alequa](https://discourse.julialang.org/u/alequa)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 8:00pm UTC](https://discourse.julialang.org/t/standardize-dataset-with-statsbase/37034 "2020-04-04T20:00:00Z")

</div>

Hi, I am trying to apply this standardization scheme where you standardize the test set on the base of the train set. I am trying to do this with the ZScoreTransform of StatsBase, but I encounter this trouble. # usin…

---

## [Specify both an upper and a lower bound in Project.toml?](https://discourse.julialang.org/t/specify-both-an-upper-and-a-lower-bound-in-project-toml/37027)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 3\
**Last updated:** [April 4, 2020, 7:57pm UTC](https://discourse.julialang.org/t/specify-both-an-upper-and-a-lower-bound-in-project-toml/37027 "2020-04-04T19:57:59Z")

</div>

How do you specify numeric values for both an upper and a lower bound for a package in Project.toml? In particular, I would like to specify that a package is compatible with 1.90 ≤ PyCall \< 2. My first thought was PyC…

---

## [SharedArrays at Ditributed, what wrong?](https://discourse.julialang.org/t/sharedarrays-at-ditributed-what-wrong/37030)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [April 4, 2020, 7:32pm UTC](https://discourse.julialang.org/t/sharedarrays-at-ditributed-what-wrong/37030 "2020-04-04T19:32:22Z")

</div>

This code not copmpute , what wrong ? Function badaj55() take vector with 8 Floats and Return tuple with Float. julia\> typeof(granice) SharedArray{Float64,2} julia\> typeof(test) SharedArray{Float64,1} julia\> typeof(t…

---

## [Welcome Logan as our new community manager](https://discourse.julialang.org/t/welcome-logan-as-our-new-community-manager/35238)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 13\
**Last updated:** [April 4, 2020, 4:44pm UTC](https://discourse.julialang.org/t/welcome-logan-as-our-new-community-manager/35238 "2020-04-04T16:44:34Z")

</div>

Folks, Some of you may recollect that Alex was our first community manager, and is our current release manager, along with Kristoffer. Since our community has grown tremendously in these last two years, and we have an …

---

## [Can't write to distributed array](https://discourse.julialang.org/t/cant-write-to-distributed-array/36978)

<div class="topic-metadata">

**Author:** [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 1:39pm UTC](https://discourse.julialang.org/t/cant-write-to-distributed-array/36978 "2020-04-04T13:39:25Z")

</div>

I’ve been experimenting with distributed arrays. I can create them just fine, but when I try to have a worker write to a part of a distributed array that it owns, I get an setindex! not defined for DArray error. Here’s …

---

## [Module Keyword Usage](https://discourse.julialang.org/t/module-keyword-usage/37003)

<div class="topic-metadata">

**Author:** [@Obtuya7](https://discourse.julialang.org/u/Obtuya7)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 12:28pm UTC](https://discourse.julialang.org/t/module-keyword-usage/37003 "2020-04-04T12:28:19Z")

</div>

I’m new to programming in general so please excuse my ignorance. So, I’m trying to get acclimated to module/package building by studying projects on github. I found that JuliaFEM.jl is implementing what would seem to be…

---

## [Issue with Upgrading to 1.4 on MacOS Catalina](https://discourse.julialang.org/t/issue-with-upgrading-to-1-4-on-macos-catalina/36969)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 5\
**Last updated:** [April 4, 2020, 9:55am UTC](https://discourse.julialang.org/t/issue-with-upgrading-to-1-4-on-macos-catalina/36969 "2020-04-04T09:55:35Z")

</div>

I decided to finally upgrade from 1.3 to 1.4 on my computer today and ran into a few issues. The first was fairly easy to handle, the usual notarization stuff. But after that, Julia could just never seem to launch, oft…

---

## [Function for clearing console in Juno](https://discourse.julialang.org/t/function-for-clearing-console-in-juno/2803)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [April 4, 2020, 4:40am UTC](https://discourse.julialang.org/t/function-for-clearing-console-in-juno/2803 "2020-04-04T04:40:50Z")

</div>

Hi- I am wondering if there is a way to clear the console in Juno via a function call. For example, it is possible to clear the REPL with the following function: clear() = run(@static is\_unix() ? clear : cmd /c cls) …

---

## [Printf as a dependency missing? It is there!](https://discourse.julialang.org/t/printf-as-a-dependency-missing-it-is-there/36998)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 2:49am UTC](https://discourse.julialang.org/t/printf-as-a-dependency-missing-it-is-there/36998 "2020-04-04T02:49:34Z")

</div>

This really puzzles me. There is this error message: $ ~/AppData/Local/Programs/Julia/Julia-1.4.0/bin/julia.exe run.jl Activating environment at \`C:\\Users\\PKrysl\\Documents\\work\\RunMultimaterialVibEP.jl\\Project.toml\` ┌ …

---

## [Empty a queue](https://discourse.julialang.org/t/empty-a-queue/36991)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 5\
**Last updated:** [April 4, 2020, 1:39am UTC](https://discourse.julialang.org/t/empty-a-queue/36991 "2020-04-04T01:39:55Z")

</div>

Apparently, there is no way to empty! a queue. Doc for DataStructures.jl shows an empty! method for a stack, but not for a queue. It is quite difficult to tell what sort of beast a queue is since it wraps dequeue. Whe…

---

## [Current State of Live Plots in Atom/Juno?](https://discourse.julialang.org/t/current-state-of-live-plots-in-atom-juno/30379)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 11\
**Last updated:** [April 4, 2020, 12:10am UTC](https://discourse.julialang.org/t/current-state-of-live-plots-in-atom-juno/30379 "2020-04-04T00:10:30Z")

</div>

What is the current status of live plotting/updating plots in Juno/Atom? My ultimate hope is to have low latency 3-D scatter plots. So far I’ve tried every example I can involving tricks with GR, using gui(), etc. Then …

---

## [Flux custom layers - incorrect solution from training](https://discourse.julialang.org/t/flux-custom-layers-incorrect-solution-from-training/36993)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 0\
**Last updated:** [April 3, 2020, 11:21pm UTC](https://discourse.julialang.org/t/flux-custom-layers-incorrect-solution-from-training/36993 "2020-04-03T23:21:20Z")

</div>

My real goal is to include layers with matrices computed from known physics solutions; the training will then determine physical parameters appearing in the equations used to compute the matrix elements. To get started,…

---

## [Gitter Login Issues](https://discourse.julialang.org/t/gitter-login-issues/34972)

<div class="topic-metadata">

**Author:** [@LispyArnuld](https://discourse.julialang.org/u/LispyArnuld)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 10:09pm UTC](https://discourse.julialang.org/t/gitter-login-issues/34972 "2020-04-03T22:09:37Z")

</div>

I wanted to chat on Julia community on gitter here: https://gitter.im/JuliaLang/julia but login is forbidden. Does anyone how to solve this?

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

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