# Latest

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

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

**Page:** 737

---

## [How to access NamedTuple from JuliaCall?](https://discourse.julialang.org/t/how-to-access-namedtuple-from-juliacall/61043)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 8:18pm UTC](https://discourse.julialang.org/t/how-to-access-namedtuple-from-juliacall/61043 "2023-04-02T20:18:42Z")

</div>

background: Suppose myFunction is a julia function that returns a named tuple. I’ve been invoking julia\_call() on myFunction as follows: output\_list = julia\_call("\<julia module\>.\<myFunction\>",\<myFunction args\>,need\_ret…

---

## [Adjusting padding between axis and axisticklabel in gridded layout](https://discourse.julialang.org/t/adjusting-padding-between-axis-and-axisticklabel-in-gridded-layout/96950)

<div class="topic-metadata">

**Author:** [@iabraham](https://discourse.julialang.org/u/iabraham)\
**Replies:** 3\
**Last updated:** [April 2, 2023, 7:45pm UTC](https://discourse.julialang.org/t/adjusting-padding-between-axis-and-axisticklabel-in-gridded-layout/96950 "2023-04-02T19:45:00Z")

</div>

This question is about being able to adjust the space between ticklabels and their corresponding axis lines in the default GR backed for Plots.jl. Consider: using Plots, Plots.Measures minx, miny, N = 300, 300, 16 Plo…

---

## [Julia on SmartNIC](https://discourse.julialang.org/t/julia-on-smartnic/87637)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 5:50pm UTC](https://discourse.julialang.org/t/julia-on-smartnic/87637 "2023-04-02T17:50:40Z")

</div>

I saw a thread on reading sensor data using Julia What Is a DPU? | NVIDIA Blog It leads me to ask if anyone has successfully used Julia with SmartNICs / DPUs https://developer.nvidia.com/blog/ushering-in-a-new-era-of-…

---

## [Error while using DynamicalSystems.jl to solve for a complex nonlinear system](https://discourse.julialang.org/t/error-while-using-dynamicalsystems-jl-to-solve-for-a-complex-nonlinear-system/96976)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 0\
**Last updated:** [April 2, 2023, 5:38pm UTC](https://discourse.julialang.org/t/error-while-using-dynamicalsystems-jl-to-solve-for-a-complex-nonlinear-system/96976 "2023-04-02T17:38:21Z")

</div>

Hi, I was having quite a bit of trouble with DynamicalSystems.jl. In particular, I would like to implement an elastic double pendulum (so, 3 degrees of freedoms). The problem with this system is that it is nonlinear, se…

---

## [Cleaner way of passing many arguments between functions](https://discourse.julialang.org/t/cleaner-way-of-passing-many-arguments-between-functions/96771)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 10\
**Last updated:** [April 2, 2023, 5:18pm UTC](https://discourse.julialang.org/t/cleaner-way-of-passing-many-arguments-between-functions/96771 "2023-04-02T17:18:14Z")

</div>

I have a function where I pass a lot of arguments for performance. These generally come from other structs and are Ref’s or vectors. I have to pass these arguments around which is slightly bothersome. I thought I’d be cl…

---

## [Where possible and sensible, allow \`zip\` to pass \`getindex\` through to its underlying iterables](https://discourse.julialang.org/t/where-possible-and-sensible-allow-zip-to-pass-getindex-through-to-its-underlying-iterables/61312)

<div class="topic-metadata">

**Author:** [@bert](https://discourse.julialang.org/u/bert)\
**Replies:** 2\
**Last updated:** [April 2, 2023, 4:18pm UTC](https://discourse.julialang.org/t/where-possible-and-sensible-allow-zip-to-pass-getindex-through-to-its-underlying-iterables/61312 "2023-04-02T16:18:38Z")

</div>

zip is a useful function, but it can be frustrating because it does not behave like a “real” array even when its underlying iterables are. For instance, I would expect that if all underlying iterables passed to zip suppo…

---

## [Combine output of several functions on the same interactive plot](https://discourse.julialang.org/t/combine-output-of-several-functions-on-the-same-interactive-plot/96972)

<div class="topic-metadata">

**Author:** [@ittomsk](https://discourse.julialang.org/u/ittomsk)\
**Replies:** 0\
**Last updated:** [April 2, 2023, 3:35pm UTC](https://discourse.julialang.org/t/combine-output-of-several-functions-on-the-same-interactive-plot/96972 "2023-04-02T15:35:27Z")

</div>

I need to add some lines on top of the agent’s polygon to represent its properties. However, I am currently stuck at grouping the output of two functions in the following line: Group(\[agent\_poly, agent\_orientation\]) . c…

---

## [Read and save Voxel data for paraview](https://discourse.julialang.org/t/read-and-save-voxel-data-for-paraview/96596)

<div class="topic-metadata">

**Author:** [@bohm](https://discourse.julialang.org/u/bohm)\
**Replies:** 2\
**Last updated:** [April 2, 2023, 12:00pm UTC](https://discourse.julialang.org/t/read-and-save-voxel-data-for-paraview/96596 "2023-04-02T12:00:38Z")

</div>

Hello everyone, I am currently trying to find a solution for the following: I do calculations on a square VoxelMesh, which is simply represented by an array. However, this also contains material data for multiple phase…

---

## [Why is ModelingToolkit simplifying this way?](https://discourse.julialang.org/t/why-is-modelingtoolkit-simplifying-this-way/96872)

<div class="topic-metadata">

**Author:** [@jonniedie](https://discourse.julialang.org/u/jonniedie)\
**Replies:** 5\
**Last updated:** [April 2, 2023, 11:16am UTC](https://discourse.julialang.org/t/why-is-modelingtoolkit-simplifying-this-way/96872 "2023-04-02T11:16:54Z")

</div>

I created a pretty simple composed system: using OrdinaryDiffEq, ModelingToolkit, Plots @parameters t d\_dt = Differential(t) function Cart(; init\_pos, init\_vel, mass, name=:cart) @variables pos(t)=init\_pos vel(t)=ini…

---

## [PackageCompiler.jl ERROR: ArgumentError: Package MyPackage not found in current path, maybe you meant \`import/using .MyPackage\`](https://discourse.julialang.org/t/packagecompiler-jl-error-argumenterror-package-mypackage-not-found-in-current-path-maybe-you-meant-import-using-mypackage/94966)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 2:51pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-error-argumenterror-package-mypackage-not-found-in-current-path-maybe-you-meant-import-using-mypackage/94966 "2023-02-21T14:51:04Z")

</div>

Hi there, I am really lost, trying to let PackageCompiler.jl create a sysimage within a docker, but somehow all packages don’t get added normally, but I need to access them from local modules with a prefixed dot using .…

---

## [How to derivative quassi likelihood function using ForwardDiff](https://discourse.julialang.org/t/how-to-derivative-quassi-likelihood-function-using-forwarddiff/96928)

<div class="topic-metadata">

**Author:** [@KotaAihara](https://discourse.julialang.org/u/KotaAihara)\
**Replies:** 3\
**Last updated:** [April 2, 2023, 7:58am UTC](https://discourse.julialang.org/t/how-to-derivative-quassi-likelihood-function-using-forwarddiff/96928 "2023-04-02T07:58:44Z")

</div>

Continuing the discussion from How to derivative using ForwardDiff: I want some help. I want to make more complicated function including more parameters Please teach me how to apply ForwardDiff.gradient() and Forwar…

---

## [Why so few methods defined for \`Atomic\` types?](https://discourse.julialang.org/t/why-so-few-methods-defined-for-atomic-types/96960)

<div class="topic-metadata">

**Author:** [@adienes](https://discourse.julialang.org/u/adienes)\
**Replies:** 0\
**Last updated:** [April 2, 2023, 1:51am UTC](https://discourse.julialang.org/t/why-so-few-methods-defined-for-atomic-types/96960 "2023-04-02T01:51:10Z")

</div>

I am trying to use Atomic wrapped types, but I find there are very few methods defined; I assuming this is intentional, but I’d be curious to hear more about the limitations that prevent these from being included! A lis…

---

## [How is Julia parsing \`\<condition\> ? return \<value1\> : return \<value2\>\`?](https://discourse.julialang.org/t/how-is-julia-parsing-condition-return-value1-return-value2/96925)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 10\
**Last updated:** [April 1, 2023, 11:59pm UTC](https://discourse.julialang.org/t/how-is-julia-parsing-condition-return-value1-return-value2/96925 "2023-04-01T23:59:37Z")

</div>

What is wrong with the third syntax? Is #1 or #2 better/preferred? # 1 julia\> function isone(a) return a==1 ? true : false end isone (generic function with 1 method) # 2 julia\> function isone(a) …

---

## [What does Dates.hour(now(Dates.UTC)) return? Time in UTC?](https://discourse.julialang.org/t/what-does-dates-hour-now-dates-utc-return-time-in-utc/96858)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 13\
**Last updated:** [April 1, 2023, 11:50pm UTC](https://discourse.julialang.org/t/what-does-dates-hour-now-dates-utc-return-time-in-utc/96858 "2023-04-01T23:50:13Z")

</div>

Can I use it to get an estimate of the Time Zone (less the day light saving shift)? My intention is to get an approximate longitude of users location.

---

## [Problem upgrading GR package](https://discourse.julialang.org/t/problem-upgrading-gr-package/68290)

<div class="topic-metadata">

**Author:** [@trg818](https://discourse.julialang.org/u/trg818)\
**Replies:** 11\
**Last updated:** [April 1, 2023, 11:00pm UTC](https://discourse.julialang.org/t/problem-upgrading-gr-package/68290 "2023-04-01T23:00:13Z")

</div>

Thanks for providing a bugfix. Unfortunately I can’t test it, because after upgrading QuadGK, I find that something in my Julia installation is broken. When running the program I was working on, I get this error: Your G…

---

## [Trying to pay for a Julia pair programmer](https://discourse.julialang.org/t/trying-to-pay-for-a-julia-pair-programmer/96869)

<div class="topic-metadata">

**Author:** [@MatthewCaseres](https://discourse.julialang.org/u/MatthewCaseres)\
**Replies:** 4\
**Last updated:** [April 1, 2023, 10:01pm UTC](https://discourse.julialang.org/t/trying-to-pay-for-a-julia-pair-programmer/96869 "2023-04-01T22:01:27Z")

</div>

Hi, I have a proof of concept I want to work out that involves some metaprogramming and cassette.jl. I like pair programming and am having a hard time motivating myself and think it would be a lot more fun if I could ge…

---

## [Multivariate equivalent to Measurement.jl?](https://discourse.julialang.org/t/multivariate-equivalent-to-measurement-jl/96956)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 0\
**Last updated:** [April 1, 2023, 8:28pm UTC](https://discourse.julialang.org/t/multivariate-equivalent-to-measurement-jl/96956 "2023-04-01T20:28:00Z")

</div>

Hey, I would like to propagate a second order moment around a value, a lot like what Measurements.jl does, but multivariate. n = 10 x = ones(n) gamma = randn(n,n) V = gamma'gamma # this should now be a variance covaria…

---

## [Better way to improve a function with splat operator used in the input](https://discourse.julialang.org/t/better-way-to-improve-a-function-with-splat-operator-used-in-the-input/96744)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 15\
**Last updated:** [April 1, 2023, 8:34pm UTC](https://discourse.julialang.org/t/better-way-to-improve-a-function-with-splat-operator-used-in-the-input/96744 "2023-04-01T20:34:11Z")

</div>

I have a multi-variate function like function f(input::Vararg{Int, N}) where {N} # some stuff end I need to call it using the form f(x1..., xi, xn...), where x1 and xn are vectors determined in the runtime. The splat …

---

## [Higher accuracy in numerical cumulative integration](https://discourse.julialang.org/t/higher-accuracy-in-numerical-cumulative-integration/96898)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 15\
**Last updated:** [April 1, 2023, 7:35pm UTC](https://discourse.julialang.org/t/higher-accuracy-in-numerical-cumulative-integration/96898 "2023-04-01T19:35:42Z")

</div>

There are some threads about numerical cumulative integration like this and this. However, I have a more basic question. I am interested in performing the integral S(x; a) = \\int\_a^x f(x') dx' where x \\le b. Note that f…

---

## [Task affinity to threads](https://discourse.julialang.org/t/task-affinity-to-threads/33938)

<div class="topic-metadata">

**Author:** [@orenbenkiki](https://discourse.julialang.org/u/orenbenkiki)\
**Replies:** 10\
**Last updated:** [April 1, 2023, 5:33pm UTC](https://discourse.julialang.org/t/task-affinity-to-threads/33938 "2023-04-01T17:33:03Z")

</div>

If I use multi threading - for example, using @spawn top() - and the body of top() also invokes either @async or even @spawn of some nested() work, and uses @sync() to wait for this work; Then I assume that the Julia sc…

---

## [Checking ambiguities in Aqua.jl](https://discourse.julialang.org/t/checking-ambiguities-in-aqua-jl/96908)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 4\
**Last updated:** [April 1, 2023, 12:48pm UTC](https://discourse.julialang.org/t/checking-ambiguities-in-aqua-jl/96908 "2023-04-01T12:48:05Z")

</div>

First of all, I love GitHub - JuliaTesting/Aqua.jl: Auto QUality Assurance for Julia packages But every time I use it, it spits out a lot of warnings for method ambiguities in my dependencies, so I generally end up disa…

---

## [Package for fast OLS using StaticArrays](https://discourse.julialang.org/t/package-for-fast-ols-using-staticarrays/96943)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 0\
**Last updated:** [April 1, 2023, 11:20am UTC](https://discourse.julialang.org/t/package-for-fast-ols-using-staticarrays/96943 "2023-04-01T11:20:39Z")

</div>

Hi all, I was just wondering if there is a package commonly used for performing OLS when the number of explanatory variables is known (and small), that leverages the benefits of StaticArrays.jl? For example: using Sta…

---

## [Why are spaces not allowed between function names and parentheses?](https://discourse.julialang.org/t/why-are-spaces-not-allowed-between-function-names-and-parentheses/96941)

<div class="topic-metadata">

**Author:** [@SeSodesa](https://discourse.julialang.org/u/SeSodesa)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 11:11am UTC](https://discourse.julialang.org/t/why-are-spaces-not-allowed-between-function-names-and-parentheses/96941 "2023-04-01T11:11:52Z")

</div>

I’ve recently come to realize when using other languages, that I really like to write a space between a function name and the tuple that defines its input arguments, as in fn (x) = x instead of fn(x) = x This feels e…

---

## [Postdoc at Karolinska, in Stockholm. Probabilistic models (either tree-like, or deep), adjacent to biology/medicine](https://discourse.julialang.org/t/postdoc-at-karolinska-in-stockholm-probabilistic-models-either-tree-like-or-deep-adjacent-to-biology-medicine/96942)

<div class="topic-metadata">

**Author:** [@BenMurrell](https://discourse.julialang.org/u/BenMurrell)\
**Replies:** 0\
**Last updated:** [April 1, 2023, 10:47am UTC](https://discourse.julialang.org/t/postdoc-at-karolinska-in-stockholm-probabilistic-models-either-tree-like-or-deep-adjacent-to-biology-medicine/96942 "2023-04-01T10:47:00Z")

</div>

Our lab is looking for a postdoc. We do a mix of computational and experimental work, usually at the intersection of virology and immunology, but we have broad interests. We’re looking for someone with expertise in some…

---

## [What is the current status of julia to wasm compilation?](https://discourse.julialang.org/t/what-is-the-current-status-of-julia-to-wasm-compilation/96922)

<div class="topic-metadata">

**Author:** [@1m1](https://discourse.julialang.org/u/1m1)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 6:38am UTC](https://discourse.julialang.org/t/what-is-the-current-status-of-julia-to-wasm-compilation/96922 "2023-04-01T06:38:16Z")

</div>

i have only found projects that have not had commits for over a year. is this because it works, julia can be compiled to wasm? or does it not work and it is neither a focus? ty

---

## [Cannot set an array of constraints @constraint, getting an error](https://discourse.julialang.org/t/cannot-set-an-array-of-constraints-constraint-getting-an-error/96901)

<div class="topic-metadata">

**Author:** [@Gregoryo](https://discourse.julialang.org/u/Gregoryo)\
**Replies:** 2\
**Last updated:** [April 1, 2023, 5:15am UTC](https://discourse.julialang.org/t/cannot-set-an-array-of-constraints-constraint-getting-an-error/96901 "2023-04-01T05:15:27Z")

</div>

Hi, I want to create a constraint in my model where I have np particles with a mass m at position x,y as variables. I want to set the constraint that the mass of particles is \>0 and I wrote the code below but I get an er…

---

## [Zero-dimensional arrays are acting strange](https://discourse.julialang.org/t/zero-dimensional-arrays-are-acting-strange/96909)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 9\
**Last updated:** [April 1, 2023, 2:10am UTC](https://discourse.julialang.org/t/zero-dimensional-arrays-are-acting-strange/96909 "2023-04-01T02:10:58Z")

</div>

I can can create a zero dimensional array of Nothing: julia\> Array{Nothing, 0}(nothing) 0-dimensional Array{Nothing, 0}: nothing but not other types: julia\> Array{String, 0}("") ERROR: MethodError: no method matching …

---

## [AMDGPU: LD.LLD Problem](https://discourse.julialang.org/t/amdgpu-ld-lld-problem/96878)

<div class="topic-metadata">

**Author:** [@0xFF](https://discourse.julialang.org/u/0xFF)\
**Replies:** 1\
**Last updated:** [April 1, 2023, 1:48am UTC](https://discourse.julialang.org/t/amdgpu-ld-lld-problem/96878 "2023-04-01T01:48:30Z")

</div>

Archlinux user, trying to install Julia for some primitive GPU calculations. ROCm is installed, Clang/LLVM too. Running Julia as JULIA\_AMDGPU\_CORE\_MUST\_LOAD=1 julia, then pkg\> add AMDGPU, then test AMDGPU. Test fails w…

---

## [Why is there a difference in tab completion for names made available through using vs import in the REPL?](https://discourse.julialang.org/t/why-is-there-a-difference-in-tab-completion-for-names-made-available-through-using-vs-import-in-the-repl/62888)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [April 1, 2023, 12:13am UTC](https://discourse.julialang.org/t/why-is-there-a-difference-in-tab-completion-for-names-made-available-through-using-vs-import-in-the-repl/62888 "2023-04-01T00:13:15Z")

</div>

julia\> using Base: IdentityUnitRange julia\> Iden\[TAB\] # nothing happens here julia\> import Base: IdentityUnitRange julia\> Iden\[TAB\] -\> IdentityUnitRange # tab completion works now Why does tab completion not work if …

---

## [Writing a zsh script to test a Julia project](https://discourse.julialang.org/t/writing-a-zsh-script-to-test-a-julia-project/96897)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 2\
**Last updated:** [March 31, 2023, 11:50pm UTC](https://discourse.julialang.org/t/writing-a-zsh-script-to-test-a-julia-project/96897 "2023-03-31T23:50:48Z")

</div>

Hi! I’d like to write a zsh script to automate the testing of a Julia project by launching Julia starting the Pkg environment executing the following three commands: activate . add Test test \[project\_name\] exiting …

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

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