# Latest

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

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

**Page:** 674

---

## [Hessian of a buffer array in Zygote](https://discourse.julialang.org/t/hessian-of-a-buffer-array-in-zygote/100249)

<div class="topic-metadata">

**Author:** [@tomkimpson](https://discourse.julialang.org/u/tomkimpson)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 10:25pm UTC](https://discourse.julialang.org/t/hessian-of-a-buffer-array-in-zygote/100249 "2023-06-12T22:25:38Z")

</div>

I have a function which takes some coordinates, a parameter, and creates a 2D array. I want to get the Jacobian and the Hessian of this array w.r.t the input coordinates using Zygote. The Jacobian works fine, but the H…

---

## [How to troubleshoot ForwardDiff](https://discourse.julialang.org/t/how-to-troubleshoot-forwarddiff/99728)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 18\
**Last updated:** [June 12, 2023, 10:05pm UTC](https://discourse.julialang.org/t/how-to-troubleshoot-forwarddiff/99728 "2023-06-12T22:05:45Z")

</div>

I’ve been trying to write a loss function for a PDE that I’m solving in order to identify parameters and I would like to use the gradient of my loss function in parameter optimization. Unfortunately, ForwardDiff returns …

---

## [Error trying to install JupyterLab via IJulia](https://discourse.julialang.org/t/error-trying-to-install-jupyterlab-via-ijulia/100248)

<div class="topic-metadata">

**Author:** [@Brian\_Ewald](https://discourse.julialang.org/u/Brian_Ewald)\
**Replies:** 0\
**Last updated:** [June 12, 2023, 8:59pm UTC](https://discourse.julialang.org/t/error-trying-to-install-jupyterlab-via-ijulia/100248 "2023-06-12T20:59:06Z")

</div>

I’m getting the following error when trying to install JupyterLab via IJulia. Can anyone help me? julia\> using IJulia; jupyterlab() install Jupyter via Conda, y/n? \[y\]: y \[ Info: Downloading miniconda installer … \[ …

---

## [What is the correct way to ignore some files/directories in \`walkdir\`](https://discourse.julialang.org/t/what-is-the-correct-way-to-ignore-some-files-directories-in-walkdir/26780)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 4\
**Last updated:** [June 12, 2023, 7:27pm UTC](https://discourse.julialang.org/t/what-is-the-correct-way-to-ignore-some-files-directories-in-walkdir/26780 "2023-06-12T19:27:08Z")

</div>

I am trying to use JLFmt and FilePaths to write a script (~/.julia/config/format.jl) that can format all Julia code under my project root (a typical Julia package). using FilePaths using JLFmt isjuliafile(path::Abstrac…

---

## [Issue with XGBoost.jl and LIBSVM.jl when Julia 1.8.4](https://discourse.julialang.org/t/issue-with-xgboost-jl-and-libsvm-jl-when-julia-1-8-4/92396)

<div class="topic-metadata">

**Author:** [@matnbo](https://discourse.julialang.org/u/matnbo)\
**Replies:** 52\
**Last updated:** [June 12, 2023, 6:37pm UTC](https://discourse.julialang.org/t/issue-with-xgboost-jl-and-libsvm-jl-when-julia-1-8-4/92396 "2023-06-12T18:37:21Z")

</div>

Dear all I am using XGBoost.jl v2.2.0 and LIBSVM.jl v0.8.0, under Windows 11. It works fine with Julia 1.8.3 versioninfo() Julia Version 1.8.3 Commit 0434deb161 (2022-11-14 20:14 UTC) Platform Info: OS: Windows (x86…

---

## [Best way to declare parametric types of parametric types](https://discourse.julialang.org/t/best-way-to-declare-parametric-types-of-parametric-types/100237)

<div class="topic-metadata">

**Author:** [@70Gage70](https://discourse.julialang.org/u/70Gage70)\
**Replies:** 3\
**Last updated:** [June 12, 2023, 5:10pm UTC](https://discourse.julialang.org/t/best-way-to-declare-parametric-types-of-parametric-types/100237 "2023-06-12T17:10:04Z")

</div>

Suppose I have a type, let’s say struct MyPoint{T\<:AbstractFloat} x::T y::T end My understanding is that this is the best way to declare parametric types as per the Julia performance tips. But suppose you have …

---

## [Problem with \`Interpolations.jl\`?](https://discourse.julialang.org/t/problem-with-interpolations-jl/100236)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [June 12, 2023, 4:50pm UTC](https://discourse.julialang.org/t/problem-with-interpolations-jl/100236 "2023-06-12T16:50:08Z")

</div>

I’m running 1.9.1, and trying to follow along with the documentation. xs = 1:0.2:5 A = log.(xs) linear\_interpolation(xs, A) # works fine linear\_interpolation(xs, A,extrapolation\_bc=Line()) # also works fine extrapolate…

---

## [Installing Plots from Pkg](https://discourse.julialang.org/t/installing-plots-from-pkg/100210)

<div class="topic-metadata">

**Author:** [@Shashi\_Samdarshi](https://discourse.julialang.org/u/Shashi_Samdarshi)\
**Replies:** 3\
**Last updated:** [June 12, 2023, 4:45pm UTC](https://discourse.julialang.org/t/installing-plots-from-pkg/100210 "2023-06-12T16:45:27Z")

</div>

I am getting errors during installing Plots from Pkg Please guide me.

---

## [PlutoUI.jl TableOfContents update](https://discourse.julialang.org/t/plutoui-jl-tableofcontents-update/100202)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 2\
**Last updated:** [June 12, 2023, 4:33pm UTC](https://discourse.julialang.org/t/plutoui-jl-tableofcontents-update/100202 "2023-06-12T16:33:58Z")

</div>

Hello. I use a lot Pluto.jl and PlutoUI.jl for teaching. Now, I am trying to have a dynamic element in the title. However, I am having trouble with the update of the TableOfContents I have defined the function: func…

---

## [Juliaup Issue - No Detection of Julilaup](https://discourse.julialang.org/t/juliaup-issue-no-detection-of-julilaup/100234)

<div class="topic-metadata">

**Author:** [@bryanc19](https://discourse.julialang.org/u/bryanc19)\
**Replies:** 2\
**Last updated:** [June 12, 2023, 3:48pm UTC](https://discourse.julialang.org/t/juliaup-issue-no-detection-of-julilaup/100234 "2023-06-12T15:48:55Z")

</div>

Hello, I’m new to Julia and have been trying to figure out why Julia REPL won’t recognize any juliaup commands. I downloaded Julia on Windows through Microsoft Store which to my knowledge is supposed to include juliaup …

---

## [Building random generator for custom type to generate a specific number of variates](https://discourse.julialang.org/t/building-random-generator-for-custom-type-to-generate-a-specific-number-of-variates/100199)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 2\
**Last updated:** [June 12, 2023, 2:14pm UTC](https://discourse.julialang.org/t/building-random-generator-for-custom-type-to-generate-a-specific-number-of-variates/100199 "2023-06-12T14:14:02Z")

</div>

I’m writing a random generator for a custom type and, for this type, it is important to know the number of variates being generated for efficient generation. My thought is to generalize Random.Repitition to allow Val{n}…

---

## [How to choose between \`PyCall.jl\` and \`PythonCall.jl\`?](https://discourse.julialang.org/t/how-to-choose-between-pycall-jl-and-pythoncall-jl/100214)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [June 12, 2023, 1:55pm UTC](https://discourse.julialang.org/t/how-to-choose-between-pycall-jl-and-pythoncall-jl/100214 "2023-06-12T13:55:25Z")

</div>

I noticed there exist at least two packages PyCall.jl and PythonCall.jl for calling Python from Julia. What’s the difference between them? Which is better for a new user to choose? Thanks!

---

## [Plotting with groupedboxplot](https://discourse.julialang.org/t/plotting-with-groupedboxplot/100222)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 12, 2023, 1:20pm UTC](https://discourse.julialang.org/t/plotting-with-groupedboxplot/100222 "2023-06-12T13:20:54Z")

</div>

I using groupedboxplot() to plot 5 different species side by side with its respective treated and not treated. I checked my dataframe it is exactly how i expect it to be for this plot but still i’m getting this which see…

---

## [Doing repeated Euler-steps in a simulation, Differentialequations.jl](https://discourse.julialang.org/t/doing-repeated-euler-steps-in-a-simulation-differentialequations-jl/100221)

<div class="topic-metadata">

**Author:** [@Martin](https://discourse.julialang.org/u/Martin)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 12:55pm UTC](https://discourse.julialang.org/t/doing-repeated-euler-steps-in-a-simulation-differentialequations-jl/100221 "2023-06-12T12:55:43Z")

</div>

Hi! I am researcher working with problems related to optimal stopping/switching problems, and I have an issue where I need to, in a for loop, advance one time step (size dt) of an SDE for lots of previous states. And I …

---

## [Extending functionality of an Abstract Type in a new repo](https://discourse.julialang.org/t/extending-functionality-of-an-abstract-type-in-a-new-repo/100192)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 12\
**Last updated:** [June 12, 2023, 12:48pm UTC](https://discourse.julialang.org/t/extending-functionality-of-an-abstract-type-in-a-new-repo/100192 "2023-06-12T12:48:44Z")

</div>

How can I define a new type in a new package that extends an abstract type in an old package such that functions in the old package work when passed objects of the new type? I have a type AbstractBody in WaterLily and I…

---

## [Advanced Book Recommendation to Learn Julia](https://discourse.julialang.org/t/advanced-book-recommendation-to-learn-julia/100177)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 12:08pm UTC](https://discourse.julialang.org/t/advanced-book-recommendation-to-learn-julia/100177 "2023-06-12T12:08:11Z")

</div>

I am looking for a technical book about Julia that, if possible, also explains all the intricacies of why Julia is designed the way it is, aspects of high performance, technical tricks, etc. I am a mathematician, but I h…

---

## [Could Someone Explain To Me the Desire for Small Julia Binaries?](https://discourse.julialang.org/t/could-someone-explain-to-me-the-desire-for-small-julia-binaries/96484)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 41\
**Last updated:** [June 12, 2023, 10:55am UTC](https://discourse.julialang.org/t/could-someone-explain-to-me-the-desire-for-small-julia-binaries/96484 "2023-06-12T10:55:17Z")

</div>

Hi folks, I’ve seen this notion pop-up repeatedly about wanting small binaries created within the Julia ecosystem. I personally have been quite confused about this desire due to probably not working in a space where hav…

---

## [PyCall minimal overhead](https://discourse.julialang.org/t/pycall-minimal-overhead/41127)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 15\
**Last updated:** [June 12, 2023, 8:01am UTC](https://discourse.julialang.org/t/pycall-minimal-overhead/41127 "2023-06-12T08:01:00Z")

</div>

Hi, I work on a Julia benchmark Data Base project aiming to compare different implementations of basic computational kernels implemented in various languages. I wonder about the most efficient way to call a Python snip…

---

## [Should I turn a registered package into a package extension? What are the differences between them?](https://discourse.julialang.org/t/should-i-turn-a-registered-package-into-a-package-extension-what-are-the-differences-between-them/100203)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [June 12, 2023, 7:53am UTC](https://discourse.julialang.org/t/should-i-turn-a-registered-package-into-a-package-extension-what-are-the-differences-between-them/100203 "2023-06-12T07:53:11Z")

</div>

For example, if I have a base package and an extension package that is loaded only when some criteria are satisfied. And this extension package has been registered in General. Now that v1.9 include the “package extension…

---

## [How to add names to a collection of constraints in JuMP using @constraints](https://discourse.julialang.org/t/how-to-add-names-to-a-collection-of-constraints-in-jump-using-constraints/100130)

<div class="topic-metadata">

**Author:** [@JackaChou](https://discourse.julialang.org/u/JackaChou)\
**Replies:** 4\
**Last updated:** [June 12, 2023, 6:37am UTC](https://discourse.julialang.org/t/how-to-add-names-to-a-collection-of-constraints-in-jump-using-constraints/100130 "2023-06-12T06:37:21Z")

</div>

I want to name different kinds of constraints for enhancing readability and debugging, what’s the right syntax to do it with @constraints, I know this is easy for @constraint(, base\_name = “Name”). Below is my code with…

---

## [Connect Julia with mssql server](https://discourse.julialang.org/t/connect-julia-with-mssql-server/99951)

<div class="topic-metadata">

**Author:** [@Jcverni](https://discourse.julialang.org/u/Jcverni)\
**Replies:** 5\
**Last updated:** [June 12, 2023, 2:15am UTC](https://discourse.julialang.org/t/connect-julia-with-mssql-server/99951 "2023-06-12T02:15:38Z")

</div>

Hello people, this is my second question to raise in the forum, the first one was completely resolved and I am very grateful. Now…it’s very easy to communicate python or F# with a sqlserver database in Azure, for exampl…

---

## [Run tests with unreleased version of dependency](https://discourse.julialang.org/t/run-tests-with-unreleased-version-of-dependency/100205)

<div class="topic-metadata">

**Author:** [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Replies:** 1\
**Last updated:** [June 11, 2023, 11:50pm UTC](https://discourse.julialang.org/t/run-tests-with-unreleased-version-of-dependency/100205 "2023-06-11T23:50:46Z")

</div>

I have two packages, A and B (which depends on A): is there an easy way to run Pkg.test on B, but force it to use a specific commit of A (which may not yet be released)?

---

## [Precompiling packages yields an encoding error that repeatedly prints](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200)

<div class="topic-metadata">

**Author:** [@johnabs](https://discourse.julialang.org/u/johnabs)\
**Replies:** 0\
**Last updated:** [June 11, 2023, 9:13pm UTC](https://discourse.julialang.org/t/precompiling-packages-yields-an-encoding-error-that-repeatedly-prints/100200 "2023-06-11T21:13:31Z")

</div>

Hi all, I’m witnessing some very strange behavior, which I’ve never seen before. I’m on julia version 1.8.3, and when I run julia, even julia --version, or when I try to run using $package\_name which precompiles it, I k…

---

## [Multivariate polynomial with symbolic values in the coefficients](https://discourse.julialang.org/t/multivariate-polynomial-with-symbolic-values-in-the-coefficients/84311)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 18\
**Last updated:** [June 11, 2023, 8:12pm UTC](https://discourse.julialang.org/t/multivariate-polynomial-with-symbolic-values-in-the-coefficients/84311 "2023-06-11T20:12:28Z")

</div>

Hello, With Sympy in Python, it is possible to define a polynomial such as x^2 + a\*x^2 + 2/3\*y + b\*y + x\*z + a\*x\*z with symbolic variables x,y,z and also symbolic numbers a,b in the coefficients. In other words this i…

---

## [How to compute 2D Wasserstein distance](https://discourse.julialang.org/t/how-to-compute-2d-wasserstein-distance/100184)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 12\
**Last updated:** [June 11, 2023, 6:39pm UTC](https://discourse.julialang.org/t/how-to-compute-2d-wasserstein-distance/100184 "2023-06-11T18:39:42Z")

</div>

Hello, I would like to compute the Wasserstein distance between two discrete joint probability distributions. The package ExactOptimalTransport.jl does not appear to support 2D distance, but I wonder whether it can be a…

---

## [Change the number of particles in the PF dynamically](https://discourse.julialang.org/t/change-the-number-of-particles-in-the-pf-dynamically/100195)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 0\
**Last updated:** [June 11, 2023, 5:55pm UTC](https://discourse.julialang.org/t/change-the-number-of-particles-in-the-pf-dynamically/100195 "2023-06-11T17:55:29Z")

</div>

I am trying to create a particle filter method where the number of particles is adaptive, meaning it changes dynamically depending on whether the method is converging or not. I want to take inspiration from the repositor…

---

## [Truncated chi-square returning NaNs](https://discourse.julialang.org/t/truncated-chi-square-returning-nans/100187)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 0\
**Last updated:** [June 11, 2023, 2:48pm UTC](https://discourse.julialang.org/t/truncated-chi-square-returning-nans/100187 "2023-06-11T14:48:42Z")

</div>

I’m trying to sample from a truncated chi-square distribution, defined over \[0, a\], by using the following line of code. rand(Truncated(Chisq(n), 0, a)) This does alright most of the time, but sometimes it returns NaNs…

---

## [Inconvenience due to Code runner](https://discourse.julialang.org/t/inconvenience-due-to-code-runner/100132)

<div class="topic-metadata">

**Author:** [@BeitianMa](https://discourse.julialang.org/u/BeitianMa)\
**Replies:** 3\
**Last updated:** [June 11, 2023, 2:36pm UTC](https://discourse.julialang.org/t/inconvenience-due-to-code-runner/100132 "2023-06-11T14:36:11Z")

</div>

As I am recently learning C, I have installed Code runner to enable me to compile C code on VSCode, but the plugin seems to set the run button in the top right corner to the terminal of Code runner by default. Whereas wh…

---

## [How to pass command-line arguments to Jupyter Notebook?](https://discourse.julialang.org/t/how-to-pass-command-line-arguments-to-jupyter-notebook/100148)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [June 11, 2023, 2:11pm UTC](https://discourse.julialang.org/t/how-to-pass-command-line-arguments-to-jupyter-notebook/100148 "2023-06-11T14:11:30Z")

</div>

How do I pass command line arguments when I run Julia using Jupyter notebook? When I use VS Code to run Julia, I can go to settings and set "julia.additionalArgs": \[ "--heap-size-hint=1G" \], what about J…

---

## [Modelling heating curves with a PINN](https://discourse.julialang.org/t/modelling-heating-curves-with-a-pinn/99521)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 6\
**Last updated:** [June 11, 2023, 1:32pm UTC](https://discourse.julialang.org/t/modelling-heating-curves-with-a-pinn/99521 "2023-06-11T13:32:25Z")

</div>

I am Trying to model some temperature curves with a physically informed NN (PINN). I the physical model I am trying to apply is an FOPDT. NN = Chain( Dense(1 =\> 32, tanh), Dense(32 =\> 32, tanh), Den…

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

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