# Latest

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

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

**Page:** 1289

---

## [Non-linear gradient descent under linear constraints?](https://discourse.julialang.org/t/non-linear-gradient-descent-under-linear-constraints/66965)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 9\
**Last updated:** [August 25, 2021, 1:46pm UTC](https://discourse.julialang.org/t/non-linear-gradient-descent-under-linear-constraints/66965 "2021-08-25T13:46:19Z")

</div>

Hey, Is there a pure julia implementation of a non-linear gradient descent under linear matrix/vector equality and inequality constraints ? My problem is given as : \\min\\limits\_{Ax=b,\\, x\\ge 0}\\, f(x) where f is non-…

---

## [ANN: NaiveNASlib, NaiveNASflux, NaiveGAflux: Tools for network surgery and neural architecture search](https://discourse.julialang.org/t/ann-naivenaslib-naivenasflux-naivegaflux-tools-for-network-surgery-and-neural-architecture-search/31283)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 1:17pm UTC](https://discourse.julialang.org/t/ann-naivenaslib-naivenasflux-naivegaflux-tools-for-network-surgery-and-neural-architecture-search/31283 "2021-08-25T13:17:11Z")

</div>

Hi All, I have made a trio of packages for neural architecture search, mostly because I fell in love with the language and couldn’t think of anything more useful to do which wasn’t already done (and maybe a little bit b…

---

## [How to annotate with arrows in Julia Plots?](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931)

<div class="topic-metadata">

**Author:** [@Minimum-Pollution-96](https://discourse.julialang.org/u/Minimum-Pollution-96)\
**Replies:** 1\
**Last updated:** [August 24, 2021, 7:39pm UTC](https://discourse.julialang.org/t/how-to-annotate-with-arrows-in-julia-plots/66931 "2021-08-24T19:39:55Z")

</div>

Is there a way to achieve annotations similar to matplotlib without switching the backends for Plots? I am especially looking for a way to annotate with arrows. The current method as seen in docs seems to support only te…

---

## [Differences in A \\ b for sparse and nonsparse rank-deficient A](https://discourse.julialang.org/t/differences-in-a-b-for-sparse-and-nonsparse-rank-deficient-a/66917)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 4\
**Last updated:** [August 25, 2021, 12:28pm UTC](https://discourse.julialang.org/t/differences-in-a-b-for-sparse-and-nonsparse-rank-deficient-a/66917 "2021-08-25T12:28:05Z")

</div>

I have a question regarding the operator \\ for SpareseMatrixCSC. Thanks for your help. using LinearAlgebra, SparseArrays Is = \[9, 8, 9, 12, 2, 5, 6, 11, 8, 12\] Js = \[1, 3, 4, 4, 5, 5, 7, 7, 10, 10\] Vs = \[0.046668312772…

---

## [\[ANN\] JuliaFromMATLAB.jl - Call Julia from MATLAB](https://discourse.julialang.org/t/ann-juliafrommatlab-jl-call-julia-from-matlab/66882)

<div class="topic-metadata">

**Author:** [@jondeuce](https://discourse.julialang.org/u/jondeuce)\
**Replies:** 7\
**Last updated:** [August 25, 2021, 11:50am UTC](https://discourse.julialang.org/t/ann-juliafrommatlab-jl-call-julia-from-matlab/66882 "2021-08-25T11:50:24Z")

</div>

Inspired by this recent discussion regarding the state of calling Julia from MATLAB, I have put together a package to try to resolve some of the issues faced by previous approaches: JuliaFromMATLAB.jl. Please scroll down…

---

## [Gradient not zero when optimizing function](https://discourse.julialang.org/t/gradient-not-zero-when-optimizing-function/66972)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 11:34am UTC](https://discourse.julialang.org/t/gradient-not-zero-when-optimizing-function/66972 "2021-08-25T11:34:47Z")

</div>

I am optimizing a function. The algorithm finds a solution, but the gradient at the solution is not close to zero. What can be done in that case? sol3 = optimize(θ -\> -obj(θ), sol1.minimizer, NewtonTrustRegion(), …

---

## [Makie mouse events during drag](https://discourse.julialang.org/t/makie-mouse-events-during-drag/66726)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 13\
**Last updated:** [August 25, 2021, 11:26am UTC](https://discourse.julialang.org/t/makie-mouse-events-during-drag/66726 "2021-08-25T11:26:13Z")

</div>

I am trying to implement a crosshair, which is updated during a mouse click but can also be “dragged”. However, register\_interaction!(ax, :my\_mouse\_interaction) do event::MouseEvent does not seem to yield any MouseEvent…

---

## [How to print some elements of array in one line in a file?](https://discourse.julialang.org/t/how-to-print-some-elements-of-array-in-one-line-in-a-file/66895)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 17\
**Last updated:** [August 25, 2021, 8:29am UTC](https://discourse.julialang.org/t/how-to-print-some-elements-of-array-in-one-line-in-a-file/66895 "2021-08-25T08:29:53Z")

</div>

I have a small question which is a little similar with not the same as and Here is the thing, I can manually input 1.0, 2.0, 3.0, 4.0, and print them in one line and in a file called fileout.txt, here is the code, s…

---

## [Apply array function such as fft to nested array](https://discourse.julialang.org/t/apply-array-function-such-as-fft-to-nested-array/66935)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 8:02am UTC](https://discourse.julialang.org/t/apply-array-function-such-as-fft-to-nested-array/66935 "2021-08-25T08:02:21Z")

</div>

I have an array A of 2-SVectors. I’d like to apply fft component-wise, namely, something like fft(A\[:,:\]\[1\]) and fft(A\[:,:\]\[2\]) and put them together again as nested array of vectors. It is best if this can be done in-pl…

---

## [Newcomers, Julia, Go and web-development](https://discourse.julialang.org/t/newcomers-julia-go-and-web-development/57074)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 7:45am UTC](https://discourse.julialang.org/t/newcomers-julia-go-and-web-development/57074 "2021-08-25T07:45:35Z")

</div>

One of most frequent questions that I get from people interested in Julia, for example on the chat of “Julia Beginners AMA”, is “Is Julia good for web-development?”. I’m not into web-development, so I don’t have knowledg…

---

## [Visualizing Matrix Transformations in Julia](https://discourse.julialang.org/t/visualizing-matrix-transformations-in-julia/66957)

<div class="topic-metadata">

**Author:** [@aburousan](https://discourse.julialang.org/u/aburousan)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 7:45am UTC](https://discourse.julialang.org/t/visualizing-matrix-transformations-in-julia/66957 "2021-08-25T07:45:24Z")

</div>

I am new to julia. I have used manim in python. There we can visualize matrix transformation using a 2d grid and it’s transformation. Can we do the same in Julia?, Can someone help a bit?

---

## [Cant install Pluto in Julia](https://discourse.julialang.org/t/cant-install-pluto-in-julia/66953)

<div class="topic-metadata">

**Author:** [@Ismael](https://discourse.julialang.org/u/Ismael)\
**Replies:** 2\
**Last updated:** [August 25, 2021, 5:55am UTC](https://discourse.julialang.org/t/cant-install-pluto-in-julia/66953 "2021-08-25T05:55:00Z")

</div>

Hello I am trying to install pluto in julia 1.6.2 and I cant? Can somebody help me. I am using windows 10 this is the error mesage Version 1.6.2 (2021-07-14) / |\_‘|||\_’\_| | Official https://julialang.org/ release …

---

## [Train neural ODE with mini-batch in different initial conditions](https://discourse.julialang.org/t/train-neural-ode-with-mini-batch-in-different-initial-conditions/66854)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 2:53am UTC](https://discourse.julialang.org/t/train-neural-ode-with-mini-batch-in-different-initial-conditions/66854 "2021-08-25T02:53:08Z")

</div>

Hi, I am trying to train a neural ODE with mini-batch in different initial conditions. I found some tutorials regarding mini-batch but they are mostly focusing on batching different time points with the a single initial…

---

## [A demo is 1.5x faster in Flux than tensorflow, both use cpu; while 3.0x slower during using CUDA](https://discourse.julialang.org/t/a-demo-is-1-5x-faster-in-flux-than-tensorflow-both-use-cpu-while-3-0x-slower-during-using-cuda/66703)

<div class="topic-metadata">

**Author:** [@HANHAOHAN](https://discourse.julialang.org/u/HANHAOHAN)\
**Replies:** 5\
**Last updated:** [August 25, 2021, 2:30am UTC](https://discourse.julialang.org/t/a-demo-is-1-5x-faster-in-flux-than-tensorflow-both-use-cpu-while-3-0x-slower-during-using-cuda/66703 "2021-08-25T02:30:41Z")

</div>

using Flux using CUDA data = randn(Float32, 2, 100000) |\> gpu y = reshape(sin.(data\[1,:\] .\* data\[2,:\]), (1, size(data)\[2\])) |\> gpu model = Chain( Dense(2, 10, relu), Dense(10, 10, relu), Dense(10, 10, relu), Dense(10, 10…

---

## [Adding a parameter to a function - how to think about dispatch?](https://discourse.julialang.org/t/adding-a-parameter-to-a-function-how-to-think-about-dispatch/66892)

<div class="topic-metadata">

**Author:** [@banksiaboy](https://discourse.julialang.org/u/banksiaboy)\
**Replies:** 7\
**Last updated:** [August 25, 2021, 12:02am UTC](https://discourse.julialang.org/t/adding-a-parameter-to-a-function-how-to-think-about-dispatch/66892 "2021-08-25T00:02:33Z")

</div>

I’m working my way through the 2021 Computational Thinking course. In the transformations: II - Functions with parameters section I’m not really understanding what I can do when parameterising a multiply-dispatched vari…

---

## [PlotlyJS: how to make a responsive chart?](https://discourse.julialang.org/t/plotlyjs-how-to-make-a-responsive-chart/66942)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 10:42pm UTC](https://discourse.julialang.org/t/plotlyjs-how-to-make-a-responsive-chart/66942 "2021-08-24T22:42:19Z")

</div>

Hi, I am trying to make a plot produced by PlotlyBase (in Pluto), or by PlotlyJS in VSCode, responsive to the size of the chart when is exported as an HTML file or when its size is changed in the Electron window. In the…

---

## [Why isn't pkg\> activate creating a new environment?](https://discourse.julialang.org/t/why-isnt-pkg-activate-creating-a-new-environment/66944)

<div class="topic-metadata">

**Author:** [@cybervigilante](https://discourse.julialang.org/u/cybervigilante)\
**Replies:** 7\
**Last updated:** [August 24, 2021, 9:47pm UTC](https://discourse.julialang.org/t/why-isnt-pkg-activate-creating-a-new-environment/66944 "2021-08-24T21:47:49Z")

</div>

I’m using https://pkgdocs.julialang.org/v1/environments/ to make a new project directory, clean of all my added packages. I do: cd("MyNewProj") pkg\> activate\`\`\` Thinking I'd have a clean environment, but pkg\> st sho…

---

## [Is there an IDE that can statically determine undefined variables in function, and auto-complete structs?](https://discourse.julialang.org/t/is-there-an-ide-that-can-statically-determine-undefined-variables-in-function-and-auto-complete-structs/66941)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 9\
**Last updated:** [August 24, 2021, 9:36pm UTC](https://discourse.julialang.org/t/is-there-an-ide-that-can-statically-determine-undefined-variables-in-function-and-auto-complete-structs/66941 "2021-08-24T21:36:07Z")

</div>

For example, suppose I have following code: struct Param # used to hold global variables n\_days::Int n\_segments::Int end function f(a, b, c) d + 1 end I wonder if there is an IDE that can do following: …

---

## [Pluto - Is possible to Auto Numbering for Headings?](https://discourse.julialang.org/t/pluto-is-possible-to-auto-numbering-for-headings/66504)

<div class="topic-metadata">

**Author:** [@eduardovrs](https://discourse.julialang.org/u/eduardovrs)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 8:17pm UTC](https://discourse.julialang.org/t/pluto-is-possible-to-auto-numbering-for-headings/66504 "2021-08-24T20:17:27Z")

</div>

Is it possible that Pluto or PlutoUI automatically number the headings? I tried something like this post AutoNumbering, but only work is all text is in one cell. Thank you in advance for the help! Eduardo

---

## [Julia HTTP not working](https://discourse.julialang.org/t/julia-http-not-working/66899)

<div class="topic-metadata">

**Author:** [@Huvinesh-Rajendran](https://discourse.julialang.org/u/Huvinesh-Rajendran)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 7:34pm UTC](https://discourse.julialang.org/t/julia-http-not-working/66899 "2021-08-24T19:34:12Z")

</div>

As you can see in the above image, my HTTP package does not seem to work. I’m using Julia 1.6.2 and HTTP 0.9.

---

## [Minimal working example that demonstrates the danger of type piracy](https://discourse.julialang.org/t/minimal-working-example-that-demonstrates-the-danger-of-type-piracy/66922)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 9\
**Last updated:** [August 24, 2021, 7:08pm UTC](https://discourse.julialang.org/t/minimal-working-example-that-demonstrates-the-danger-of-type-piracy/66922 "2021-08-24T19:08:32Z")

</div>

I understand what type piracy is, but I’m still hazy on exactly what sort of problems it can cause. Can someone provide a minimal working example that demonstrates the unexpected behavior that can result from type piracy…

---

## [Why is collect(1:3) === \[1, 2, 3\] false?](https://discourse.julialang.org/t/why-is-collect-1-3-1-2-3-false/66915)

<div class="topic-metadata">

**Author:** [@LeePhillips](https://discourse.julialang.org/u/LeePhillips)\
**Replies:** 11\
**Last updated:** [August 24, 2021, 5:55pm UTC](https://discourse.julialang.org/t/why-is-collect-1-3-1-2-3-false/66915 "2021-08-24T17:55:48Z")

</div>

Both sides of the comparison have the same values and the same type. I must not understand === correctly.

---

## [ERROR: MethodError: no method matching enable\_finalizers()](https://discourse.julialang.org/t/error-methoderror-no-method-matching-enable-finalizers/66928)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:42pm UTC](https://discourse.julialang.org/t/error-methoderror-no-method-matching-enable-finalizers/66928 "2021-08-24T18:42:04Z")

</div>

I try to use LinearAlgebra.LAPACK.potrf!('U', A) and get: ERROR: MethodError: no method matching enable\_finalizers() Closest candidates are: enable\_finalizers(::Bool) at gcutils.jl:117 Stacktrace: \[1\] (::CUDA.APIUti…

---

## [Transducers and reduct-like reduction](https://discourse.julialang.org/t/transducers-and-reduct-like-reduction/66070)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 6:26pm UTC](https://discourse.julialang.org/t/transducers-and-reduct-like-reduction/66070 "2021-08-24T18:26:08Z")

</div>

Dear All, this question is mainly for @tkf . I would like to ask, if some there is a reducer in Transducers.jl that would implement reduce-like paralelism. Using your example, I am looking for this: (a + b) + (c + d) …

---

## [Confusing error, or how to clear stale compiler state](https://discourse.julialang.org/t/confusing-error-or-how-to-clear-stale-compiler-state/66348)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:00pm UTC](https://discourse.julialang.org/t/confusing-error-or-how-to-clear-stale-compiler-state/66348 "2021-08-24T18:00:47Z")

</div>

I think I’m having a problem with some stale compilation state. This is in julia version 1.6.0. When I run my unit tests I get this error: Testing Running tests... ERROR: LoadError: LoadError: syntax: invalid int…

---

## [Unpacking Matrix Columns as Vector Arguments](https://discourse.julialang.org/t/unpacking-matrix-columns-as-vector-arguments/66897)

<div class="topic-metadata">

**Author:** [@danphenderson](https://discourse.julialang.org/u/danphenderson)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 5:45pm UTC](https://discourse.julialang.org/t/unpacking-matrix-columns-as-vector-arguments/66897 "2021-08-24T17:45:04Z")

</div>

I am trying to unpack the columns of a matrix S into the ForwardDiff.Dual{T} constructor. I have tried numerous different approaches without success. Specifically, I want a function that does the following: function gA…

---

## [\[ANN\] Escher.jl: Plot metabolic maps using Makie](https://discourse.julialang.org/t/ann-escher-jl-plot-metabolic-maps-using-makie/66927)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 5:08pm UTC](https://discourse.julialang.org/t/ann-escher-jl-plot-metabolic-maps-using-makie/66927 "2021-08-24T17:08:38Z")

</div>

Escher.jl is a small recipe package that plots metabolic networks and their associated data using the awesome Makie. In short, metabolic maps, like those found on the website Escher, can be plotted from the comfort of Ju…

---

## [How can I replace values in a column with a dictionary?](https://discourse.julialang.org/t/how-can-i-replace-values-in-a-column-with-a-dictionary/66914)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 4:53pm UTC](https://discourse.julialang.org/t/how-can-i-replace-values-in-a-column-with-a-dictionary/66914 "2021-08-24T16:53:51Z")

</div>

Hi, I would like to replace every elements from a column in a Julia Dataframe using a dictionary. I found the function “replace” but didn’t understand how it use.

---

## [Cannot install Revise due to CUDA unknown version?](https://discourse.julialang.org/t/cannot-install-revise-due-to-cuda-unknown-version/66923)

<div class="topic-metadata">

**Author:** [@DiracFermion1](https://discourse.julialang.org/u/DiracFermion1)\
**Replies:** 0\
**Last updated:** [August 24, 2021, 4:43pm UTC](https://discourse.julialang.org/t/cannot-install-revise-due-to-cuda-unknown-version/66923 "2021-08-24T16:43:18Z")

</div>

Hi, I am trying to install Revise package for module reloading, but when I run: import Pkg; Pkg.add("Revise"), it gives following error: Resolving package versions... Unsatisfiable requirements detected for package CUD…

---

## [Simplify type information when reinterpreting/reshaping](https://discourse.julialang.org/t/simplify-type-information-when-reinterpreting-reshaping/66909)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [August 24, 2021, 3:58pm UTC](https://discourse.julialang.org/t/simplify-type-information-when-reinterpreting-reshaping/66909 "2021-08-24T15:58:09Z")

</div>

I frequently have to do things like this: julia\> x = rand(3,10) 3×10 Matrix{Float64}: 0.233999 0.217953 0.391807 0.396972 0.612708 0.344216 0.513826 0.724808 0.222591 0.668894 0.152236 0.0596347 0.297019 …

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

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