# Latest

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

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

**Page:** 391

---

## [MPI-related pre compilation errors](https://discourse.julialang.org/t/mpi-related-pre-compilation-errors/115405)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [June 10, 2024, 12:30am UTC](https://discourse.julialang.org/t/mpi-related-pre-compilation-errors/115405 "2024-06-10T00:30:48Z")

</div>

Is this known? Julia 1.10.4 on Linux (examples) pkg\> precompile HDF5 Precompiling HDF5 Info Given HDF5 was explicitly requested, output will be shown live ERROR: LoadError: InitError: could not load library "/ho…

---

## [Earth's CO2 level is increasing. Julia code to plot it yourself](https://discourse.julialang.org/t/earths-co2-level-is-increasing-julia-code-to-plot-it-yourself/115356)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 17\
**Last updated:** [June 10, 2024, 12:10am UTC](https://discourse.julialang.org/t/earths-co2-level-is-increasing-julia-code-to-plot-it-yourself/115356 "2024-06-10T00:10:58Z")

</div>

URL: Carbon dioxide levels in the atmosphere are surging "faster than ever" to beyond anything humans ever experienced, officials say - CBS News Here is Julia code to plot your own CO2 charts using CSV, Plots, Downloa…

---

## [\`Base.max(::Int, ::Int) = nothing\` crashes Julia](https://discourse.julialang.org/t/base-max-int-int-nothing-crashes-julia/115396)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 7\
**Last updated:** [June 9, 2024, 7:48pm UTC](https://discourse.julialang.org/t/base-max-int-int-nothing-crashes-julia/115396 "2024-06-09T19:48:37Z")

</div>

I did Base.max(::Int, ::Int) = nothing and it crashed Julia. Is this expected behavior or should it be reported?

---

## [Franklin: how to setup the Deploy.yml file?](https://discourse.julialang.org/t/franklin-how-to-setup-the-deploy-yml-file/115382)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 0\
**Last updated:** [June 9, 2024, 7:53am UTC](https://discourse.julialang.org/t/franklin-how-to-setup-the-deploy-yml-file/115382 "2024-06-09T07:53:12Z")

</div>

I’m writing since I’m getting complications in deploying my website (hosted with github pages) with Franklin. I’m in the classical situation where locally using serve() all works fine, but not when going online, where t…

---

## [Multi-component pendulum becomes unstable](https://discourse.julialang.org/t/multi-component-pendulum-becomes-unstable/115319)

<div class="topic-metadata">

**Author:** [@natlampen](https://discourse.julialang.org/u/natlampen)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 5:30pm UTC](https://discourse.julialang.org/t/multi-component-pendulum-becomes-unstable/115319 "2024-06-09T17:30:06Z")

</div>

Hi everyone, I have started my journey into using ModelingToolkit. So far it has been working quite well and I am very impressed. I am going down the component-based path. I have a somewhat complex system in mind but I…

---

## [Plotting using \`Trixi2Vtk\` of \`.h5\` files](https://discourse.julialang.org/t/plotting-using-trixi2vtk-of-h5-files/115337)

<div class="topic-metadata">

**Author:** [@Devansh1106](https://discourse.julialang.org/u/Devansh1106)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 2:20pm UTC](https://discourse.julialang.org/t/plotting-using-trixi2vtk-of-h5-files/115337 "2024-06-09T14:20:30Z")

</div>

I am plotting some .h5 solution files that are generated from running code similar to Trixi package. I am using Trixi2Vtk package for plotting. Command given in Trixi docs is: julia\> trixi2vtk(joinpath("out", "solution…

---

## [How to initialize a tensor with permutational symmetry?](https://discourse.julialang.org/t/how-to-initialize-a-tensor-with-permutational-symmetry/115390)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 1\
**Last updated:** [June 9, 2024, 1:52pm UTC](https://discourse.julialang.org/t/how-to-initialize-a-tensor-with-permutational-symmetry/115390 "2024-06-09T13:52:44Z")

</div>

I am working on a iterative solver for non linear Coupled Cluster equations that would require a computation of lot of tensor elements via tensor contractions. For now, I am using the TensorOperations.jl for this purpose…

---

## [Equivalent Julia code for a Python class with counter variables](https://discourse.julialang.org/t/equivalent-julia-code-for-a-python-class-with-counter-variables/115385)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [June 9, 2024, 9:30am UTC](https://discourse.julialang.org/t/equivalent-julia-code-for-a-python-class-with-counter-variables/115385 "2024-06-09T09:30:03Z")

</div>

Consider the following Python code from the link # Python code class Student: # A student ID counter idCounter = 0 def \_\_init\_\_(self): self.gpa = 0 self.record = {} # Each time I crea…

---

## [Why does Appending a Dataframe to an Arrow file Change the column type?](https://discourse.julialang.org/t/why-does-appending-a-dataframe-to-an-arrow-file-change-the-column-type/115378)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 1\
**Last updated:** [June 9, 2024, 7:37am UTC](https://discourse.julialang.org/t/why-does-appending-a-dataframe-to-an-arrow-file-change-the-column-type/115378 "2024-06-09T07:37:32Z")

</div>

Hi, Suppose I have the following DataFrame with non specified Column type. Q = DataFrame(datmonth = \[\], datstat =\[\], qrytime = \[\]) 0×3 DataFrame Row │ datmonth datstat qrytime │ Any Any Any ───…

---

## [How to conditionally add new features](https://discourse.julialang.org/t/how-to-conditionally-add-new-features/115335)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 7\
**Last updated:** [June 9, 2024, 5:05am UTC](https://discourse.julialang.org/t/how-to-conditionally-add-new-features/115335 "2024-06-09T05:05:52Z")

</div>

Lets say i have a package with a type and methods module Core abstract type AbstractInterfaceType end foo(a::AbstractType) = println("do interface stuff") struct MyBaseType \<: AbstractInterfaceType end …

---

## [Comparison of Julia with statically typed languages](https://discourse.julialang.org/t/comparison-of-julia-with-statically-typed-languages/115348)

<div class="topic-metadata">

**Author:** [@patrick-nicodemus](https://discourse.julialang.org/u/patrick-nicodemus)\
**Replies:** 10\
**Last updated:** [June 9, 2024, 3:52am UTC](https://discourse.julialang.org/t/comparison-of-julia-with-statically-typed-languages/115348 "2024-06-09T03:52:01Z")

</div>

First let me say I know nothing about Julia. I have read the following StackExchange post: As the author says, Julia is dynamically typed. However, as Julia’s website explains, the semantics of Julia are more restrict…

---

## [NLOPT forced stop with two constraints](https://discourse.julialang.org/t/nlopt-forced-stop-with-two-constraints/115371)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 3\
**Last updated:** [June 9, 2024, 12:06am UTC](https://discourse.julialang.org/t/nlopt-forced-stop-with-two-constraints/115371 "2024-06-09T00:06:51Z")

</div>

Hi I am using NLOPT with two inequality constraints. It can do the optmization when I suppress the second constraint but with two constraints it stops after 1st iteration with forced stop. I also run objective function …

---

## [Tutorial on how to make animations and interactive applications in Makie.jl](https://discourse.julialang.org/t/tutorial-on-how-to-make-animations-and-interactive-applications-in-makie-jl/66988)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 10:00pm UTC](https://discourse.julialang.org/t/tutorial-on-how-to-make-animations-and-interactive-applications-in-makie-jl/66988 "2024-06-08T22:00:54Z")

</div>

Hi all, I’ve made a tutorial on how to make animations and interactive applications in Makie.jl and put it on YouTube. Have a look: Making animations and interactive applications in Makie.jl - YouTube Hope it helps!

---

## [Multi-core parallel support for JuMP supported solvers?](https://discourse.julialang.org/t/multi-core-parallel-support-for-jump-supported-solvers/112392)

<div class="topic-metadata">

**Author:** [@charshaw](https://discourse.julialang.org/u/charshaw)\
**Replies:** 26\
**Last updated:** [May 8, 2024, 9:38am UTC](https://discourse.julialang.org/t/multi-core-parallel-support-for-jump-supported-solvers/112392 "2024-05-08T09:38:02Z")

</div>

I am looking for advice on how to enable solver parallelization when using JuMP on a high performance computing cluster. I have read this very informative page, but it is mostly about running many JuMP models in parallel…

---

## [\[ANN\] DocumenterInterLinks v1.0](https://discourse.julialang.org/t/ann-documenterinterlinks-v1-0/115362)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 2\
**Last updated:** [June 8, 2024, 8:48pm UTC](https://discourse.julialang.org/t/ann-documenterinterlinks-v1-0/115362 "2024-06-08T20:48:31Z")

</div>

I would like to announce the release of the DocumenterInterLinks plugin in it’s first “stable” v1.0.0 release. As of Documenter v1.3.0, every documentation built with Documenter writes an objects.inv “inventory” file. T…

---

## [How to rasterize a geopackage (Corine Land Cover)?](https://discourse.julialang.org/t/how-to-rasterize-a-geopackage-corine-land-cover/115316)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 24\
**Last updated:** [June 8, 2024, 7:24pm UTC](https://discourse.julialang.org/t/how-to-rasterize-a-geopackage-corine-land-cover/115316 "2024-06-08T19:24:42Z")

</div>

Hello, being only marginally on the domain, I am a bit lost with the various GIS packages… I need to rasterize a geopackage (gpkg) vector file (Corine Land Cover). Visualizing the gpkg file in QGis I can see there are …

---

## [LD\_PRELOAD does not override malloc\_usable\_size from glibc](https://discourse.julialang.org/t/ld-preload-does-not-override-malloc-usable-size-from-glibc/115369)

<div class="topic-metadata">

**Author:** [@remysucre](https://discourse.julialang.org/u/remysucre)\
**Replies:** 0\
**Last updated:** [June 8, 2024, 7:24pm UTC](https://discourse.julialang.org/t/ld-preload-does-not-override-malloc-usable-size-from-glibc/115369 "2024-06-08T19:24:29Z")

</div>

I’m trying to override glibc’s malloc\_usable\_size, but it seems LD\_PRELOAD doesn’t work. To replicate on linux (glibc): Save the following content in rmalloc.c: #include \<stddef.h\> #include \<stdio.h\> size\_t malloc\_usa…

---

## [Set with type with custom equality](https://discourse.julialang.org/t/set-with-type-with-custom-equality/115364)

<div class="topic-metadata">

**Author:** [@JonasKoziorek](https://discourse.julialang.org/u/JonasKoziorek)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 5:19pm UTC](https://discourse.julialang.org/t/set-with-type-with-custom-equality/115364 "2024-06-08T17:19:15Z")

</div>

I have a type whose instance is equivalent to instances that are in some distance away: struct VectorWithEpsRadius{T} value::T eps::Float64 end function ==(a::VectorWithEpsRadius, b::VectorWithEpsRadius) re…

---

## [Random number reproducibility from Poisson distribution](https://discourse.julialang.org/t/random-number-reproducibility-from-poisson-distribution/115359)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 2\
**Last updated:** [June 8, 2024, 3:54pm UTC](https://discourse.julialang.org/t/random-number-reproducibility-from-poisson-distribution/115359 "2024-06-08T15:54:35Z")

</div>

I want to sample a series of random numbers from Poisson distributions, such as using Distributions, Random Random.seed!(1) rand(Poisson(10)) # 9 rand(Poisson(11)) # 12 rand(Poisson(12)) # 9 rand(Poisson(13)) # 17 …

---

## [Making images as big as possible (max width) in pluto notebooks](https://discourse.julialang.org/t/making-images-as-big-as-possible-max-width-in-pluto-notebooks/115003)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 14\
**Last updated:** [June 8, 2024, 3:35pm UTC](https://discourse.julialang.org/t/making-images-as-big-as-possible-max-width-in-pluto-notebooks/115003 "2024-06-08T15:35:03Z")

</div>

I am doing some image analysis in Pluto and everythign is amazing… except I can’t control how big the images are! I have the obligatory column embiggener html code at the top html"""\<style\> main { max-width: 96%; …

---

## [How to \`@ref\` a function from a different package?](https://discourse.julialang.org/t/how-to-ref-a-function-from-a-different-package/110682)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 5\
**Last updated:** [June 8, 2024, 11:49am UTC](https://discourse.julialang.org/t/how-to-ref-a-function-from-a-different-package/110682 "2024-06-08T11:49:12Z")

</div>

From the package FinEtoolsAcoustics I want to reference a function defined in FinEtools. I thought this would work, !!! note The bilinear-form function \[\`FinEtools.FEMMBaseModule.bilform\_diffusion\`\](@ref) is used …

---

## [Getting Stack Overflow error when running Derivative(x)^n](https://discourse.julialang.org/t/getting-stack-overflow-error-when-running-derivative-x-n/115300)

<div class="topic-metadata">

**Author:** [@vikram\_backup](https://discourse.julialang.org/u/vikram_backup)\
**Replies:** 5\
**Last updated:** [June 8, 2024, 11:11am UTC](https://discourse.julialang.org/t/getting-stack-overflow-error-when-running-derivative-x-n/115300 "2024-06-08T11:11:58Z")

</div>

I have published my code in the following link. I am pasting my code here as well ## using Symbolics using Plots using Statistics ## a = 0.529\*10^-10 # Radius of hydrogen atom in meters function Legrande(l::Int, cosθ:…

---

## [PackageCompiler and Plots.jl: ld warning and 16KB image](https://discourse.julialang.org/t/packagecompiler-and-plots-jl-ld-warning-and-16kb-image/115312)

<div class="topic-metadata">

**Author:** [@mgiugliano](https://discourse.julialang.org/u/mgiugliano)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 10:53am UTC](https://discourse.julialang.org/t/packagecompiler-and-plots-jl-ld-warning-and-16kb-image/115312 "2024-06-08T10:53:59Z")

</div>

I am on a Mac (M3) with Sonoma (14.4.1), running Julia v1.10.4 and trying to use PackageCompiler.jl (v2.1.17) with Plots.jl (v1.40.4). Note I get into the same troubles with any other package I am trying to “prepackage”. …

---

## [\[ANN\] ProblemSet.jl: create assignments for a class](https://discourse.julialang.org/t/ann-problemset-jl-create-assignments-for-a-class/115358)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 0\
**Last updated:** [June 8, 2024, 9:51am UTC](https://discourse.julialang.org/t/ann-problemset-jl-create-assignments-for-a-class/115358 "2024-06-08T09:51:29Z")

</div>

An instructor frequently has to create sets of word problems for exams or home assignments. This entails two tasks: vary problems’ parts to make an assignment unique; and select a few problems from a larger set for assig…

---

## [Do I need a macro to compile a list of functions?](https://discourse.julialang.org/t/do-i-need-a-macro-to-compile-a-list-of-functions/112540)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 30\
**Last updated:** [April 25, 2024, 5:01pm UTC](https://discourse.julialang.org/t/do-i-need-a-macro-to-compile-a-list-of-functions/112540 "2024-04-25T17:01:10Z")

</div>

I have a bunch of related functions that I expand from time to time. They are grouped into files. I would like to put into an array all functions in a file, so that I can call them in a loop. Can this be accomplished wit…

---

## [Problem with static\_unpack](https://discourse.julialang.org/t/problem-with-static-unpack/115320)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 2\
**Last updated:** [June 8, 2024, 7:15am UTC](https://discourse.julialang.org/t/problem-with-static-unpack/115320 "2024-06-08T07:15:15Z")

</div>

Dearests, I found that the very first example for the macro at-static\_unpack of ComponentArrays is not working julia\> x = ComponentArray(a=5, b=\[4, 1\], c = \[1 2; 3 4\], d=(e=2, f=\[6, 30.0\])) ComponentVector{Float64}(a =…

---

## [Kullback-Leibler divergence for vector and normal distribution](https://discourse.julialang.org/t/kullback-leibler-divergence-for-vector-and-normal-distribution/58246)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 7\
**Last updated:** [June 8, 2024, 6:22am UTC](https://discourse.julialang.org/t/kullback-leibler-divergence-for-vector-and-normal-distribution/58246 "2024-06-08T06:22:10Z")

</div>

I want to calculate the Kullback-Leibler divergence of data I collected in a vector x, which I interpret as samples from an unknown distribution, and the standard normal distribution. The maths behind the KL divergence a…

---

## [Reuse Tridiagonal LU decomposition](https://discourse.julialang.org/t/reuse-tridiagonal-lu-decomposition/115149)

<div class="topic-metadata">

**Author:** [@bclyons12](https://discourse.julialang.org/u/bclyons12)\
**Replies:** 3\
**Last updated:** [June 8, 2024, 6:20am UTC](https://discourse.julialang.org/t/reuse-tridiagonal-lu-decomposition/115149 "2024-06-08T06:20:59Z")

</div>

I need to perform a loop of linear solves with different matrices and vectors, but the same Tridiagonal structure. I’d like to do this without allocations in the loop. Is there anyway to preallocate the Tridiagonal LU da…

---

## [What's wrong with my training data,RNN network work well on demo but bad on mine](https://discourse.julialang.org/t/whats-wrong-with-my-training-data-rnn-network-work-well-on-demo-but-bad-on-mine/115354)

<div class="topic-metadata">

**Author:** [@Bonjour-Lemonde](https://discourse.julialang.org/u/Bonjour-Lemonde)\
**Replies:** 1\
**Last updated:** [June 8, 2024, 5:23am UTC](https://discourse.julialang.org/t/whats-wrong-with-my-training-data-rnn-network-work-well-on-demo-but-bad-on-mine/115354 "2024-06-08T05:23:51Z")

</div>

Hi all! I had a strange problem using Flux RNN, my training data contains myX:one-hot vector, and myY:a number. The training data shown below worked very well using feedforward network(epoch=20,R2=0.9), but very low usin…

---

## [How to use Rasterize in GeoStats.jl](https://discourse.julialang.org/t/how-to-use-rasterize-in-geostats-jl/115338)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [June 7, 2024, 11:47pm UTC](https://discourse.julialang.org/t/how-to-use-rasterize-in-geostats-jl/115338 "2024-06-07T23:47:02Z")

</div>

(note: I am splitting this thread from this one in order to avoid misunderstanding) I can confirm that the latest version of GeoIO can now successfully import a geopackage where the geometries are provided in a Shape co…

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

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