# Latest

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

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

**Page:** 1252

---

## [How to see list of available Package Versions? (AKA how to downgrade because Turing crashes?)](https://discourse.julialang.org/t/how-to-see-list-of-available-package-versions-aka-how-to-downgrade-because-turing-crashes/69020)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 6\
**Last updated:** [October 1, 2021, 6:05am UTC](https://discourse.julialang.org/t/how-to-see-list-of-available-package-versions-aka-how-to-downgrade-because-turing-crashes/69020 "2021-10-01T06:05:06Z")

</div>

I installed the latest Turing and now I can’t “using Turing” because: julia\> using Turing ERROR: InitError: UndefVarError: Params not defined Stacktrace: \[1\] top-level scope @ none:1 \[2\] eval @ ./boot.jl:37…

---

## [@foreach item in vector](https://discourse.julialang.org/t/foreach-item-in-vector/69024)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 5:16am UTC](https://discourse.julialang.org/t/foreach-item-in-vector/69024 "2021-10-01T05:16:00Z")

</div>

I want to run a bit of code for each item in a vector, as if I’d typed it out multiple types. Not using a function or run-time loop. How can I do that? Similar to this but with no function: foreach(1:5) do x printl…

---

## [\[ANN\] TableScraper.jl - an easy way to scrape WELL-FORMED tables from webpages](https://discourse.julialang.org/t/ann-tablescraper-jl-an-easy-way-to-scrape-well-formed-tables-from-webpages/61636)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 8\
**Last updated:** [October 1, 2021, 12:14am UTC](https://discourse.julialang.org/t/ann-tablescraper-jl-an-easy-way-to-scrape-well-formed-tables-from-webpages/61636 "2021-10-01T00:14:27Z")

</div>

---

## [Basic struct usage questions](https://discourse.julialang.org/t/basic-struct-usage-questions/68932)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 31\
**Last updated:** [September 30, 2021, 9:03pm UTC](https://discourse.julialang.org/t/basic-struct-usage-questions/68932 "2021-09-30T21:03:54Z")

</div>

I have defined a type called CylindricalStress for bundling the results of Lamé’s Equations which I understand is good practice: struct CylindricalStress r::Number # Radial Stress θ::Number # Tangential (Hoop) S…

---

## [Loss function with derivative of output](https://discourse.julialang.org/t/loss-function-with-derivative-of-output/68488)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 3\
**Last updated:** [September 30, 2021, 9:03pm UTC](https://discourse.julialang.org/t/loss-function-with-derivative-of-output/68488 "2021-09-30T21:03:46Z")

</div>

Hi everyone. I’m trying to run a FNN in which the derivative of the output is used in the loss function, as well as functions that have the output of the whole NN as their arguments. Basically, I am struggling on how to…

---

## [Gurobi callback in JuMP for submitting heuristic solution](https://discourse.julialang.org/t/gurobi-callback-in-jump-for-submitting-heuristic-solution/69006)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 8:40pm UTC](https://discourse.julialang.org/t/gurobi-callback-in-jump-for-submitting-heuristic-solution/69006 "2021-09-30T20:40:52Z")

</div>

Dear All, I am trying to implement the fix-and-dive heuristic for the traveling salesman problem in JuMP with Gurobi based on the Python+Gurobi code available here: https://github.com/Gurobi/pres-mipheur/blob/master/mip…

---

## [Cannot clone on julia 1.6.3](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 7:28pm UTC](https://discourse.julialang.org/t/cannot-clone-on-julia-1-6-3/68757 "2021-09-30T19:28:43Z")

</div>

I’ve upgraded julia to 1.6.3 (own build), with libgit2 1.2.0, on linux. Seems like cloning fails: (@v1.6) pkg\> add Plots#master Cloning git-repo \`https://github.com/JuliaPlots/Plots.jl.git\` ERROR: ReadOnlyMemoryEr…

---

## [Integrating JET.jl with neovim](https://discourse.julialang.org/t/integrating-jet-jl-with-neovim/68989)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 7:23pm UTC](https://discourse.julialang.org/t/integrating-jet-jl-with-neovim/68989 "2021-09-30T19:23:32Z")

</div>

JET.jl is an experimental code analyzer for Julia: https://github.com/aviatesk/JET.jl. Edit: I’ve made the following into a plugin for neovim: https://github.com/kdheepak/JET.nvim The following post shows how to integr…

---

## [New to Julia: Does Julia support 3D image Processing?](https://discourse.julialang.org/t/new-to-julia-does-julia-support-3d-image-processing/68947)

<div class="topic-metadata">

**Author:** [@Nivin\_1994](https://discourse.julialang.org/u/Nivin_1994)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 5:05pm UTC](https://discourse.julialang.org/t/new-to-julia-does-julia-support-3d-image-processing/68947 "2021-09-30T17:05:22Z")

</div>

I am new to Julia. I need to analyze 3D images for computational modeling of natural phenomena. I would like to know whether Julia supports 3D image analysis? Thanks

---

## [Are structs passed by value or by ref?](https://discourse.julialang.org/t/are-structs-passed-by-value-or-by-ref/68987)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 6\
**Last updated:** [September 30, 2021, 5:03pm UTC](https://discourse.julialang.org/t/are-structs-passed-by-value-or-by-ref/68987 "2021-09-30T17:03:07Z")

</div>

Hi there, like the title, are small structs such as struct Foo x::Int64 y::Int64 end allocated in the stack or in the heap, and whether the are passed by ref or by copy to functions? Moreover, is there a difference i…

---

## [How to make a macro modify struct member?](https://discourse.julialang.org/t/how-to-make-a-macro-modify-struct-member/68991)

<div class="topic-metadata">

**Author:** [@droodman](https://discourse.julialang.org/u/droodman)\
**Replies:** 1\
**Last updated:** [September 30, 2021, 1:49pm UTC](https://discourse.julialang.org/t/how-to-make-a-macro-modify-struct-member/68991 "2021-09-30T13:49:54Z")

</div>

I am trying to write a macro that may generate an assignment statement to modify one of its arguments (more precisely, modify the object the argument binds to). That argument will be a member of a mutable struct; which m…

---

## [How to launch several run cmd in parallel](https://discourse.julialang.org/t/how-to-launch-several-run-cmd-in-parallel/68862)

<div class="topic-metadata">

**Author:** [@RCHG](https://discourse.julialang.org/u/RCHG)\
**Replies:** 4\
**Last updated:** [September 30, 2021, 1:37pm UTC](https://discourse.julialang.org/t/how-to-launch-several-run-cmd-in-parallel/68862 "2021-09-30T13:37:53Z")

</div>

Hello, My question is probably easy to solve, but I got confused by the several packages and proposals (@sync, @async, Distributed etc…). In the most simple case there is a script in Julia. This script has a loop that r…

---

## [Permission denied](https://discourse.julialang.org/t/permission-denied/68997)

<div class="topic-metadata">

**Author:** [@Axelle\_francx](https://discourse.julialang.org/u/Axelle_francx)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 1:05pm UTC](https://discourse.julialang.org/t/permission-denied/68997 "2021-09-30T13:05:52Z")

</div>

https://docs.junolab.org/latest/man/installation/ I have followed the above steps but still get this error message. The link says that you have to change the julia path, which I did, but I still get an error message. Do…

---

## [Postdoc on automatic differentiation for electronic structure](https://discourse.julialang.org/t/postdoc-on-automatic-differentiation-for-electronic-structure/68996)

<div class="topic-metadata">

**Author:** [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 12:41pm UTC](https://discourse.julialang.org/t/postdoc-on-automatic-differentiation-for-electronic-structure/68996 "2021-09-30T12:41:55Z")

</div>

Hi, We (Eric Cancès, Michael Herbst @mfh and I) are looking to hire a postdoc in automatic differentiation for electronic structure. We use julia exclusively. We are based in Paris, but remote work might be considered o…

---

## [Unable to use Zlib\_jll in julia 1.6 (Package Zlib\_jll does not have JLLWrappers in its dependencies)](https://discourse.julialang.org/t/unable-to-use-zlib-jll-in-julia-1-6-package-zlib-jll-does-not-have-jllwrappers-in-its-dependencies/68975)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 3\
**Last updated:** [September 30, 2021, 12:20pm UTC](https://discourse.julialang.org/t/unable-to-use-zlib-jll-in-julia-1-6-package-zlib-jll-does-not-have-jllwrappers-in-its-dependencies/68975 "2021-09-30T12:20:25Z")

</div>

I’m using Julia 1.6.3, and I get an error if I try to use Zlib\_jll or any package that has it as a dependency (eg, CodecZlib or CSV). Adding the package has a compile error: (v1.6) pkg\> activate Foo Activating new en…

---

## [Add classname to Interact dropdown widget](https://discourse.julialang.org/t/add-classname-to-interact-dropdown-widget/68993)

<div class="topic-metadata">

**Author:** [@cwiese](https://discourse.julialang.org/u/cwiese)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 12:04pm UTC](https://discourse.julialang.org/t/add-classname-to-interact-dropdown-widget/68993 "2021-09-30T12:04:27Z")

</div>

I am using Interact (Blink) - I create a dropdown widget ddl = dropdown(Observable(attr\_values)); I would like to add “loader is-active” classname to the Select … when a value is selected and remove when the data come…

---

## [Why is the type of factors not being inferred while multiplying an AbstractQ with a vector?](https://discourse.julialang.org/t/why-is-the-type-of-factors-not-being-inferred-while-multiplying-an-abstractq-with-a-vector/68981)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [September 30, 2021, 11:39am UTC](https://discourse.julialang.org/t/why-is-the-type-of-factors-not-being-inferred-while-multiplying-an-abstractq-with-a-vector/68981 "2021-09-30T11:39:00Z")

</div>

julia\> using LinearAlgebra julia\> Q = qr(rand(30,30)); julia\> Q2 = Q.Q; julia\> @code\_warntype Q2 \* rand(size(Q2,2)) MethodInstance for \*(::LinearAlgebra.QRCompactWYQ{Float64, Matrix{Float64}}, ::Vector{Float64}) fro…

---

## [Error using DifferentialEquations.jl to simulate a reasonably common SDE](https://discourse.julialang.org/t/error-using-differentialequations-jl-to-simulate-a-reasonably-common-sde/68930)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 13\
**Last updated:** [September 30, 2021, 11:28am UTC](https://discourse.julialang.org/t/error-using-differentialequations-jl-to-simulate-a-reasonably-common-sde/68930 "2021-09-30T11:28:34Z")

</div>

I’m using DifferentialEquations.jl to try to simulate paths of the following SDE: dS = 0.0314 dt + v\*(-0.576) dW\_1 + v\*sqrt(1 - 0.576^2) dW\_2 d(v^2) = 0.035\*(0.636 - v^2) dt + 0.144 v^2 dW\_1 Sorry for the formatting, I…

---

## [Using current variable values in the naming of DataFrame column(s)](https://discourse.julialang.org/t/using-current-variable-values-in-the-naming-of-dataframe-column-s/68982)

<div class="topic-metadata">

**Author:** [@conorhassan](https://discourse.julialang.org/u/conorhassan)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 11:09am UTC](https://discourse.julialang.org/t/using-current-variable-values-in-the-naming-of-dataframe-column-s/68982 "2021-09-30T11:09:39Z")

</div>

Hi there, The following code chunk is written in R which I would like to replicate in Julia in order to name a variable using the current assigned value for a variable, which is going to change within an iterator: \> mu…

---

## [How to produce this type of graph?](https://discourse.julialang.org/t/how-to-produce-this-type-of-graph/68955)

<div class="topic-metadata">

**Author:** [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Replies:** 6\
**Last updated:** [September 30, 2021, 10:08am UTC](https://discourse.julialang.org/t/how-to-produce-this-type-of-graph/68955 "2021-09-30T10:08:22Z")

</div>

I would like to compare three measures which characterize each of the US states. They are measured on three different scales so I am thinking to illustrate the relative ranking of states. I have seen this graph and it …

---

## [Adding a title to image?](https://discourse.julialang.org/t/adding-a-title-to-image/68880)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 4\
**Last updated:** [September 30, 2021, 8:55am UTC](https://discourse.julialang.org/t/adding-a-title-to-image/68880 "2021-09-30T08:55:26Z")

</div>

How do we add a title on an image loaded, using Images package in Julia?

---

## [Programmatic Markdown in Pluto](https://discourse.julialang.org/t/programmatic-markdown-in-pluto/68936)

<div class="topic-metadata">

**Author:** [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 8:20am UTC](https://discourse.julialang.org/t/programmatic-markdown-in-pluto/68936 "2021-09-30T08:20:22Z")

</div>

I want to programmatically generate markdown for a cell in a Pluto notebook to display a series of images. The following hard-coded markdown works. src is a list of local image files. md""" $(LocalResource(src\[1\])) """ …

---

## [\[ANN\] NeuralOperators.jl - Learning the Infinite-dimensional operator for partial differential equations](https://discourse.julialang.org/t/ann-neuraloperators-jl-learning-the-infinite-dimensional-operator-for-partial-differential-equations/68779)

<div class="topic-metadata">

**Author:** [@foldfelis](https://discourse.julialang.org/u/foldfelis)\
**Replies:** 2\
**Last updated:** [September 28, 2021, 7:06pm UTC](https://discourse.julialang.org/t/ann-neuraloperators-jl-learning-the-infinite-dimensional-operator-for-partial-differential-equations/68779 "2021-09-28T19:06:18Z")

</div>

I’m pleased to announce that NeuralOperator.jl is now available. Neural operator is a novel deep learning architecture introduced by Zongyi-Li et al. It learns a operator, which is a mapping between infinite-dimensional …

---

## [\[ANN\] ONNXRunTime.jl](https://discourse.julialang.org/t/ann-onnxruntime-jl/68978)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 7:20am UTC](https://discourse.julialang.org/t/ann-onnxruntime-jl/68978 "2021-09-30T07:20:02Z")

</div>

I am happy to announce ONNXRunTime.jl. ONNX is a file format for saving neural networks. ONNXRunTime.jl is a wrapper around onnxruntime and allows loading ONNX files and using them for inference. For instance: julia\> i…

---

## [Allocating different arrays on multiple GPUs](https://discourse.julialang.org/t/allocating-different-arrays-on-multiple-gpus/68836)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 8\
**Last updated:** [September 30, 2021, 6:02am UTC](https://discourse.julialang.org/t/allocating-different-arrays-on-multiple-gpus/68836 "2021-09-30T06:02:15Z")

</div>

i’ve read the docs on unified memory, but think that’s overkill for my use case. is it really not possible to simply switch devices, define another CuArray, and then launch a kernel on it? i get ERROR\_INVALID\_VALUE: j…

---

## [Pacioli.jl is now on GitHub](https://discourse.julialang.org/t/pacioli-jl-is-now-on-github/68972)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 7\
**Last updated:** [September 30, 2021, 5:01am UTC](https://discourse.julialang.org/t/pacioli-jl-is-now-on-github/68972 "2021-09-30T05:01:43Z")

</div>

Pacioli.jl is now available in my GitHub repository. This project is not yet available as a package, but I hope to add this and get caught up on my laundry in the next few days. The user file is avaliable here. . If a…

---

## [MPI Jupyter kernel & cluster in Julia (similar to dask-mpi / ipyparallel)?](https://discourse.julialang.org/t/mpi-jupyter-kernel-cluster-in-julia-similar-to-dask-mpi-ipyparallel/67240)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 9\
**Last updated:** [September 30, 2021, 4:51am UTC](https://discourse.julialang.org/t/mpi-jupyter-kernel-cluster-in-julia-similar-to-dask-mpi-ipyparallel/67240 "2021-09-30T04:51:13Z")

</div>

I’m on a cluster where MPI transport is significantly faster than TCP transport, and I’d like to keep my interactive Jupyter-based workflow for parallel work. A key thing is I don’t want to be doing any intercommunicatio…

---

## [(Not-So-)Crazy idea: Make the julia docs a Pluto notebook](https://discourse.julialang.org/t/not-so-crazy-idea-make-the-julia-docs-a-pluto-notebook/58941)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 41\
**Last updated:** [September 30, 2021, 4:03am UTC](https://discourse.julialang.org/t/not-so-crazy-idea-make-the-julia-docs-a-pluto-notebook/58941 "2021-09-30T04:03:46Z")

</div>

So after looking at Introduction to Computational Thinking, I can’t help but think “man, I wish the documentation pages for julia packages did this instead of static websites.” How gigantic of an undertaking would it be…

---

## [Max.(v1,v2) on the GPU](https://discourse.julialang.org/t/max-v1-v2-on-the-gpu/68386)

<div class="topic-metadata">

**Author:** [@gianmariomanca](https://discourse.julialang.org/u/gianmariomanca)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 3:19am UTC](https://discourse.julialang.org/t/max-v1-v2-on-the-gpu/68386 "2021-09-30T03:19:14Z")

</div>

What’s the best way to implement the element wise maximum of for 2 vectors of the same length on the GPU using CUDA.jl or any other package? julia\> v1 = \[1, 2, 3\] 3-element Vector{Int64}: 1 2 3 julia\> v2 = \[4, 3, 2\]…

---

## [Julia 1.6 vs 1.5.3 Docker image error](https://discourse.julialang.org/t/julia-1-6-vs-1-5-3-docker-image-error/57995)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 4\
**Last updated:** [September 30, 2021, 3:07am UTC](https://discourse.julialang.org/t/julia-1-6-vs-1-5-3-docker-image-error/57995 "2021-09-30T03:07:27Z")

</div>

I’m trying to create a Docker image for a web app. It works using Julia 1.5.3, but fails with Julia 1.6 with the following(truncated) error: #6 96.06 Building WebIO ───→ \`~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b6…

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

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