# Latest

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

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

**Page:** 951

---

## [How to scale the axes in Makie subplots?](https://discourse.julialang.org/t/how-to-scale-the-axes-in-makie-subplots/85881)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 5:51pm UTC](https://discourse.julialang.org/t/how-to-scale-the-axes-in-makie-subplots/85881 "2022-08-17T17:51:56Z")

</div>

When I create subplots, the y-axis is usually taller than the x-axis. I want them to be of same (or at least similar) length. For example, the following code produces: using CairoMakie function plot() f= Figure() …

---

## [Resolving library version incompatibility for libstdc++.so on recent Ubuntu versions](https://discourse.julialang.org/t/resolving-library-version-incompatibility-for-libstdc-so-on-recent-ubuntu-versions/85484)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 4:56pm UTC](https://discourse.julialang.org/t/resolving-library-version-incompatibility-for-libstdc-so-on-recent-ubuntu-versions/85484 "2022-08-17T16:56:50Z")

</div>

On an x86\_64 computer running Ubuntu 22.04 (and, I think, earlier releases too) the version of libstdc++.so in /usr/lib/x86\_64-linux-gnu/ is libstdc++.so.6.0.30. Julia, even when compiled from sources, provides ./usr/lib…

---

## [Problem with Training and trying to plot loss function in Flux](https://discourse.julialang.org/t/problem-with-training-and-trying-to-plot-loss-function-in-flux/85826)

<div class="topic-metadata">

**Author:** [@ak47](https://discourse.julialang.org/u/ak47)\
**Replies:** 5\
**Last updated:** [August 17, 2022, 4:13pm UTC](https://discourse.julialang.org/t/problem-with-training-and-trying-to-plot-loss-function-in-flux/85826 "2022-08-17T16:13:22Z")

</div>

Been testing some basic code and trying to plot its loss function but get some errors. Need your help to move on. Here is the code: using Flux actual(x) = 2x + 3 x\_train, x\_test = hcat(0:5…), hcat(6:10…) y\_train, y\_t…

---

## [\[ANN\] Whitebox.jl: A Julia frontend for WhiteboxTools](https://discourse.julialang.org/t/ann-whitebox-jl-a-julia-frontend-for-whiteboxtools/85879)

<div class="topic-metadata">

**Author:** [@acgold](https://discourse.julialang.org/u/acgold)\
**Replies:** 0\
**Last updated:** [August 17, 2022, 3:58pm UTC](https://discourse.julialang.org/t/ann-whitebox-jl-a-julia-frontend-for-whiteboxtools/85879 "2022-08-17T15:58:25Z")

</div>

Hi everyone! I would like to announce a new package called Whitebox.jl. This package provides a Julia frontend for WhiteboxTools, which is an open-source command-line program for geospatial analysis created by Dr. Joh…

---

## [What can I do to make a Julia generated video about math education easier to translate to other natural languages?](https://discourse.julialang.org/t/what-can-i-do-to-make-a-julia-generated-video-about-math-education-easier-to-translate-to-other-natural-languages/81846)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 12:32pm UTC](https://discourse.julialang.org/t/what-can-i-do-to-make-a-julia-generated-video-about-math-education-easier-to-translate-to-other-natural-languages/81846 "2022-08-17T12:32:44Z")

</div>

For the stereo audio, I’m already planning on recording the narrative in just one of the two channels so it can be easily replaced by the narrative recorded in another language. For the images, I’ll be using the PyPlot …

---

## [Want to learn Reinforcement Learning from scratch for mini-project](https://discourse.julialang.org/t/want-to-learn-reinforcement-learning-from-scratch-for-mini-project/85836)

<div class="topic-metadata">

**Author:** [@Lighfe](https://discourse.julialang.org/u/Lighfe)\
**Replies:** 6\
**Last updated:** [August 17, 2022, 1:30pm UTC](https://discourse.julialang.org/t/want-to-learn-reinforcement-learning-from-scratch-for-mini-project/85836 "2022-08-17T13:30:03Z")

</div>

Hello everyone, I’m quite new to Julia but have some basic knowledge of other programming languages. As a project for myself I want to train an RL algorithm for a boardgame. It’s a push-your-luck type of game, where yo…

---

## [Create a function of derivatives in Symbolics.jl](https://discourse.julialang.org/t/create-a-function-of-derivatives-in-symbolics-jl/85808)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 5\
**Last updated:** [August 17, 2022, 1:20pm UTC](https://discourse.julialang.org/t/create-a-function-of-derivatives-in-symbolics-jl/85808 "2022-08-17T13:20:21Z")

</div>

I have a function f(x,u;p) where x, u are both vectors of variables and p is a vector of parameters. I would like to create a new function f\_{x}(x,u;p) = \\frac{\\partial f}{ \\partial x} and f\_{xu}(x,u;p) = \\frac{\\partial…

---

## [Kernel crash when converting pngs to gif on julia 1.7.3](https://discourse.julialang.org/t/kernel-crash-when-converting-pngs-to-gif-on-julia-1-7-3/85864)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 0\
**Last updated:** [August 17, 2022, 8:37am UTC](https://discourse.julialang.org/t/kernel-crash-when-converting-pngs-to-gif-on-julia-1-7-3/85864 "2022-08-17T08:37:27Z")

</div>

Hello, I just updated my Julia version from 1.6.1 to 1.7.3 and my previous function (stolen on a forum) to convert pngs to gif, doen’t work anymore for a large number of pngs (1000) but works fine for a small amount of …

---

## [Makie Observable subtlety with contourf using vectors](https://discourse.julialang.org/t/makie-observable-subtlety-with-contourf-using-vectors/85845)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 6\
**Last updated:** [August 17, 2022, 12:48pm UTC](https://discourse.julialang.org/t/makie-observable-subtlety-with-contourf-using-vectors/85845 "2022-08-17T12:48:03Z")

</div>

I have a dataset which is a 4xN array of numbers corresponding to field values at (z,y,x)-positions, sampled sparsely in z. I am trying to use contourf! in Makie to make a video of the evolution of these fields, which re…

---

## [Best way to take derivatives of unevenly spaced data (with interpolations? discrete derivatives?)](https://discourse.julialang.org/t/best-way-to-take-derivatives-of-unevenly-spaced-data-with-interpolations-discrete-derivatives/54097)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 37\
**Last updated:** [April 30, 2021, 12:44pm UTC](https://discourse.julialang.org/t/best-way-to-take-derivatives-of-unevenly-spaced-data-with-interpolations-discrete-derivatives/54097 "2021-04-30T12:44:34Z")

</div>

Hi, I have a function f(t), where f is numerically sampled at discrete points in time t that are NOT evenly sampled in time. (This is unavoidable.) I need to take the first and second derivatives of f(t), compute a comp…

---

## [\`@inbounds\` behaving strangely for varargs functions](https://discourse.julialang.org/t/inbounds-behaving-strangely-for-varargs-functions/85752)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 3\
**Last updated:** [August 17, 2022, 12:15pm UTC](https://discourse.julialang.org/t/inbounds-behaving-strangely-for-varargs-functions/85752 "2022-08-17T12:15:52Z")

</div>

I am puzzled by the behavior of @inbounds for functions with a variable number of arguments. My understanding is that calling the following function g should avoid a bounds check inside f. @inline function f(x...) @…

---

## [Makie - tricontourf from matplotlib in Makie](https://discourse.julialang.org/t/makie-tricontourf-from-matplotlib-in-makie/77685)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 13\
**Last updated:** [August 17, 2022, 12:06pm UTC](https://discourse.julialang.org/t/makie-tricontourf-from-matplotlib-in-makie/77685 "2022-08-17T12:06:06Z")

</div>

Hi everyone, I am trying to get something like tricontourf from matplotlib to work in Makie. The heatmap with three vector inputs example here is the closest I can find in the documentation, but there’s no obvious way t…

---

## [Stipple runs in cli but not in cron?](https://discourse.julialang.org/t/stipple-runs-in-cli-but-not-in-cron/85818)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 5\
**Last updated:** [August 17, 2022, 11:22am UTC](https://discourse.julialang.org/t/stipple-runs-in-cli-but-not-in-cron/85818 "2022-08-17T11:22:02Z")

</div>

Hi there this is a GENERAL question so I didn’t include any code. I also am aware of julia packages that allow cronlike behavior but I would prefer to keep this simple. I’m running a stipple julia script to build a web…

---

## [Question on LazySets and Plots: translate not defined](https://discourse.julialang.org/t/question-on-lazysets-and-plots-translate-not-defined/85859)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 15\
**Last updated:** [August 17, 2022, 10:22am UTC](https://discourse.julialang.org/t/question-on-lazysets-and-plots-translate-not-defined/85859 "2022-08-17T10:22:34Z")

</div>

Hi all, after following It’s all Set tutorial on JuliaCon2021 I have found a speed bump when I try this: using Plots, LazySets, LaTeXStrings p(args...; kwargs...) = plot(xlims=(0,4), ylims=(0,4), ratio=1, lab="", …

---

## [Intermittent exception with @spawn; findall() seems to be cause?](https://discourse.julialang.org/t/intermittent-exception-with-spawn-findall-seems-to-be-cause/85867)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 1\
**Last updated:** [August 17, 2022, 9:28am UTC](https://discourse.julialang.org/t/intermittent-exception-with-spawn-findall-seems-to-be-cause/85867 "2022-08-17T09:28:04Z")

</div>

I have some code that is designed to solve a puzzle. It searches for the ideal placement of numbers in an array. The idea is to find an array configuration that maximizes 1 … k. For a given array, there can be several …

---

## [Symbolics Einstein notation](https://discourse.julialang.org/t/symbolics-einstein-notation/85866)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [August 17, 2022, 9:19am UTC](https://discourse.julialang.org/t/symbolics-einstein-notation/85866 "2022-08-17T09:19:41Z")

</div>

How do I do this with the arrayop macro in Symbolics.jl? using Tullio, Symbolics @variables x₀ q = x₀\*rand(4, 4) t = x₀\*rand(4, 4, 4) @tullio r\[a, b, c\] := q\[a, i\]\*t\[i, b, c\] I tried this r = Symbolics.@arrayop (a, …

---

## [Which library supports a non-allocating neural network model](https://discourse.julialang.org/t/which-library-supports-a-non-allocating-neural-network-model/85591)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 13\
**Last updated:** [August 17, 2022, 8:51am UTC](https://discourse.julialang.org/t/which-library-supports-a-non-allocating-neural-network-model/85591 "2022-08-17T08:51:10Z")

</div>

Hi all, I have been using Flux.jl to create a simple model. I do not need to take gradients; I only need to evaluate a loss for a given set of parameters. Currently I use a setup similiar to this: using BenchmarkTools …

---

## [Status of CompatHelperLocal](https://discourse.julialang.org/t/status-of-compathelperlocal/85792)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [August 17, 2022, 7:31am UTC](https://discourse.julialang.org/t/status-of-compathelperlocal/85792 "2022-08-17T07:31:21Z")

</div>

What is the status of this package: Alexander Plavin / CompatHelperLocal.jl · GitLab I find it very useful, but it is not well maintained and I did not find a way to submit an issue. Anybody else able to submit issues o…

---

## [Unexpected result when promoting Diagonal](https://discourse.julialang.org/t/unexpected-result-when-promoting-diagonal/85832)

<div class="topic-metadata">

**Author:** [@ViktorSvensson](https://discourse.julialang.org/u/ViktorSvensson)\
**Replies:** 3\
**Last updated:** [August 17, 2022, 6:56am UTC](https://discourse.julialang.org/t/unexpected-result-when-promoting-diagonal/85832 "2022-08-17T06:56:12Z")

</div>

When promoting Diagonals with different element types, I’m encountering unexpected behavior: using LinearAlgebra diagInt = Diagonal(\[1\]) diagFloat = Diagonal(\[1.0\]) promote\_type(typeof(diagInt),typeof(diagFloat)) #retur…

---

## [Poisson-Disc Sampling?](https://discourse.julialang.org/t/poisson-disc-sampling/85647)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 14\
**Last updated:** [August 17, 2022, 6:53am UTC](https://discourse.julialang.org/t/poisson-disc-sampling/85647 "2022-08-17T06:53:53Z")

</div>

Has anyone implemented a Poisson-Disc Sampling algorithm in Julia? I didn’t see anything with a quick google search or by looking through previous discussions.

---

## [Problems with compiling Latex](https://discourse.julialang.org/t/problems-with-compiling-latex/85813)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 3\
**Last updated:** [August 17, 2022, 6:27am UTC](https://discourse.julialang.org/t/problems-with-compiling-latex/85813 "2022-08-17T06:27:34Z")

</div>

Hello I conducted workshops and want to submit paper. I used official template However for some reason I have problems with compiling locally latex bibliography, However all seem good with overleaf compilation code in \[…

---

## [How to correctly track optimization loss value with callback using particle swarm?](https://discourse.julialang.org/t/how-to-correctly-track-optimization-loss-value-with-callback-using-particle-swarm/85799)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [August 17, 2022, 4:02am UTC](https://discourse.julialang.org/t/how-to-correctly-track-optimization-loss-value-with-callback-using-particle-swarm/85799 "2022-08-17T04:02:30Z")

</div>

I’d like to track loss values in a particle swarm optimization with a callback, but I’m not sure where exactly the loss numbers being tracked in the callback are coming from. Comparing the trace printed by the optimizer…

---

## [Numpy and PyCall issues](https://discourse.julialang.org/t/numpy-and-pycall-issues/85847)

<div class="topic-metadata">

**Author:** [@Derek\_Vetsch](https://discourse.julialang.org/u/Derek_Vetsch)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 3:14am UTC](https://discourse.julialang.org/t/numpy-and-pycall-issues/85847 "2022-08-17T03:14:22Z")

</div>

I feel like I’ve gotten this to work before, but I can’t remember how. I am trying to stitch together a few different scripts, some in Julia and some in Python. The Python scripts rely on numpy but when I try to @pyinclu…

---

## [PyError when using PyCall](https://discourse.julialang.org/t/pyerror-when-using-pycall/85731)

<div class="topic-metadata">

**Author:** [@hdroms](https://discourse.julialang.org/u/hdroms)\
**Replies:** 2\
**Last updated:** [August 17, 2022, 1:39am UTC](https://discourse.julialang.org/t/pyerror-when-using-pycall/85731 "2022-08-17T01:39:41Z")

</div>

I have been attempting to do video analysis using python’s hnccorr algorithm. The particular script thats throwing this error use to work, though when it was handed off to me it started throwing this error which thus far…

---

## [Loop (i, j) without zip() stopped at the 2nd round](https://discourse.julialang.org/t/loop-i-j-without-zip-stopped-at-the-2nd-round/85810)

<div class="topic-metadata">

**Author:** [@JiuuJulia](https://discourse.julialang.org/u/JiuuJulia)\
**Replies:** 9\
**Last updated:** [August 17, 2022, 1:33am UTC](https://discourse.julialang.org/t/loop-i-j-without-zip-stopped-at-the-2nd-round/85810 "2022-08-17T01:33:34Z")

</div>

I’m trying to loop two DNA sequences: a = "AAAGCTAGCTAGCTAGACT" b = "ATAGCTAGCCAGCTAAACT" for (i, j) in (a,b) println(i, j) end It gives a result: AA AT Why does the loop stop at the 2nd iteration? I know I’d b…

---

## [Good guide to setting up a reproducible julia project?](https://discourse.julialang.org/t/good-guide-to-setting-up-a-reproducible-julia-project/85848)

<div class="topic-metadata">

**Author:** [@NHDaly](https://discourse.julialang.org/u/NHDaly)\
**Replies:** 12\
**Last updated:** [August 17, 2022, 12:35am UTC](https://discourse.julialang.org/t/good-guide-to-setting-up-a-reproducible-julia-project/85848 "2022-08-17T00:35:54Z")

</div>

Hello, I was looking for a good guide on how to set up a new julia project/application, so that it is reproducible, and stays up to date with its dependencies. My coworkers were setting up a new julia project, and I co…

---

## [Package compiler errors with "system image too large" message](https://discourse.julialang.org/t/package-compiler-errors-with-system-image-too-large-message/85849)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 0\
**Last updated:** [August 16, 2022, 10:46pm UTC](https://discourse.julialang.org/t/package-compiler-errors-with-system-image-too-large-message/85849 "2022-08-16T22:46:53Z")

</div>

Trying to create a sysimage using vscode build task. This has worked forever but today cannot get it to compile. It returns a “system image too large” error message. Anybody else having this problem? Version InfoVSCode…

---

## [For loop : mixing iterator with argument of a function](https://discourse.julialang.org/t/for-loop-mixing-iterator-with-argument-of-a-function/85846)

<div class="topic-metadata">

**Author:** [@Julia\_fun\_123](https://discourse.julialang.org/u/Julia_fun_123)\
**Replies:** 4\
**Last updated:** [August 16, 2022, 9:56pm UTC](https://discourse.julialang.org/t/for-loop-mixing-iterator-with-argument-of-a-function/85846 "2022-08-16T21:56:30Z")

</div>

Hello everyone. I am using Julia 1.7.3 with Jupyter Lab, and I have this code (which is partially taken from this link : Converting image colors · ColorSchemeTools) : using FileIO, ColorSchemes, ColorSchemeTools, Imag…

---

## [Recommended sampler for data with Categorical likelihood](https://discourse.julialang.org/t/recommended-sampler-for-data-with-categorical-likelihood/85820)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 9:36pm UTC](https://discourse.julialang.org/t/recommended-sampler-for-data-with-categorical-likelihood/85820 "2022-08-16T21:36:27Z")

</div>

The NUTS sampler takes a really long time in this MWE: using Distributions using Turing d = Categorical(\[0.7, 0.29, 0.01\]) N = 100 Y = rand(d, N) @model function test(Y) p ~ Dirichlet(\[2,2,2\]) for i in 1:N …

---

## [Visualising NetCDF using Raster.jl](https://discourse.julialang.org/t/visualising-netcdf-using-raster-jl/85761)

<div class="topic-metadata">

**Author:** [@Michaela\_Vollmer](https://discourse.julialang.org/u/Michaela_Vollmer)\
**Replies:** 10\
**Last updated:** [August 16, 2022, 9:29pm UTC](https://discourse.julialang.org/t/visualising-netcdf-using-raster-jl/85761 "2022-08-16T21:29:25Z")

</div>

Hello! I am trying to plot spatial data of a NetCDF file from a WFlow example. I have followed the steps outlined in the following question Raster.jl discourse post where a similar example is shown where the data can be …

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

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