# Latest

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

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

**Page:** 208

---

## [Kronrod error when using QuadGK w/ symbolic inputs](https://discourse.julialang.org/t/kronrod-error-when-using-quadgk-w-symbolic-inputs/126587)

<div class="topic-metadata">

**Author:** [@JarodMcCormick](https://discourse.julialang.org/u/JarodMcCormick)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 6:30pm UTC](https://discourse.julialang.org/t/kronrod-error-when-using-quadgk-w-symbolic-inputs/126587 "2025-03-07T18:30:14Z")

</div>

I am running a script where I’m calculating some values using ModelingToolkit with some code that I’ve developed. I register my functions using the @register\_symbolic macro, and these functions work on their own through …

---

## [Idiom to preinitialize function parameters](https://discourse.julialang.org/t/idiom-to-preinitialize-function-parameters/126676)

<div class="topic-metadata">

**Author:** [@nilsbecker](https://discourse.julialang.org/u/nilsbecker)\
**Replies:** 6\
**Last updated:** [March 7, 2025, 6:27pm UTC](https://discourse.julialang.org/t/idiom-to-preinitialize-function-parameters/126676 "2025-03-07T18:27:04Z")

</div>

Coming from a language with curried function arguments, when I try to precompute some parameters for a function that is to be used in a hot loop, I end up with code like this: precompute = length function setup(input) …

---

## [Help in installing a Python Pkg with CondaPkg](https://discourse.julialang.org/t/help-in-installing-a-python-pkg-with-condapkg/126685)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 5:21pm UTC](https://discourse.julialang.org/t/help-in-installing-a-python-pkg-with-condapkg/126685 "2025-03-07T17:21:19Z")

</div>

In a Julia package of mine, I need to install the chelsea-cmip6 Python package for downloading climatic data. The developer of the python package suggest to install it (in Python) using pip. I have tried with the Julia…

---

## [\[ANN\] Multi Agent Trajectory Planning with RxInfer](https://discourse.julialang.org/t/ann-multi-agent-trajectory-planning-with-rxinfer/126416)

<div class="topic-metadata">

**Author:** [@bvdmitri](https://discourse.julialang.org/u/bvdmitri)\
**Replies:** 0\
**Last updated:** [February 28, 2025, 9:16am UTC](https://discourse.julialang.org/t/ann-multi-agent-trajectory-planning-with-rxinfer/126416 "2025-02-28T09:16:20Z")

</div>

A new advanced example that demonstrates multi-agent trajectory planning using probabilistic inference is now available in the https://examples.rxinfer.com repository. Example Overview This example shows how to formul…

---

## [Allocations on field access even though no abstract types are involved](https://discourse.julialang.org/t/allocations-on-field-access-even-though-no-abstract-types-are-involved/126672)

<div class="topic-metadata">

**Author:** [@nilsbecker](https://discourse.julialang.org/u/nilsbecker)\
**Replies:** 9\
**Last updated:** [March 7, 2025, 1:12pm UTC](https://discourse.julialang.org/t/allocations-on-field-access-even-though-no-abstract-types-are-involved/126672 "2025-03-07T13:12:18Z")

</div>

Hi, after reading the manual, I was thinking to avoid dynamic lookup by parametrizing my type for a function with attached data, like so: Original type: struct FunctionWithExtra{A} f::A extra end where f is su…

---

## [Catalyst.jl: pure jump process solution now has Float64 trajectories?](https://discourse.julialang.org/t/catalyst-jl-pure-jump-process-solution-now-has-float64-trajectories/126649)

<div class="topic-metadata">

**Author:** [@lmshk](https://discourse.julialang.org/u/lmshk)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 8:58am UTC](https://discourse.julialang.org/t/catalyst-jl-pure-jump-process-solution-now-has-float64-trajectories/126649 "2025-03-07T08:58:58Z")

</div>

(Catalyst v14.4.1, JumpProcesses v9.14.2) I recently updated dependencies for the first time in a while, and I am surprised to find that the solutions for pure jump process problems with all-Int64 initial states now con…

---

## [Distinguish datatype from function](https://discourse.julialang.org/t/distinguish-datatype-from-function/126666)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 7\
**Last updated:** [March 7, 2025, 8:54am UTC](https://discourse.julialang.org/t/distinguish-datatype-from-function/126666 "2025-03-07T08:54:19Z")

</div>

Hello! Let’s say I want to define a dictionary from Strings to functions: julia\> temp = Dict{String, Function} Dict{String, Function} Then I add a value: julia\> temp\["abc"\] = DateTime ERROR: MethodError: no method ma…

---

## [Is it OK to structure my packages like this (benign type piracy)?](https://discourse.julialang.org/t/is-it-ok-to-structure-my-packages-like-this-benign-type-piracy/126627)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 5\
**Last updated:** [March 6, 2025, 10:13pm UTC](https://discourse.julialang.org/t/is-it-ok-to-structure-my-packages-like-this-benign-type-piracy/126627 "2025-03-06T22:13:48Z")

</div>

Is this design OK? Is this supported by precompilation? What could go wrong? Could package extensions help here somehow, if necessary? The idea is basically to define a function with no methods in PackageA and only add …

---

## [Request to package authors: single html / PDF manuals for LLMs](https://discourse.julialang.org/t/request-to-package-authors-single-html-pdf-manuals-for-llms/126470)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 15\
**Last updated:** [March 7, 2025, 4:46am UTC](https://discourse.julialang.org/t/request-to-package-authors-single-html-pdf-manuals-for-llms/126470 "2025-03-07T04:46:09Z")

</div>

Various cloud and local LLM services allow users to upload documents before asking questions about the documents. If a package manual can be provided as a single webpage or PDF file (within the context window size of the…

---

## [Generate Protocol Buffer .proto file from struct definition](https://discourse.julialang.org/t/generate-protocol-buffer-proto-file-from-struct-definition/126650)

<div class="topic-metadata">

**Author:** [@lstagner](https://discourse.julialang.org/u/lstagner)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 6:28pm UTC](https://discourse.julialang.org/t/generate-protocol-buffer-proto-file-from-struct-definition/126650 "2025-03-06T18:28:01Z")

</div>

I have a project that uses Protobuf but in the future I would like to be able to generate the .proto files from a julia struct. For example I would like to be able to take struct MyMessage a::Int32 b::Vector{Str…

---

## [Getting hold of error status from an external command?](https://discourse.julialang.org/t/getting-hold-of-error-status-from-an-external-command/126465)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 5\
**Last updated:** [March 6, 2025, 11:04pm UTC](https://discourse.julialang.org/t/getting-hold-of-error-status-from-an-external-command/126465 "2025-03-06T23:04:02Z")

</div>

I found the following old thread discussing the same problem. Is this proc = spawn(pipeline(ignorestatus(cmd))) still the best way to get hold of the exit code? I wish these commands (run() etc) had an option to retur…

---

## [Poisson solver using BSpline Galerkin method on a 2D grid](https://discourse.julialang.org/t/poisson-solver-using-bspline-galerkin-method-on-a-2d-grid/126524)

<div class="topic-metadata">

**Author:** [@Sagar\_123](https://discourse.julialang.org/u/Sagar_123)\
**Replies:** 8\
**Last updated:** [March 6, 2025, 10:00pm UTC](https://discourse.julialang.org/t/poisson-solver-using-bspline-galerkin-method-on-a-2d-grid/126524 "2025-03-06T22:00:15Z")

</div>

Hello! I am trying to implement a poisson solver (in a reduced form) using BSplines and Galerkin method. Form of the equation is : where \\phi is potential and differential operation is in 2D : Now, if I were to ex…

---

## [Creating DataFrame from vector of rows, and fixing type](https://discourse.julialang.org/t/creating-dataframe-from-vector-of-rows-and-fixing-type/126591)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 7:38pm UTC](https://discourse.julialang.org/t/creating-dataframe-from-vector-of-rows-and-fixing-type/126591 "2025-03-06T19:38:17Z")

</div>

I have some data in a Vector{Vector{SubString{String}}} that I wanted to turn into a DataFrame. While DataFrame constructor accepts a vector of vectors, it seems that it assumes the inner vectors are columns (which is se…

---

## [Type instability for simple MLP call using ComponentArrays](https://discourse.julialang.org/t/type-instability-for-simple-mlp-call-using-componentarrays/126191)

<div class="topic-metadata">

**Author:** [@lasse](https://discourse.julialang.org/u/lasse)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 5:17pm UTC](https://discourse.julialang.org/t/type-instability-for-simple-mlp-call-using-componentarrays/126191 "2025-03-06T17:17:58Z")

</div>

Hi, Is there a way to make Zygote gradients type stable when optimizing over a ComponentArray of parameters? If not - what is a good alternative that is compatible with the SciML ecosystem? Using @NamedTuple does as I …

---

## [Understanding \`mkpidlock\` and why it deletes my files](https://discourse.julialang.org/t/understanding-mkpidlock-and-why-it-deletes-my-files/120915)

<div class="topic-metadata">

**Author:** [@phx](https://discourse.julialang.org/u/phx)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 4:27pm UTC](https://discourse.julialang.org/t/understanding-mkpidlock-and-why-it-deletes-my-files/120915 "2025-03-06T16:27:14Z")

</div>

I have multiple instances of a script that will need to write on a single file, so I was looking into locking the access to said file by using mkpidlock. Eventually I’ll want to use it with HDF5 files (which I know I can…

---

## [Makie 3D "flatten" scatter points in x-y axis](https://discourse.julialang.org/t/makie-3d-flatten-scatter-points-in-x-y-axis/126589)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 2:19pm UTC](https://discourse.julialang.org/t/makie-3d-flatten-scatter-points-in-x-y-axis/126589 "2025-03-06T14:19:02Z")

</div>

Hi there, I’m trying to make a 3D plot with Makie, and I’d like to plot some scatter points “flat” on the x-y plane of the plot. Here is the M(not)WE I have so far: using CairoMakie # Initialize figure fig = Figure(s…

---

## [Best data structure for mapping between nodes and (known) cliques in a graph, that is easily updated after bisection?](https://discourse.julialang.org/t/best-data-structure-for-mapping-between-nodes-and-known-cliques-in-a-graph-that-is-easily-updated-after-bisection/126622)

<div class="topic-metadata">

**Author:** [@MarkusGabl](https://discourse.julialang.org/u/MarkusGabl)\
**Replies:** 4\
**Last updated:** [March 6, 2025, 3:38pm UTC](https://discourse.julialang.org/t/best-data-structure-for-mapping-between-nodes-and-known-cliques-in-a-graph-that-is-easily-updated-after-bisection/126622 "2025-03-06T15:38:45Z")

</div>

Hi Julia community I have a question regrading the best data structure for a certain purpose. I have a graph with of nodes i=1,…,n and edges and from the way I construct the graph I know all the maximum cliques c=1,…,k…

---

## [Can't get a .jl file to read a .jdl2 file in the same route folder](https://discourse.julialang.org/t/cant-get-a-jl-file-to-read-a-jdl2-file-in-the-same-route-folder/126639)

<div class="topic-metadata">

**Author:** [@sjm10](https://discourse.julialang.org/u/sjm10)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 3:00pm UTC](https://discourse.julialang.org/t/cant-get-a-jl-file-to-read-a-jdl2-file-in-the-same-route-folder/126639 "2025-03-06T15:00:03Z")

</div>

When running a file I get the following error: ERROR: LoadError: ArgumentError: No file exists at given path: Datasets.jld2 I have tried loading the file from its own route first but doesn’t seem to help. The datasets …

---

## [Symbolics: Keeping Array operations in derivatives](https://discourse.julialang.org/t/symbolics-keeping-array-operations-in-derivatives/126530)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 12\
**Last updated:** [March 6, 2025, 2:39pm UTC](https://discourse.julialang.org/t/symbolics-keeping-array-operations-in-derivatives/126530 "2025-03-06T14:39:41Z")

</div>

Hello, is there a way in julia symbolics keep the lazy array evaluation when computing derivatives. E.g. to get in 1 of the 2 examples below just J = 2\*A as return using Symbolics @variables A\[1:5,1:5\] Av = Symbolics.…

---

## [Notifyers.jl - A new approach to the Observer pattern](https://discourse.julialang.org/t/notifyers-jl-a-new-approach-to-the-observer-pattern/126595)

<div class="topic-metadata">

**Author:** [@Gesee](https://discourse.julialang.org/u/Gesee)\
**Replies:** 5\
**Last updated:** [March 6, 2025, 2:18pm UTC](https://discourse.julialang.org/t/notifyers-jl-a-new-approach-to-the-observer-pattern/126595 "2025-03-06T14:18:57Z")

</div>

Hi everyone, here to talk about my new package Notifyers.jl. This package implement the Observer pattern with Notifyer who have the particularity to possess states. States affect the Notifyer behavior so they can work sy…

---

## [Outdoors.jl - Flexible windows management](https://discourse.julialang.org/t/outdoors-jl-flexible-windows-management/126596)

<div class="topic-metadata">

**Author:** [@Gesee](https://discourse.julialang.org/u/Gesee)\
**Replies:** 7\
**Last updated:** [March 6, 2025, 2:16pm UTC](https://discourse.julialang.org/t/outdoors-jl-flexible-windows-management/126596 "2025-03-06T14:16:03Z")

</div>

Outdoors.jl is a package that create an manage windows while abstracting their API, so the user don’t have to do too much adjustment while switching from one API to another. The package aims to be flexible and extensible…

---

## [Type instability of array getindex](https://discourse.julialang.org/t/type-instability-of-array-getindex/126636)

<div class="topic-metadata">

**Author:** [@jacobga](https://discourse.julialang.org/u/jacobga)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 2:04pm UTC](https://discourse.julialang.org/t/type-instability-of-array-getindex/126636 "2025-03-06T14:04:50Z")

</div>

The following example shows that there is a runtime dispatch on accessing an array. Why is that the case, and can I avoid it? struct example a::Array{Int64} end function examplefun(x::example) return @inbounds …

---

## [┌ Error: Error in the keymap](https://discourse.julialang.org/t/error-error-in-the-keymap/126629)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 11:50am UTC](https://discourse.julialang.org/t/error-error-in-the-keymap/126629 "2025-03-06T11:50:46Z")

</div>

I was unable, for now, to get a MWE, but maybe this bug is already known, or the stack trace helps someone to understand what’s going on. It is simply that when trying to complete commands with TAB, sometimes I get these…

---

## [Error running multiple\_shoot example](https://discourse.julialang.org/t/error-running-multiple-shoot-example/126608)

<div class="topic-metadata">

**Author:** [@cbilllingham1983](https://discourse.julialang.org/u/cbilllingham1983)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 11:39am UTC](https://discourse.julialang.org/t/error-running-multiple-shoot-example/126608 "2025-03-06T11:39:49Z")

</div>

Hi this is a follow up to an earlier post. I’m trying to use multiple\_shooting and I am just trying to run the basic example script shown: Can anyone confirm that the example code on that page is both syntactically an…

---

## [Help with workaround a mutation in an optimization problem](https://discourse.julialang.org/t/help-with-workaround-a-mutation-in-an-optimization-problem/126624)

<div class="topic-metadata">

**Author:** [@abhinav](https://discourse.julialang.org/u/abhinav)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 10:36am UTC](https://discourse.julialang.org/t/help-with-workaround-a-mutation-in-an-optimization-problem/126624 "2025-03-06T10:36:58Z")

</div>

Hi everyone, I’m running into an issue with an optimization problem utilizing gradient-based updates using Zygote where an in-place mutation appears to be causing problems. Specifically, when I update my parameter vecto…

---

## [Wagner model for total tardiness minimization](https://discourse.julialang.org/t/wagner-model-for-total-tardiness-minimization/126603)

<div class="topic-metadata">

**Author:** [@Victor\_Neto](https://discourse.julialang.org/u/Victor_Neto)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 10:35am UTC](https://discourse.julialang.org/t/wagner-model-for-total-tardiness-minimization/126603 "2025-03-06T10:35:22Z")

</div>

Dear friends, I hope this message finds you all well. I am working on a Wagner family model with positional decision variables for the job shop scheduling problem, aiming to minimize total tardiness. For the toy model …

---

## [Data Science with Julia](https://discourse.julialang.org/t/data-science-with-julia/19941)

<div class="topic-metadata">

**Author:** [@Aeonglacial](https://discourse.julialang.org/u/Aeonglacial)\
**Replies:** 21\
**Last updated:** [March 6, 2025, 9:39am UTC](https://discourse.julialang.org/t/data-science-with-julia/19941 "2025-03-06T09:39:26Z")

</div>

This just came in the mail today! Looking forward to diving head first into this! Shout out to the authors if they are on the forum

---

## [CUDA.jl - When to synchronize](https://discourse.julialang.org/t/cuda-jl-when-to-synchronize/115576)

<div class="topic-metadata">

**Author:** [@Jason\_Meziere](https://discourse.julialang.org/u/Jason_Meziere)\
**Replies:** 11\
**Last updated:** [March 6, 2025, 6:53am UTC](https://discourse.julialang.org/t/cuda-jl-when-to-synchronize/115576 "2025-03-06T06:53:52Z")

</div>

The project I’m working on is run entirely on a GPU. What I mean by that is that there is no copying back and forth between the GPU and CPU until the very end. Along the way, I go through 5 main types of operations: Arr…

---

## [Makie: logscale ticks contains undesired \`1.0 x\`](https://discourse.julialang.org/t/makie-logscale-ticks-contains-undesired-1-0-x/126615)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 4:41am UTC](https://discourse.julialang.org/t/makie-logscale-ticks-contains-undesired-1-0-x/126615 "2025-03-06T04:41:15Z")

</div>

scatter(1:9, 10 .^ (0:8); axis=(;yticks=10 .^ (0:8), yscale=log10))

---

## [C implementation of function being ~4 times faster even absence of allocs](https://discourse.julialang.org/t/c-implementation-of-function-being-4-times-faster-even-absence-of-allocs/126495)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 28\
**Last updated:** [March 5, 2025, 10:42pm UTC](https://discourse.julialang.org/t/c-implementation-of-function-being-4-times-faster-even-absence-of-allocs/126495 "2025-03-05T22:42:57Z")

</div>

Hi there, I am in need to optimize as much as possible the function I will present here. I moved it from C to Julia for convenience since the operations around it become much easier but I am getting significantly worst …

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

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