# Latest

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

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

**Page:** 759

---

## [DifferentialEquations.jl look at the ODEsystem](https://discourse.julialang.org/t/differentialequations-jl-look-at-the-odesystem/95131)

<div class="topic-metadata">

**Author:** [@mm-crj](https://discourse.julialang.org/u/mm-crj)\
**Replies:** 9\
**Last updated:** [March 9, 2023, 3:25pm UTC](https://discourse.julialang.org/t/differentialequations-jl-look-at-the-odesystem/95131 "2023-03-09T15:25:49Z")

</div>

I am solving a large system of ODEs with the DifferentialEquation.jl package. Since I am using a number of for loops to set up the RHS to the du, so I would like to see the RHS matrix before solving. Is there a way I ca…

---

## [Elegant way to initiate a loop once a condition is met and then check the condition holds every nth iteration](https://discourse.julialang.org/t/elegant-way-to-initiate-a-loop-once-a-condition-is-met-and-then-check-the-condition-holds-every-nth-iteration/95751)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 1\
**Last updated:** [March 8, 2023, 6:05pm UTC](https://discourse.julialang.org/t/elegant-way-to-initiate-a-loop-once-a-condition-is-met-and-then-check-the-condition-holds-every-nth-iteration/95751 "2023-03-08T18:05:55Z")

</div>

Suppose I have a function that initiates a loop when a condition is met and then checks back on the condition every nth iteration. (note: Condition does NOT have to hold for iterations 2 : (n-1) ) e.g. function fun (s…

---

## [Best practice for dealing with "Killed" of Julia exits](https://discourse.julialang.org/t/best-practice-for-dealing-with-killed-of-julia-exits/95745)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 16\
**Last updated:** [March 9, 2023, 3:12pm UTC](https://discourse.julialang.org/t/best-practice-for-dealing-with-killed-of-julia-exits/95745 "2023-03-09T15:12:14Z")

</div>

Sometimes when I run a Julia script in the terminal, e.g. julia my\_script.jl the program will exit with a simple Killed message, e.g: Presumably, this is because I ran something very heavy and this just crashed stuff.…

---

## [Pyccel, Python 3 to Fortran or C compiler/transpiler](https://discourse.julialang.org/t/pyccel-python-3-to-fortran-or-c-compiler-transpiler/95801)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 2:38pm UTC](https://discourse.julialang.org/t/pyccel-python-3-to-fortran-or-c-compiler-transpiler/95801 "2023-03-09T14:38:22Z")

</div>

What Julia is now competing with: https://github.com/pyccel/pyccel/blob/master/tutorial/quickstart.md Pyccel is a static compiler for Python 3, using Fortran or C as a backend language \[…\] Not only is the Pyccel-genera…

---

## [Julia cannot add 2 big integers correctly](https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 7\
**Last updated:** [March 9, 2023, 12:55pm UTC](https://discourse.julialang.org/t/julia-cannot-add-2-big-integers-correctly/95774 "2023-03-09T12:55:29Z")

</div>

I have come across what I consider a big problem. I’m reading “Think Julia” by Allen Downey and Ben Lauwens, and I am now in the chapter about Dictionaries. I am specifically on the Memos subchapter. I am calculating t…

---

## [Julia process staying after closing VSCode](https://discourse.julialang.org/t/julia-process-staying-after-closing-vscode/95789)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 3\
**Last updated:** [March 9, 2023, 12:45pm UTC](https://discourse.julialang.org/t/julia-process-staying-after-closing-vscode/95789 "2023-03-09T12:45:39Z")

</div>

After closing VSCode (and all terminals), a Julia process sticks around and hogs 2 GB of RAM: Information about the process. The “Command Line” options clearly indicate that the process was started by VSCode, which i…

---

## [How to execute the function in a different directory?](https://discourse.julialang.org/t/how-to-execute-the-function-in-a-different-directory/95783)

<div class="topic-metadata">

**Author:** [@manu\_han](https://discourse.julialang.org/u/manu_han)\
**Replies:** 4\
**Last updated:** [March 9, 2023, 12:02pm UTC](https://discourse.julialang.org/t/how-to-execute-the-function-in-a-different-directory/95783 "2023-03-09T12:02:07Z")

</div>

When i execute the function (Background) in a different directory (“User/initialization/Background.jl”) in another function (Hi.Hi\_Hello), there is some error. (although code was simplified for the clarify, it would not …

---

## [TimeSeries.jl package, some information missing from documentation](https://discourse.julialang.org/t/timeseries-jl-package-some-information-missing-from-documentation/94485)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 5\
**Last updated:** [March 9, 2023, 11:44am UTC](https://discourse.julialang.org/t/timeseries-jl-package-some-information-missing-from-documentation/94485 "2023-03-09T11:44:44Z")

</div>

I’m studying the TimeSeries Package, which I find very useful. However, I find that some information is missing from the documentation: the section on “Mathematical, comparison, and logical operators” does not includ…

---

## [Help with nested optimization](https://discourse.julialang.org/t/help-with-nested-optimization/95453)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 18\
**Last updated:** [March 9, 2023, 10:28am UTC](https://discourse.julialang.org/t/help-with-nested-optimization/95453 "2023-03-09T10:28:11Z")

</div>

After a few weeks of thinking about this on and off with a lot of help from the good folks in Slack’s #math-optimization channel I’ve decided I don’t trust myself to come up with an optimal (no pun intended) solution to …

---

## [Rolling/running functions with complex output on multiple variables](https://discourse.julialang.org/t/rolling-running-functions-with-complex-output-on-multiple-variables/95723)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 6\
**Last updated:** [March 9, 2023, 9:55am UTC](https://discourse.julialang.org/t/rolling-running-functions-with-complex-output-on-multiple-variables/95723 "2023-03-09T09:55:01Z")

</div>

Dear Julia community, I want to run a rolling function with multiple output on multiple columns of a DataFrame. RollingFunctions.jl seems to allow only scalar output. ImageFiltering.mapwindow only allows as input a sin…

---

## [Copyright related to Julia Documentation](https://discourse.julialang.org/t/copyright-related-to-julia-documentation/95776)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 6\
**Last updated:** [March 9, 2023, 9:16am UTC](https://discourse.julialang.org/t/copyright-related-to-julia-documentation/95776 "2023-03-09T09:16:30Z")

</div>

Hi friends, What are the copyright issues related to Julia documentation. Can I publish the help contents of ?cos command in my blog as such(verbatim). I want to compile selective commands and to publish a tutorial on…

---

## [Thread Safe Data Structures](https://discourse.julialang.org/t/thread-safe-data-structures/91483)

<div class="topic-metadata">

**Author:** [@Immortalin](https://discourse.julialang.org/u/Immortalin)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 9:11am UTC](https://discourse.julialang.org/t/thread-safe-data-structures/91483 "2023-03-09T09:11:04Z")

</div>

Julia Collections’ Thread Safe data structures is marked as deprecated. What options do we currently have for thread safe structures? Rust for example, has Crossbeam

---

## [Julia 1.8 vs Julia 1.9: Isn't this a breaking change?](https://discourse.julialang.org/t/julia-1-8-vs-julia-1-9-isnt-this-a-breaking-change/95785)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 9\
**Last updated:** [March 9, 2023, 9:00am UTC](https://discourse.julialang.org/t/julia-1-8-vs-julia-1-9-isnt-this-a-breaking-change/95785 "2023-03-09T09:00:48Z")

</div>

Isn’t the changes below between the two different versions supposed to be “considered” as breaking? JULIA 1.8 Doc says: Note that while variable bindings can be read externally, they can only be changed within the mo…

---

## [Announcement: Automa v1.0 beta preview](https://discourse.julialang.org/t/announcement-automa-v1-0-beta-preview/95753)

<div class="topic-metadata">

**Author:** [@jakobnissen](https://discourse.julialang.org/u/jakobnissen)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 6:28pm UTC](https://discourse.julialang.org/t/announcement-automa-v1-0-beta-preview/95753 "2023-03-08T18:28:32Z")

</div>

Automa 1.0 beta preview I’m very pleased to announce the release preview of Automa.jl version 1.0.0-beta1. This is something I’ve put in several hundred hours in over the last two years. Version 1 brings many exciting c…

---

## [Micrograd.jl - a port of Andrej Karpathy's Micrograd to Julia](https://discourse.julialang.org/t/micrograd-jl-a-port-of-andrej-karpathys-micrograd-to-julia/95779)

<div class="topic-metadata">

**Author:** [@ajloza](https://discourse.julialang.org/u/ajloza)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 3:11am UTC](https://discourse.julialang.org/t/micrograd-jl-a-port-of-andrej-karpathys-micrograd-to-julia/95779 "2023-03-09T03:11:09Z")

</div>

Andrej Karpathy has a great walkthrough of building a scalar reverse mode autodiff library and minimal neural network (GitHub - karpathy/micrograd: A tiny scalar-valued autograd engine and a neural net library on top of …

---

## [How to assign a device for each worker correctly in a multi gpu multi node scenario?](https://discourse.julialang.org/t/how-to-assign-a-device-for-each-worker-correctly-in-a-multi-gpu-multi-node-scenario/95715)

<div class="topic-metadata">

**Author:** [@hunKing](https://discourse.julialang.org/u/hunKing)\
**Replies:** 6\
**Last updated:** [March 9, 2023, 1:56am UTC](https://discourse.julialang.org/t/how-to-assign-a-device-for-each-worker-correctly-in-a-multi-gpu-multi-node-scenario/95715 "2023-03-09T01:56:48Z")

</div>

Hello folks, Does someone know how to correctly set the GPUs in each node correctly to individual workers in those nodes? For instance, imagine I have 2 nodes, with each having 2 GPUs. If I try to use the same procedure…

---

## [Catalyst.jl: Algebraically relate two species](https://discourse.julialang.org/t/catalyst-jl-algebraically-relate-two-species/95762)

<div class="topic-metadata">

**Author:** [@Theodore\_Rieger](https://discourse.julialang.org/u/Theodore_Rieger)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 1:45am UTC](https://discourse.julialang.org/t/catalyst-jl-algebraically-relate-two-species/95762 "2023-03-09T01:45:40Z")

</div>

Using Catalyst.jl (DSL) to develop a model with pharmacology. The drug concentration is tracked in milligrams, but the pharmacology requires an algebraic transformation to ng/mL-unbound (multiplication by a few parameter…

---

## [Conda.add("numpy") fails](https://discourse.julialang.org/t/conda-add-numpy-fails/95765)

<div class="topic-metadata">

**Author:** [@flvegat](https://discourse.julialang.org/u/flvegat)\
**Replies:** 3\
**Last updated:** [March 9, 2023, 1:42am UTC](https://discourse.julialang.org/t/conda-add-numpy-fails/95765 "2023-03-09T01:42:14Z")

</div>

from Julia is fast! | JuliaAcademy trying too run “9 Julia is fast.ipynb” had to add ENV\[“PYTHON”\] = “c:/Users//anaconda3/python.exe” to cell 30. cell 37 fails using Pkg; Pkg.add(“Conda”) using Conda Conda.add(“n…

---

## [PackageCompiler create\_sysimage fails because of failure to precompile Cxx.jl](https://discourse.julialang.org/t/packagecompiler-create-sysimage-fails-because-of-failure-to-precompile-cxx-jl/95741)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 11:53pm UTC](https://discourse.julialang.org/t/packagecompiler-create-sysimage-fails-because-of-failure-to-precompile-cxx-jl/95741 "2023-03-08T23:53:08Z")

</div>

Hello, I am watching the awesome talk by Kristoffer Carlsson here PackageCompiler and Static Compilation - YouTube about PackageCompiler. I tried to run the following command in my Julia repl create\_sysimage(\[:DataFram…

---

## [Overhead between calling a function and running the first line its code](https://discourse.julialang.org/t/overhead-between-calling-a-function-and-running-the-first-line-its-code/93963)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 7\
**Last updated:** [March 8, 2023, 11:31pm UTC](https://discourse.julialang.org/t/overhead-between-calling-a-function-and-running-the-first-line-its-code/93963 "2023-03-08T23:31:10Z")

</div>

After the packages are loaded, there is a “long” time to wait until the first message indicate that the function called is running. Here is a test example: println("------------- Loading") t0 = time\_ns() using LinearA…

---

## [How to autodifferentiate the results of NLsolve?](https://discourse.julialang.org/t/how-to-autodifferentiate-the-results-of-nlsolve/65680)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 24\
**Last updated:** [March 8, 2023, 10:20pm UTC](https://discourse.julialang.org/t/how-to-autodifferentiate-the-results-of-nlsolve/65680 "2023-03-08T22:20:44Z")

</div>

How can I auto differentiate the function cd with respect to p? using ForwardDiff using NLsolve function cd(; p=\[1.0, 1.0\], i=100) function sys(sto, x; p=p, i=i) x1 = x\[1\] x2 = x\[2\] p1 = p\[1…

---

## [JuliaRegistries setup for air gapped network](https://discourse.julialang.org/t/juliaregistries-setup-for-air-gapped-network/94313)

<div class="topic-metadata">

**Author:** [@lateo](https://discourse.julialang.org/u/lateo)\
**Replies:** 28\
**Last updated:** [March 8, 2023, 10:16pm UTC](https://discourse.julialang.org/t/juliaregistries-setup-for-air-gapped-network/94313 "2023-03-08T22:16:47Z")

</div>

Hi everyone. I’m no Julia enthousiast, and i don’t know much about Julia. I’m a sysadmin looking for ways to offer a clone of JuliaRegistries to users using a completely “offline network”, aka air gapped network. It me…

---

## [Binary Trees for Equations](https://discourse.julialang.org/t/binary-trees-for-equations/95748)

<div class="topic-metadata">

**Author:** [@Kianoush\_Ramezani\_sh](https://discourse.julialang.org/u/Kianoush_Ramezani_sh)\
**Replies:** 4\
**Last updated:** [March 8, 2023, 10:06pm UTC](https://discourse.julialang.org/t/binary-trees-for-equations/95748 "2023-03-08T22:06:59Z")

</div>

Hi everyone, I want to represent an equation like a binary tree, e,g., I have this equation x\*\*2+x+1 and in Julia I want to represent it as a tree with nodes e.g. + sign is a Node in that tree or x is Node or 1 is an…

---

## [Can't open a webpage written in Julia](https://discourse.julialang.org/t/cant-open-a-webpage-written-in-julia/95772)

<div class="topic-metadata">

**Author:** [@martinesocialgroup](https://discourse.julialang.org/u/martinesocialgroup)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 9:58pm UTC](https://discourse.julialang.org/t/cant-open-a-webpage-written-in-julia/95772 "2023-03-08T21:58:26Z")

</div>

Hello! I am new to Julia and I am learning this language. When I try to open my webpage based on Julia (index.jl), I receive an error: “couldn’t create child process: 720002: index.jl” My code for index.jl is: #!:"C:\\…

---

## [Do we have some bot or script to convert python code/ python ML models to Julia?](https://discourse.julialang.org/t/do-we-have-some-bot-or-script-to-convert-python-code-python-ml-models-to-julia/95767)

<div class="topic-metadata">

**Author:** [@5hv5hvnk](https://discourse.julialang.org/u/5hv5hvnk)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 8:48pm UTC](https://discourse.julialang.org/t/do-we-have-some-bot-or-script-to-convert-python-code-python-ml-models-to-julia/95767 "2023-03-08T20:48:10Z")

</div>

I want to build one but don’t know if there is such tool already present or not. If there isn’t and anyone want to help build it you are most welcome. If anyone have any tips for building something like this please shar…

---

## [How to use map to multiply two vectors](https://discourse.julialang.org/t/how-to-use-map-to-multiply-two-vectors/95688)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 21\
**Last updated:** [March 8, 2023, 8:33pm UTC](https://discourse.julialang.org/t/how-to-use-map-to-multiply-two-vectors/95688 "2023-03-08T20:33:45Z")

</div>

Given these two vectors, x = \[1,2,3\]; y=\[4,5,6\] I understand why this is true: x \* y' == \*(x, y') But I do not understand why this is true or, better, why \* does not multiply the two vectors the same way. How can I u…

---

## [Julia 1.9: great improvement](https://discourse.julialang.org/t/julia-1-9-great-improvement/95758)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 7:03pm UTC](https://discourse.julialang.org/t/julia-1-9-great-improvement/95758 "2023-03-08T19:03:16Z")

</div>

I started using it today. The speed improvements and REPL.activate functionality have immensely improved my development experience. I’m sure it was hard work. I think the last major missing piece is compiled debugging (…

---

## [JuMP and Ipopt optimization: How to reduce run time for iterative optimization?](https://discourse.julialang.org/t/jump-and-ipopt-optimization-how-to-reduce-run-time-for-iterative-optimization/95684)

<div class="topic-metadata">

**Author:** [@codingfriend](https://discourse.julialang.org/u/codingfriend)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 6:48pm UTC](https://discourse.julialang.org/t/jump-and-ipopt-optimization-how-to-reduce-run-time-for-iterative-optimization/95684 "2023-03-08T18:48:53Z")

</div>

Hi everyone! I am seeking help to speed up my code using JuMP and Ipopt. My current approach is too slow for my needs. :grinning: My original code looks something like this: ‘’‘julia for i = 1:N optimizer = optimizer…

---

## [Control over parameters of DifferentialEquations.jl package](https://discourse.julialang.org/t/control-over-parameters-of-differentialequations-jl-package/95665)

<div class="topic-metadata">

**Author:** [@arpan\_chatterjee](https://discourse.julialang.org/u/arpan_chatterjee)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 6:31pm UTC](https://discourse.julialang.org/t/control-over-parameters-of-differentialequations-jl-package/95665 "2023-03-08T18:31:32Z")

</div>

In DifferentialEquations.jl package can I have control over the parameters value, for e.g., if within the whole time evolution some parameters takes value 1 for the half of the evolution time and for the rest of the time…

---

## [Starting Julia with a few tasks](https://discourse.julialang.org/t/starting-julia-with-a-few-tasks/95583)

<div class="topic-metadata">

**Author:** [@GuyFromBosnia](https://discourse.julialang.org/u/GuyFromBosnia)\
**Replies:** 5\
**Last updated:** [March 8, 2023, 6:05pm UTC](https://discourse.julialang.org/t/starting-julia-with-a-few-tasks/95583 "2023-03-08T18:05:09Z")

</div>

I need to do two tasks in Julia but I am so new that I can barely open Julia. I am using Julia in the numerical analysis course on my collage so I was hoping that I can get some help here. Here are the tasks:

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

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