# Latest

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

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

**Page:** 768

---

## [Iterate out of range](https://discourse.julialang.org/t/iterate-out-of-range/95360)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 10:50pm UTC](https://discourse.julialang.org/t/iterate-out-of-range/95360 "2023-02-28T22:50:35Z")

</div>

Are these results expected? julia\> iterate(3:7, 9) (10, 10) julia\> iterate(3:7, 9) (10, 10) julia\> iterate(3:1:7, 9) (10, 10) julia\> iterate('c':'l','n') ('o', 'o') julia\> iterate('c':'l',15) ('\\x10', '\\x10')

---

## [Julia meetup in Eindhoven, NL](https://discourse.julialang.org/t/julia-meetup-in-eindhoven-nl/95359)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 10:16pm UTC](https://discourse.julialang.org/t/julia-meetup-in-eindhoven-nl/95359 "2023-02-28T22:16:33Z")

</div>

Thanks a lot for the organizers of the Julia meetup in Eindhoven, NL today! I was happy to finally meet Chris Rackauckas in person. :slight\_smile: Got some new ideas how to improve my simulation software.

---

## [Type-stable broadcasting involving nested array](https://discourse.julialang.org/t/type-stable-broadcasting-involving-nested-array/95353)

<div class="topic-metadata">

**Author:** [@tianrluo](https://discourse.julialang.org/u/tianrluo)\
**Replies:** 9\
**Last updated:** [February 28, 2023, 9:59pm UTC](https://discourse.julialang.org/t/type-stable-broadcasting-involving-nested-array/95353 "2023-02-28T21:59:02Z")

</div>

Hi Folks, I am trying to get the following toy snippet type-stable, but wasn’t sure how to proceed. using Random using InteractiveUtils using LinearAlgebra const T = Float64 # scalar ver function foo( a ::D, b …

---

## [Fill up and fill down rows](https://discourse.julialang.org/t/fill-up-and-fill-down-rows/80196)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 11\
**Last updated:** [February 28, 2023, 9:46pm UTC](https://discourse.julialang.org/t/fill-up-and-fill-down-rows/80196 "2023-02-28T21:46:27Z")

</div>

Hi i have a dataframe looks like this df1 = DataFrame() df1.id = sort!(repeat(1:3,5)) df1.a = \[1,missing,2,3,missing,missing,2,3,4,5, 1,2,3,missing,5\] i want to fill the missing values in column a with the previous val…

---

## [Replace missing values based on column data type](https://discourse.julialang.org/t/replace-missing-values-based-on-column-data-type/94186)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 7\
**Last updated:** [February 10, 2023, 2:23am UTC](https://discourse.julialang.org/t/replace-missing-values-based-on-column-data-type/94186 "2023-02-10T02:23:18Z")

</div>

Hello, Question 1: I have df with multiple columns say a,b,c,d… so on and i would like to replace all missing values dynamically in each columns with 0(if column data type is int) and with “xyz” if column data type is …

---

## [Searching for words: @model xxx(n) vs model = xxx(17)](https://discourse.julialang.org/t/searching-for-words-model-xxx-n-vs-model-xxx-17/95230)

<div class="topic-metadata">

**Author:** [@zenon](https://discourse.julialang.org/u/zenon)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 9:05pm UTC](https://discourse.julialang.org/t/searching-for-words-model-xxx-n-vs-model-xxx-17/95230 "2023-02-28T21:05:06Z")

</div>

In Turing, we have one thing called model, the thing constructed with the @model macro. Like @model myModel(X; n = 1) m ~ Normal(100.0, 5.0) s ~ Exponential(1.0) X ~ filldist(Normal(m, s), n) end But then,…

---

## [Class Constructor](https://discourse.julialang.org/t/class-constructor/95350)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 4\
**Last updated:** [February 28, 2023, 8:31pm UTC](https://discourse.julialang.org/t/class-constructor/95350 "2023-02-28T20:31:13Z")

</div>

I’m trying to generate a struct, and one of the of the elements of the struct depends on a parameter of the class. I’m not really sure how to do it tho Example of what I’m doing struct SpectralDiscretization1D Spa…

---

## [Compile my source code](https://discourse.julialang.org/t/compile-my-source-code/95287)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 8:30pm UTC](https://discourse.julialang.org/t/compile-my-source-code/95287 "2023-02-28T20:30:12Z")

</div>

I have a code (stored in four files) that takes a long time to initialize (the first time) and is relatively fast to execute). Waiting a few minutes for a code that runs in 10 seconds is unproductive. Is there a way to …

---

## [SIMD gather result in slow down](https://discourse.julialang.org/t/simd-gather-result-in-slow-down/95161)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 6\
**Last updated:** [February 28, 2023, 7:33pm UTC](https://discourse.julialang.org/t/simd-gather-result-in-slow-down/95161 "2023-02-28T19:33:56Z")

</div>

using SIMD function Unpack(dst::Vector{UInt8}, src::Vector{UInt8}, count::Int) int32SplitArray = src int64Array = reinterpret(Int32, dst) v1 = Int32\[0\] v2 = reinterpret(UInt8, v1) @inbounds for i = 1…

---

## [Python Ray Project Alternative in Julia](https://discourse.julialang.org/t/python-ray-project-alternative-in-julia/25811)

<div class="topic-metadata">

**Author:** [@bhgomes](https://discourse.julialang.org/u/bhgomes)\
**Replies:** 6\
**Last updated:** [February 28, 2023, 7:08pm UTC](https://discourse.julialang.org/t/python-ray-project-alternative-in-julia/25811 "2023-02-28T19:08:14Z")

</div>

I recently found out about this project, which is finding some traction in the python community, mostly focusing on building/running distributed applications for machine learning. I am interested in the following questio…

---

## [Check if running in VS Code inside startup.jl](https://discourse.julialang.org/t/check-if-running-in-vs-code-inside-startup-jl/95346)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 6:55pm UTC](https://discourse.julialang.org/t/check-if-running-in-vs-code-inside-startup-jl/95346 "2023-02-28T18:55:19Z")

</div>

Is there a way to determine, inside of startup.jl, whether a Julia REPL session is running inside of VS Code? Checking if Logging.current\_logger() isa VSCodeServer.VSCodeLogger seems to work once the REPL prompt is actu…

---

## [Getproperty for a Task is type unstable?](https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 5:50pm UTC](https://discourse.julialang.org/t/getproperty-for-a-task-is-type-unstable/95345 "2023-02-28T17:50:32Z")

</div>

julia\> a() = sum(i for i in 1:1000); julia\> b = Task(a); julia\> @descend\_code\_warntype (b -\> b.queue)(b) (::var"#87#88")(b) @ Main REPL\[64\]:1 Body::Any 1 ─ nothing …

---

## [Please critique my FizzBuzz!](https://discourse.julialang.org/t/please-critique-my-fizzbuzz/30987)

<div class="topic-metadata">

**Author:** [@Adriel](https://discourse.julialang.org/u/Adriel)\
**Replies:** 17\
**Last updated:** [November 16, 2019, 1:56am UTC](https://discourse.julialang.org/t/please-critique-my-fizzbuzz/30987 "2019-11-16T01:56:15Z")

</div>

(For anyone needing an excuse to procrastinate.) Is this a very julian way to write this? How could it be improved? function fizzbuzz(i, ps) s = \[p.second for p in ps if p.first(i)\] |\> join return isempty(s) ? …

---

## [Ignore\_derivatives of entire module with ChainRules.jl](https://discourse.julialang.org/t/ignore-derivatives-of-entire-module-with-chainrules-jl/95341)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 4:06pm UTC](https://discourse.julialang.org/t/ignore-derivatives-of-entire-module-with-chainrules-jl/95341 "2023-02-28T16:06:33Z")

</div>

I’m trying to get reverse differentiation up and running on some simulations. Central to the code is a module that does a lot of array manipulation and bit shifting, which are things that Zygote.jl will complain about. N…

---

## [Errors when using sysimage with Makie master](https://discourse.julialang.org/t/errors-when-using-sysimage-with-makie-master/95132)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 4:01pm UTC](https://discourse.julialang.org/t/errors-when-using-sysimage-with-makie-master/95132 "2023-02-28T16:01:20Z")

</div>

I’m trying to stay on the bleeding edge with Makie master, yet minimize my TTFP. I’m creating a sysimage with basically the following (the Pkg.activate(temp=true) is an attempt to make this as reproducible as possible): …

---

## [Multi output Gaussian Process package?](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 4:00pm UTC](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335 "2023-02-28T16:00:54Z")

</div>

Hello, I am attempting to predict temperatures on a grid using a small dataset. Based on my research, I believe that Gaussian Processes would be the most effective approach. However, I am having trouble finding a packag…

---

## [How to change default color theme in Makie?](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 3:54pm UTC](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251 "2023-02-28T15:54:44Z")

</div>

:frowning: tried belows, but no one works. using CairoMakie, LaTeXStrings set\_theme!(color = :blue) set\_theme!(colors = :darktest) set\_theme!(colormap = :Hiroshige) # https://docs.makie.org/stable/api/index.html#Makie …

---

## [Writing with NPZ](https://discourse.julialang.org/t/writing-with-npz/95340)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 3:33pm UTC](https://discourse.julialang.org/t/writing-with-npz/95340 "2023-02-28T15:33:54Z")

</div>

I am trying to write a dictionary element that is a list of lists of Float64. Here is my MWE: import NPZ d = Dict{String, Vector{Vector{Float64}}}("tdnn" =\> \[\]) push!(d\["tdnn"\], \[1.,2.,3.\]) push!(d\["tdnn"\], \[4.,2.,3.\]…

---

## [Joinpath fails on splitdrive output](https://discourse.julialang.org/t/joinpath-fails-on-splitdrive-output/95328)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 4\
**Last updated:** [February 28, 2023, 1:46pm UTC](https://discourse.julialang.org/t/joinpath-fails-on-splitdrive-output/95328 "2023-02-28T13:46:44Z")

</div>

I would have expected joinpath(splitdrive(pwd())) == pwd(). On Julia 1.8.5 julia\> pwd() "C:\\\\Users\\\\mzaffalon" julia\> joinpath(splitdrive(pwd())) "\\\\Users\\\\mzaffalon" julia\> joinpath(splitpath(pwd())) == pwd() true I…

---

## [How to solve PDAEs (incorporate mass matrix into PDE solver)](https://discourse.julialang.org/t/how-to-solve-pdaes-incorporate-mass-matrix-into-pde-solver/95301)

<div class="topic-metadata">

**Author:** [@anh](https://discourse.julialang.org/u/anh)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 1:23pm UTC](https://discourse.julialang.org/t/how-to-solve-pdaes-incorporate-mass-matrix-into-pde-solver/95301 "2023-02-28T13:23:21Z")

</div>

I am trying to solve a system of 1st order linear partial differential equations with a constraint on two out of three of my dependent variables (to enforce population conservation). I am familiar with DAEs and the asso…

---

## [Does GeometryBasics work with SVectors?](https://discourse.julialang.org/t/does-geometrybasics-work-with-svectors/95327)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 1:19pm UTC](https://discourse.julialang.org/t/does-geometrybasics-work-with-svectors/95327 "2023-02-28T13:19:06Z")

</div>

I tried to construct a rectangle from boundary points but it doesn’t seem to recognize SVectors.

---

## [PackageCompiler.jl doesn't work in Docker when compiling HTTP.jl](https://discourse.julialang.org/t/packagecompiler-jl-doesnt-work-in-docker-when-compiling-http-jl/95329)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 1:11pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-doesnt-work-in-docker-when-compiling-http-jl/95329 "2023-02-28T13:11:13Z")

</div>

LoadError: could not find a compiler, looked for gcc and clang when I try to compile HTTP.jl using Pkg; Pkg.add("HTTP") Pkg.add("PackageCompiler") using PackageCompiler create\_sysimage(\["HTTP"\]; sysimage\_path="/Example…

---

## [MTK: scaling of variables in plot](https://discourse.julialang.org/t/mtk-scaling-of-variables-in-plot/94303)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 12:41pm UTC](https://discourse.julialang.org/t/mtk-scaling-of-variables-in-plot/94303 "2023-02-28T12:41:28Z")

</div>

Suppose the solution sol from simulating an MTK model contains state x and observable variable y. I can then plot x with either of the following commands: plot(sol, idxs = x) # or plot(sol, idxs = \[x\]) If I want to pl…

---

## [Computing Symbolic Integral with SymPy](https://discourse.julialang.org/t/computing-symbolic-integral-with-sympy/95307)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 12:36pm UTC](https://discourse.julialang.org/t/computing-symbolic-integral-with-sympy/95307 "2023-02-28T12:36:33Z")

</div>

Hi all, I just want to know why the solution in the manual for number 17 and 18 are different with the one I computed with Julia? using SymPy @syms x, v, z, t v1(v) = (6v+9)/(3v^2 + 9v) v2(z) = z/(2z^2 + 8) v3(x) = …

---

## [Unable to upgrade to latest version of MCMCDiagnosticTools](https://discourse.julialang.org/t/unable-to-upgrade-to-latest-version-of-mcmcdiagnostictools/95321)

<div class="topic-metadata">

**Author:** [@Ashim\_Kapoor](https://discourse.julialang.org/u/Ashim_Kapoor)\
**Replies:** 4\
**Last updated:** [February 28, 2023, 11:57am UTC](https://discourse.julialang.org/t/unable-to-upgrade-to-latest-version-of-mcmcdiagnostictools/95321 "2023-02-28T11:57:29Z")

</div>

Hello everyone, Here is what the software is saying to me : (@v1.8) pkg\> status --outdated Status \`~/.julia/environments/v1.8/Project.toml\` ⌅ \[be115224\] MCMCDiagnosticTools v0.2.6 (\<v0.3.1): MCMCChains (@v1.8) pkg\> ad…

---

## [DateTime: Time division](https://discourse.julialang.org/t/datetime-time-division/95285)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 9\
**Last updated:** [February 28, 2023, 11:36am UTC](https://discourse.julialang.org/t/datetime-time-division/95285 "2023-02-28T11:36:03Z")

</div>

I was wondering how division works on time intervals. My naïve thought doesn’t work using Dates hr = Dates.Hour(1) t1 = DateTime(2023, 1, 3) r = 7.4 t2 = t1 + hr/r # -\>InexactError: Int64(0.13513513513513511) The foll…

---

## [Jupyterlab: Failed in autocompleting math symbol](https://discourse.julialang.org/t/jupyterlab-failed-in-autocompleting-math-symbol/95250)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 1\
**Last updated:** [February 28, 2023, 10:46am UTC](https://discourse.julialang.org/t/jupyterlab-failed-in-autocompleting-math-symbol/95250 "2023-02-28T10:46:58Z")

</div>

Question 1: Look at Gif at below, autocompleting math symbol in jupyterlab is failed. Question 2: autocompleting math symbol in comments in jupyterlab is failed, the TAB can not work. Julia Version 1.8.5 Commit 1…

---

## [Building OpenBLAS for PowerPC Defaults to Power8](https://discourse.julialang.org/t/building-openblas-for-powerpc-defaults-to-power8/93972)

<div class="topic-metadata">

**Author:** [@bmgroth](https://discourse.julialang.org/u/bmgroth)\
**Replies:** 10\
**Last updated:** [February 28, 2023, 10:21am UTC](https://discourse.julialang.org/t/building-openblas-for-powerpc-defaults-to-power8/93972 "2023-02-28T10:21:26Z")

</div>

I am trying to get OpenBLAS to compile for Power10. However, it seems OpenBLAS is defaulting to Power8 compilation, which is ~2x slower than the implementation for Power10 as it has MMA support for BLAS 3 routines like …

---

## [Reports of Sundials' Death are Greatly Exaggerated?](https://discourse.julialang.org/t/reports-of-sundials-death-are-greatly-exaggerated/95286)

<div class="topic-metadata">

**Author:** [@anodos](https://discourse.julialang.org/u/anodos)\
**Replies:** 6\
**Last updated:** [February 28, 2023, 10:17am UTC](https://discourse.julialang.org/t/reports-of-sundials-death-are-greatly-exaggerated/95286 "2023-02-28T10:17:07Z")

</div>

Apologies for the tongue-in-cheek title. According to this discussion, native QNDF julia solvers now consistently outperform CVODE\_BDF on the test suite. However, my experience solving reasonably stiff sets of ~100’s…

---

## [Accessing abstract array struct field allocates memory?](https://discourse.julialang.org/t/accessing-abstract-array-struct-field-allocates-memory/95313)

<div class="topic-metadata">

**Author:** [@Kirby\_Zhang](https://discourse.julialang.org/u/Kirby_Zhang)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 8:07am UTC](https://discourse.julialang.org/t/accessing-abstract-array-struct-field-allocates-memory/95313 "2023-02-28T08:07:04Z")

</div>

The following code uses AbstractVector as a struct field, and it results in memory being allocated: struct S1 A::AbstractVector{Int} end function f(s::S1) s.A\[end\] end s = S1(\[1,2,3\]) f(s) @code\_warntype f(s)…

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

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