# Latest

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

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

**Page:** 555

---

## [Scaling color gradient with custom function](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 9\
**Last updated:** [November 14, 2023, 4:21pm UTC](https://discourse.julialang.org/t/scaling-color-gradient-with-custom-function/106200 "2023-11-14T16:21:55Z")

</div>

I have a contourf plot which uses a color gradient but I want the values’ color to have a specific meaning. Specifically, I am using the :jet color gradient and I want any value in \[0,3\] to be blue to green, any value i…

---

## [Deactivating the drag rotation interaction in an LScene](https://discourse.julialang.org/t/deactivating-the-drag-rotation-interaction-in-an-lscene/106174)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 4:04pm UTC](https://discourse.julialang.org/t/deactivating-the-drag-rotation-interaction-in-an-lscene/106174 "2023-11-14T16:04:25Z")

</div>

How can I temporarily deactivate (and later reactivate) the rotation interaction (:dragrotate) for an LScene? The deactivate\_interaction! and activate\_interaction! methods seem only to be defined on Axis and Axis3. Some…

---

## [Technology for presentations](https://discourse.julialang.org/t/technology-for-presentations/12135)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 38\
**Last updated:** [November 14, 2023, 3:55pm UTC](https://discourse.julialang.org/t/technology-for-presentations/12135 "2023-11-14T15:55:48Z")

</div>

What technologies do you use for presentations ? For Julia talks to smallish audiences I used Douglas Bates’ pipeline of pandoc on markdown to pdf via latex as a template. (I can’t seem to locate the source online at the…

---

## [Inconsistency between map and fmap](https://discourse.julialang.org/t/inconsistency-between-map-and-fmap/106217)

<div class="topic-metadata">

**Author:** [@FerreolS](https://discourse.julialang.org/u/FerreolS)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 3:48pm UTC](https://discourse.julialang.org/t/inconsistency-between-map-and-fmap/106217 "2023-11-14T15:48:38Z")

</div>

Hi, I saw fmap as an extension of map to functors and I want to use it convert type of element of arrays that are leaves of some struct: Taking the doc example: julia\> using Functors julia\> struct Foo x …

---

## [MonteCarloMeasurements & MTK, again](https://discourse.julialang.org/t/montecarlomeasurements-mtk-again/106205)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 2:45pm UTC](https://discourse.julialang.org/t/montecarlomeasurements-mtk-again/106205 "2023-11-14T14:45:42Z")

</div>

I’m trying to use MonteCarloMeasurements with MTK. I have some problems wrt. (i) the number of particles, and (ii) interpretation/presentation of the results. Here is a simple RC circuit example: using Plots, LaTeXStri…

---

## [Cannot achieve type stability](https://discourse.julialang.org/t/cannot-achieve-type-stability/106194)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 17\
**Last updated:** [November 14, 2023, 2:34pm UTC](https://discourse.julialang.org/t/cannot-achieve-type-stability/106194 "2023-11-14T14:34:01Z")

</div>

See the MWE below, inferred as Vector on both 1.9 and 1.10-pre. struct Quadrature{T} x::Vector{T} w::Vector{T} end function cubature(f::F, quadrature::Quadrature, B::NTuple{N}) where {F,N} (; x, w) = quadra…

---

## [Question about random numbers from custom distribution](https://discourse.julialang.org/t/question-about-random-numbers-from-custom-distribution/106214)

<div class="topic-metadata">

**Author:** [@mt\_86](https://discourse.julialang.org/u/mt_86)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 2:18pm UTC](https://discourse.julialang.org/t/question-about-random-numbers-from-custom-distribution/106214 "2023-11-14T14:18:10Z")

</div>

Hello, I’m interested in generating random samples from a specific distribution. I read that it is useful to import the package Distributions.jl, however I’m not sure that the following distribution is included: p(j)…

---

## [How to add several values for one index in a comprehension?](https://discourse.julialang.org/t/how-to-add-several-values-for-one-index-in-a-comprehension/106208)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 2:13pm UTC](https://discourse.julialang.org/t/how-to-add-several-values-for-one-index-in-a-comprehension/106208 "2023-11-14T14:13:31Z")

</div>

What would be the idiomatic way to get array like \[1, -1, 2, -2, 3, -3\] (or in general \[f(idx1), g(idx1), f(idx2), g(idx2)\] which have several values per one index following one another). \[(i,-i) for i in 1:5\] gives a l…

---

## [Dagger's DArray MPI subpackage roadmap](https://discourse.julialang.org/t/daggers-darray-mpi-subpackage-roadmap/104218)

<div class="topic-metadata">

**Author:** [@fda-tome](https://discourse.julialang.org/u/fda-tome)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 11:05am UTC](https://discourse.julialang.org/t/daggers-darray-mpi-subpackage-roadmap/104218 "2023-11-14T11:05:07Z")

</div>

Hello guys! Hope everyone is doing awesome and having a great year developing Julia code. I am writing this post to serve three purposes: Inform what is available in terms of the DArray MPI API; Conclude my Google Summ…

---

## [Translation of traditional ML models to neural network framework for acceleration?](https://discourse.julialang.org/t/translation-of-traditional-ml-models-to-neural-network-framework-for-acceleration/105986)

<div class="topic-metadata">

**Author:** [@FredrikKarlssonSpeec](https://discourse.julialang.org/u/FredrikKarlssonSpeec)\
**Replies:** 5\
**Last updated:** [November 14, 2023, 10:52am UTC](https://discourse.julialang.org/t/translation-of-traditional-ml-models-to-neural-network-framework-for-acceleration/105986 "2023-11-14T10:52:53Z")

</div>

Hi, This is maybe a stupid question for which the answer is already in the docs of one of the ML / NN frameworks, but are there efforts within the Julia community to do what the Hummingbird python package is attempting …

---

## [Linux Foundation has announced the High Performance Software Foundation (HPSF)](https://discourse.julialang.org/t/linux-foundation-has-announced-the-high-performance-software-foundation-hpsf/106157)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 10:48am UTC](https://discourse.julialang.org/t/linux-foundation-has-announced-the-high-performance-software-foundation-hpsf/106157 "2023-11-14T10:48:07Z")

</div>

The Linux Foundation this morning announced the creation of the High Performance Software Foundation (HPSF) to drive an open source software stack for High Performance Computing (HPC). The goals of the HPSF are: Serv…

---

## [Markdown tables](https://discourse.julialang.org/t/markdown-tables/11385)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 22\
**Last updated:** [November 14, 2023, 9:14am UTC](https://discourse.julialang.org/t/markdown-tables/11385 "2023-11-14T09:14:00Z")

</div>

Is anyone sitting on or thinking of building an implementation to parse arrays (e.g. Matrix, DataFrame, AbstractArray, etc.) into markdown tables (specifically one of the four table formats described in pandoc’s document…

---

## [Is julia a good choice for this?](https://discourse.julialang.org/t/is-julia-a-good-choice-for-this/105916)

<div class="topic-metadata">

**Author:** [@wlosh](https://discourse.julialang.org/u/wlosh)\
**Replies:** 17\
**Last updated:** [November 14, 2023, 8:08am UTC](https://discourse.julialang.org/t/is-julia-a-good-choice-for-this/105916 "2023-11-14T08:08:31Z")

</div>

Hello! I’m a complete julia novice, but I’ve been hearing about it from years from friends and colleagues. I’ve approached it for a project that I want to start but need some advice on what direction to take. I’m lookin…

---

## [Invalid iteration specification, what does it mean?](https://discourse.julialang.org/t/invalid-iteration-specification-what-does-it-mean/106119)

<div class="topic-metadata">

**Author:** [@pinkpeachman](https://discourse.julialang.org/u/pinkpeachman)\
**Replies:** 3\
**Last updated:** [November 12, 2023, 5:51pm UTC](https://discourse.julialang.org/t/invalid-iteration-specification-what-does-it-mean/106119 "2023-11-12T17:51:19Z")

</div>

I would like to write a function in a .jl file, that can recursively produce polynomials for me. However I got the following error message: invalid iteration specification. \> function P(n) Pn(x)=1 ##if n==0 Pn(x)=1…

---

## [Unicode mac windows portability](https://discourse.julialang.org/t/unicode-mac-windows-portability/106155)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 2\
**Last updated:** [November 14, 2023, 8:04am UTC](https://discourse.julialang.org/t/unicode-mac-windows-portability/106155 "2023-11-14T08:04:36Z")

</div>

Hi all, I just had an issue during one of my lectures. I provided the students a notebook with pre-filled information. The notebook was edited on a mac using VScode jupyter editor. One variable name was called χ̇ but w…

---

## [Assignment form, where syntax, and a return type](https://discourse.julialang.org/t/assignment-form-where-syntax-and-a-return-type/106175)

<div class="topic-metadata">

**Author:** [@slawrence](https://discourse.julialang.org/u/slawrence)\
**Replies:** 7\
**Last updated:** [November 14, 2023, 2:38am UTC](https://discourse.julialang.org/t/assignment-form-where-syntax-and-a-return-type/106175 "2023-11-14T02:38:21Z")

</div>

I want to use assignment form and where syntax while specifying the return type. I can’t. Why not? (Presumably I’ve misunderstood what some syntax means.) To be concrete, here are a few function definitions that compile…

---

## [PaPILO for JuMP Presolver](https://discourse.julialang.org/t/papilo-for-jump-presolver/106169)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 1:09am UTC](https://discourse.julialang.org/t/papilo-for-jump-presolver/106169 "2023-11-14T01:09:01Z")

</div>

Are there plans to add PaPILO as a LP/MILP presolver for JuMP? Since PaPILO is sometimes able to detect infeasibility, it may also be viewed as a partial LP & MILP solver.

---

## [Limits; for e.g. \[hard\] real-time (and for stacks)](https://discourse.julialang.org/t/limits-for-e-g-hard-real-time-and-for-stacks/106167)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 1:00am UTC](https://discourse.julialang.org/t/limits-for-e-g-hard-real-time-and-for-stacks/106167 "2023-11-14T01:00:34Z")

</div>

A. I just learned of RLIMIT\_RTTIME and SIGXCPU (and another intriguing RLIMIT\_STACK): https://man7.org/linux/man-pages/man2/getrlimit.2.html and while I’m sure Julia doesn’t support it, I’m thinking could it and how…

---

## [Stripping OpenBLAS from private build of Julia?](https://discourse.julialang.org/t/stripping-openblas-from-private-build-of-julia/106150)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [November 13, 2023, 10:45pm UTC](https://discourse.julialang.org/t/stripping-openblas-from-private-build-of-julia/106150 "2023-11-13T22:45:37Z")

</div>

It’s well known that BLAS buffers are the largest source of RAM usage by Julia at startup. Would this problem be gone if the stdlib LinearAlgebra is not loaded at startup? I understand that changing this publicly may be …

---

## [Unable to reproduce Catalyst.jl Example](https://discourse.julialang.org/t/unable-to-reproduce-catalyst-jl-example/106099)

<div class="topic-metadata">

**Author:** [@amaritm1](https://discourse.julialang.org/u/amaritm1)\
**Replies:** 21\
**Last updated:** [November 13, 2023, 9:43pm UTC](https://discourse.julialang.org/t/unable-to-reproduce-catalyst-jl-example/106099 "2023-11-13T21:43:54Z")

</div>

I am running Julia 1.9.3 using jupyter notebooks, and cannot reproduce the following example: Home · Catalyst.jl. I am simply copying and pasting the code. However, when I graph the reaction network I get the following d…

---

## [Can i check struct validity using external method?](https://discourse.julialang.org/t/can-i-check-struct-validity-using-external-method/106161)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 8:28pm UTC](https://discourse.julialang.org/t/can-i-check-struct-validity-using-external-method/106161 "2023-11-13T20:28:44Z")

</div>

Hey, I wanted to externalize my validity checks like that : struct S{PT} par::PT function S(par) rez = new{typeof(par)}(par) check(rez) && return rez end end function check(rez::S{PT}) where…

---

## [What is the difference between CodeInfo and Core.Compiler.IRCode?](https://discourse.julialang.org/t/what-is-the-difference-between-codeinfo-and-core-compiler-ircode/106089)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 8\
**Last updated:** [November 13, 2023, 8:07pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-codeinfo-and-core-compiler-ircode/106089 "2023-11-13T20:07:47Z")

</div>

Dear All, I wanted to update my lecture notes about IR modifications. Two years ago, when I have written them, I wanted to have some introductory material into mechanisms Zygote relies on. Now, I have the feeling that i…

---

## [LoadError: ArgumentError: hasproperty of NULL PyObject](https://discourse.julialang.org/t/loaderror-argumenterror-hasproperty-of-null-pyobject/105805)

<div class="topic-metadata">

**Author:** [@Students](https://discourse.julialang.org/u/Students)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 7:52pm UTC](https://discourse.julialang.org/t/loaderror-argumenterror-hasproperty-of-null-pyobject/105805 "2023-11-13T19:52:20Z")

</div>

Hello, I am trying to add FLOWNoise pkg in my env however I am getting the following error: I did the following: ENV\[“PYTHON”\] = “” Pkg.build(“PyCall”) I am still getting the same error. I kindly request your hel…

---

## [Modifying TypeVar that will have a concrete value?](https://discourse.julialang.org/t/modifying-typevar-that-will-have-a-concrete-value/106149)

<div class="topic-metadata">

**Author:** [@jecs](https://discourse.julialang.org/u/jecs)\
**Replies:** 6\
**Last updated:** [November 13, 2023, 7:47pm UTC](https://discourse.julialang.org/t/modifying-typevar-that-will-have-a-concrete-value/106149 "2023-11-13T19:47:17Z")

</div>

Say I have an abstract type that is parameterized on a TypeVar that will have a concrete integer value. abstract type A{N} end I have a struct B where I’d like to subtype A but where I modify the TypeVar that is used. …

---

## [\[ANN\] Announcing Visor.jl](https://discourse.julialang.org/t/ann-announcing-visor-jl/106158)

<div class="topic-metadata">

**Author:** [@attdona](https://discourse.julialang.org/u/attdona)\
**Replies:** 0\
**Last updated:** [November 13, 2023, 4:56pm UTC](https://discourse.julialang.org/t/ann-announcing-visor-jl/106158 "2023-11-13T16:56:33Z")

</div>

Hello Everyone I’m glad to announce a first draft version of Visor: a tasks supervisor for Julia. The starting motivation sparkled some years ago around the “apparently simple” goal of controlling the shutdown of multi…

---

## [Hermitian version of three-argument dot](https://discourse.julialang.org/t/hermitian-version-of-three-argument-dot/106122)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 11\
**Last updated:** [November 13, 2023, 6:51pm UTC](https://discourse.julialang.org/t/hermitian-version-of-three-argument-dot/106122 "2023-11-13T18:51:16Z")

</div>

Is there a function to compute directly v^\* A v for a vector v and a matrix A? Ideally, it should have the upsides of three-argument dot, like not allocating Av, and take advantage of symmetry, so when A is Symmetric or…

---

## [Infrastructure for SIMD random number generator](https://discourse.julialang.org/t/infrastructure-for-simd-random-number-generator/106065)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 4:04pm UTC](https://discourse.julialang.org/t/infrastructure-for-simd-random-number-generator/106065 "2023-11-13T16:04:21Z")

</div>

Imagine you want to find the average distance of two points in a disk with SIMD and without allocation, how would you do this with the current API? Let’s assume a vector length of 8 for simplicity. First, you start gen…

---

## [Solving multiple ODE concurrently](https://discourse.julialang.org/t/solving-multiple-ode-concurrently/106084)

<div class="topic-metadata">

**Author:** [@sand2](https://discourse.julialang.org/u/sand2)\
**Replies:** 3\
**Last updated:** [November 13, 2023, 5:46pm UTC](https://discourse.julialang.org/t/solving-multiple-ode-concurrently/106084 "2023-11-13T17:46:58Z")

</div>

Hi, I would like to solve several ODE’s with contribution from a neural network concurrently. I have the following (not working) example. using StableRNGs using ComponentArrays using Zygote, Lux, OrdinaryDiffEq, SciML…

---

## [Using Plots in an extension causes precompile warnings and errors](https://discourse.julialang.org/t/using-plots-in-an-extension-causes-precompile-warnings-and-errors/106159)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 5:29pm UTC](https://discourse.julialang.org/t/using-plots-in-an-extension-causes-precompile-warnings-and-errors/106159 "2023-11-13T17:29:55Z")

</div>

In my package with multiple modules have some plot functions for some data types that I am trying to move into extensions to remove plots dependency and allow a Makie option as well. The module extensions which are base…

---

## [Performance issue with multithreaded computation with matrix operations at its heart (Threads.@threads vs. BLAS threads)](https://discourse.julialang.org/t/performance-issue-with-multithreaded-computation-with-matrix-operations-at-its-heart-threads-threads-vs-blas-threads/106043)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 7\
**Last updated:** [November 13, 2023, 5:00pm UTC](https://discourse.julialang.org/t/performance-issue-with-multithreaded-computation-with-matrix-operations-at-its-heart-threads-threads-vs-blas-threads/106043 "2023-11-13T17:00:05Z")

</div>

While trying to speed up a long computation with chunking more threads on it, I ran into an interesting problem. I found several related threads here, but I couldn’t find a convincing answer, nor a solution to my issue. …

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

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