# Latest

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

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

**Page:** 781

---

## [Error with ForwardDiff in Turing](https://discourse.julialang.org/t/error-with-forwarddiff-in-turing/88633)

<div class="topic-metadata">

**Author:** [@astro-kevin](https://discourse.julialang.org/u/astro-kevin)\
**Replies:** 30\
**Last updated:** [February 15, 2023, 12:19pm UTC](https://discourse.julialang.org/t/error-with-forwarddiff-in-turing/88633 "2023-02-15T12:19:34Z")

</div>

When running the sample method from Turing, I run into this error MethodError: no method matching Float64(::ForwardDiff.Dual{ForwardDiff.Tag{Turing.TuringTag, Float64}, Float64, 9}) Closest candidates are: (::Type{T}…

---

## [GLMakie: Change attributes in existing Screen objects](https://discourse.julialang.org/t/glmakie-change-attributes-in-existing-screen-objects/94636)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 5\
**Last updated:** [February 15, 2023, 10:48am UTC](https://discourse.julialang.org/t/glmakie-change-attributes-in-existing-screen-objects/94636 "2023-02-15T10:48:35Z")

</div>

I would like to change line attributes inside an already displayed GLMakie screen object. Below a simple example, unfortunately only the edge of the button changes. Are there any ideas. The purpose is: I would like to…

---

## [Function types unexpectedly equal](https://discourse.julialang.org/t/function-types-unexpectedly-equal/94674)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 5\
**Last updated:** [February 15, 2023, 10:42am UTC](https://discourse.julialang.org/t/function-types-unexpectedly-equal/94674 "2023-02-15T10:42:20Z")

</div>

julia\> T = \[x-\>x\*k for k in 1:3\] 3-element Vector{var"#54#56"{Int64}}: #54 (generic function with 1 method) #54 (generic function with 1 method) #54 (generic function with 1 method) The three functions in the array a…

---

## [Looping over macro call produce unexpected results](https://discourse.julialang.org/t/looping-over-macro-call-produce-unexpected-results/94675)

<div class="topic-metadata">

**Author:** [@brunbjerg](https://discourse.julialang.org/u/brunbjerg)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 10:32am UTC](https://discourse.julialang.org/t/looping-over-macro-call-produce-unexpected-results/94675 "2023-02-15T10:32:15Z")

</div>

Hello community I have found a macro here on Julia Discourse to help me with some testing. The macro looks as follows: macro testmsg(ex, str) quote try @test $ex catch e $st…

---

## [Makie: how to improve plotting performance with thousands of 3D objects](https://discourse.julialang.org/t/makie-how-to-improve-plotting-performance-with-thousands-of-3d-objects/85863)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 7\
**Last updated:** [February 15, 2023, 8:58am UTC](https://discourse.julialang.org/t/makie-how-to-improve-plotting-performance-with-thousands-of-3d-objects/85863 "2023-02-15T08:58:15Z")

</div>

I need to plot several thousands of quite simple 3D objects (boxes, cylinders, …) and for this I do create a mesh for each one implementing GeometryBasics.coordinates(...) and GeometryBasics.faces(...). Then I plot them …

---

## [CUDA.jl CUDA error 803](https://discourse.julialang.org/t/cuda-jl-cuda-error-803/94631)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 8:50am UTC](https://discourse.julialang.org/t/cuda-jl-cuda-error-803/94631 "2023-02-15T08:50:13Z")

</div>

Hi Have been trying to install CUDA.jl for the first time on Ubuntu 22.04 with a NVIDIA Quadro 400 GPU. I downloaded the correct drivers from nvidia (the 525 drivers), and julia from the main julia page as opposed to sn…

---

## [\[ANN\] PPTX.jl - A new package to generate PowerPoint© .pptx files](https://discourse.julialang.org/t/ann-pptx-jl-a-new-package-to-generate-powerpoint-pptx-files/94285)

<div class="topic-metadata">

**Author:** [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)\
**Replies:** 6\
**Last updated:** [February 15, 2023, 8:09am UTC](https://discourse.julialang.org/t/ann-pptx-jl-a-new-package-to-generate-powerpoint-pptx-files/94285 "2023-02-15T08:09:33Z")

</div>

We are happy to announce the release of PPTX.jl, a straightforward package to generate PowerPoint presentations with a few lines of Julia code. It’s also the first ever open sourced package from ASML. Those who work in …

---

## [Implementing NODE for problems with insufficient data](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388)

<div class="topic-metadata">

**Author:** [@mehdi\_lotfi](https://discourse.julialang.org/u/mehdi_lotfi)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 7:49am UTC](https://discourse.julialang.org/t/implementing-node-for-problems-with-insufficient-data/93388 "2023-02-15T07:49:07Z")

</div>

Hi All, How can we use neural ODE with a limited data set? For example, sometimes, we do not have data for all compartments, so how can we define the NODE problem? Suppose we have three state variables and real data on…

---

## [CUDA errors 203 and 103, CUDA.rand() and CUDA.versioninfo()](https://discourse.julialang.org/t/cuda-errors-203-and-103-cuda-rand-and-cuda-versioninfo/94595)

<div class="topic-metadata">

**Author:** [@David\_A](https://discourse.julialang.org/u/David_A)\
**Replies:** 6\
**Last updated:** [February 15, 2023, 7:09am UTC](https://discourse.julialang.org/t/cuda-errors-203-and-103-cuda-rand-and-cuda-versioninfo/94595 "2023-02-15T07:09:02Z")

</div>

I get the below error when attempting to use CUDa.rand() julia\> using CUDA julia\> CUDA.rand() ERROR: CURANDError: initialization of CUDA failed (code 203, CURAND\_STATUS\_INITIALIZATION\_FAILED) Stacktrace: \[1\] throw\_…

---

## [\[ANN\] Announcing Survey.jl for analysis of complex surveys](https://discourse.julialang.org/t/ann-announcing-survey-jl-for-analysis-of-complex-surveys/94667)

<div class="topic-metadata">

**Author:** [@smishr](https://discourse.julialang.org/u/smishr)\
**Replies:** 0\
**Last updated:** [February 15, 2023, 6:33am UTC](https://discourse.julialang.org/t/ann-announcing-survey-jl-for-analysis-of-complex-surveys/94667 "2023-02-15T06:33:19Z")

</div>

Hi everyone, We are pleased to announce the registration of Survey.jl for analysis of complex surveys. You can get started by running add Survey in pkg mode. Current feature highlights include: Support for arbitrar…

---

## [Uncertainty calculation in measurements.jl](https://discourse.julialang.org/t/uncertainty-calculation-in-measurements-jl/94637)

<div class="topic-metadata">

**Author:** [@CurioMath](https://discourse.julialang.org/u/CurioMath)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 4:29am UTC](https://discourse.julialang.org/t/uncertainty-calculation-in-measurements-jl/94637 "2023-02-15T04:29:51Z")

</div>

Hi, It was really amazing to see Measurents.jl handling uncertainty propagation … However I would like to know what is the level of confidence used in the uncertainty calculation in measurements.jl. Does that takes …

---

## [Julia plot representing error](https://discourse.julialang.org/t/julia-plot-representing-error/94641)

<div class="topic-metadata">

**Author:** [@Prachetas\_Pavamana](https://discourse.julialang.org/u/Prachetas_Pavamana)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 2:35am UTC](https://discourse.julialang.org/t/julia-plot-representing-error/94641 "2023-02-15T02:35:36Z")

</div>

In the lecture Plotting | JuliaAcademy, it shows the image of the plot in jupyter notebook, this isn’t happening. Please help.

---

## [Broadcast over CuArray error](https://discourse.julialang.org/t/broadcast-over-cuarray-error/94654)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 3\
**Last updated:** [February 15, 2023, 1:05am UTC](https://discourse.julialang.org/t/broadcast-over-cuarray-error/94654 "2023-02-15T01:05:40Z")

</div>

Hi, I would like to define the following parametric function type struct myParamFun fun::Function param end (pf::myParamFun)(x...)=pf.fun(x...,pf.param) which works fine. However, when broadcasting over C…

---

## [Proper way to define functions with additional parameters](https://discourse.julialang.org/t/proper-way-to-define-functions-with-additional-parameters/94656)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 12:35am UTC](https://discourse.julialang.org/t/proper-way-to-define-functions-with-additional-parameters/94656 "2023-02-15T00:35:51Z")

</div>

Hi, I have the need to define functions that takes arguments and parameters, where the latter often times don’t change for a given scenario (e.g., a physical model with many parameters). I’m doing it in the following way …

---

## [Why don't operations on strings constant-fold?](https://discourse.julialang.org/t/why-dont-operations-on-strings-constant-fold/94597)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 9\
**Last updated:** [February 14, 2023, 11:22pm UTC](https://discourse.julialang.org/t/why-dont-operations-on-strings-constant-fold/94597 "2023-02-14T23:22:23Z")

</div>

Why doesn’t bar constant-fold, although foo does? julia\> using BenchmarkTools julia\> foo(::Type{T}) where T = parse(T, '3') bar(::Type{T}) where T = parse(T, "3"); julia\> @btime foo(Int) @btime bar(Int);…

---

## [Downloaded PDF julia-1.8.5.pdf is unreadable in Edge, Chrome, and Calibre](https://discourse.julialang.org/t/downloaded-pdf-julia-1-8-5-pdf-is-unreadable-in-edge-chrome-and-calibre/94653)

<div class="topic-metadata">

**Author:** [@JustCurious](https://discourse.julialang.org/u/JustCurious)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 11:30pm UTC](https://discourse.julialang.org/t/downloaded-pdf-julia-1-8-5-pdf-is-unreadable-in-edge-chrome-and-calibre/94653 "2023-02-14T23:30:42Z")

</div>

---

## [IfElse doesn't work properly when using @turbo](https://discourse.julialang.org/t/ifelse-doesnt-work-properly-when-using-turbo/94639)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 3\
**Last updated:** [February 14, 2023, 11:08pm UTC](https://discourse.julialang.org/t/ifelse-doesnt-work-properly-when-using-turbo/94639 "2023-02-14T23:08:53Z")

</div>

function iftest(x) bestIndex = 0 minValue = Inf @turbo for i in eachindex(x) bestIndex = ifelse(x\[i\] \< minValue, i, bestIndex) minValue = min(x\[i\], minValue) end return minValue, bestI…

---

## [Observable function](https://discourse.julialang.org/t/observable-function/94646)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 10:24pm UTC](https://discourse.julialang.org/t/observable-function/94646 "2023-02-14T22:24:35Z")

</div>

How do Observable functions work? using GLMakie, Makie rng = Observable(range(-10,10,1000)) f = Observable((x)-\>sin(x)) g = Observable((x)-\>x) dep = @lift(Point2f.(\[($g(i), $f(i)) for i in $rng\])) rng\[\] = range(-10,5,…

---

## [Optimal layouting with DataAspect()](https://discourse.julialang.org/t/optimal-layouting-with-dataaspect/75121)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 9\
**Last updated:** [February 14, 2023, 9:50pm UTC](https://discourse.julialang.org/t/optimal-layouting-with-dataaspect/75121 "2023-02-14T21:50:44Z")

</div>

I’m currently trying to create multipanel plots that all use DataAspect() and I’ve been wondering if there’s a clever way to generate the optimal layout. Here’s an example: The panels are created such that all data li…

---

## [Makie | How to set position of displayed image on the screen?](https://discourse.julialang.org/t/makie-how-to-set-position-of-displayed-image-on-the-screen/94585)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 8:46pm UTC](https://discourse.julialang.org/t/makie-how-to-set-position-of-displayed-image-on-the-screen/94585 "2023-02-14T20:46:05Z")

</div>

f = Figure(resolution = (1000,700)) specifies the size of the displayed image on the screen in pixel coordinates, but how does one set the position of the displayed image on the screen again in pixel coordinates. It’s…

---

## [InteractiveDynamics: Unknown agent position type in Forest Fire and Game of Life](https://discourse.julialang.org/t/interactivedynamics-unknown-agent-position-type-in-forest-fire-and-game-of-life/94481)

<div class="topic-metadata">

**Author:** [@Jfschue](https://discourse.julialang.org/u/Jfschue)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 8:32pm UTC](https://discourse.julialang.org/t/interactivedynamics-unknown-agent-position-type-in-forest-fire-and-game-of-life/94481 "2023-02-14T20:32:34Z")

</div>

Hey folks, I am having an issue with one of my models that seems to work fine using just Agents.jl functionality (e.g., run!(), etc.), but fails when trying any of the animation or interactive functionality from Interact…

---

## [NamedArray - reducing over an empty collection error - VS Code](https://discourse.julialang.org/t/namedarray-reducing-over-an-empty-collection-error-vs-code/94624)

<div class="topic-metadata">

**Author:** [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 8:30pm UTC](https://discourse.julialang.org/t/namedarray-reducing-over-an-empty-collection-error-vs-code/94624 "2023-02-14T20:30:27Z")

</div>

On VS Code: I am trying to create a named array, but it throws this error: ERROR: MethodError: reducing over an empty collection is not allowed; consider supplying init to the reducer My code is: using NamedArrays Na…

---

## [How to make Makie plot react to two observales?](https://discourse.julialang.org/t/how-to-make-makie-plot-react-to-two-observales/94644)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 8:25pm UTC](https://discourse.julialang.org/t/how-to-make-makie-plot-react-to-two-observales/94644 "2023-02-14T20:25:52Z")

</div>

How can I make a Makie plot that is dependent on two observables, one variable dependent no the other, react when I change the master variable? For Instance using GLMakie, Makie x = -10.0:.1:10.0 y = Observable(x .^2)…

---

## [How to get a Models optimiser factory](https://discourse.julialang.org/t/how-to-get-a-models-optimiser-factory/94618)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 1\
**Last updated:** [February 14, 2023, 7:52pm UTC](https://discourse.julialang.org/t/how-to-get-a-models-optimiser-factory/94618 "2023-02-14T19:52:44Z")

</div>

How can I get a models optimiser factory? I’d like to be able to do: using JuMP, HiGHS m1 = Model(HiGHS.Optimizer) m2 = Model(optimizer\_factory(m1)) Although I’m not sure if I’m coming at this the wrong way. Here I’d l…

---

## [ERROR: UndefVarError: title! not defined](https://discourse.julialang.org/t/error-undefvarerror-title-not-defined/94603)

<div class="topic-metadata">

**Author:** [@austin-putz](https://discourse.julialang.org/u/austin-putz)\
**Replies:** 11\
**Last updated:** [February 14, 2023, 7:06pm UTC](https://discourse.julialang.org/t/error-undefvarerror-title-not-defined/94603 "2023-02-14T19:06:49Z")

</div>

Hi all, Trying to add titles and x/y labels to a plot. I copied code straight from Plots.jl and it fails with an error. x = 10 .^ range(0, 4, length=100) y = @. 1/(1+x) plot(x, y, label="1/(1+x)") plot!(xscale=:log10,…

---

## [Proper way to plot a linear combination](https://discourse.julialang.org/t/proper-way-to-plot-a-linear-combination/94632)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 4\
**Last updated:** [February 14, 2023, 6:50pm UTC](https://discourse.julialang.org/t/proper-way-to-plot-a-linear-combination/94632 "2023-02-14T18:50:22Z")

</div>

Hello, good afternoon. Im trying to plot a linear combination in a 3d plane, subset of two vectors, with julia and plots and I’m failing with this tasks. Julia plots works a bit different than matplotlib. What is the c…

---

## [How to interrupt (not kill) julia from the REPL?](https://discourse.julialang.org/t/how-to-interrupt-not-kill-julia-from-the-repl/22565)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 25\
**Last updated:** [February 14, 2023, 6:50pm UTC](https://discourse.julialang.org/t/how-to-interrupt-not-kill-julia-from-the-repl/22565 "2023-02-14T18:50:04Z")

</div>

From the REPL, how do I interrupt execution of a function? Basically, I want to press some command key and cause it to throw an error that I can catch. For example: function interruptable\_loop() try while not\_don…

---

## [Makie - is there a function to show a figure?](https://discourse.julialang.org/t/makie-is-there-a-function-to-show-a-figure/82656)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 8\
**Last updated:** [February 14, 2023, 6:35pm UTC](https://discourse.julialang.org/t/makie-is-there-a-function-to-show-a-figure/82656 "2023-02-14T18:35:55Z")

</div>

Hello, This is really a very basic question, but I find the short examples given on https://makie.juliaplots.org a bit confusing regarding which instruction(s) to use to actually display a figure, apart from typing its …

---

## [Save a vector to a txt file asynchronously](https://discourse.julialang.org/t/save-a-vector-to-a-txt-file-asynchronously/94234)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.julialang.org/u/x13420x)\
**Replies:** 8\
**Last updated:** [February 14, 2023, 6:01pm UTC](https://discourse.julialang.org/t/save-a-vector-to-a-txt-file-asynchronously/94234 "2023-02-14T18:01:24Z")

</div>

Everytime I want to save a vector to a txt file the code is hanging…I need a copy of the vector to be passed to function and for it to be saved while the code is running. The saving is only taking a 10th of a second whi…

---

## [DiffEqGPU throws InvalidIR Error for simple example](https://discourse.julialang.org/t/diffeqgpu-throws-invalidir-error-for-simple-example/94579)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 3\
**Last updated:** [February 14, 2023, 4:56pm UTC](https://discourse.julialang.org/t/diffeqgpu-throws-invalidir-error-for-simple-example/94579 "2023-02-14T16:56:16Z")

</div>

Hi, my minimal example for DiffEqGPU.jl does not work unfortunately. The MWE is (copy paste in Pluto): # ╔═╡ fd1a977c-abca-11ed-2e82-315cc1b1716b using DifferentialEquations, Zygote, CUDA,DiffEqGPU, StaticArrays # ╔═…

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

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