# Latest

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

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

**Page:** 351

---

## [Choosing colors for lines over heatmap](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 10:43pm UTC](https://discourse.julialang.org/t/choosing-colors-for-lines-over-heatmap/117652 "2024-08-01T22:43:09Z")

</div>

I have a heatmap in viridis or inferno and I want to draw grid lines on it but I don’t know what color to make them so they’re visible. Is there a good automatic or manual way to pick colors for this? let n = 500 f, ax,…

---

## [How to write a function that outputs the linear combination of other functions?](https://discourse.julialang.org/t/how-to-write-a-function-that-outputs-the-linear-combination-of-other-functions/117740)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 10\
**Last updated:** [August 1, 2024, 9:40pm UTC](https://discourse.julialang.org/t/how-to-write-a-function-that-outputs-the-linear-combination-of-other-functions/117740 "2024-08-01T21:40:27Z")

</div>

I have a certain list of functions fs and coefficients cs with which I would like form a linear combination, e.g., I’d like to obtain the function (args...; kwargs...) -\> ( cs\[1\] \* f\[1\](args...; kwargs...) + ... …

---

## [Julia Extension Stuck "Formatting..."](https://discourse.julialang.org/t/julia-extension-stuck-formatting/117744)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 0\
**Last updated:** [August 1, 2024, 8:39pm UTC](https://discourse.julialang.org/t/julia-extension-stuck-formatting/117744 "2024-08-01T20:39:32Z")

</div>

After updating to 1.10.4, I’m getting a behavior where the Julia extension says it’s “Formatting…” in the bottom corner, but my file isn’t changing. It hangs this way the whole time I’m using VSCode. Additionally, sendin…

---

## [LoadError: Couldn't find libpython PyCall](https://discourse.julialang.org/t/loaderror-couldnt-find-libpython-pycall/16074)

<div class="topic-metadata">

**Author:** [@MMalakhov](https://discourse.julialang.org/u/MMalakhov)\
**Replies:** 7\
**Last updated:** [August 1, 2024, 8:15pm UTC](https://discourse.julialang.org/t/loaderror-couldnt-find-libpython-pycall/16074 "2024-08-01T20:15:52Z")

</div>

I can’t build PyCall on linux mint 18.3 julia\> Pkg.build(“PyCall”) Building Conda ─→ ~/.julia/packages/Conda/hsaaN/deps/build.log Building PyCall → ~/.julia/packages/PyCall/rUul9/deps/build.log ┌ Error: Error buildi…

---

## [PyVista functionalities analogue package in Julia](https://discourse.julialang.org/t/pyvista-functionalities-analogue-package-in-julia/117734)

<div class="topic-metadata">

**Author:** [@sabbraxcaddabra](https://discourse.julialang.org/u/sabbraxcaddabra)\
**Replies:** 1\
**Last updated:** [August 1, 2024, 5:35pm UTC](https://discourse.julialang.org/t/pyvista-functionalities-analogue-package-in-julia/117734 "2024-08-01T17:35:01Z")

</div>

Hello everyone! I have a big python project that based on PyVista library features: reading stl geometry, finding normals for each cell, finding intersection between polydata object and line Can anybody help me find Ju…

---

## [What can we learn from FastHTML?](https://discourse.julialang.org/t/what-can-we-learn-from-fasthtml/117663)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 8\
**Last updated:** [August 1, 2024, 5:10pm UTC](https://discourse.julialang.org/t/what-can-we-learn-from-fasthtml/117663 "2024-08-01T17:10:09Z")

</div>

Looks like Jeremy Howard has put quite a lot of thought into the design of FastHTML GitHub - AnswerDotAI/fasthtml: The fastest way to create an HTML app. It could be interesting to see what his demo app fasthtml/example…

---

## [How do you control the font size of a figure that is used in an academic publication?](https://discourse.julialang.org/t/how-do-you-control-the-font-size-of-a-figure-that-is-used-in-an-academic-publication/117713)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 1:28pm UTC](https://discourse.julialang.org/t/how-do-you-control-the-font-size-of-a-figure-that-is-used-in-an-academic-publication/117713 "2024-08-01T13:28:37Z")

</div>

Hi, everyone! I wonder how do you control the font size of a figure that is used in an academic publication, for example, if we plot the figure with Makie and write a paper with LaTex? Usually, we can tune in Julia both…

---

## [Does JET not detect the UndefRefError in this code?](https://discourse.julialang.org/t/does-jet-not-detect-the-undefreferror-in-this-code/117676)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [August 1, 2024, 12:13pm UTC](https://discourse.julialang.org/t/does-jet-not-detect-the-undefreferror-in-this-code/117676 "2024-08-01T12:13:05Z")

</div>

julia\> using StaticArrays, LinearAlgebra, JET julia\> M = Matrix{BigInt}(undef, 2, 2); M\[1,1\] = M\[2,2\] = M\[1,2\] = 3; M 2×2 Matrix{BigInt}: 3 3 #undef 3 julia\> S = SizedMatrix{2,2}(M) 2×2 SizedMatrix{2, 2, BigIn…

---

## [\[ANN\] CodecInflate64.jl - Testing help needed from Windows ZIP file users](https://discourse.julialang.org/t/ann-codecinflate64-jl-testing-help-needed-from-windows-zip-file-users/117680)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 4\
**Last updated:** [August 1, 2024, 11:46am UTC](https://discourse.julialang.org/t/ann-codecinflate64-jl-testing-help-needed-from-windows-zip-file-users/117680 "2024-08-01T11:46:15Z")

</div>

CodecInflate64.jl is a work in progress Julia implementation of deflate64 decompression. Deflate64 is an incompatible variant of deflate that Windows File Explorer sometimes uses when making large ZIP files. If you hav…

---

## [ESRI code for British National Grid not known by GeoIO](https://discourse.julialang.org/t/esri-code-for-british-national-grid-not-known-by-geoio/117641)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 22\
**Last updated:** [July 31, 2024, 2:19pm UTC](https://discourse.julialang.org/t/esri-code-for-british-national-grid-not-known-by-geoio/117641 "2024-07-31T14:19:56Z")

</div>

ERROR: LoadError: ArgumentError: EPSG/ESRI code for the ESRI ID "British\_National\_Grid" not found in dictionary. Please check https://github.com/JuliaEarth/CoordRefSystems.jl/blob/main/src/strings.jl If you know the EPSG…

---

## [Makie: Fontsizes for Publications](https://discourse.julialang.org/t/makie-fontsizes-for-publications/117721)

<div class="topic-metadata">

**Author:** [@mpirke](https://discourse.julialang.org/u/mpirke)\
**Replies:** 4\
**Last updated:** [August 1, 2024, 10:37am UTC](https://discourse.julialang.org/t/makie-fontsizes-for-publications/117721 "2024-08-01T10:37:25Z")

</div>

Hey out there! I want to use CairoMakie.jl for my figures in a scientific work. The fontsize of the figure should match the fontsize of the text (12). I have found a reference on the Makie site discussion this issue. (…

---

## [Finding the reason of infeasibility in CPLEX](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686)

<div class="topic-metadata">

**Author:** [@ArmanZar](https://discourse.julialang.org/u/ArmanZar)\
**Replies:** 2\
**Last updated:** [August 1, 2024, 8:08am UTC](https://discourse.julialang.org/t/finding-the-reason-of-infeasibility-in-cplex/117686 "2024-08-01T08:08:24Z")

</div>

Hi everyone, I have an optimization problem and I solved it using CPLEX solver in JuMP. At the end, it gives a solution but the termination status is infeasible. I know that in IPOPT there is function primal\_feasiblity\_…

---

## [Create a multicolor (gradient, palette) bar in Plots](https://discourse.julialang.org/t/create-a-multicolor-gradient-palette-bar-in-plots/117546)

<div class="topic-metadata">

**Author:** [@eotero](https://discourse.julialang.org/u/eotero)\
**Replies:** 3\
**Last updated:** [August 1, 2024, 7:52am UTC](https://discourse.julialang.org/t/create-a-multicolor-gradient-palette-bar-in-plots/117546 "2024-08-01T07:52:49Z")

</div>

In Julia is easy to assign a color to each bar with Julia Plots, but how can I combine colors for each bar, suppose I want to apply a kind of palette to fill the bar. Thanks.

---

## [Error when using @load after if statement](https://discourse.julialang.org/t/error-when-using-load-after-if-statement/117625)

<div class="topic-metadata">

**Author:** [@J\_B\_R](https://discourse.julialang.org/u/J_B_R)\
**Replies:** 2\
**Last updated:** [August 1, 2024, 7:28am UTC](https://discourse.julialang.org/t/error-when-using-load-after-if-statement/117625 "2024-08-01T07:28:34Z")

</div>

Hi there – I would like to write a code that loads all data of a file, but only in case this file exists. I use the @load function of JLD2. However, integrating @load into an if statement leads to an error if the file do…

---

## [Zygote.gradient does not work with AbstractGPs.CustomMean](https://discourse.julialang.org/t/zygote-gradient-does-not-work-with-abstractgps-custommean/87815)

<div class="topic-metadata">

**Author:** [@soldasim](https://discourse.julialang.org/u/soldasim)\
**Replies:** 9\
**Last updated:** [August 1, 2024, 6:06am UTC](https://discourse.julialang.org/t/zygote-gradient-does-not-work-with-abstractgps-custommean/87815 "2024-08-01T06:06:37Z")

</div>

Hello, I am trying to use an AbstractGPs.FiniteGP with Turing and I am having problems with Zygote.gradient calculation of the GP hyperparameters. For some reason, Zygote fails to calculate the gradient when using an Ab…

---

## [\[crosspost\] Bounties and mini grants for work on network simulation, Clifford circuits, quantum symbolics, and more](https://discourse.julialang.org/t/crosspost-bounties-and-mini-grants-for-work-on-network-simulation-clifford-circuits-quantum-symbolics-and-more/117715)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [August 1, 2024, 4:16am UTC](https://discourse.julialang.org/t/crosspost-bounties-and-mini-grants-for-work-on-network-simulation-clifford-circuits-quantum-symbolics-and-more/117715 "2024-08-01T04:16:22Z")

</div>

Just now I posted in another subforum the newly funded (by NSF) bounties and mini grants for software development in quantum information science. Give the possible interface in this specific domain, I am cross-posting h…

---

## [Slow installation of mono-repo](https://discourse.julialang.org/t/slow-installation-of-mono-repo/117667)

<div class="topic-metadata">

**Author:** [@xvries](https://discourse.julialang.org/u/xvries)\
**Replies:** 5\
**Last updated:** [August 1, 2024, 12:45am UTC](https://discourse.julialang.org/t/slow-installation-of-mono-repo/117667 "2024-08-01T00:45:03Z")

</div>

I am maintaining a privately registered git repo which contains multiple packages. The repo is starting to become rather big ~300 MB (I know I should do something about that). Whenever a user installs a package the whole…

---

## [Help porting to @mtkmodel DSL and a structural\_simplify error](https://discourse.julialang.org/t/help-porting-to-mtkmodel-dsl-and-a-structural-simplify-error/117648)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 6\
**Last updated:** [August 1, 2024, 12:24am UTC](https://discourse.julialang.org/t/help-porting-to-mtkmodel-dsl-and-a-structural-simplify-error/117648 "2024-08-01T00:24:20Z")

</div>

I have an MTK model (ported from the epidemics R package where I build the model using a loop. How are symbolic arrays dealt with in the @mtkmodel DSL? I’ve tried a few things, but I can’t find what I need to port this m…

---

## [Delays shown in Nsight Systems between HtoD memcopy and kernel launch when using CUDA.jl](https://discourse.julialang.org/t/delays-shown-in-nsight-systems-between-htod-memcopy-and-kernel-launch-when-using-cuda-jl/117446)

<div class="topic-metadata">

**Author:** [@Cibin\_Joseph](https://discourse.julialang.org/u/Cibin_Joseph)\
**Replies:** 9\
**Last updated:** [July 31, 2024, 11:22pm UTC](https://discourse.julialang.org/t/delays-shown-in-nsight-systems-between-htod-memcopy-and-kernel-launch-when-using-cuda-jl/117446 "2024-07-31T23:22:04Z")

</div>

For the CUDA.jl minimal example shown below, I see a considerably large delay between the HtoD memcopy and the kernel launch. I’m not able to figure out what causes it. For a larger array, sometimes this delay is much le…

---

## [Test a package with a CUDA dependency through GitHub Actions CI](https://discourse.julialang.org/t/test-a-package-with-a-cuda-dependency-through-github-actions-ci/117702)

<div class="topic-metadata">

**Author:** [@huiyuxie](https://discourse.julialang.org/u/huiyuxie)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 8:42pm UTC](https://discourse.julialang.org/t/test-a-package-with-a-cuda-dependency-through-github-actions-ci/117702 "2024-07-31T20:42:13Z")

</div>

Hi all! I am developing a new package integrating CUDA.jl as a dependency. However, I encountered errors indicating CUDA driver not found in CI when testing. I am using Standard GitHub-hosted runners and do not want to s…

---

## [Figure and font size when using \`Plots\`](https://discourse.julialang.org/t/figure-and-font-size-when-using-plots/117611)

<div class="topic-metadata">

**Author:** [@cmichelenstrofer](https://discourse.julialang.org/u/cmichelenstrofer)\
**Replies:** 8\
**Last updated:** [July 31, 2024, 7:34pm UTC](https://discourse.julialang.org/t/figure-and-font-size-when-using-plots/117611 "2024-07-31T19:34:10Z")

</div>

I am trying to save a plot at a specific size (in physical length units, like inches) and have the correct font size. The idea is that then I could just insert it into my LaTeX document without scaling and have the same …

---

## [How one can evaluate @printf to be returned to a value](https://discourse.julialang.org/t/how-one-can-evaluate-printf-to-be-returned-to-a-value/117669)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 7\
**Last updated:** [July 31, 2024, 6:16pm UTC](https://discourse.julialang.org/t/how-one-can-evaluate-printf-to-be-returned-to-a-value/117669 "2024-07-31T18:16:15Z")

</div>

Hi all, for a technical reason I would like to define functions as below. My problem is how to evaluate func(xx) to get a value function DeltaAI(z) return 1/(1+z) end function DeltaAII(z) return √(1-z^2) end if (F==0)…

---

## [Best way to generate vector of tuples based on two vectors](https://discourse.julialang.org/t/best-way-to-generate-vector-of-tuples-based-on-two-vectors/117687)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 5:58pm UTC](https://discourse.julialang.org/t/best-way-to-generate-vector-of-tuples-based-on-two-vectors/117687 "2024-07-31T17:58:21Z")

</div>

The following does what I want, generate a vector of tuples thanks to the two vectors that I provide. xycoordinates = Tuple{Int,Int}\[(x,y) for x in collect(1:10), y in rand(1:10, 10)\] I wanted to know if there exists a…

---

## [Anybody with a Mac who could help debugging CI failures?](https://discourse.julialang.org/t/anybody-with-a-mac-who-could-help-debugging-ci-failures/117668)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [July 31, 2024, 5:28pm UTC](https://discourse.julialang.org/t/anybody-with-a-mac-who-could-help-debugging-ci-failures/117668 "2024-07-31T17:28:24Z")

</div>

We have an issue with CI failures on macOS with PackageCompiler.jl. This is actually an issue that dates back from last year. Could someone who has access to a Mac have a look: Fix CI failures on macOS · Issue #955 · Ju…

---

## [Agent initialization](https://discourse.julialang.org/t/agent-initialization/117682)

<div class="topic-metadata">

**Author:** [@geoffD](https://discourse.julialang.org/u/geoffD)\
**Replies:** 0\
**Last updated:** [July 31, 2024, 2:45pm UTC](https://discourse.julialang.org/t/agent-initialization/117682 "2024-07-31T14:45:10Z")

</div>

Good morning, everyone. I have a model in which the @agent struct statement contains about 25 parameters for the agent. I would like to set this up such that I can specify default values and then overwrite one or two of …

---

## [Autodiff working for my model function but not for my loss function](https://discourse.julialang.org/t/autodiff-working-for-my-model-function-but-not-for-my-loss-function/117665)

<div class="topic-metadata">

**Author:** [@Vitor\_Patricio\_Canta](https://discourse.julialang.org/u/Vitor_Patricio_Canta)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 11:44am UTC](https://discourse.julialang.org/t/autodiff-working-for-my-model-function-but-not-for-my-loss-function/117665 "2024-07-31T11:44:26Z")

</div>

Hi, I have a function that calculates the analytical solution to a pulse injection through a column (advective dispersion transport). I am trying to fit some parameters to the data. I manage to calculate the derivative…

---

## [Interpolation of function with multiple variables](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640)

<div class="topic-metadata">

**Author:** [@dilaraabdel](https://discourse.julialang.org/u/dilaraabdel)\
**Replies:** 9\
**Last updated:** [July 31, 2024, 11:26am UTC](https://discourse.julialang.org/t/interpolation-of-function-with-multiple-variables/117640 "2024-07-31T11:26:18Z")

</div>

Dear all, I am trying to interpolate a function f: R^2 → R with Interpolations.jl. But as far as I understand the documentation this is only possible for functions from R^n to R^n. Are you aware of a way to build an i…

---

## [Selecting agents of a specific class in agents.jl](https://discourse.julialang.org/t/selecting-agents-of-a-specific-class-in-agents-jl/117486)

<div class="topic-metadata">

**Author:** [@geoffD](https://discourse.julialang.org/u/geoffD)\
**Replies:** 9\
**Last updated:** [July 31, 2024, 11:01am UTC](https://discourse.julialang.org/t/selecting-agents-of-a-specific-class-in-agents-jl/117486 "2024-07-31T11:01:17Z")

</div>

Hi, I have an agents.jl model that uses two classes of GridAgent: Nurse and Patient. I’d like the step function to locate an available nurse and link them to an available patient: function nursepatient\_step!(nurse::Nur…

---

## [The Olympic Games Paris 2024 are open](https://discourse.julialang.org/t/the-olympic-games-paris-2024-are-open/117533)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 5\
**Last updated:** [July 31, 2024, 10:01am UTC](https://discourse.julialang.org/t/the-olympic-games-paris-2024-are-open/117533 "2024-07-31T10:01:07Z")

</div>

Paris2024inc(i,j,x,y) = round(Int,hypot(i-x, j-y)) == 6 ch(x) = x ? "#" : " " n = 0:44 m = @. inc(n,n',16,8) | inc(n,n',16,22) | inc(n,n',16,36) | inc(n,n',22,15) | inc(n,n',22,2…

---

## [New package CentralDiff.jl released](https://discourse.julialang.org/t/new-package-centraldiff-jl-released/117573)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 15\
**Last updated:** [July 31, 2024, 9:45am UTC](https://discourse.julialang.org/t/new-package-centraldiff-jl-released/117573 "2024-07-31T09:45:12Z")

</div>

I developed this package for my own research. However, I’ve decided to make it public as I believe it can be useful for others performing numerical calculations. Key features: Very high-order interpolation up to 20t…

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

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