# Latest

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

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

**Page:** 689

---

## [Code coverage with Coverage.jl in vscode](https://discourse.julialang.org/t/code-coverage-with-coverage-jl-in-vscode/65438)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 6\
**Last updated:** [May 26, 2023, 3:50pm UTC](https://discourse.julialang.org/t/code-coverage-with-coverage-jl-in-vscode/65438 "2023-05-26T15:50:47Z")

</div>

Hi, I followed the “tutorial” on https://github.com/JuliaCI/Coverage.jl I manage to create .cov files for my local package as well as an lcov file after running the command LCOV.write("coverage-lcov.info", coverage) I…

---

## [Turing progress bar](https://discourse.julialang.org/t/turing-progress-bar/99445)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 3:50pm UTC](https://discourse.julialang.org/t/turing-progress-bar/99445 "2023-05-26T15:50:03Z")

</div>

Why is that we don’t see progress bar during sampling but it appears just in the end ? Is there any way to check progress while sampling in Turing ? I use Jypyter notebook

---

## [How do the user trust levels work?](https://discourse.julialang.org/t/how-do-the-user-trust-levels-work/69000)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 3:23pm UTC](https://discourse.julialang.org/t/how-do-the-user-trust-levels-work/69000 "2023-05-26T15:23:11Z")

</div>

I noticed that my trust level is member, which is described as someone who has taken part in discussions here over a couple of weeks. My account is much older than that and I even think I had a higher trust level once, b…

---

## [Interest on Starting a JuliaHealth Workgroup?](https://discourse.julialang.org/t/interest-on-starting-a-juliahealth-workgroup/97999)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 19\
**Last updated:** [May 26, 2023, 3:13pm UTC](https://discourse.julialang.org/t/interest-on-starting-a-juliahealth-workgroup/97999 "2023-05-26T15:13:18Z")

</div>

Hi folks, I am really interested in starting a working group around JuliaHealth similar to the Julia HPC, Julia ML, and other workgroups here within the Julia community. In a nutshell, I am imagining the group could mee…

---

## [Apple silicon: should I buy a macbook?](https://discourse.julialang.org/t/apple-silicon-should-i-buy-a-macbook/94608)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 7\
**Last updated:** [May 26, 2023, 2:37pm UTC](https://discourse.julialang.org/t/apple-silicon-should-i-buy-a-macbook/94608 "2023-05-26T14:37:04Z")

</div>

I am considering buying a Macbook Pro with M2 Pro, but I am concerned about compatibility issues, specifically with Julia, which I now work exclusively with. For people already working with Apple silicon, are there any …

---

## [Arrays of concrete, mutable structs are not stored contiguously in memory](https://discourse.julialang.org/t/arrays-of-concrete-mutable-structs-are-not-stored-contiguously-in-memory/99423)

<div class="topic-metadata">

**Author:** [@aleferna12](https://discourse.julialang.org/u/aleferna12)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 2:37pm UTC](https://discourse.julialang.org/t/arrays-of-concrete-mutable-structs-are-not-stored-contiguously-in-memory/99423 "2023-05-26T14:37:02Z")

</div>

Hey! Can someone explain to me why arrays of mutable structs are stored as arrays of pointers in memory? Example: struct A x::Int32 end mutable struct B x::Int32 end a = Array{A}(undef, 2) b = Array{B}(undef, 2) prin…

---

## [Parallelization gives wrong result](https://discourse.julialang.org/t/parallelization-gives-wrong-result/99409)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 12\
**Last updated:** [May 26, 2023, 1:56pm UTC](https://discourse.julialang.org/t/parallelization-gives-wrong-result/99409 "2023-05-26T13:56:35Z")

</div>

I have a simple function which, given a vector of floats x, returns a BitVector that has 1’s in places where the entry is nonzero. In other words, f(x) = (x .!=0.0). When I parallelize it, I get incorrect results: using…

---

## [Issue with Complex DifferentialEquations](https://discourse.julialang.org/t/issue-with-complex-differentialequations/99432)

<div class="topic-metadata">

**Author:** [@Javad\_Vahedi](https://discourse.julialang.org/u/Javad_Vahedi)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 1:42pm UTC](https://discourse.julialang.org/t/issue-with-complex-differentialequations/99432 "2023-05-26T13:42:44Z")

</div>

Dear Julia community, bellow you can find the function of interest: using DifferentialEquations using OMEinsum using LinearAlgebra function ctwa!(du::Matrix{ComplexF64}, u::Matrix{ComplexF64}, par::Tupl…

---

## [Makie.hist/hist! can't add a label for legend if bar\_labels is specified](https://discourse.julialang.org/t/makie-hist-hist-cant-add-a-label-for-legend-if-bar-labels-is-specified/99352)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [May 26, 2023, 1:33pm UTC](https://discourse.julialang.org/t/makie-hist-hist-cant-add-a-label-for-legend-if-bar-labels-is-specified/99352 "2023-05-26T13:33:08Z")

</div>

It seems like the legend doesn’t work for all situations. This works: use GLMakie h1=hist(rand(16,),bins = 10, label="a", strokewidth = 1, strokecolor = :black, normalization = :probability) axislegend() And this wo…

---

## [Obtaining readable polynomial chaos surrogate model using Surrogates.jl](https://discourse.julialang.org/t/obtaining-readable-polynomial-chaos-surrogate-model-using-surrogates-jl/99431)

<div class="topic-metadata">

**Author:** [@kakarot0108](https://discourse.julialang.org/u/kakarot0108)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 1:09pm UTC](https://discourse.julialang.org/t/obtaining-readable-polynomial-chaos-surrogate-model-using-surrogates-jl/99431 "2023-05-26T13:09:37Z")

</div>

Hi all, I am trying to develop a polynomial chaos surrogate using Surrogates.jl. Let’s say we have the following surrogate model: poly = PolynomialChaosSurrogate(x, y, lower\_bound, upper\_bound, op = SurrogatesPolyChaos…

---

## [Error when running DiffEqGPU example from documentation](https://discourse.julialang.org/t/error-when-running-diffeqgpu-example-from-documentation/99405)

<div class="topic-metadata">

**Author:** [@jogama](https://discourse.julialang.org/u/jogama)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 1:06pm UTC](https://discourse.julialang.org/t/error-when-running-diffeqgpu-example-from-documentation/99405 "2023-05-26T13:06:30Z")

</div>

Hello, I ran the following example, copy-pasted from here, and received an UndefVarError. Here is the example snippet from the linked website: using DiffEqGPU, OrdinaryDiffEq function lorenz(du, u, p, t) du\[1\] = p…

---

## [Limits with Symbolics.jl](https://discourse.julialang.org/t/limits-with-symbolics-jl/99437)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 1:01pm UTC](https://discourse.julialang.org/t/limits-with-symbolics-jl/99437 "2023-05-26T13:01:27Z")

</div>

Is it possible to use Symbolics.jl to compute limits? For example, the limit of the function f(x) = (1 - cos(x)) / x^2 when x → 0. I know that this is possible with SymPy.jl.

---

## [Sol.retcode != :Success not working inside turing model](https://discourse.julialang.org/t/sol-retcode-success-not-working-inside-turing-model/99438)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 12:58pm UTC](https://discourse.julialang.org/t/sol-retcode-success-not-working-inside-turing-model/99438 "2023-05-26T12:58:11Z")

</div>

I’m using sol.retcode != :Success to check my model solution but it throws this error. nested task error: type TrackedArray has no field retcode Can someone tell me what can be other way to use sol.retcode ?

---

## [About sol.retcode](https://discourse.julialang.org/t/about-sol-retcode/99443)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 12:57pm UTC](https://discourse.julialang.org/t/about-sol-retcode/99443 "2023-05-26T12:57:18Z")

</div>

Here I will expect code to print Success but its not doing so. can anyone tell why even when I get solution by ODE system? if sol.retcode == :Success print("Success") end

---

## [Understanding the syntax used in the code below](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436)

<div class="topic-metadata">

**Author:** [@jaswi](https://discourse.julialang.org/u/jaswi)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 12:12pm UTC](https://discourse.julialang.org/t/understanding-the-syntax-used-in-the-code-below/99436 "2023-05-26T12:12:37Z")

</div>

Dear Community, I have posted a code snippet from a github repository. The code posted below is at CCBlade.jl/airfoils.jl at master · antarNetra/CCBlade.jl · GitHub lines 267 to 289. What id do not understand the use …

---

## [New to ModelingToolkit, problems trying to include derivatives on RHS of ODESystem](https://discourse.julialang.org/t/new-to-modelingtoolkit-problems-trying-to-include-derivatives-on-rhs-of-odesystem/99062)

<div class="topic-metadata">

**Author:** [@markjholmes](https://discourse.julialang.org/u/markjholmes)\
**Replies:** 5\
**Last updated:** [May 26, 2023, 12:10pm UTC](https://discourse.julialang.org/t/new-to-modelingtoolkit-problems-trying-to-include-derivatives-on-rhs-of-odesystem/99062 "2023-05-26T12:10:41Z")

</div>

I’m trying to model a biological system of a population, N, and a trait, X. The rate of change of the population, \\frac{dN}{dt}, depends on some nonlinear function that is governed by some dynamic trait of the populatio…

---

## [Strategy for recoding](https://discourse.julialang.org/t/strategy-for-recoding/99368)

<div class="topic-metadata">

**Author:** [@edvin](https://discourse.julialang.org/u/edvin)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 12:04pm UTC](https://discourse.julialang.org/t/strategy-for-recoding/99368 "2023-05-26T12:04:21Z")

</div>

I have a number of similar (but slightly different variables) that I need to recode in order to harmonize over several different years. The numbers correspond to an occupational scheme, so they have no inherent meaning o…

---

## [N-dimensional view into an N+1 dimension array](https://discourse.julialang.org/t/n-dimensional-view-into-an-n-1-dimension-array/99345)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 15\
**Last updated:** [May 26, 2023, 10:41am UTC](https://discourse.julialang.org/t/n-dimensional-view-into-an-n-1-dimension-array/99345 "2023-05-26T10:41:10Z")

</div>

I have an Array{T,N+1} and I want to pass a slice/view of the first N dimensions to a function. If I knew, say, N=2 I would do b = @view a\[:,:,1\] f(b,args...) But the number of colons depends on N. Is there a way to do…

---

## [Change circle radius of Shell() graph in GraphMakie](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306)

<div class="topic-metadata">

**Author:** [@Dario\_Sarra](https://discourse.julialang.org/u/Dario_Sarra)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 9:52am UTC](https://discourse.julialang.org/t/change-circle-radius-of-shell-graph-in-graphmakie/99306 "2023-05-26T09:52:54Z")

</div>

I am using GraphMakie on a MetaGraphNext structure to visualise the relationship between organizations in a story. I would like to use ilabels with the organization name in a Shell layout. However, because of the length …

---

## [How are cell IDs generated?](https://discourse.julialang.org/t/how-are-cell-ids-generated/99284)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 8\
**Last updated:** [May 26, 2023, 9:03am UTC](https://discourse.julialang.org/t/how-are-cell-ids-generated/99284 "2023-05-26T09:03:12Z")

</div>

I would like to populate Pluto cells with content stored in an Excel file. Copy&Paste is of course an option, but not very sensible… Does anyone know how Pluto assigns the cell ID? It would make my life much easier. …

---

## [@manipulate with JSServe instead of WebIO?](https://discourse.julialang.org/t/manipulate-with-jsserve-instead-of-webio/96842)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 5\
**Last updated:** [May 26, 2023, 8:26am UTC](https://discourse.julialang.org/t/manipulate-with-jsserve-instead-of-webio/96842 "2023-05-26T08:26:15Z")

</div>

If I understand correctly, JSServe.jl provides functionality similar to WebIO.jl without the need of a Jupyter extension. Is there any reason one couldn’t implement the @manipulate macro of Interact.jl using JSServe inst…

---

## [Printing loglikelihood values](https://discourse.julialang.org/t/printing-loglikelihood-values/99384)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 8:23am UTC](https://discourse.julialang.org/t/printing-loglikelihood-values/99384 "2023-05-26T08:23:26Z")

</div>

Can we print likelihood values while sampling by NUTS() in turing.jl? Is there any way ? So, we don’t sit blind during run and have some info.

---

## [Respecting Compat Bounds from Project.toml in Julia Package on GitHub CI](https://discourse.julialang.org/t/respecting-compat-bounds-from-project-toml-in-julia-package-on-github-ci/99411)

<div class="topic-metadata">

**Author:** [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Replies:** 6\
**Last updated:** [May 26, 2023, 8:19am UTC](https://discourse.julialang.org/t/respecting-compat-bounds-from-project-toml-in-julia-package-on-github-ci/99411 "2023-05-26T08:19:14Z")

</div>

Hello, I’m the maintainer of a Julia package, and I’ve specified version restrictions for dependencies in the \[compat\] section of my Project.toml file. However, when running CI workflows on GitHub, it seems to be using …

---

## [Installation of Plots](https://discourse.julialang.org/t/installation-of-plots/99270)

<div class="topic-metadata">

**Author:** [@srtiwari73](https://discourse.julialang.org/u/srtiwari73)\
**Replies:** 2\
**Last updated:** [May 26, 2023, 6:34am UTC](https://discourse.julialang.org/t/installation-of-plots/99270 "2023-05-26T06:34:36Z")

</div>

Hi team, I am new to Julia. I am trying to install “Plots” package for my analysis. But while “using Plots” commands shows an error. Below are the details of the error. While loading “Plots” package it shows following …

---

## [Help with SparseArrays/ChainRules error](https://discourse.julialang.org/t/help-with-sparsearrays-chainrules-error/99425)

<div class="topic-metadata">

**Author:** [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)\
**Replies:** 0\
**Last updated:** [May 26, 2023, 6:07am UTC](https://discourse.julialang.org/t/help-with-sparsearrays-chainrules-error/99425 "2023-05-26T06:07:01Z")

</div>

Ran into this error running code similar to this MWE, and was hoping someone who knows more about the AD ecosystem could help point me where to file an issue–is this a missing ChainRule, or overly-strict typing in Sparse…

---

## [Type with arbitrary number of parameters](https://discourse.julialang.org/t/type-with-arbitrary-number-of-parameters/99374)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 10\
**Last updated:** [May 26, 2023, 5:30am UTC](https://discourse.julialang.org/t/type-with-arbitrary-number-of-parameters/99374 "2023-05-26T05:30:29Z")

</div>

Hello! I am struggling to create a type with an arbitrary number of parameters, similarly to what Tuple does. Ideally, I would use it in functions like this: julia\> function f(type\_list, string\_list) map(zip(type\_…

---

## [Modelling arbitrary non-linear expression (returned by a function) in JuMP](https://discourse.julialang.org/t/modelling-arbitrary-non-linear-expression-returned-by-a-function-in-jump/99419)

<div class="topic-metadata">

**Author:** [@pkoir](https://discourse.julialang.org/u/pkoir)\
**Replies:** 4\
**Last updated:** [May 26, 2023, 3:23am UTC](https://discourse.julialang.org/t/modelling-arbitrary-non-linear-expression-returned-by-a-function-in-jump/99419 "2023-05-26T03:23:43Z")

</div>

Hi, I’m new to Julia and JuMP so please forgive me if this is a trivial problem. I have a constraint function of the form: function g(x) \[ exp(x\[1\]) + exp(x\[2\]), x\[1\]^4 + x\[2\]^4 \] end I’m trying to mo…

---

## [Why ODE solver so slow?](https://discourse.julialang.org/t/why-ode-solver-so-slow/98773)

<div class="topic-metadata">

**Author:** [@soldin](https://discourse.julialang.org/u/soldin)\
**Replies:** 24\
**Last updated:** [May 26, 2023, 2:55am UTC](https://discourse.julialang.org/t/why-ode-solver-so-slow/98773 "2023-05-26T02:55:05Z")

</div>

The following example is taken from this page using Plots; gr() using Dates T1 = now() f(u,p,t) = 0.98u u0 = 1.0 tspan = (0.0,10.0) prob = ODEProblem(f,u0,tspan) sol = solve(prob) T2 = now() println(T2-T1) This c…

---

## [How to get the inner types of a parametric type](https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421)

<div class="topic-metadata">

**Author:** [@aleferna12](https://discourse.julialang.org/u/aleferna12)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 2:34am UTC](https://discourse.julialang.org/t/how-to-get-the-inner-types-of-a-parametric-type/99421 "2023-05-26T02:34:39Z")

</div>

Hello! Is there a function that returns Real from Vector{Real}? e. g.: paramtype(Vector{Real}) should return Real. Bonus if it can be generalized for any data structure such as struct S{A, B, C} end (should return \[A, …

---

## [CategoricalArrays Binning](https://discourse.julialang.org/t/categoricalarrays-binning/99400)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 1:37am UTC](https://discourse.julialang.org/t/categoricalarrays-binning/99400 "2023-05-26T01:37:11Z")

</div>

When using the cut function of CategoricalArrays, it returns CategoricalArray objects which contain CategoricalValue objects like \[0,1). However, I don’t seem to understand how to access the value that was cut, for examp…

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

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