# Latest

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

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

**Page:** 635

---

## [Feature request: add a reinstall\_all\_packages to Pkg](https://discourse.julialang.org/t/feature-request-add-a-reinstall-all-packages-to-pkg/102128)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 8\
**Last updated:** [July 27, 2023, 5:58pm UTC](https://discourse.julialang.org/t/feature-request-add-a-reinstall-all-packages-to-pkg/102128 "2023-07-27T17:58:40Z")

</div>

I suggest adding a simple function (\`reinstall\_all\_packages\`\`?) to Pkg that would purge all of .julia, except startup.jl and Project.toml (EDIT: plus some dev and Pluto stuff that I forgot about), and do an update Mot…

---

## [Multiply Structarray with scalars per field](https://discourse.julialang.org/t/multiply-structarray-with-scalars-per-field/102159)

<div class="topic-metadata">

**Author:** [@dali77](https://discourse.julialang.org/u/dali77)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 5:02pm UTC](https://discourse.julialang.org/t/multiply-structarray-with-scalars-per-field/102159 "2023-07-27T17:02:11Z")

</div>

s = StructArray{NamedTuple{(:a, :b, :c, :d), NTuple{4, Float32}}}((a=\[0,1,1,1,2,2,2\],b=\[0,0,0,0,0,0,0\],c=\[0,20,10,10,20,20,10\],d=\[0,6,5,4,3,2,1\])) factors = (a = 0.9, c = 1.2, d=2.0, b=0.2) How to multiply a with facto…

---

## [Reuse Dask from Julia on existing HPC facilities](https://discourse.julialang.org/t/reuse-dask-from-julia-on-existing-hpc-facilities/102166)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 0\
**Last updated:** [July 27, 2023, 4:34pm UTC](https://discourse.julialang.org/t/reuse-dask-from-julia-on-existing-hpc-facilities/102166 "2023-07-27T16:34:34Z")

</div>

There are many scientific facilities with Dask installed (and ports opened etc.) and user simply use Dask panel from the JupyterLab instance. I’m wondering if anyone has tried / what needed to be able to piggy back exis…

---

## [Preferred Kernel in jupyter notebook](https://discourse.julialang.org/t/preferred-kernel-in-jupyter-notebook/102138)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 5\
**Last updated:** [July 27, 2023, 4:20pm UTC](https://discourse.julialang.org/t/preferred-kernel-in-jupyter-notebook/102138 "2023-07-27T16:20:18Z")

</div>

I have used three different versions of Julia on my PC (1.8.5, 1.9.0, and 1.9.2). For all versions, I’ve already installed the IJulia package or using Pkg and Pkg.build("IJulia"). However, when I use the jupyter notebook…

---

## [Function that executes two functions slower than two function separately](https://discourse.julialang.org/t/function-that-executes-two-functions-slower-than-two-function-separately/102067)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 12\
**Last updated:** [July 27, 2023, 3:48pm UTC](https://discourse.julialang.org/t/function-that-executes-two-functions-slower-than-two-function-separately/102067 "2023-07-27T15:48:09Z")

</div>

So I have three types I defined as Dist, Kernel and State. I am running a function g defines as follows: function g(x::Kernel, s::State) d = get\_dist(x, s) return sample(d) Where d is a Dist and g returns a Sta…

---

## [Explicit type annotation in document for function in julia · JuliaLang/julia](https://discourse.julialang.org/t/explicit-type-annotation-in-document-for-function-in-julia-julialang-julia/102137)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 6\
**Last updated:** [July 27, 2023, 2:50pm UTC](https://discourse.julialang.org/t/explicit-type-annotation-in-document-for-function-in-julia-julialang-julia/102137 "2023-07-27T14:50:49Z")

</div>

---

## [Load local page into Blink.jl](https://discourse.julialang.org/t/load-local-page-into-blink-jl/102151)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 2:23pm UTC](https://discourse.julialang.org/t/load-local-page-into-blink-jl/102151 "2023-07-27T14:23:27Z")

</div>

In am starting to learn Blink.jl, and would like to load a local HTML document into the Blink window. using Blink winpath = realpath("html/mainwin.html") @assert isfile(winpath) w = Window() loadurl(w, winpath) It open…

---

## [Interact.jl widget in Jupyter Lab](https://discourse.julialang.org/t/interact-jl-widget-in-jupyter-lab/52021)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 2:15pm UTC](https://discourse.julialang.org/t/interact-jl-widget-in-jupyter-lab/52021 "2023-07-27T14:15:30Z")

</div>

Hi guys, I am trying to using Interact’s widget in JupyterLab. But I was unable to get the widget working after I tried my best to install Interact and WebIO. I believe I had missed something. Thank you for your help. u…

---

## [N dimensional array with different type](https://discourse.julialang.org/t/n-dimensional-array-with-different-type/102147)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 4\
**Last updated:** [July 27, 2023, 1:58pm UTC](https://discourse.julialang.org/t/n-dimensional-array-with-different-type/102147 "2023-07-27T13:58:10Z")

</div>

Hello, Is it possible to create a multidimensional array that would have several types of data of the following type? Here id and i is index. P1, P2, time ev type of Float64. check ev type of bool and another is arra…

---

## [Memory Problem with JuMP and pmap](https://discourse.julialang.org/t/memory-problem-with-jump-and-pmap/102153)

<div class="topic-metadata">

**Author:** [@Mkloster](https://discourse.julialang.org/u/Mkloster)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 1:40pm UTC](https://discourse.julialang.org/t/memory-problem-with-jump-and-pmap/102153 "2023-07-27T13:40:06Z")

</div>

Hallo, i want to solve some JuMP models in parallel. For this i tryed using pmap from the Distributed libarary. Here you can see a simple example: using JuMP, SCIP using Distributed addprocs(4) @everywhere begin …

---

## [Clarabel optimization brings different result from other optimizers](https://discourse.julialang.org/t/clarabel-optimization-brings-different-result-from-other-optimizers/101349)

<div class="topic-metadata">

**Author:** [@thiagoselias](https://discourse.julialang.org/u/thiagoselias)\
**Replies:** 5\
**Last updated:** [July 27, 2023, 1:16pm UTC](https://discourse.julialang.org/t/clarabel-optimization-brings-different-result-from-other-optimizers/101349 "2023-07-27T13:16:48Z")

</div>

Because Clarabel gives different results from other optimizers, since the same implementation was used, only changing the name of the solver in JuMP? \*\*-------------------------------------------------------------\*\* \*\* …

---

## [How to introduce an if sentence with optimization variables](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 1:15pm UTC](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130 "2023-07-27T13:15:45Z")

</div>

Hello again, For and electric propulsion system optimization, i’m trying to impose zero thrust during eclipse phases, I have this function created: function Step\_eclipse(j,r...,r\_par...) Re = 6378 if r\_par\[j\] +…

---

## [Very simple Flux model refusing to converge](https://discourse.julialang.org/t/very-simple-flux-model-refusing-to-converge/102129)

<div class="topic-metadata">

**Author:** [@jClugstor](https://discourse.julialang.org/u/jClugstor)\
**Replies:** 3\
**Last updated:** [July 27, 2023, 12:00pm UTC](https://discourse.julialang.org/t/very-simple-flux-model-refusing-to-converge/102129 "2023-07-27T12:00:30Z")

</div>

I’m attempting to do something very simple for now. I just want to do a nonlinear curve fitting of sine using Flux.jl. So far, the model is completely refusing to converge, and is giving some very strange results. I must…

---

## [How to use Catlab, WiringDiagrams for my explicit purpose?](https://discourse.julialang.org/t/how-to-use-catlab-wiringdiagrams-for-my-explicit-purpose/101172)

<div class="topic-metadata">

**Author:** [@Tillmann\_Bosch](https://discourse.julialang.org/u/Tillmann_Bosch)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 9:49am UTC](https://discourse.julialang.org/t/how-to-use-catlab-wiringdiagrams-for-my-explicit-purpose/101172 "2023-07-27T09:49:52Z")

</div>

Hey there! I want to build a little framework to model calculation flows. The image I appended shows an example of a renuve and costs calculation, which finally calculates some profit. Structurally this is a direct…

---

## [What is the current best way to draw pixels in julia?](https://discourse.julialang.org/t/what-is-the-current-best-way-to-draw-pixels-in-julia/102142)

<div class="topic-metadata">

**Author:** [@1m1](https://discourse.julialang.org/u/1m1)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 5:53am UTC](https://discourse.julialang.org/t/what-is-the-current-best-way-to-draw-pixels-in-julia/102142 "2023-07-27T05:53:19Z")

</div>

is it Gtk? to be fast and reliable fast includes changing the drawing fast i would like to have a single, dedicated window that my julia draws on. if one had access to the pixels of a video, it should be possible to re…

---

## [Understanding Varargs partial specialization](https://discourse.julialang.org/t/understanding-varargs-partial-specialization/102141)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 5:41am UTC](https://discourse.julialang.org/t/understanding-varargs-partial-specialization/102141 "2023-07-27T05:41:34Z")

</div>

In the “Be aware of when Julia avoids specializing”, section, the following is stated: As a heuristic, Julia avoids automatically specializing on argument type parameters in three specific cases: Type , Function , and V…

---

## [DenseArray vs. Strided](https://discourse.julialang.org/t/densearray-vs-strided/102127)

<div class="topic-metadata">

**Author:** [@orenbenkiki](https://discourse.julialang.org/u/orenbenkiki)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 4:52am UTC](https://discourse.julialang.org/t/densearray-vs-strided/102127 "2023-07-27T04:52:57Z")

</div>

I’m trying to understand the semantics of dense vs. strided arrays in Julia (in the Base array types). In my mind, there are three types of “regular” matrices: Strided: offset in memory of element (i, j) is (a + b \* …

---

## [Quadrature routines on GPU](https://discourse.julialang.org/t/quadrature-routines-on-gpu/102139)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 1\
**Last updated:** [July 27, 2023, 3:16am UTC](https://discourse.julialang.org/t/quadrature-routines-on-gpu/102139 "2023-07-27T03:16:06Z")

</div>

I have a function written in Julia that I’d like to numerically integrate (it’s a Maxwell Green’s function convolution integral). What are some common quadrature routines/packages that people recommend? Are there any rou…

---

## [GLMakie libgobject-2.0.so error](https://discourse.julialang.org/t/glmakie-libgobject-2-0-so-error/97850)

<div class="topic-metadata">

**Author:** [@Daniel\_Lewis](https://discourse.julialang.org/u/Daniel_Lewis)\
**Replies:** 10\
**Last updated:** [July 27, 2023, 12:55am UTC](https://discourse.julialang.org/t/glmakie-libgobject-2-0-so-error/97850 "2023-07-27T00:55:37Z")

</div>

hi I’m working on ubuntu 20.04 and try to use GLMakie but get the following error: ERROR: LoadError: InitError: could not load library "libgobject-2.0.so" libgobject-2.0.so: undefined symbol: g\_uri\_ref when runing: u…

---

## [Question about sum(x -\> ..., 1:n) notation](https://discourse.julialang.org/t/question-about-sum-x-1-n-notation/102132)

<div class="topic-metadata">

**Author:** [@Mark\_Szlazak](https://discourse.julialang.org/u/Mark_Szlazak)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 6:12pm UTC](https://discourse.julialang.org/t/question-about-sum-x-1-n-notation/102132 "2023-07-26T18:12:34Z")

</div>

Hi again Dan. Question about this formula you wrote. I don’t understand the notation. sum(k -\> loops(n,k), 1:n) == factorial(n) What does sum(k-\>loops(n,k), 1:n) mean? Is something ranging from k to loops(n,k)? Also, w…

---

## [Distributing LLM over multiple GPUs](https://discourse.julialang.org/t/distributing-llm-over-multiple-gpus/101866)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 10\
**Last updated:** [July 26, 2023, 7:12pm UTC](https://discourse.julialang.org/t/distributing-llm-over-multiple-gpus/101866 "2023-07-26T19:12:53Z")

</div>

Hi all, I am experimenting with gradient optimization of prompts for large language models using an excellent Transformers.jl library. I know that most of the people would say that I should switch to PyTorch (or Jax) an…

---

## [Mix-mode training of large languages models in Julia](https://discourse.julialang.org/t/mix-mode-training-of-large-languages-models-in-julia/102090)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 7\
**Last updated:** [July 26, 2023, 6:47pm UTC](https://discourse.julialang.org/t/mix-mode-training-of-large-languages-models-in-julia/102090 "2023-07-26T18:47:00Z")

</div>

I am toying with Large Language models and amazing Transformers.jl. And although I am forced to call PyTorch because some models are not supported by Transformers.jl (falcon) and due to some external forces, I got intere…

---

## [When is JuliaCon 2023 merch design going to be released?](https://discourse.julialang.org/t/when-is-juliacon-2023-merch-design-going-to-be-released/100730)

<div class="topic-metadata">

**Author:** [@sumant28](https://discourse.julialang.org/u/sumant28)\
**Replies:** 1\
**Last updated:** [July 26, 2023, 6:35pm UTC](https://discourse.julialang.org/t/when-is-juliacon-2023-merch-design-going-to-be-released/100730 "2023-07-26T18:35:52Z")

</div>

It was out this time last year

---

## [\[ANN\] Julia + FastAI for Deep Learning Study Group](https://discourse.julialang.org/t/ann-julia-fastai-for-deep-learning-study-group/101753)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 19\
**Last updated:** [July 26, 2023, 6:30pm UTC](https://discourse.julialang.org/t/ann-julia-fastai-for-deep-learning-study-group/101753 "2023-07-26T18:30:31Z")

</div>

Hey folks! I wanted to announce to y’all that I’m heading up a study group to apply Julia to the fantastic deep learning course at fast.ai. We’re going to be following along with the book and implementing things in Juli…

---

## [Help with speeding up this code](https://discourse.julialang.org/t/help-with-speeding-up-this-code/101407)

<div class="topic-metadata">

**Author:** [@Mark\_Szlazak](https://discourse.julialang.org/u/Mark_Szlazak)\
**Replies:** 30\
**Last updated:** [July 10, 2023, 10:45pm UTC](https://discourse.julialang.org/t/help-with-speeding-up-this-code/101407 "2023-07-10T22:45:29Z")

</div>

I am new to this language, tried a few speed up tips and this is the best i got. Is there anything else that can be done to get a significant performance increase? Can you show me how? using Plots, Printf, OffsetArrays …

---

## [Code works on CPU but not on GPU](https://discourse.julialang.org/t/code-works-on-cpu-but-not-on-gpu/102005)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 6\
**Last updated:** [July 26, 2023, 4:20pm UTC](https://discourse.julialang.org/t/code-works-on-cpu-but-not-on-gpu/102005 "2023-07-26T16:20:06Z")

</div>

Hi, I’m trying to implement a PINN (physiscs informed neural network) to solve the heat equation in Julia. I come from pytorch and so my code probably doesn’t look very Julia-like. I managed to get a version of my code …

---

## [Memoize functions defined in \`SymPy.jl\`](https://discourse.julialang.org/t/memoize-functions-defined-in-sympy-jl/102070)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 3\
**Last updated:** [July 26, 2023, 2:21pm UTC](https://discourse.julialang.org/t/memoize-functions-defined-in-sympy-jl/102070 "2023-07-26T14:21:13Z")

</div>

Is there a way to memoize a function that is defined in another module? Ideally, I would like to to something along the lines of import OtherModule: func using Memoization # I want this to replace \`func\` with a memoiz…

---

## [Help needed with AmplNLWriter](https://discourse.julialang.org/t/help-needed-with-amplnlwriter/102088)

<div class="topic-metadata">

**Author:** [@EmilyBrewer](https://discourse.julialang.org/u/EmilyBrewer)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 2:32pm UTC](https://discourse.julialang.org/t/help-needed-with-amplnlwriter/102088 "2023-07-26T14:32:36Z")

</div>

Hello, I am trying to use “Bonmin” or “Couenne” from AmplNLWriter in Julia. My code is attached below. using JuMP, AmplNLWriter, Couenne\_jll #model = Model(() -\> AmplNLWriter.Optimizer("bonmin")) model = Model(() -\> …

---

## [Julia Con 2023 starts now, livestream](https://discourse.julialang.org/t/julia-con-2023-starts-now-livestream/102116)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [July 26, 2023, 12:30pm UTC](https://discourse.julialang.org/t/julia-con-2023-starts-now-livestream/102116 "2023-07-26T12:30:34Z")

</div>

---

## [Solved - (cairomakie) Saving 2 figures - but one figure is saved twice](https://discourse.julialang.org/t/solved-cairomakie-saving-2-figures-but-one-figure-is-saved-twice/102107)

<div class="topic-metadata">

**Author:** [@anonymooseCanad](https://discourse.julialang.org/u/anonymooseCanad)\
**Replies:** 11\
**Last updated:** [July 26, 2023, 12:25pm UTC](https://discourse.julialang.org/t/solved-cairomakie-saving-2-figures-but-one-figure-is-saved-twice/102107 "2023-07-26T12:25:58Z")

</div>

Hi, my name is M and I am looking for some help. Project Context: I am working on environmental analysis using Julia and DataCubes. Coding Problem: My code works. Everything is good. Except for saving my figures. First…

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

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