# Latest

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

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

**Page:** 425

---

## [Can a module in a package itself be a package?](https://discourse.julialang.org/t/can-a-module-in-a-package-itself-be-a-package/113474)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 8\
**Last updated:** [April 26, 2024, 4:02am UTC](https://discourse.julialang.org/t/can-a-module-in-a-package-itself-be-a-package/113474 "2024-04-26T04:02:35Z")

</div>

I have a pacakge (PackageCore) that provides the main functionality of another (PackageFull). I’ve decided that I want to be able to develop and test these as independent packages. This is the structure I am currently us…

---

## [Discourse saved searches / custom notifications](https://discourse.julialang.org/t/discourse-saved-searches-custom-notifications/112802)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 3\
**Last updated:** [April 26, 2024, 3:28am UTC](https://discourse.julialang.org/t/discourse-saved-searches-custom-notifications/112802 "2024-04-26T03:28:34Z")

</div>

With this plugin: It is possible to get notified about conversations matching some pattern, such that package developers can get notifications of their packages appear in some post.

---

## [Dataframes: displaying categorical key when displaying a dataframe while saving the value in the data array](https://discourse.julialang.org/t/dataframes-displaying-categorical-key-when-displaying-a-dataframe-while-saving-the-value-in-the-data-array/113470)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 13\
**Last updated:** [April 25, 2024, 9:07pm UTC](https://discourse.julialang.org/t/dataframes-displaying-categorical-key-when-displaying-a-dataframe-while-saving-the-value-in-the-data-array/113470 "2024-04-25T21:07:53Z")

</div>

I have a question about displaying categorical data in a dataframe. I want to see if there is a way to display the categorical key value, while preserving the categorical value in the data. The point is to help users wo…

---

## [Segmentation fault with SharedArrays when --threads is set?](https://discourse.julialang.org/t/segmentation-fault-with-sharedarrays-when-threads-is-set/113424)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 7:30pm UTC](https://discourse.julialang.org/t/segmentation-fault-with-sharedarrays-when-threads-is-set/113424 "2024-04-25T19:30:20Z")

</div>

I’m getting strange segmentation faults when using SharedArrays and passing --threads to Julia, even when I’m not actually using any of those threads! Here is a minimal example: using Distributed function main() sa = …

---

## [Matrix inside Matrix in Julia](https://discourse.julialang.org/t/matrix-inside-matrix-in-julia/113280)

<div class="topic-metadata">

**Author:** [@sati](https://discourse.julialang.org/u/sati)\
**Replies:** 10\
**Last updated:** [April 25, 2024, 5:09pm UTC](https://discourse.julialang.org/t/matrix-inside-matrix-in-julia/113280 "2024-04-25T17:09:53Z")

</div>

This is a matrix formula derived from algebra. My question is how to implement this in Julia? For the first row : I is an identity matrix with a size 3x3 , 0 is a zero matrix with a size 3x6, AG is a 3x10 matrix, and…

---

## [How to take the gradient of an ODE system with respect to many data points?](https://discourse.julialang.org/t/how-to-take-the-gradient-of-an-ode-system-with-respect-to-many-data-points/113368)

<div class="topic-metadata">

**Author:** [@ctessum](https://discourse.julialang.org/u/ctessum)\
**Replies:** 17\
**Last updated:** [April 25, 2024, 4:58pm UTC](https://discourse.julialang.org/t/how-to-take-the-gradient-of-an-ode-system-with-respect-to-many-data-points/113368 "2024-04-25T16:58:41Z")

</div>

Hello! I have an ode system (dx = f(x, ξ, k)), and I would like to find optimal values of ξ so that: \\mathrm{argmin}\_\\xi \\left( f(x, \\xi, k) - dx \\right)^2 where \\xi \\in R^{n\\xi} are the parameters I want to tune, x…

---

## [Makie Layout Text Over Column of Plots](https://discourse.julialang.org/t/makie-layout-text-over-column-of-plots/113509)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 4:37pm UTC](https://discourse.julialang.org/t/makie-layout-text-over-column-of-plots/113509 "2024-04-25T16:37:27Z")

</div>

Hello, I am trying to show the evolution of a quantity via a series of plots. I have three simulations which describe something changing with time. I want to show side by side comparisons at various times. So my idea is…

---

## [Making 3D text appear 2D GLMakie](https://discourse.julialang.org/t/making-3d-text-appear-2d-glmakie/113404)

<div class="topic-metadata">

**Author:** [@Gavin\_Held](https://discourse.julialang.org/u/Gavin_Held)\
**Replies:** 6\
**Last updated:** [April 25, 2024, 4:26pm UTC](https://discourse.julialang.org/t/making-3d-text-appear-2d-glmakie/113404 "2024-04-25T16:26:26Z")

</div>

Hello, I am currently trying to make a nice figure with GLMakie that will help aid in describing a specific geometry. To do this I want to include the basis vectors that go along with it, however, I am having difficulti…

---

## [Replacing components with indices](https://discourse.julialang.org/t/replacing-components-with-indices/113412)

<div class="topic-metadata">

**Author:** [@KeepLearning](https://discourse.julialang.org/u/KeepLearning)\
**Replies:** 12\
**Last updated:** [April 25, 2024, 4:00pm UTC](https://discourse.julialang.org/t/replacing-components-with-indices/113412 "2024-04-25T16:00:55Z")

</div>

I am wondering if the following can be done in a better way (without for loop, perhaps): given a vector and a vector of vectors, e.g. v = \[1, 2, 3, 3, 4, 4, 5\] u = \[\[1,2\], \[3, 5\], \[4\]\] I like to get \[1, 1, 2, 2, 3, 3,…

---

## [QuantumOptics.jl time-dependent Hamiltonian cannot run](https://discourse.julialang.org/t/quantumoptics-jl-time-dependent-hamiltonian-cannot-run/113448)

<div class="topic-metadata">

**Author:** [@fqguo](https://discourse.julialang.org/u/fqguo)\
**Replies:** 11\
**Last updated:** [April 25, 2024, 3:43pm UTC](https://discourse.julialang.org/t/quantumoptics-jl-time-dependent-hamiltonian-cannot-run/113448 "2024-04-25T15:43:20Z")

</div>

I cannot modefiy my programma, in which the Hamiltonian is time-dependent, then the “timeevolution.master” show some bug. I cannot run. Can someone help me? using QuantumOptics using PyPlot using SpecialFunctions b…

---

## [Dispatch differences between restricted and unrestricte type parameter](https://discourse.julialang.org/t/dispatch-differences-between-restricted-and-unrestricte-type-parameter/113505)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 3:09pm UTC](https://discourse.julialang.org/t/dispatch-differences-between-restricted-and-unrestricte-type-parameter/113505 "2024-04-25T15:09:28Z")

</div>

Why is the dispatch behavior different for the following codes? The only difference is that the type parameter T of the abstract type is restricted (\<:Real) in the first snippet and unrestricted in the second snippet. a…

---

## [Setting up copilot with sublimetext](https://discourse.julialang.org/t/setting-up-copilot-with-sublimetext/113506)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [April 25, 2024, 3:07pm UTC](https://discourse.julialang.org/t/setting-up-copilot-with-sublimetext/113506 "2024-04-25T15:07:59Z")

</div>

Hi All, I would like to ask about settings of sublimetext with copilot. As I understand it, by default it runs all the time trying to complete the line / block. I would like to ask, if it is possible to set it up only …

---

## [How can I achieve this Makie Layout that respects a given aspect ratio?](https://discourse.julialang.org/t/how-can-i-achieve-this-makie-layout-that-respects-a-given-aspect-ratio/113490)

<div class="topic-metadata">

**Author:** [@tscode](https://discourse.julialang.org/u/tscode)\
**Replies:** 4\
**Last updated:** [April 25, 2024, 2:48pm UTC](https://discourse.julialang.org/t/how-can-i-achieve-this-makie-layout-that-respects-a-given-aspect-ratio/113490 "2024-04-25T14:48:55Z")

</div>

I want to make the following layout behave sensibly under changes of the figure size (interactive settings mainly). The constraints are: The green column has a fixed width. The red box has a given aspect ratio (1 in…

---

## [Deploying documentation with Documenter (automatically with each new push to the repo)](https://discourse.julialang.org/t/deploying-documentation-with-documenter-automatically-with-each-new-push-to-the-repo/57615)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 25\
**Last updated:** [April 25, 2024, 2:33pm UTC](https://discourse.julialang.org/t/deploying-documentation-with-documenter-automatically-with-each-new-push-to-the-repo/57615 "2024-04-25T14:33:24Z")

</div>

I made a small package as a way of “practicing” all of the good software practices (CI, unit tests, coverage testing, etc). Here it is: GitHub - glwhart/MinkowskiReduction.jl: Lattice reduction in three dimensions I use…

---

## [Multiple GPUs with CuStateVec in CUDA.jl](https://discourse.julialang.org/t/multiple-gpus-with-custatevec-in-cuda-jl/113499)

<div class="topic-metadata">

**Author:** [@tipfom](https://discourse.julialang.org/u/tipfom)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 1:33pm UTC](https://discourse.julialang.org/t/multiple-gpus-with-custatevec-in-cuda-jl/113499 "2024-04-25T13:33:39Z")

</div>

Hello, I’m trying to use multiple GPUs for computations involving CuStateVec from the CUDA.jl implementation, specifically the function swapIndexBitsMultiDevice!. However, this function always throws the error Argume…

---

## [How to patch another package?](https://discourse.julialang.org/t/how-to-patch-another-package/113454)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 8\
**Last updated:** [April 25, 2024, 12:54pm UTC](https://discourse.julialang.org/t/how-to-patch-another-package/113454 "2024-04-25T12:54:37Z")

</div>

Hi there, I would like to patch another package. This worked perfectly fine up to julia 1.9 but with 1.10 it broke. See this thread ERROR: Method overwriting is not permitted during Module precompilation. Use \`\_\_precomp…

---

## [Gauss quadrature in 3D with change of variables](https://discourse.julialang.org/t/gauss-quadrature-in-3d-with-change-of-variables/113486)

<div class="topic-metadata">

**Author:** [@Lisette\_de\_Bruin](https://discourse.julialang.org/u/Lisette_de_Bruin)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 12:45pm UTC](https://discourse.julialang.org/t/gauss-quadrature-in-3d-with-change-of-variables/113486 "2024-04-25T12:45:43Z")

</div>

Dear all, I want to solve an intgeral of the following form \\int\_0^1\\int\_x^1(x+y) dydx using a self implemented Gauss quadrature. The integral boundaries must be changed to \[-1,1\], which is done in the following way: …

---

## [Problem in solve() DifferentialEquations. None algorithm define](https://discourse.julialang.org/t/problem-in-solve-differentialequations-none-algorithm-define/113342)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 11\
**Last updated:** [April 25, 2024, 11:26am UTC](https://discourse.julialang.org/t/problem-in-solve-differentialequations-none-algorithm-define/113342 "2024-04-25T11:26:42Z")

</div>

Hi, I am new to Julia. I am trying to integrate an ODE. It works in my colleagues PC but not in mine. It looks like the package has not been loaded but I did it at the beginning of the script. I have tried with many sol…

---

## [Poll: planning new Julia HPC Call](https://discourse.julialang.org/t/poll-planning-new-julia-hpc-call/113495)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 0\
**Last updated:** [April 25, 2024, 10:50am UTC](https://discourse.julialang.org/t/poll-planning-new-julia-hpc-call/113495 "2024-04-25T10:50:35Z")

</div>

The Julia HPC call doubles! The Julia HPC community runs a monthly call (see the Julia community calendar), on the fourth Tuesday of the month, to gather people interested in using Julia in the HPC domain, answer questio…

---

## [Build without SparseArrays and SuiteSparse](https://discourse.julialang.org/t/build-without-sparsearrays-and-suitesparse/111809)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 10:43am UTC](https://discourse.julialang.org/t/build-without-sparsearrays-and-suitesparse/111809 "2024-04-25T10:43:24Z")

</div>

Hi, I read in the news for of 1.10 that: " SparseArrays and SuiteSparse are no longer included in the default system image, so the core language no longer contains GPL libraries. However, these libraries are still incl…

---

## [How to disable panning/dragging in Observables in GLMakie?](https://discourse.julialang.org/t/how-to-disable-panning-dragging-in-observables-in-glmakie/113466)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 8:45am UTC](https://discourse.julialang.org/t/how-to-disable-panning-dragging-in-observables-in-glmakie/113466 "2024-04-25T08:45:19Z")

</div>

How to disable panning/dragging in Observables in GLMakie? I just want to click on scatterplot, not suddenly fall into constant zooming: Current code for mouse click control is simple: on(events(f).mousebutton, pr…

---

## [Segmentation fault when embedding Julia and using DifferentialEquations.jl](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 9:46am UTC](https://discourse.julialang.org/t/segmentation-fault-when-embedding-julia-and-using-differentialequations-jl/113274 "2024-04-25T09:46:33Z")

</div>

Hi, I need to embed Julia in a C library that is dynamically loaded and invoked from Python. I can make basic stuff work with the embedded Julia. However, when I try to import DifferentialEquations.jl, I get a segmentati…

---

## [Partial Autodiff in NN using Flux](https://discourse.julialang.org/t/partial-autodiff-in-nn-using-flux/69016)

<div class="topic-metadata">

**Author:** [@gnicolosi](https://discourse.julialang.org/u/gnicolosi)\
**Replies:** 1\
**Last updated:** [April 25, 2024, 9:17am UTC](https://discourse.julialang.org/t/partial-autodiff-in-nn-using-flux/69016 "2024-04-25T09:17:12Z")

</div>

I have been using Flux to model a NN which has a loss function dependent on its own NN output and other functions that contains functions also dependent on the output of the NN, in a sort of recurrent way. My data is jus…

---

## [Custom reshape() function for specific usage](https://discourse.julialang.org/t/custom-reshape-function-for-specific-usage/113382)

<div class="topic-metadata">

**Author:** [@Harrykjg-physics](https://discourse.julialang.org/u/Harrykjg-physics)\
**Replies:** 3\
**Last updated:** [April 25, 2024, 9:14am UTC](https://discourse.julialang.org/t/custom-reshape-function-for-specific-usage/113382 "2024-04-25T09:14:10Z")

</div>

Hi there ! Is there any way to minimize the memory usage of the following custom function graded\_reshape() ( Or even achieve the same performance as the Julia reshape function ) ? Suppose we have a usual Julia reshape…

---

## [ERROR: LoadError: MethodError: no method matching \_init\_identity\_matrix(::ComponentVector{Float32, Vector{Float32}, Tuple{Axis{…}}}, ::Float64)](https://discourse.julialang.org/t/error-loaderror-methoderror-no-method-matching-init-identity-matrix-componentvector-float32-vector-float32-tuple-axis-float64/112211)

<div class="topic-metadata">

**Author:** [@KianH](https://discourse.julialang.org/u/KianH)\
**Replies:** 8\
**Last updated:** [April 25, 2024, 5:43am UTC](https://discourse.julialang.org/t/error-loaderror-methoderror-no-method-matching-init-identity-matrix-componentvector-float32-vector-float32-tuple-axis-float64/112211 "2024-04-25T05:43:04Z")

</div>

Hi, When using BFGS from Optim.jl I occasionally get the following error message: ERROR: LoadError: MethodError: no method matching \_init\_identity\_matrix(::ComponentVector{Float32, Vector{Float32}, Tuple{Axis{…}}}, ::F…

---

## [Revisiting saturating intrinsics](https://discourse.julialang.org/t/revisiting-saturating-intrinsics/112917)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 9\
**Last updated:** [April 25, 2024, 5:15am UTC](https://discourse.julialang.org/t/revisiting-saturating-intrinsics/112917 "2024-04-25T05:15:37Z")

</div>

Hi all. Here is the origin of the discussion I want to have. I had to leave the development a few years ago due to somewhat misfortunes. I apologize for the inconvenience. Unfortunately, no progress has been made in…

---

## [Second order polynomial fit in Makie.jl?](https://discourse.julialang.org/t/second-order-polynomial-fit-in-makie-jl/113413)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 2\
**Last updated:** [April 25, 2024, 4:36am UTC](https://discourse.julialang.org/t/second-order-polynomial-fit-in-makie-jl/113413 "2024-04-25T04:36:44Z")

</div>

Is there a way to get the Polynomial. jl operation fit() to work in Makie.jl? I’ve tried to use the Makie.convert\_argument() and other iterations of it, but, maybe I’m using it incorrectly? Here is where I left it at …

---

## [Side Effect Analysis on Macros](https://discourse.julialang.org/t/side-effect-analysis-on-macros/106526)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 10\
**Last updated:** [April 25, 2024, 2:12am UTC](https://discourse.julialang.org/t/side-effect-analysis-on-macros/106526 "2024-04-25T02:12:08Z")

</div>

A recurrent challenge for linting Julia is macro mini languages. From chaining with underscores to sum types, there are lots of symbols that get created by macros which are obvious to the human reader but not to LSP. The…

---

## [Turing Mixture Models with Dirichlet weightings](https://discourse.julialang.org/t/turing-mixture-models-with-dirichlet-weightings/112910)

<div class="topic-metadata">

**Author:** [@Sam\_P](https://discourse.julialang.org/u/Sam_P)\
**Replies:** 8\
**Last updated:** [April 25, 2024, 12:47am UTC](https://discourse.julialang.org/t/turing-mixture-models-with-dirichlet-weightings/112910 "2024-04-25T00:47:03Z")

</div>

Hi all - I’ve been trying to use the MixtureModel in Turing to sample from a multi-modal dataset, and generating the probability for each mode using the Dirichlet distributions. Yet somehow I’ve been getting an BoundsErr…

---

## [PyPlot does not show me any plot](https://discourse.julialang.org/t/pyplot-does-not-show-me-any-plot/113438)

<div class="topic-metadata">

**Author:** [@Andrea\_Demaria](https://discourse.julialang.org/u/Andrea_Demaria)\
**Replies:** 9\
**Last updated:** [April 24, 2024, 9:59pm UTC](https://discourse.julialang.org/t/pyplot-does-not-show-me-any-plot/113438 "2024-04-24T21:59:53Z")

</div>

I installed Julia 1.9.3 on my windows 11 pc and add the package PyPlot. Then, going in VS code the Julia version is immediately recognize (so okay). Whenever I write using PyPlot all works well, but when I try to make a …

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

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