# Latest

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

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

**Page:** 665

---

## [Mutation error in Zygote hessian](https://discourse.julialang.org/t/mutation-error-in-zygote-hessian/100705)

<div class="topic-metadata">

**Author:** [@Djamil\_Lakhdar-Hamin](https://discourse.julialang.org/u/Djamil_Lakhdar-Hamin)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 7:04pm UTC](https://discourse.julialang.org/t/mutation-error-in-zygote-hessian/100705 "2023-06-22T19:04:02Z")

</div>

Hi there everyone , I am new to the Julia ML ecosystem and would like some help on a specific problem. I am operating with Julia v1.8, and Flux v0.13.16 . So I am minimizing a function , in fact this function is the gr…

---

## [Comprehensions versus pre-allocation](https://discourse.julialang.org/t/comprehensions-versus-pre-allocation/7352)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 16\
**Last updated:** [June 22, 2023, 4:20pm UTC](https://discourse.julialang.org/t/comprehensions-versus-pre-allocation/7352 "2023-06-22T16:20:54Z")

</div>

When it’s possible, I rewrite the calculation of some array from the “first pre-allocation then for-loop” to just a comprehension (albeit fairly complicated sometimes). In my mind comprehensions seem faster because the p…

---

## [Is there @namedtuple for Python?](https://discourse.julialang.org/t/is-there-namedtuple-for-python/100681)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 5\
**Last updated:** [June 22, 2023, 4:13pm UTC](https://discourse.julialang.org/t/is-there-namedtuple-for-python/100681 "2023-06-22T16:13:23Z")

</div>

NamedTupleTools.jl ’ s @namedtuple is really nice for wrapping function returns quickly. Is there a similar thing in Python that only need to type once of the value? I didn’ t find one with search.

---

## [Juliacall access zero-dimensional array with \[\]](https://discourse.julialang.org/t/juliacall-access-zero-dimensional-array-with/100610)

<div class="topic-metadata">

**Author:** [@vrige\_me](https://discourse.julialang.org/u/vrige_me)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 3:48pm UTC](https://discourse.julialang.org/t/juliacall-access-zero-dimensional-array-with/100610 "2023-06-22T15:48:04Z")

</div>

Hi! I am new to julia and I am trying to use julia in python because i need some python libraries. I have some julia function that i would like to call using juliacall, but I got stuck when \[\] was called on a zero-dimen…

---

## [Possible reordering of floating point arithmetic in CUDA.jl](https://discourse.julialang.org/t/possible-reordering-of-floating-point-arithmetic-in-cuda-jl/100692)

<div class="topic-metadata">

**Author:** [@loonatick-src](https://discourse.julialang.org/u/loonatick-src)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 3:25pm UTC](https://discourse.julialang.org/t/possible-reordering-of-floating-point-arithmetic-in-cuda-jl/100692 "2023-06-22T15:25:23Z")

</div>

(Also posted on SO) I have a very simple kernel. function kernel!(u, r, β::Number) u .= u .\* β .+ r end Clearly, it is embarrassingly parallel. I execute in on both the CPU and the GPU like so. (You might have to…

---

## [Progress Report While training Random Forest Classifier using MLJ](https://discourse.julialang.org/t/progress-report-while-training-random-forest-classifier-using-mlj/100682)

<div class="topic-metadata">

**Author:** [@roeya](https://discourse.julialang.org/u/roeya)\
**Replies:** 0\
**Last updated:** [June 22, 2023, 5:55am UTC](https://discourse.julialang.org/t/progress-report-while-training-random-forest-classifier-using-mlj/100682 "2023-06-22T05:55:06Z")

</div>

I am using MLJ with Random Forest Classifier to train a model. Is there a way to do some sort of progress report while it fits the model?

---

## [AlgebraOfGraphics visual(Lines): how can I keep AoG from joining up lines corresponding to different parameter values?](https://discourse.julialang.org/t/algebraofgraphics-visual-lines-how-can-i-keep-aog-from-joining-up-lines-corresponding-to-different-parameter-values/100661)

<div class="topic-metadata">

**Author:** [@Christopher\_White](https://discourse.julialang.org/u/Christopher_White)\
**Replies:** 11\
**Last updated:** [June 22, 2023, 3:18pm UTC](https://discourse.julialang.org/t/algebraofgraphics-visual-lines-how-can-i-keep-aog-from-joining-up-lines-corresponding-to-different-parameter-values/100661 "2023-06-22T15:18:44Z")

</div>

The code using DataFrames using AlgebraOfGraphics using CairoMakie df1 = DataFrame(x = 1:10, y = (1:10).^2, parameter = 1) df2 = DataFrame(x = 1:10, y = 1.1\*(1:10).^2, parameter = 2) df = \[df1; df2\] aogplt = data(df) \*…

---

## [How do people use Julia nightly?](https://discourse.julialang.org/t/how-do-people-use-julia-nightly/100685)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 9\
**Last updated:** [June 22, 2023, 2:54pm UTC](https://discourse.julialang.org/t/how-do-people-use-julia-nightly/100685 "2023-06-22T14:54:40Z")

</div>

Hi there, I keep seeing messages about how 1.10 is gonna be even faster and cooler than 1.9, so of course I wanna do like the cool kids and give it a try. As far as I can tell, there are two main ways to download it: …

---

## [Would the new atomic break the generic code?](https://discourse.julialang.org/t/would-the-new-atomic-break-the-generic-code/100627)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 1:53pm UTC](https://discourse.julialang.org/t/would-the-new-atomic-break-the-generic-code/100627 "2023-06-22T13:53:22Z")

</div>

This comes from the Julia Atomics Manifesto Strictly, it is not a “breaking” change, because it would work on the old code just fine. However, the problem is with the atomic fields. Let’s say struct A @atomic B::I…

---

## [Constraint optimization of a vector norm under constraints imposed by integer-valued function](https://discourse.julialang.org/t/constraint-optimization-of-a-vector-norm-under-constraints-imposed-by-integer-valued-function/100693)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 8\
**Last updated:** [June 22, 2023, 1:28pm UTC](https://discourse.julialang.org/t/constraint-optimization-of-a-vector-norm-under-constraints-imposed-by-integer-valued-function/100693 "2023-06-22T13:28:21Z")

</div>

Hi all, I need to say in advance I don’t have much expertise in optimization, so it was difficult for me to phrase the post title properly, but please bear with me. Here is the problem we have and we are trying to solve…

---

## [Error: Tree Hash Mismatch! only on MacOs for all julia versions](https://discourse.julialang.org/t/error-tree-hash-mismatch-only-on-macos-for-all-julia-versions/100695)

<div class="topic-metadata">

**Author:** [@Craig\_Hamel](https://discourse.julialang.org/u/Craig_Hamel)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 12:38pm UTC](https://discourse.julialang.org/t/error-tree-hash-mismatch-only-on-macos-for-all-julia-versions/100695 "2023-06-22T12:38:10Z")

</div>

Hi all, I have a package, Exodus.jl, that I’ve been working on for the past year or so. It is in the General registry and I’m currently experiencing a tree has mismatch for users trying to add the package on mac os only…

---

## [Orbit diagram of Logistic Map](https://discourse.julialang.org/t/orbit-diagram-of-logistic-map/100690)

<div class="topic-metadata">

**Author:** [@SimonNeuroscience](https://discourse.julialang.org/u/SimonNeuroscience)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 9:50am UTC](https://discourse.julialang.org/t/orbit-diagram-of-logistic-map/100690 "2023-06-22T09:50:25Z")

</div>

Hello I am trying to Plot the orbit diagram of the famous logistic map to see the change into chaos of the model. The Code runs fine, but does to produce a Plot som somehow I followed the Code from this Julia-Github: O…

---

## [Garbage collection not aggressive enough on Slurm Cluster](https://discourse.julialang.org/t/garbage-collection-not-aggressive-enough-on-slurm-cluster/61649)

<div class="topic-metadata">

**Author:** [@mkschleg](https://discourse.julialang.org/u/mkschleg)\
**Replies:** 17\
**Last updated:** [August 4, 2021, 2:11pm UTC](https://discourse.julialang.org/t/garbage-collection-not-aggressive-enough-on-slurm-cluster/61649 "2021-08-04T14:11:50Z")

</div>

I’ve been using slurm for awhile w/ julia. I’ve only recently been running into issues where I’m running out of memory for long running processes (like 30hrs). The jobs are highly regular, effectively calling the same fu…

---

## [Problem in my object function because of NaN in my vector](https://discourse.julialang.org/t/problem-in-my-object-function-because-of-nan-in-my-vector/100670)

<div class="topic-metadata">

**Author:** [@lara](https://discourse.julialang.org/u/lara)\
**Replies:** 9\
**Last updated:** [June 22, 2023, 7:19am UTC](https://discourse.julialang.org/t/problem-in-my-object-function-because-of-nan-in-my-vector/100670 "2023-06-22T07:19:12Z")

</div>

Hi, all! I have this code, already working great. My objective function is @NLobjective(model, Min, sum(total\_price\[i\] for i in 1:21)) When I add a new constraint, this total\_price vector assumes some NaN values and …

---

## [How to Draw the Hyperbolic Parametric Curve on the Left side and Confirm the Animation](https://discourse.julialang.org/t/how-to-draw-the-hyperbolic-parametric-curve-on-the-left-side-and-confirm-the-animation/100677)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 6:47am UTC](https://discourse.julialang.org/t/how-to-draw-the-hyperbolic-parametric-curve-on-the-left-side-and-confirm-the-animation/100677 "2023-06-22T06:47:23Z")

</div>

Hi all, I am plotting a parametric hyperbolic curve, but I cannot draw the curve on the left side with my codes. I see from this : I want to know whether the animation is true, for each radians/degree the location of …

---

## [Delete duplicate rows in a DataFrame](https://discourse.julialang.org/t/delete-duplicate-rows-in-a-dataframe/65487)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 10\
**Last updated:** [June 22, 2023, 6:11am UTC](https://discourse.julialang.org/t/delete-duplicate-rows-in-a-dataframe/65487 "2023-06-22T06:11:37Z")

</div>

In a post on Stackoverflow about identifying duplicate rows in a DataFrame \[Stackoverflow Post\], Dominykas Mostauskis made a side-comment about how to remove the rows identified. Unfortunately, the comment wasn’t that in…

---

## [Raspberry pi newbie, where to begin](https://discourse.julialang.org/t/raspberry-pi-newbie-where-to-begin/79013)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 22\
**Last updated:** [June 22, 2023, 6:00am UTC](https://discourse.julialang.org/t/raspberry-pi-newbie-where-to-begin/79013 "2023-06-22T06:00:55Z")

</div>

Hi all I’ve agreed to help a couple of my colleagues automate some of their lab equipment using a raspberry pi. This is pretty much the blind leading the blind, as I’ve never used a raspberry pi (or similar) before, but…

---

## [Julia on nVidia Jetson Nano or Orin?](https://discourse.julialang.org/t/julia-on-nvidia-jetson-nano-or-orin/98305)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 6\
**Last updated:** [June 22, 2023, 5:46am UTC](https://discourse.julialang.org/t/julia-on-nvidia-jetson-nano-or-orin/98305 "2023-06-22T05:46:59Z")

</div>

Has anyone gotten Julia to work reliably on the Jetson units? Did you have to compile from scratch? Julia on any Jetson unit docs are extremely scarce! Thanks, David

---

## [Do I need a vector database to solve this problem?](https://discourse.julialang.org/t/do-i-need-a-vector-database-to-solve-this-problem/100629)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 9\
**Last updated:** [June 22, 2023, 5:12am UTC](https://discourse.julialang.org/t/do-i-need-a-vector-database-to-solve-this-problem/100629 "2023-06-22T05:12:19Z")

</div>

Suppose I have a list of known vectors x\_i \\in \\mathbb{R}^m for i = 1 \\dots n. Now my boss comes to me and gives me a vector y \\in \\mathbb{R}^m and says, find the i that minimizes \\| y - x\_i \\|. Clearly, the best yo…

---

## [Avoiding repeated type declaration](https://discourse.julialang.org/t/avoiding-repeated-type-declaration/100679)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 2:05am UTC](https://discourse.julialang.org/t/avoiding-repeated-type-declaration/100679 "2023-06-22T02:05:58Z")

</div>

I find myself repeating a somewhat cumbersome type declaration, which seems like something to avoid. How? Here’s a condensed version of my current code, which uses Vector{Union{Missing, IntervalBox{1, Float64}}} twice. …

---

## [\[ANN\] Julia programming for Machine Learning](https://discourse.julialang.org/t/ann-julia-programming-for-machine-learning/100399)

<div class="topic-metadata">

**Author:** [@hill](https://discourse.julialang.org/u/hill)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 12:09am UTC](https://discourse.julialang.org/t/ann-julia-programming-for-machine-learning/100399 "2023-06-22T00:09:38Z")

</div>

Hello everyone! I’m happy to announce the Julia programming for Machine Learning course that I got to teach for the first time at TU Berlin this semester: GitHub repository: GitHub - adrhill/julia-ml-course: Julia for…

---

## [Numerical simulation of vortex-induced vibrations in Julia (Computation Fluid Dynamic)](https://discourse.julialang.org/t/numerical-simulation-of-vortex-induced-vibrations-in-julia-computation-fluid-dynamic/100543)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 10:21pm UTC](https://discourse.julialang.org/t/numerical-simulation-of-vortex-induced-vibrations-in-julia-computation-fluid-dynamic/100543 "2023-06-21T22:21:31Z")

</div>

Hi all, is there a package in Julia that can help to create numerical simulation for VIV like from this page: Thanks.

---

## [Parallelization Optimization Runs](https://discourse.julialang.org/t/parallelization-optimization-runs/100667)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 10\
**Last updated:** [June 21, 2023, 9:48pm UTC](https://discourse.julialang.org/t/parallelization-optimization-runs/100667 "2023-06-21T21:48:52Z")

</div>

I need to run over a million small optimization problems which are similar from the perspective of the structure but have different coefficients for constraint and objective. I know I can create and solve many models con…

---

## [\[SOLVED\] Models params not being updated during training](https://discourse.julialang.org/t/solved-models-params-not-being-updated-during-training/100634)

<div class="topic-metadata">

**Author:** [@Idalen](https://discourse.julialang.org/u/Idalen)\
**Replies:** 1\
**Last updated:** [June 21, 2023, 9:22pm UTC](https://discourse.julialang.org/t/solved-models-params-not-being-updated-during-training/100634 "2023-06-21T21:22:14Z")

</div>

I am trying to build a Temporal Convolution Network. First we define the Residual Block as main element of the network. Here is it: struct ResidualBlock{T} dilation::Int num\_channels::Int kernel\_size::Int …

---

## [Question: derefing named tuples](https://discourse.julialang.org/t/question-derefing-named-tuples/100671)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 1\
**Last updated:** [June 21, 2023, 9:01pm UTC](https://discourse.julialang.org/t/question-derefing-named-tuples/100671 "2023-06-21T21:01:00Z")

</div>

I need to pass a bunch of vectors (from a typed table) into a function that is called in a hot loop. I had previously avoided the time cost of derefing the columns from the table in the loop. Now, I am putting the neede…

---

## [Two equivalent codes but one returning error](https://discourse.julialang.org/t/two-equivalent-codes-but-one-returning-error/100668)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 7\
**Last updated:** [June 21, 2023, 7:40pm UTC](https://discourse.julialang.org/t/two-equivalent-codes-but-one-returning-error/100668 "2023-06-21T19:40:44Z")

</div>

I was wondering if the two codes are different, because the second one returns an error message of “invalid index : nothing of type Nothing” ind\_one\_y = findfirst(surplus\[q,:,x,2,mq\] .\> 0.0) Code 1 : if isnothing…

---

## [CSV read in is too slow than other language](https://discourse.julialang.org/t/csv-read-in-is-too-slow-than-other-language/100607)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 13\
**Last updated:** [June 21, 2023, 6:52pm UTC](https://discourse.julialang.org/t/csv-read-in-is-too-slow-than-other-language/100607 "2023-06-21T18:52:26Z")

</div>

Hello, The Julia language claims it is a fast language, but in my practice I’m hard to convincing myself of this, and now I meet terrible problem with the speed of julia again, hope someone here can give me some advi…

---

## [Multi-language (Julia + Python) coding : data transfer in a two-step simulation](https://discourse.julialang.org/t/multi-language-julia-python-coding-data-transfer-in-a-two-step-simulation/100649)

<div class="topic-metadata">

**Author:** [@amuesser](https://discourse.julialang.org/u/amuesser)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 6:27pm UTC](https://discourse.julialang.org/t/multi-language-julia-python-coding-data-transfer-in-a-two-step-simulation/100649 "2023-06-21T18:27:15Z")

</div>

Hi everyone, I’m currently working on coupling two models for lung simulation: a first model coded in Python that calculates the evolution of pressure in the respiratory system using finite elements, and a second model …

---

## [Introducing the first-ever Pluto Notebook competition 🥇 at this year's JuliaCon!](https://discourse.julialang.org/t/introducing-the-first-ever-pluto-notebook-competition-at-this-years-juliacon/100669)

<div class="topic-metadata">

**Author:** [@Steven\_Kell](https://discourse.julialang.org/u/Steven_Kell)\
**Replies:** 0\
**Last updated:** [June 21, 2023, 5:40pm UTC](https://discourse.julialang.org/t/introducing-the-first-ever-pluto-notebook-competition-at-this-years-juliacon/100669 "2023-06-21T17:40:34Z")

</div>

Introducing the first-ever Pluto Notebook competition :first\_place\_medal: at this year’s JuliaCon! Ever wondered what the Julia community is working on in industry? Us too! This is why we’d like to highlight our friends…

---

## [Problem with setting up plot](https://discourse.julialang.org/t/problem-with-setting-up-plot/100651)

<div class="topic-metadata">

**Author:** [@Arhan\_Chemala](https://discourse.julialang.org/u/Arhan_Chemala)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 5:12pm UTC](https://discourse.julialang.org/t/problem-with-setting-up-plot/100651 "2023-06-21T17:12:54Z")

</div>

Hi dear all. I am Arhan . I am tryin to set up plots but I am unable to do it.the error message is attached . Please help

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

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