# Latest

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

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

**Page:** 920

---

## [BeautifulMakie new domain](https://discourse.julialang.org/t/beautifulmakie-new-domain/87160)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 10\
**Last updated:** [September 20, 2022, 2:06pm UTC](https://discourse.julialang.org/t/beautifulmakie-new-domain/87160 "2022-09-20T14:06:48Z")

</div>

Thanks to @sdanisch from now on BeautifulMakie will live at https://beautiful.makie.org a new design is now up and a bunch of new examples are already there. Just a few from the previous version are missing. Still tran…

---

## [Javis collision detection](https://discourse.julialang.org/t/javis-collision-detection/87398)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 1:30pm UTC](https://discourse.julialang.org/t/javis-collision-detection/87398 "2022-09-20T13:30:39Z")

</div>

So I’m using the excellent package Javis.jl where I’m making a small simulation to teach my kids about entropy. Basically I want a box with a number of of balls bouncing around in it. I want to be able to detect when the…

---

## [Extracting elements from pmap using for loop](https://discourse.julialang.org/t/extracting-elements-from-pmap-using-for-loop/87516)

<div class="topic-metadata">

**Author:** [@mb96](https://discourse.julialang.org/u/mb96)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 12:48pm UTC](https://discourse.julialang.org/t/extracting-elements-from-pmap-using-for-loop/87516 "2022-09-20T12:48:49Z")

</div>

I am confused about Julia behavior when I used pmap return object as an iterator. I will first show a chunk of code isomorphic to the malfunctioning code but which works and then show the malfunctioning code. Consider t…

---

## [Defining \`--\>\` operator](https://discourse.julialang.org/t/defining-operator/87514)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 12:40pm UTC](https://discourse.julialang.org/t/defining-operator/87514 "2022-09-20T12:40:52Z")

</div>

The NEWS.md for Julia 1.6 says: The --\> operator now lowers to a :call expression, so it can be defined as a function like other operators. I originally took this to mean that in earlier versions, you had to use the …

---

## [Custom CUDA kernel for nontrivial sum calculations](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:11am UTC](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466 "2022-09-20T11:11:49Z")

</div>

Suppose I want to calculate the following sum: C\_{nm}=\\sum\_i A\_{ni}B\_{im} (in reality, something more complicated). The corresponding code could be function cpu\_add!(C, A, B) @. C = 0 for i in axes(A,1) …

---

## [Struggling to update deprecated Interpolations function](https://discourse.julialang.org/t/struggling-to-update-deprecated-interpolations-function/87431)

<div class="topic-metadata">

**Author:** [@adamhsparks](https://discourse.julialang.org/u/adamhsparks)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 10:40am UTC](https://discourse.julialang.org/t/struggling-to-update-deprecated-interpolations-function/87431 "2022-09-20T10:40:17Z")

</div>

I have a small function in my package that interpolates values and I’ve noted that the function I’d been using, LinearInterpolation(Node, Node, extrapolation\_bc=0), has been deprecated. I’m struggling to understand what…

---

## [Make lines in legend longer](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 10:30am UTC](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479 "2022-09-20T10:30:21Z")

</div>

I am trying to create a separate common legend for a grid of plots, however the length of the lines in the legend appears too short. What keyword argument modifies it?

---

## [How to partilly instantiate parameters of a reaction network in Catalyst (or ModelingToolkit ?)](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427)

<div class="topic-metadata">

**Author:** [@Cedric\_Lh](https://discourse.julialang.org/u/Cedric_Lh)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427 "2022-09-20T10:11:39Z")

</div>

Hi! Is there a simple way, in Catalyst.jl, to instantiate some of the parameters of a reaction system ? Suppose, I have this simple network: rn1 = @reaction\_network begin a, X --\> ∅ b, Y --\> X end a b so, param…

---

## [Is there a package for printing integer as Unicode superscripts](https://discourse.julialang.org/t/is-there-a-package-for-printing-integer-as-unicode-superscripts/87505)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 8:26am UTC](https://discourse.julialang.org/t/is-there-a-package-for-printing-integer-as-unicode-superscripts/87505 "2022-09-20T08:26:09Z")

</div>

I keep copy-pasting code for printing stuff like the digits in ℝ². It usually goes like const \_SUPERSCRIPT\_DIGITS = \['⁰', '¹', '²', '³', '⁴', '⁵', '⁶', '⁷', '⁸', '⁹'\] function print\_unicode\_superscript(io::IO, k::Integ…

---

## [Getting Attributes for Makie Axis and Lines](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500 "2022-09-20T07:57:37Z")

</div>

There are many attributes of axes and plots that one might want to be able to inspect and change. I used to be able to find a list of these possibilities with Makie by doing the following. fig, axis, lineplot = lines(1:…

---

## [GPU-Kernel Profiling](https://discourse.julialang.org/t/gpu-kernel-profiling/87468)

<div class="topic-metadata">

**Author:** [@Julien\_A](https://discourse.julialang.org/u/Julien_A)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 6:47am UTC](https://discourse.julialang.org/t/gpu-kernel-profiling/87468 "2022-09-20T06:47:10Z")

</div>

Hello, i’m currently profiling a Julia deep learning project, mainly executed on the GPU. Using nvprof i get following profiling result: ==7880== Profiling result: Type Time(%) Time Calls Avg…

---

## [Can Julia creat custom callback function?](https://discourse.julialang.org/t/can-julia-creat-custom-callback-function/87501)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 6:20am UTC](https://discourse.julialang.org/t/can-julia-creat-custom-callback-function/87501 "2022-09-20T06:20:14Z")

</div>

Here is the discripitive code: struct CallBack{T,N} condition::T call\_back::N end struct Condition{T} condition::T end check\_condition(cond::Condition{T}) where {T\<:V{Int}} = cond.condition\[end\] == 1 call\_ba…

---

## [Load file on workers after they start](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502)

<div class="topic-metadata">

**Author:** [@Amit.Rotem](https://discourse.julialang.org/u/Amit.Rotem)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 5:41am UTC](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502 "2022-09-20T05:41:03Z")

</div>

Is it possible to load a jl file on a worker as they start? The -L flag does not seems to work. using Distributed open("worker\_startup.jl", "w") do io print(io, """ using Distributed id = Distribute…

---

## [Parallel bzip2 ang gzip: pbzip2 and pigz](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 3:35am UTC](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096 "2022-09-20T03:35:22Z")

</div>

Do JuMP’s write\_to\_file and read\_from\_file use pbzip2 and pigz, parallel implementations of bzip2 and gzip, when writing or reading models stored in .bz2 and .gz compressed files? https://jump.dev/JuMP.jl/stable/referen…

---

## [Nested Logit](https://discourse.julialang.org/t/nested-logit/87495)

<div class="topic-metadata">

**Author:** [@Alina-Elena](https://discourse.julialang.org/u/Alina-Elena)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 3:17am UTC](https://discourse.julialang.org/t/nested-logit/87495 "2022-09-20T03:17:53Z")

</div>

Hi, I was wondering if anyone could help me with estimating a nested logit with a specific nesting structure. The choice set represents possible occupations as follows: 1. professional/technical, 2. managers/ admin, 3.…

---

## [\[ANN\] EvoLinear.jl for Linear Boosting](https://discourse.julialang.org/t/ann-evolinear-jl-for-linear-boosting/87329)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 7\
**Last updated:** [September 20, 2022, 3:08am UTC](https://discourse.julialang.org/t/ann-evolinear-jl-for-linear-boosting/87329 "2022-09-20T03:08:31Z")

</div>

A new package implementing linear boosting has just been launched: EvoLinear.jl. It essentially covers the functionality provided by the gblinear learner found in XGBoost. Notably, it has L1 & L2 regularization, plus t…

---

## [Nested Loop optimization](https://discourse.julialang.org/t/nested-loop-optimization/87498)

<div class="topic-metadata">

**Author:** [@Jojo](https://discourse.julialang.org/u/Jojo)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 12:01am UTC](https://discourse.julialang.org/t/nested-loop-optimization/87498 "2022-09-20T00:01:50Z")

</div>

Hello, I’ve been working on a solver where I have a nested loop and I want to improve the performance. I think that I’m making unnecessary allocations, for instance I have to write a=copy(a) to force the inner loop to up…

---

## [ERROR: cannot document the following expression: using PATHSolver](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 10\
**Last updated:** [September 19, 2022, 10:50pm UTC](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496 "2022-09-19T22:50:59Z")

</div>

Hello all, I am new to Julia, I am trying to run a simple optimization problem using PathSolver. I have installed the PathSolver, but it is giving me this error ERROR: cannot document the following expression: using P…

---

## [Optimizing nested for loops and memory allocation in finite differences routine](https://discourse.julialang.org/t/optimizing-nested-for-loops-and-memory-allocation-in-finite-differences-routine/87488)

<div class="topic-metadata">

**Author:** [@Jojo](https://discourse.julialang.org/u/Jojo)\
**Replies:** 3\
**Last updated:** [September 19, 2022, 9:54pm UTC](https://discourse.julialang.org/t/optimizing-nested-for-loops-and-memory-allocation-in-finite-differences-routine/87488 "2022-09-19T21:54:34Z")

</div>

Hi, guys. I’ve been working in a nonlinear wave equation solver using finite differences. My code works properly but I’d like to improve the performance, im working on a 12000\*39000 grid and the average @btime is 15s. I’…

---

## [Typing in Julia](https://discourse.julialang.org/t/typing-in-julia/87491)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 9:38pm UTC](https://discourse.julialang.org/t/typing-in-julia/87491 "2022-09-19T21:38:14Z")

</div>

I ran the following code to create a vector of initial conditions: IC\_V = collect(-75.0:15.0:75.0); IC\_n = collect(0:.2:1); IC\_gCa = collect(0:p\[6\]/5:p\[6\]); IC\_gK = collect(0:p\[7\]/5:p\[7\]); IC\_Ca = collect(0.0:50.0:300.0…

---

## [How to connect to a Web API?](https://discourse.julialang.org/t/how-to-connect-to-a-web-api/87490)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 8:38pm UTC](https://discourse.julialang.org/t/how-to-connect-to-a-web-api/87490 "2022-09-19T20:38:10Z")

</div>

TLDR: Please explain to me like I’m a child how Web API’s work. I use project management software called ClickUp that says you can push and pull data to it through its web API. From its documentation, if you click on Li…

---

## [How to return an instance of a composite type based on a given field value?](https://discourse.julialang.org/t/how-to-return-an-instance-of-a-composite-type-based-on-a-given-field-value/87374)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 13\
**Last updated:** [September 19, 2022, 8:14pm UTC](https://discourse.julialang.org/t/how-to-return-an-instance-of-a-composite-type-based-on-a-given-field-value/87374 "2022-09-19T20:14:16Z")

</div>

Hi I’m going through the Julia manual and learning about abstract and composite types. I wanted to create a method that returns the instance of a composite type based on a given field value. I was wonder if there was a …

---

## [Modia doc page fail](https://discourse.julialang.org/t/modia-doc-page-fail/87489)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:58pm UTC](https://discourse.julialang.org/t/modia-doc-page-fail/87489 "2022-09-19T19:58:29Z")

</div>

Hi all, I found the Modia.jl documentation page can not be opened, is this a temporary problem or it is no longer available? Thank you in advance!

---

## [Getting attribute error: "Unknown property math\_fontfamily" from Plots](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486)

<div class="topic-metadata">

**Author:** [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:23pm UTC](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486 "2022-09-19T19:23:44Z")

</div>

Hi everyone, I am trying to plot 3d graphics using Plots in jupyter notebook but everytime I try, I always get the error of unknown property math\_fontfamily. I posted a screenshot to show what I mean. Plots work for my …

---

## [Network Not Updating, Flux Julia](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350)

<div class="topic-metadata">

**Author:** [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Replies:** 6\
**Last updated:** [September 19, 2022, 7:19pm UTC](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350 "2022-09-19T19:19:35Z")

</div>

Hello people. I am trying to implement an actor critic network using Flux. However for some reason my network is not being updated. Here is a sample from the code. state\_dim1 = 14 output\_dim = 1 function actor\_model(sta…

---

## [Package to Plot Physical System in Julia](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 5\
**Last updated:** [September 19, 2022, 6:52pm UTC](https://discourse.julialang.org/t/package-to-plot-physical-system-in-julia/87470 "2022-09-19T18:52:39Z")

</div>

Hi all, I want to know whether there are package that can create this physical system below, or similar, (you can suggest something outside Julia, if there is no such package). Thanks a lot.

---

## [Proposal to extend the syntax of list comprehensions with a \`let\` clause](https://discourse.julialang.org/t/proposal-to-extend-the-syntax-of-list-comprehensions-with-a-let-clause/87256)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 38\
**Last updated:** [September 19, 2022, 6:14pm UTC](https://discourse.julialang.org/t/proposal-to-extend-the-syntax-of-list-comprehensions-with-a-let-clause/87256 "2022-09-19T18:14:26Z")

</div>

I would like to propose a new syntactic sugar to the list comprehension syntax. Take the following, somewhat forced example: \[2abs(x) for x in -20:20 if abs(x) \> 10\] Here, the abs function is invoked twice. Of cours…

---

## [Combvec in Julia](https://discourse.julialang.org/t/combvec-in-julia/87485)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 5\
**Last updated:** [September 19, 2022, 6:07pm UTC](https://discourse.julialang.org/t/combvec-in-julia/87485 "2022-09-19T18:07:36Z")

</div>

Sorry I have a trivial question. In matlab, combvec takes as inputs vectors and outputs all combinations of element from each vector. I was looking for a similar function in julia and found one in the SparseGrids library.…

---

## [Gaussian process regression with Turing gets stuck](https://discourse.julialang.org/t/gaussian-process-regression-with-turing-gets-stuck/86892)

<div class="topic-metadata">

**Author:** [@soldasim](https://discourse.julialang.org/u/soldasim)\
**Replies:** 6\
**Last updated:** [September 19, 2022, 5:32pm UTC](https://discourse.julialang.org/t/gaussian-process-regression-with-turing-gets-stuck/86892 "2022-09-19T17:32:35Z")

</div>

Hello, I have an issue where sampling with a Turing model with Gaussian process sometimes gets stuck while printing the following error massage over and over: ┌ Warning: \[DynamicPPL\] attempt to link a linked vi └ @ Dyn…

---

## [Project instantiatation never-ending loop](https://discourse.julialang.org/t/project-instantiatation-never-ending-loop/87483)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [September 19, 2022, 5:15pm UTC](https://discourse.julialang.org/t/project-instantiatation-never-ending-loop/87483 "2022-09-19T17:15:39Z")

</div>

Hello, Please somehow help me escape this never ending loop. I’m trying to instantiate a project on a cluster. It works perfectly fine on my local machine. Here’s what I find on an interactive repl session. (DRL\_MMULS)…

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

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