# \#first-steps

**URL:** https://discourse.julialang.org/tag/first-steps/41.md

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

---

## [Multiple Loops in Julia](https://discourse.julialang.org/t/multiple-loops-in-julia/127814)

<div class="topic-metadata">

**Author:** [@MarcoBPCode](https://discourse.julialang.org/u/MarcoBPCode)\
**Replies:** 7\
**Last updated:** [April 8, 2025, 7:47am UTC](https://discourse.julialang.org/t/multiple-loops-in-julia/127814 "2025-04-08T07:47:31Z")

</div>

HI, I’m writing a code that need multiples loops inside each other and i want to make parallelization it. Loop1{ Loop2{ Loop3{ Loop4{ … } } } } Can recommended some techique ? o maybe something to read o impl…

---

## [How to make vegalite read my topojson file?](https://discourse.julialang.org/t/how-to-make-vegalite-read-my-topojson-file/34546)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 18\
**Last updated:** [March 5, 2025, 3:39pm UTC](https://discourse.julialang.org/t/how-to-make-vegalite-read-my-topojson-file/34546 "2025-03-05T15:39:15Z")

</div>

I have a topojson file located in this path: "/home/juliana/roc/Data/Topojson/disa\_ONT\_region" I want to make a choropleth map, but I do not know how to call that file into my code. I know it has to go in “values” I h…

---

## [What I learned using Julia to solve the first 50 Project Euler problems](https://discourse.julialang.org/t/what-i-learned-using-julia-to-solve-the-first-50-project-euler-problems/57934)

<div class="topic-metadata">

**Author:** [@rpmuller](https://discourse.julialang.org/u/rpmuller)\
**Replies:** 2\
**Last updated:** [August 23, 2024, 1:40pm UTC](https://discourse.julialang.org/t/what-i-learned-using-julia-to-solve-the-first-50-project-euler-problems/57934 "2024-08-23T13:40:51Z")

</div>

I’m a 24-year veteran of Python programming, and during that time I’ve gotten really comfortable with the language. I first looked seriously at Julia 4 years ago; to learn Julia better, I rewrote much of the core of PyQu…

---

## [Agent steps](https://discourse.julialang.org/t/agent-steps/114980)

<div class="topic-metadata">

**Author:** [@Dawit](https://discourse.julialang.org/u/Dawit)\
**Replies:** 0\
**Last updated:** [May 30, 2024, 7:15pm UTC](https://discourse.julialang.org/t/agent-steps/114980 "2024-05-30T19:15:17Z")

</div>

Hi Guys, I am new to julia… I was working on American football simulation and I tried to move agents/players with certain movement… for them to score and reset on the center position. Now i wanted to try… for the ball ca…

---

## [Solving large convex optimization/flow assignment problem](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872)

<div class="topic-metadata">

**Author:** [@SuperGrobi](https://discourse.julialang.org/u/SuperGrobi)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 2:13pm UTC](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872 "2024-01-17T14:13:09Z")

</div>

I am trying to solve a convex flow-assignment problem on a large(ish) graph with (currently) about 7000 edges. Mathematically, it looks like \\underset{x\\in\\mathbb{R}\_+^{|E|}}{\\text{minimize}} \\quad U(x) \\\\ U(x) = -l^T…

---

## [How to make a Pair Plot in Plots.jl?](https://discourse.julialang.org/t/how-to-make-a-pair-plot-in-plots-jl/53785)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [January 14, 2024, 11:19pm UTC](https://discourse.julialang.org/t/how-to-make-a-pair-plot-in-plots-jl/53785 "2024-01-14T23:19:38Z")

</div>

Hey everyone, I feel like I am totally overthinking this but am running into a wall. I was able to make a pairplot using some code from a Makie discussion here. I have been trying to do the same thing using Plots.jl. In…

---

## [Parallelizing Multiple Workers for File Operations](https://discourse.julialang.org/t/parallelizing-multiple-workers-for-file-operations/83951)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 4:41pm UTC](https://discourse.julialang.org/t/parallelizing-multiple-workers-for-file-operations/83951 "2022-07-08T16:41:27Z")

</div>

Hi all, This is my first time trying this out but here is a problem and what I am trying to do and what I am stuck on trying to do: Problem: I have many big files (200+, 50 - 100GB each) that I am going to read out. I…

---

## [PkgTemplates.jl is not updated to my configurations in global Git config](https://discourse.julialang.org/t/pkgtemplates-jl-is-not-updated-to-my-configurations-in-global-git-config/83146)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 10:01pm UTC](https://discourse.julialang.org/t/pkgtemplates-jl-is-not-updated-to-my-configurations-in-global-git-config/83146 "2022-06-21T22:01:10Z")

</div>

So I have updated my configurations in global Git config (they where incomplete before) and now I would like for PkgTemplate to read this information, as is suppose to, the issue is that when I do t = Template() t("MyPk…

---

## [List Comprehension and Map](https://discourse.julialang.org/t/list-comprehension-and-map/79502)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 8\
**Last updated:** [April 20, 2022, 9:21am UTC](https://discourse.julialang.org/t/list-comprehension-and-map/79502 "2022-04-20T09:21:12Z")

</div>

I know there are a number of topics already open on this subject, but I haven’t found this specific pattern yet. I think I’m look for the map do equivalent of conditional array comprehension. Here’s a small example and …

---

## [How choose which GPU to send the workload to in Flux.jl?](https://discourse.julialang.org/t/how-choose-which-gpu-to-send-the-workload-to-in-flux-jl/16337)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [March 11, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-choose-which-gpu-to-send-the-workload-to-in-flux-jl/16337 "2022-03-11T16:14:15Z")

</div>

I have set up a neural network in Flux and I would like to train it on a GPU. HOwever my laptop has two GPUs and one is an onboard GPU so I like to send the workload to the better GPU. But how I choose which GPU to send…

---

## [How to serve a file with specific MIME / media type in Genie?](https://discourse.julialang.org/t/how-to-serve-a-file-with-specific-mime-media-type-in-genie/71447)

<div class="topic-metadata">

**Author:** [@ProvocaTeach](https://discourse.julialang.org/u/ProvocaTeach)\
**Replies:** 0\
**Last updated:** [November 14, 2021, 6:59am UTC](https://discourse.julialang.org/t/how-to-serve-a-file-with-specific-mime-media-type-in-genie/71447 "2021-11-14T06:59:30Z")

</div>

Hi all, I am still new to the Julia web stack – namely, the Genie and HTTP packages. I know that it is possible to serve an HTML file with media type text/html from, say, the root directory / using: route("/") do se…

---

## [Iterate through all combinations of elements in an arbitrary number of arrays](https://discourse.julialang.org/t/iterate-through-all-combinations-of-elements-in-an-arbitrary-number-of-arrays/68819)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [September 27, 2021, 4:53pm UTC](https://discourse.julialang.org/t/iterate-through-all-combinations-of-elements-in-an-arbitrary-number-of-arrays/68819 "2021-09-27T16:53:29Z")

</div>

I have an array arrays which contains a number of arrays (arbitrary). How do I iterate through all combinations of elelements? If I know that there are e.g. 3 arrays I can do: for e1 in arrays\[1\], e2 in arrays\[2\], e3 i…

---

## [Code review for my first package](https://discourse.julialang.org/t/code-review-for-my-first-package/58574)

<div class="topic-metadata">

**Author:** [@Ihar\_Kudraucau](https://discourse.julialang.org/u/Ihar_Kudraucau)\
**Replies:** 1\
**Last updated:** [August 30, 2021, 12:32pm UTC](https://discourse.julialang.org/t/code-review-for-my-first-package/58574 "2021-08-30T12:32:01Z")

</div>

Hello colleagues, I’ve created my first Julia package: GitHub - xyxel/RedisGraph.jl: RedisGraph Julia client I will be very grateful if somebody review the package in order to check that code is Julia-friendly. Thank …

---

## [Resources for creating first package](https://discourse.julialang.org/t/resources-for-creating-first-package/67327)

<div class="topic-metadata">

**Author:** [@DawievLill](https://discourse.julialang.org/u/DawievLill)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 8:17am UTC](https://discourse.julialang.org/t/resources-for-creating-first-package/67327 "2021-08-30T08:17:28Z")

</div>

Hi everyone, I have been reading the message boards for some time now and it seems like the people in the community are quite friendly, so I thought I might get more involved. I have some Julia code that I want to conv…

---

## [CuArray supports bits type error when performing automatic differentiation in sciml\_train (possibly due to array reshaping)](https://discourse.julialang.org/t/cuarray-supports-bits-type-error-when-performing-automatic-differentiation-in-sciml-train-possibly-due-to-array-reshaping/65389)

<div class="topic-metadata">

**Author:** [@timothypraditia](https://discourse.julialang.org/u/timothypraditia)\
**Replies:** 6\
**Last updated:** [July 28, 2021, 8:39pm UTC](https://discourse.julialang.org/t/cuarray-supports-bits-type-error-when-performing-automatic-differentiation-in-sciml-train-possibly-due-to-array-reshaping/65389 "2021-07-28T20:39:36Z")

</div>

Hello everyone, I’m trying to convert my code so that it would run on GPU, but I still encountered some issues. My code is mainly using DiffEqFlux, with some array reshaping required inside the Neural ODE function itse…

---

## [Running For loops on GPU](https://discourse.julialang.org/t/running-for-loops-on-gpu/1553)

<div class="topic-metadata">

**Author:** [@deepakagrawal](https://discourse.julialang.org/u/deepakagrawal)\
**Replies:** 11\
**Last updated:** [July 19, 2021, 5:39pm UTC](https://discourse.julialang.org/t/running-for-loops-on-gpu/1553 "2021-07-19T17:39:41Z")

</div>

I am trying to do simulation in which I am repeating same function multiple times Changing several parameters Is there a way I can do any of them via a for loop or some other way on GPU? I am new to Julia. Any help o…

---

## [Creating User-Defined Grouped DataFrames](https://discourse.julialang.org/t/creating-user-defined-grouped-dataframes/64387)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 1\
**Last updated:** [July 9, 2021, 9:13pm UTC](https://discourse.julialang.org/t/creating-user-defined-grouped-dataframes/64387 "2021-07-09T21:13:20Z")

</div>

Hi all, Just wanted to post a little snippet I learned from @kevbonham about how to create user-defined grouped data frames. What I mean by this, is I was working with time series data recently and wanted to generate gr…

---

## [Developing a Beginner's Roadmap to Learn Julia High Performance Computing for Data Science](https://discourse.julialang.org/t/developing-a-beginners-roadmap-to-learn-julia-high-performance-computing-for-data-science/63970)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 30\
**Last updated:** [July 5, 2021, 11:53pm UTC](https://discourse.julialang.org/t/developing-a-beginners-roadmap-to-learn-julia-high-performance-computing-for-data-science/63970 "2021-07-05T23:53:19Z")

</div>

Hi all :wave: Hope you are doing well! In alignment with both my professional and personal interests, I am slowly starting to turn my attention to the domain of High Performance Computing for the purposes of: Designin…

---

## [HPV disease model estimation (beginner issue)](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981)

<div class="topic-metadata">

**Author:** [@Mevlut\_Cayli](https://discourse.julialang.org/u/Mevlut_Cayli)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 8:41pm UTC](https://discourse.julialang.org/t/hpv-disease-model-estimation-beginner-issue/63981 "2021-07-03T20:41:21Z")

</div>

\`Hi, I 'm trying to estimate HPV model parameters with Turing but I’m not sure about how to determine prior parameters especially with σ , so when I run the model it seems because of the bad selection of σ last parameter…

---

## [Modelling and Simulation: Regarding DDEs](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677)

<div class="topic-metadata">

**Author:** [@Phonindra](https://discourse.julialang.org/u/Phonindra)\
**Replies:** 19\
**Last updated:** [July 2, 2021, 10:43pm UTC](https://discourse.julialang.org/t/modelling-and-simulation-regarding-ddes/63677 "2021-07-02T22:43:13Z")

</div>

I was facing a problem regarding delay. For low delay e.g. tau = 0.101 the code was fine as tau increases slightly as tau = 0.104 or more it shows some error not exactly error but warning and shows no promising result. W…

---

## [Simulation of regression coefficients](https://discourse.julialang.org/t/simulation-of-regression-coefficients/63683)

<div class="topic-metadata">

**Author:** [@elbersb](https://discourse.julialang.org/u/elbersb)\
**Replies:** 7\
**Last updated:** [June 29, 2021, 9:49am UTC](https://discourse.julialang.org/t/simulation-of-regression-coefficients/63683 "2021-06-29T09:49:51Z")

</div>

I’m still very much a novice in Julia, but I’m already using it productively for many tasks. In my research area, R and Stata are the main alternatives, so Julia really has a number of advantages in terms of speed and sy…

---

## [\[ANN\] Chemistry.jl](https://discourse.julialang.org/t/ann-chemistry-jl/63225)

<div class="topic-metadata">

**Author:** [@Baobab\_The\_fruit](https://discourse.julialang.org/u/Baobab_The_fruit)\
**Replies:** 5\
**Last updated:** [June 26, 2021, 5:26am UTC](https://discourse.julialang.org/t/ann-chemistry-jl/63225 "2021-06-26T05:26:30Z")

</div>

Happy to hereby announce what will be my first opensource project, first package, and first overall big project. An elementary chemistry package for Julia, supplying users with first the basic chemistry formulas and late…

---

## [Efficient way to solve similar optimization problems with JuMP](https://discourse.julialang.org/t/efficient-way-to-solve-similar-optimization-problems-with-jump/62793)

<div class="topic-metadata">

**Author:** [@AtsushiSakai](https://discourse.julialang.org/u/AtsushiSakai)\
**Replies:** 8\
**Last updated:** [June 14, 2021, 11:36pm UTC](https://discourse.julialang.org/t/efficient-way-to-solve-similar-optimization-problems-with-jump/62793 "2021-06-14T23:36:55Z")

</div>

I would like to solve some similar optimization problems, which are mathematical formulation (cost and constraints) are same, but just model parameter values or size of model parameters are different, in JuMP. Currently…

---

## [Multi-threaded parsing of log file](https://discourse.julialang.org/t/multi-threaded-parsing-of-log-file/62397)

<div class="topic-metadata">

**Author:** [@sampope](https://discourse.julialang.org/u/sampope)\
**Replies:** 5\
**Last updated:** [June 14, 2021, 9:44pm UTC](https://discourse.julialang.org/t/multi-threaded-parsing-of-log-file/62397 "2021-06-14T21:44:44Z")

</div>

In order to use julia for all the things, and to learn more about threads, I’m trying to parse a webserver log file using threads. In theory, each line is sent to a thread, a bunch of parsing functions run, the result sa…

---

## [How come Flux.jl's network parameters go to NaN?](https://discourse.julialang.org/t/how-come-flux-jls-network-parameters-go-to-nan/16439)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 10\
**Last updated:** [June 9, 2021, 3:25am UTC](https://discourse.julialang.org/t/how-come-flux-jls-network-parameters-go-to-nan/16439 "2021-06-09T03:25:27Z")

</div>

I am trying to train a neural and the code is quite large and I can’t seem to find a way to reproduce an MWE at the moment. But basically Flux.train!(loss, res\_vec, opt) gives an error of Loss is NaN and when I check the…

---

## [Is there a Julia package that can decompose a time series data into trend, seasonality and random?](https://discourse.julialang.org/t/is-there-a-julia-package-that-can-decompose-a-time-series-data-into-trend-seasonality-and-random/9518)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 25\
**Last updated:** [June 8, 2021, 6:18pm UTC](https://discourse.julialang.org/t/is-there-a-julia-package-that-can-decompose-a-time-series-data-into-trend-seasonality-and-random/9518 "2021-06-08T18:18:32Z")

</div>

I was trying to do some time series analysis. In R, there is a decompose function that can decompose a time series into trend, seasonality, and random noise. Is there an equivalent in Julia?

---

## [Same code much faster on a Ryzen than on a Xeon?](https://discourse.julialang.org/t/same-code-much-faster-on-a-ryzen-than-on-a-xeon/60534)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 10\
**Last updated:** [May 16, 2021, 10:41pm UTC](https://discourse.julialang.org/t/same-code-much-faster-on-a-ryzen-than-on-a-xeon/60534 "2021-05-16T22:41:04Z")

</div>

The time\_evolution ODE kernel below is blazing fast on a Ryzen, and more than 4 times slower on a Xeon. This difference is striking, as usually both machines have similar single thread performances. (more on that below…

---

## [oneAPI & FFTW](https://discourse.julialang.org/t/oneapi-fftw/59055)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.julialang.org/u/fra)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 6:12am UTC](https://discourse.julialang.org/t/oneapi-fftw/59055 "2021-04-12T06:12:44Z")

</div>

I’m trying oneAPI.jl with FFTW and I get an error when trying to use complex arrays in the GPU. using oneAPI using FFTW a = randn(1024) .+ im\*randn(1024); b = oneArray(a); fft(a); fft(b); For the oneArray case I get j…

---

## [Setting number of threads and parsing arguments](https://discourse.julialang.org/t/setting-number-of-threads-and-parsing-arguments/57904)

<div class="topic-metadata">

**Author:** [@mjanun](https://discourse.julialang.org/u/mjanun)\
**Replies:** 6\
**Last updated:** [March 25, 2021, 6:36pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-and-parsing-arguments/57904 "2021-03-25T18:36:34Z")

</div>

I understand that to launch Julia with multithreading from command prompt (on Windows), one has to pass the following command before launching Julia: set JULIA\_NUM\_THREADS=4 I am calling Julia from Excel/VBA using the S…

---

## [DataLoader-like interface for Turing?](https://discourse.julialang.org/t/dataloader-like-interface-for-turing/56678)

<div class="topic-metadata">

**Author:** [@qft](https://discourse.julialang.org/u/qft)\
**Replies:** 6\
**Last updated:** [March 7, 2021, 5:53pm UTC](https://discourse.julialang.org/t/dataloader-like-interface-for-turing/56678 "2021-03-07T17:53:55Z")

</div>

I am very recently introduced to Turing. In all the example code I see, the model is given a fixed set of observation, and sample a for specific number of iterations. I am wondering, is it possible to use a different sub…

[Next page](https://discourse.julialang.org/tag/first-steps/41.md?match_all_tags=true&page=1&tags%5B%5D=first-steps)
