# Latest

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

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

**Page:** 1090

---

## [ForwardDiff and Zygote return wrong jacobian for log(det(L))](https://discourse.julialang.org/t/forwarddiff-and-zygote-return-wrong-jacobian-for-log-det-l/77961)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.julialang.org/u/spinkney)\
**Replies:** 9\
**Last updated:** [March 22, 2022, 6:51pm UTC](https://discourse.julialang.org/t/forwarddiff-and-zygote-return-wrong-jacobian-for-log-det-l/77961 "2022-03-22T18:51:43Z")

</div>

I’m no expert in matrix derivatives so I may have made a mistake. The derivative of the log determinant of a Cholesky factor is \\frac{\\partial \\log|L|}{\\partial L} = L^{-T} using a toy example in Julia using Zygote S…

---

## ["connection refused (ECONNREFUSED)" when trying to mpirun julia on multiple nodes](https://discourse.julialang.org/t/connection-refused-econnrefused-when-trying-to-mpirun-julia-on-multiple-nodes/78253)

<div class="topic-metadata">

**Author:** [@knkn1711](https://discourse.julialang.org/u/knkn1711)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 5:54pm UTC](https://discourse.julialang.org/t/connection-refused-econnrefused-when-trying-to-mpirun-julia-on-multiple-nodes/78253 "2022-03-22T17:54:50Z")

</div>

I am trying to run my julia code on multiple nodes of a cluster, which uses Moab and Torque for the scheduler and resource manager. In an interactive session I run the following: qsub -A open -l walltime=1:00:00 -l node…

---

## [IJulia kernel - JULIA\_LOAD\_PATH &| JULIA\_DEPOT\_PATH ignored/irrelevant -?](https://discourse.julialang.org/t/ijulia-kernel-julia-load-path-julia-depot-path-ignored-irrelevant/78289)

<div class="topic-metadata">

**Author:** [@lejeczek](https://discourse.julialang.org/u/lejeczek)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 5:04pm UTC](https://discourse.julialang.org/t/ijulia-kernel-julia-load-path-julia-depot-path-ignored-irrelevant/78289 "2022-03-22T17:04:29Z")

</div>

Hi guys. Only have just started looking at Julia and ain’t a programmer and have this, most likely trivial, question. I set those envs: export JULIA\_LOAD\_PATH=“/opt/share/julia/extralib:$JULIA\_LOAD\_PATH” export JULIA…

---

## [Which low latency library for drawing polygon on image + extracting values?](https://discourse.julialang.org/t/which-low-latency-library-for-drawing-polygon-on-image-extracting-values/78291)

<div class="topic-metadata">

**Author:** [@Klaas\_Pauly](https://discourse.julialang.org/u/Klaas_Pauly)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 5:11pm UTC](https://discourse.julialang.org/t/which-low-latency-library-for-drawing-polygon-on-image-extracting-values/78291 "2022-03-22T17:11:16Z")

</div>

I’m looking for a solution similar to R’s clickpoly from spatstat.geom (for those familiar with it). The goal is to let a user draw a polygon on a displayed image (greyscale or heatmap) by clicking the desired vertex poi…

---

## [Occupancy model - jags to julia - NUTS sampler](https://discourse.julialang.org/t/occupancy-model-jags-to-julia-nuts-sampler/78287)

<div class="topic-metadata">

**Author:** [@oldev](https://discourse.julialang.org/u/oldev)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 4:44pm UTC](https://discourse.julialang.org/t/occupancy-model-jags-to-julia-nuts-sampler/78287 "2022-03-22T16:44:51Z")

</div>

I am trying to translate an occupancy model from jags to julia and arrived at the following code: @model function model1(y, n\_cells, n\_years, n\_traps, n\_period, z, z\_su, ::Type{T} = Float64) where {T} # # -- define …

---

## [Odd point-connection in plots (package vs interactive)](https://discourse.julialang.org/t/odd-point-connection-in-plots-package-vs-interactive/78271)

<div class="topic-metadata">

**Author:** [@dankelley](https://discourse.julialang.org/u/dankelley)\
**Replies:** 4\
**Last updated:** [March 22, 2022, 4:13pm UTC](https://discourse.julialang.org/t/odd-point-connection-in-plots-package-vs-interactive/78271 "2022-03-22T16:13:58Z")

</div>

I’m an oceanographer with quite a lot of experience in R, and I’m doing some computations in Julia (rather than C, my old standby), so I’d like to be able to make oceanographic plots in Julia. I’m sure my methods are te…

---

## [Scope in multithreading](https://discourse.julialang.org/t/scope-in-multithreading/78276)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 9\
**Last updated:** [March 22, 2022, 3:14pm UTC](https://discourse.julialang.org/t/scope-in-multithreading/78276 "2022-03-22T15:14:12Z")

</div>

a rather basic question about scope in multithreading: a = 0.0 Threads.@threads for i in 1:10 b = fun(i) a += b end in the above code: is a global and shared by all threads? is b local to each thread? i.e. a …

---

## [\[ANN\] Makie.jl 0.16](https://discourse.julialang.org/t/ann-makie-jl-0-16/77996)

<div class="topic-metadata">

**Author:** [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Replies:** 9\
**Last updated:** [March 22, 2022, 2:58pm UTC](https://discourse.julialang.org/t/ann-makie-jl-0-16/77996 "2022-03-22T14:58:27Z")

</div>

A belated release announcement for Makie 0.16! It got held up by my desire to create an announcement blogpost via a new Makie blog created with JSServe (thanks to @piever and @jules it even looks half decent) - which wa…

---

## [Specializing on keyword arguments](https://discourse.julialang.org/t/specializing-on-keyword-arguments/78263)

<div class="topic-metadata">

**Author:** [@etienne\_dg](https://discourse.julialang.org/u/etienne_dg)\
**Replies:** 7\
**Last updated:** [March 22, 2022, 2:44pm UTC](https://discourse.julialang.org/t/specializing-on-keyword-arguments/78263 "2022-03-22T14:44:37Z")

</div>

I have a function f(a; b=default\_b, c=default\_c), and want to implement a method f(a) = f(a, b=default\_b, c=c\_specialized\_for\_default\_b), which should override f when neither b and c are provided. If I implement it lik…

---

## [Old question: How to clear the custom function in Julia REPL?](https://discourse.julialang.org/t/old-question-how-to-clear-the-custom-function-in-julia-repl/77848)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 5\
**Last updated:** [March 22, 2022, 2:39pm UTC](https://discourse.julialang.org/t/old-question-how-to-clear-the-custom-function-in-julia-repl/77848 "2022-03-22T14:39:44Z")

</div>

How do you remove a function you have created when working in the Julia REPL? Can this be done without restarting the session? This is an old question several years ago. I just want to check if there is new updates in J…

---

## [Recording Output of parameter estimation](https://discourse.julialang.org/t/recording-output-of-parameter-estimation/78277)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 2:13pm UTC](https://discourse.julialang.org/t/recording-output-of-parameter-estimation/78277 "2022-03-22T14:13:44Z")

</div>

Hi All! My question is about when using Black Box Optim is it possible at all the record the output of every parameter vector that is estimated. The end intention is that I would be able to create a scatter plot of the…

---

## [Looping a Dictionary prints the 2nd element first](https://discourse.julialang.org/t/looping-a-dictionary-prints-the-2nd-element-first/78275)

<div class="topic-metadata">

**Author:** [@LispyArnuld](https://discourse.julialang.org/u/LispyArnuld)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 1:35pm UTC](https://discourse.julialang.org/t/looping-a-dictionary-prints-the-2nd-element-first/78275 "2022-03-22T13:35:46Z")

</div>

If I create a dictionary and then loop over it using a for loop, I expect the printing to go in order from first element to last. Here it’s different. Second element is being printed first by for loop. I wonder why. jul…

---

## [Column names in dataframe](https://discourse.julialang.org/t/column-names-in-dataframe/78272)

<div class="topic-metadata">

**Author:** [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Replies:** 4\
**Last updated:** [March 22, 2022, 1:30pm UTC](https://discourse.julialang.org/t/column-names-in-dataframe/78272 "2022-03-22T13:30:43Z")

</div>

Is there any function in Julia to print column names of dataframe ? I used names(dataframe) - It gave me the desired output but my dataframe contains 67 features, however the function printed few of them. How to get al…

---

## [How to query with multiple conditions with Query.jl?](https://discourse.julialang.org/t/how-to-query-with-multiple-conditions-with-query-jl/78240)

<div class="topic-metadata">

**Author:** [@SubTer](https://discourse.julialang.org/u/SubTer)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 12:50pm UTC](https://discourse.julialang.org/t/how-to-query-with-multiple-conditions-with-query-jl/78240 "2022-03-22T12:50:35Z")

</div>

hey, hoping someone can help me out with the syntax Julia Query uses, or maybe I am missing something, but basically trying to replicate a query command using contains, instead of having bunch of “||” statements. examp…

---

## [Options for large-scale dense linear algebra](https://discourse.julialang.org/t/options-for-large-scale-dense-linear-algebra/78227)

<div class="topic-metadata">

**Author:** [@wcwitt](https://discourse.julialang.org/u/wcwitt)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 10:18am UTC](https://discourse.julialang.org/t/options-for-large-scale-dense-linear-algebra/78227 "2022-03-22T10:18:06Z")

</div>

My team is trying to identify options for dense-matrix distributed linear algebra on ~100s-1000s of CPU cores spread over multiple nodes. We are hoping for at least QR and Cholesky factorization, as well as linear equati…

---

## [Large allocations for imported text files](https://discourse.julialang.org/t/large-allocations-for-imported-text-files/78239)

<div class="topic-metadata">

**Author:** [@Jdbeck66](https://discourse.julialang.org/u/Jdbeck66)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 12:17pm UTC](https://discourse.julialang.org/t/large-allocations-for-imported-text-files/78239 "2022-03-22T12:17:46Z")

</div>

I’m importing 6 text files that are each between 5 and 8 GB each using BioJulia’s FASTX. I’m using the code below to read in the data I want to an array for further analysis and processing. function getsequences(file,W…

---

## [Numerical differentiation with bump size](https://discourse.julialang.org/t/numerical-differentiation-with-bump-size/78254)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 9:30am UTC](https://discourse.julialang.org/t/numerical-differentiation-with-bump-size/78254 "2022-03-22T09:30:16Z")

</div>

Is there a numerical differentiation package that allows you to specify the size of the bump ? I’d like to do f(x + d) - f(x) and specify the d (e.g. 0.001) FiniteDifferences seems to focus on approxim…

---

## [Find which constrains are violated in an IPOPT JuMP model](https://discourse.julialang.org/t/find-which-constrains-are-violated-in-an-ipopt-jump-model/78228)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 2\
**Last updated:** [March 22, 2022, 8:35am UTC](https://discourse.julialang.org/t/find-which-constrains-are-violated-in-an-ipopt-jump-model/78228 "2022-03-22T08:35:31Z")

</div>

I have a model I’m trying to optimise which is returning “LOCALLY\_INFEASIBLE”. When using a linear solver like Gurobi at this point I’d compute conflicts, I appreciate this isn’t possible when working with a non-linear I…

---

## [Fill missing kwarg in vcat function when cols = :union](https://discourse.julialang.org/t/fill-missing-kwarg-in-vcat-function-when-cols-union/78214)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 3\
**Last updated:** [March 22, 2022, 8:39am UTC](https://discourse.julialang.org/t/fill-missing-kwarg-in-vcat-function-when-cols-union/78214 "2022-03-22T08:39:45Z")

</div>

I am submitting to you a question which I believe to be of a general nature (along with other issues arising from the case), derived from a particular case on which I was working. I find myself in the need to make trans…

---

## [Using Julia to install system wide CUDA stack?](https://discourse.julialang.org/t/using-julia-to-install-system-wide-cuda-stack/78257)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [March 22, 2022, 8:18am UTC](https://discourse.julialang.org/t/using-julia-to-install-system-wide-cuda-stack/78257 "2022-03-22T08:18:10Z")

</div>

It is amazing how a single \]add CUDA automatically installs a private CUDA stack in a pain-free way. Sometimes however I need a CUDA installation for non-julia applications, like pytorch etc. Is there a way to get a “glo…

---

## [Error dimensions mismatch"A has dimension (83,5) "but B has dimensions (83,5)")"when using FLux package in julia](https://discourse.julialang.org/t/error-dimensions-mismatch-a-has-dimension-83-5-but-b-has-dimensions-83-5-when-using-flux-package-in-julia/78237)

<div class="topic-metadata">

**Author:** [@zed\_unseened](https://discourse.julialang.org/u/zed_unseened)\
**Replies:** 3\
**Last updated:** [March 22, 2022, 5:21am UTC](https://discourse.julialang.org/t/error-dimensions-mismatch-a-has-dimension-83-5-but-b-has-dimensions-83-5-when-using-flux-package-in-julia/78237 "2022-03-22T05:21:10Z")

</div>

Hey i am a beginner when it comes to machine learning and using Julia.For a current project I am doing I have encountered a problem where it says my dimension mismatch and I am not sure how to go about solving it. I trie…

---

## [MethodError: no method matching ^(::QuadExpr, ::Float64)](https://discourse.julialang.org/t/methoderror-no-method-matching-quadexpr-float64/78247)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 4\
**Last updated:** [March 22, 2022, 3:37am UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-quadexpr-float64/78247 "2022-03-22T03:37:42Z")

</div>

I am trying to run this code in Julia but I keep getting this error MethodError: no method matching ^(::QuadExpr, ::Float64) below is my code: I will be grateful if someone can help me correct this error. Thanks in adv…

---

## [@threads fails when interating over a dictionary](https://discourse.julialang.org/t/threads-fails-when-interating-over-a-dictionary/78249)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 1\
**Last updated:** [March 22, 2022, 3:04am UTC](https://discourse.julialang.org/t/threads-fails-when-interating-over-a-dictionary/78249 "2022-03-22T03:04:36Z")

</div>

Trying to parallelise over a dictionary iterator fails. using Base.Threads d = Dict("a" =\> 1, "b" =\> 2) @threads for (k, v) in d println("$(k) =\> $(v)") end produces ERROR: TaskFailedException Stacktrace: \[1\] wai…

---

## [GLM - Questions](https://discourse.julialang.org/t/glm-questions/78191)

<div class="topic-metadata">

**Author:** [@DaKlingons](https://discourse.julialang.org/u/DaKlingons)\
**Replies:** 5\
**Last updated:** [March 22, 2022, 1:31am UTC](https://discourse.julialang.org/t/glm-questions/78191 "2022-03-22T01:31:42Z")

</div>

Hi All. I have 2 questions about implementing GLM.jl Weighting the Dependent Variable - I’m looking at using the Poisson distribution, whereby the dependent variable, is weighted by a Unit of Exposure (DaysActive/365…

---

## [Large Garbage Collection in for loop if slicing vector](https://discourse.julialang.org/t/large-garbage-collection-in-for-loop-if-slicing-vector/78229)

<div class="topic-metadata">

**Author:** [@junder873](https://discourse.julialang.org/u/junder873)\
**Replies:** 10\
**Last updated:** [March 22, 2022, 1:00am UTC](https://discourse.julialang.org/t/large-garbage-collection-in-for-loop-if-slicing-vector/78229 "2022-03-22T01:00:13Z")

</div>

When creating a slice of a vector in a for loop, it seems like Julia creates a new vector each time which then needs to be dealt with by the garbage collector. In my setting, sometimes the GC can significantly slow down …

---

## [Pkg output doesn't show in PlutoUI with\_terminal() in Julia 1.6.1](https://discourse.julialang.org/t/pkg-output-doesnt-show-in-plutoui-with-terminal-in-julia-1-6-1/60819)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 14\
**Last updated:** [March 21, 2022, 11:56pm UTC](https://discourse.julialang.org/t/pkg-output-doesnt-show-in-plutoui-with-terminal-in-julia-1-6-1/60819 "2022-03-21T23:56:50Z")

</div>

With julia 1.6.0 everything works as expected, however the output doesn’t show in 1.6.1: 1.6.0: 1.6.1: What’s going on here, is this a bug in julia and/or PlutoUI? Code to reproduce below begin using Pkg; Pkg…

---

## [\[ANN\] FixedPoint.jl - Solver of equations using Fixed Point Method \[with a few bonuses\]](https://discourse.julialang.org/t/ann-fixedpoint-jl-solver-of-equations-using-fixed-point-method-with-a-few-bonuses/78114)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 8\
**Last updated:** [March 21, 2022, 9:03pm UTC](https://discourse.julialang.org/t/ann-fixedpoint-jl-solver-of-equations-using-fixed-point-method-with-a-few-bonuses/78114 "2022-03-21T21:03:12Z")

</div>

Hello, I’ve written a simple package to solve equations using accelerated fixed point method: Allows for nesterov’s acceleration (more stable than Anderson acceleration) Allows for relaxation (dampening of updates) usi…

---

## [Compact syntax for combining \`Tuple\` and \`NamedTuple\`: \`(1, 2; x=2, y=3) == ((1, 2), (x=2, y=3))\`](https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101)

<div class="topic-metadata">

**Author:** [@mtfishman](https://discourse.julialang.org/u/mtfishman)\
**Replies:** 15\
**Last updated:** [March 21, 2022, 9:08pm UTC](https://discourse.julialang.org/t/compact-syntax-for-combining-tuple-and-namedtuple-1-2-x-2-y-3-1-2-x-2-y-3/78101 "2022-03-21T21:08:22Z")

</div>

This may have been brought up already, but it would be nice to have a compact syntax for making a data structure that is a mixture of positional and keyword arguments. As an analogy to the function syntax f(1, 2; x=2, y…

---

## [Julia running in an M1 Asahi Linux](https://discourse.julialang.org/t/julia-running-in-an-m1-asahi-linux/78242)

<div class="topic-metadata">

**Author:** [@AlanAylmer](https://discourse.julialang.org/u/AlanAylmer)\
**Replies:** 0\
**Last updated:** [March 21, 2022, 9:05pm UTC](https://discourse.julialang.org/t/julia-running-in-an-m1-asahi-linux/78242 "2022-03-21T21:05:39Z")

</div>

Use the Linux ARM (not the AUR or DMG) Just needs a reboot

---

## [Autoformatting in VS Code extension](https://discourse.julialang.org/t/autoformatting-in-vs-code-extension/54544)

<div class="topic-metadata">

**Author:** [@drbenvincent](https://discourse.julialang.org/u/drbenvincent)\
**Replies:** 5\
**Last updated:** [March 21, 2022, 7:35pm UTC](https://discourse.julialang.org/t/autoformatting-in-vs-code-extension/54544 "2022-03-21T19:35:44Z")

</div>

I’m really enjoying getting to grips with Julia, and I’m finding VS Code a very nice way to code with Julia. I’ve noticed that there is great auto formatting for indenting code in functions or for loops. For example… …

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

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