# Latest

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

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

**Page:** 387

---

## [How to export the documentation of a Julia package to PDF?](https://discourse.julialang.org/t/how-to-export-the-documentation-of-a-julia-package-to-pdf/115683)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [June 15, 2024, 9:13am UTC](https://discourse.julialang.org/t/how-to-export-the-documentation-of-a-julia-package-to-pdf/115683 "2024-06-15T09:13:55Z")

</div>

Some of the documentations of Julia packages on the webpages generated with Documenter.jl are so good that I want to convert them into full structured PDF so that I can print and read them just like reading papers or boo…

---

## [Programming languages with only global scope?](https://discourse.julialang.org/t/programming-languages-with-only-global-scope/115665)

<div class="topic-metadata">

**Author:** [@oOosys](https://discourse.julialang.org/u/oOosys)\
**Replies:** 21\
**Last updated:** [June 15, 2024, 8:36am UTC](https://discourse.julialang.org/t/programming-languages-with-only-global-scope/115665 "2024-06-15T08:36:54Z")

</div>

All of the discussion would become obsolete in case of required uniqueness of symbol names and usage of global scope variables only. The more not really needed options to choose from implemented in a programming language…

---

## [ImageView.imshow() crashes when playing with contrast values and crashing the REPL](https://discourse.julialang.org/t/imageview-imshow-crashes-when-playing-with-contrast-values-and-crashing-the-repl/115236)

<div class="topic-metadata">

**Author:** [@Mend-Amar\_Badral](https://discourse.julialang.org/u/Mend-Amar_Badral)\
**Replies:** 4\
**Last updated:** [June 15, 2024, 4:52am UTC](https://discourse.julialang.org/t/imageview-imshow-crashes-when-playing-with-contrast-values-and-crashing-the-repl/115236 "2024-06-15T04:52:49Z")

</div>

I’ve been trying to use the ImageView.jl package for viewing images from TestImages.jl package to see and playing around with the contrast slider.Specifically I used mri-stack.tif image. I think it has some bugs and issu…

---

## [Agent based model - create scatter plot with agent variables from data frame](https://discourse.julialang.org/t/agent-based-model-create-scatter-plot-with-agent-variables-from-data-frame/115553)

<div class="topic-metadata">

**Author:** [@tfranks](https://discourse.julialang.org/u/tfranks)\
**Replies:** 1\
**Last updated:** [June 15, 2024, 3:37am UTC](https://discourse.julialang.org/t/agent-based-model-create-scatter-plot-with-agent-variables-from-data-frame/115553 "2024-06-15T03:37:14Z")

</div>

Hello, I’ve created an agent-based model where a Bank agent has randomly assigned variables of “uninsured,” "investments,"and “AFS\_securities” that are collected in a data frame after running. I now want to create a 3D…

---

## [Unexpected Memory Allocation of Broadcasting Copy](https://discourse.julialang.org/t/unexpected-memory-allocation-of-broadcasting-copy/115634)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 4\
**Last updated:** [June 15, 2024, 2:59am UTC](https://discourse.julialang.org/t/unexpected-memory-allocation-of-broadcasting-copy/115634 "2024-06-15T02:59:47Z")

</div>

Hi all. I encounted the problem as topic saids. julia\> a = zeros(4, 4, 3) julia\> @btime @views $a\[:, :, 2\] .= $a\[:, :, 2\] 38.862 ns (1 allocation: 192 bytes) julia\> @btime @views for i in eachindex($a\[:, :, 2\]) …

---

## [Nonlinear Least Squares Millions of Allocations](https://discourse.julialang.org/t/nonlinear-least-squares-millions-of-allocations/115583)

<div class="topic-metadata">

**Author:** [@nicrummel](https://discourse.julialang.org/u/nicrummel)\
**Replies:** 9\
**Last updated:** [June 15, 2024, 1:43am UTC](https://discourse.julialang.org/t/nonlinear-least-squares-millions-of-allocations/115583 "2024-06-15T01:43:44Z")

</div>

Overview An algorithm I am working on requires solving many largish nonlinear least squares problems. The number of allocations is exploding. My nonlinear function are efficient when passed Arrays of Float64 and generate…

---

## [\[ANN\] MLJFlux.jl 0.5](https://discourse.julialang.org/t/ann-mljflux-jl-0-5/115675)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 0\
**Last updated:** [June 14, 2024, 10:30pm UTC](https://discourse.julialang.org/t/ann-mljflux-jl-0-5/115675 "2024-06-14T22:30:02Z")

</div>

MLJFlux.jl allows users to quickly build, train and optimise Flux.jl neural network models using the high-level, general purpose machine learning framework MLJ.jl. The new 0.5 release assimilates a number of substantial…

---

## [Using a modifier function on the output of DifferentialEquation for plotting](https://discourse.julialang.org/t/using-a-modifier-function-on-the-output-of-differentialequation-for-plotting/115669)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 3\
**Last updated:** [June 14, 2024, 9:39pm UTC](https://discourse.julialang.org/t/using-a-modifier-function-on-the-output-of-differentialequation-for-plotting/115669 "2024-06-14T21:39:55Z")

</div>

Hello, I am using the (fantastic) DifferentialEquation.jl package to run some simulation and would like to plot the solution, but after applying a modifying function on the solution. What I mean is that I would like to…

---

## [Vs code lang server won't start](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 11\
**Last updated:** [June 14, 2024, 7:25pm UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587 "2024-06-14T19:25:32Z")

</div>

Hello, vscode language server won’t start error msg is: ERROR: LoadError: IOError: connect: permission denied (EACCES) Stacktrace: \[1\] wait\_connected(x::Base.PipeEndpoint) @ Sockets C:\\Users\\yjr\\.julia\\juliaup\\juli…

---

## [Named pipes](https://discourse.julialang.org/t/named-pipes/115627)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 18\
**Last updated:** [June 14, 2024, 7:06pm UTC](https://discourse.julialang.org/t/named-pipes/115627 "2024-06-14T19:06:26Z")

</div>

Is there something like “named pipes” in Julia? (I just learned that those things exist). The goal is to provide a “file” as input to an external program while avoiding explicitly writing the file to disc. Does that ex…

---

## [Unexpected additional behavior when using zip to construct NamedTuple](https://discourse.julialang.org/t/unexpected-additional-behavior-when-using-zip-to-construct-namedtuple/115623)

<div class="topic-metadata">

**Author:** [@duzaichuan](https://discourse.julialang.org/u/duzaichuan)\
**Replies:** 7\
**Last updated:** [June 14, 2024, 6:52pm UTC](https://discourse.julialang.org/t/unexpected-additional-behavior-when-using-zip-to-construct-namedtuple/115623 "2024-06-14T18:52:56Z")

</div>

Hi, I use Julia1.10.4 in Archlinux. I try to use zip to dynamically create a named tuple, like this test = (; zip((:a, :b), fill(zeros(3), 2))...) =\> (a=\[0.0, 0.0, 0.0\], b=\[0.0, 0.0, 0.0\]) However, very strange, when…

---

## [Plotting DifferentialEquations.jl solutions, re-indexing](https://discourse.julialang.org/t/plotting-differentialequations-jl-solutions-re-indexing/108106)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 7\
**Last updated:** [June 14, 2024, 6:51pm UTC](https://discourse.julialang.org/t/plotting-differentialequations-jl-solutions-re-indexing/108106 "2024-06-14T18:51:08Z")

</div>

Hi there, I am solving a system of differential equations using Differential equations.jl, and have the following result: I would like to only plot the solution when it has stabilised (from 5 seconds onwards). I have …

---

## [My dependency changed one of its dependencies - can't build my package anymore](https://discourse.julialang.org/t/my-dependency-changed-one-of-its-dependencies-cant-build-my-package-anymore/115659)

<div class="topic-metadata">

**Author:** [@Santiago\_Lopez](https://discourse.julialang.org/u/Santiago_Lopez)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 5:45pm UTC](https://discourse.julialang.org/t/my-dependency-changed-one-of-its-dependencies-cant-build-my-package-anymore/115659 "2024-06-14T17:45:15Z")

</div>

Hi, I pushed a minor changed to my Julia’s package repo and got the following error during the Documenter build: ERROR: LoadError: LoadError: ArgumentError: Package Polynomials does not have MakieCore in its dependenci…

---

## [Trouble with running Julia scripts from within Geany](https://discourse.julialang.org/t/trouble-with-running-julia-scripts-from-within-geany/115519)

<div class="topic-metadata">

**Author:** [@oOosys](https://discourse.julialang.org/u/oOosys)\
**Replies:** 6\
**Last updated:** [June 14, 2024, 4:49pm UTC](https://discourse.julialang.org/t/trouble-with-running-julia-scripts-from-within-geany/115519 "2024-06-14T16:49:53Z")

</div>

$ /bin/sh /tmp/geany\_run\_script\_PDOCP2.sh /tmp/geany\_run\_script\_PDOCP2.sh: 7: ./delMe: not found delMe.jl is the script file and I have updated the filetypes.julia file with: \[build-menu\] run\_cmd=/home/o/.juliaup/bin/…

---

## [MTK system based on symbolic arrays fails: type Array has no field lhs](https://discourse.julialang.org/t/mtk-system-based-on-symbolic-arrays-fails-type-array-has-no-field-lhs/110455)

<div class="topic-metadata">

**Author:** [@fabianmueller](https://discourse.julialang.org/u/fabianmueller)\
**Replies:** 2\
**Last updated:** [June 14, 2024, 4:48pm UTC](https://discourse.julialang.org/t/mtk-system-based-on-symbolic-arrays-fails-type-array-has-no-field-lhs/110455 "2024-06-14T16:48:22Z")

</div>

I struggle a little bit with a relatively simple MTK model that contains matrix vector multiplications. My example code is the following: using ModelingToolkit Am = \[1 0 3; 2 0 1; 0 1 4\] Bm = \[4 5; 3 2; 1 4\] @paramete…

---

## [Calling Finalize from Running Finalizer](https://discourse.julialang.org/t/calling-finalize-from-running-finalizer/115365)

<div class="topic-metadata">

**Author:** [@PatrickHaecker](https://discourse.julialang.org/u/PatrickHaecker)\
**Replies:** 4\
**Last updated:** [June 14, 2024, 3:42pm UTC](https://discourse.julialang.org/t/calling-finalize-from-running-finalizer/115365 "2024-06-14T15:42:01Z")

</div>

I haven’t found it in the documentation, so I wanted to have it confirmed/documented: Assume you have two objects, both having a finalizer. One finalizer needs to be called before the other, because there is a dependenc…

---

## [JuliaCon 2024 Speaker Tickets](https://discourse.julialang.org/t/juliacon-2024-speaker-tickets/115658)

<div class="topic-metadata">

**Author:** [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Replies:** 0\
**Last updated:** [June 14, 2024, 3:01pm UTC](https://discourse.julialang.org/t/juliacon-2024-speaker-tickets/115658 "2024-06-14T15:01:14Z")

</div>

Hello, If you are a JuliaCon speaker who hasn’t purchased a ticket yet, this is a reminder: As a speaker, you must purchase a JuliaCon 2024 ticket, which is available to you at a discount. This discounted ticket is equ…

---

## [Plotting a mark in gr()](https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 2:42pm UTC](https://discourse.julialang.org/t/plotting-a-mark-in-gr/115642 "2024-06-14T14:42:56Z")

</div>

Dear all, I have the simple code in to plot two set of points: using Plots gr(size = (1500, 1000),fmt=:png,ylims=(0,100), xlims=(0,100)) as = rand(1:100,100,2) scatter(as\[1:50,1\], as\[1:50,2\],mc=:blue,ms=8,msw=0,marker…

---

## [Calling database functions when using Octo.jl](https://discourse.julialang.org/t/calling-database-functions-when-using-octo-jl/114044)

<div class="topic-metadata">

**Author:** [@suvayu](https://discourse.julialang.org/u/suvayu)\
**Replies:** 5\
**Last updated:** [June 13, 2024, 7:18pm UTC](https://discourse.julialang.org/t/calling-database-functions-when-using-octo-jl/114044 "2024-06-13T19:18:14Z")

</div>

I’m trying out Octo.jl with DuckDB. I managed to connect to an existing file and query a table there. julia\> import DataFrames as DF; julia\> using Octo.Adapters.DuckDB julia\> con = Repo.connect(adapter=Octo.Adapters.D…

---

## [Accelerating repeated eigenvalue searches](https://discourse.julialang.org/t/accelerating-repeated-eigenvalue-searches/114989)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 31\
**Last updated:** [June 14, 2024, 2:08pm UTC](https://discourse.julialang.org/t/accelerating-repeated-eigenvalue-searches/114989 "2024-06-14T14:08:23Z")

</div>

I need to compute the eigenvalues of 2N\\times2N (N ~ 1000) complex, hermitian, dense, matrices, the number of matrices being ~100. They have the following properties: All matrices M\_i take the form M\_i = A + D\_i, where…

---

## [Latex matrix in Makie](https://discourse.julialang.org/t/latex-matrix-in-makie/115608)

<div class="topic-metadata">

**Author:** [@VictorSeven](https://discourse.julialang.org/u/VictorSeven)\
**Replies:** 3\
**Last updated:** [June 14, 2024, 2:05pm UTC](https://discourse.julialang.org/t/latex-matrix-in-makie/115608 "2024-06-14T14:05:14Z")

</div>

Hi, I’m trying to show a matrix in Makie, via text!. Latex in general works well, but when I try to plot the matrix text!(ax, pos; text=L"\\begin{pmatrix} 1 & 2 \\\\ 3 & 4\\end{pmatrix}") I receive an error ERROR: LoadEr…

---

## [How to detect/avoid type piracy?](https://discourse.julialang.org/t/how-to-detect-avoid-type-piracy/114588)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 77\
**Last updated:** [June 14, 2024, 9:32am UTC](https://discourse.julialang.org/t/how-to-detect-avoid-type-piracy/114588 "2024-06-14T09:32:29Z")

</div>

Ouch, it seems I’ve been bitten by the correctness issue in its following manifestation: My package overloads the Base.split() for (::AbstractVector, ::Integer). Unit tests pass, scripts/REPL work correctly. However, …

---

## [HallThruster.jl package Simulations : issue with the tutorial and the running of the simulation](https://discourse.julialang.org/t/hallthruster-jl-package-simulations-issue-with-the-tutorial-and-the-running-of-the-simulation/115594)

<div class="topic-metadata">

**Author:** [@bboy\_eleven](https://discourse.julialang.org/u/bboy_eleven)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 9:23am UTC](https://discourse.julialang.org/t/hallthruster-jl-package-simulations-issue-with-the-tutorial-and-the-running-of-the-simulation/115594 "2024-06-14T09:23:33Z")

</div>

Hi, I’m currently learning and using the package HallThruster.jl wich is used for simulating Hall Thruster in 1D. A tutorial is available Home · HallThruster.jl and is well detailed and how to use the package. At first …

---

## [Why am I unable to properly edit my environment variables?](https://discourse.julialang.org/t/why-am-i-unable-to-properly-edit-my-environment-variables/115631)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 9\
**Last updated:** [June 14, 2024, 7:36am UTC](https://discourse.julialang.org/t/why-am-i-unable-to-properly-edit-my-environment-variables/115631 "2024-06-14T07:36:44Z")

</div>

thanks!

---

## [How to set monospace fonts for math symbols on VS Code](https://discourse.julialang.org/t/how-to-set-monospace-fonts-for-math-symbols-on-vs-code/115208)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 5\
**Last updated:** [June 14, 2024, 7:29am UTC](https://discourse.julialang.org/t/how-to-set-monospace-fonts-for-math-symbols-on-vs-code/115208 "2024-06-14T07:29:31Z")

</div>

What is your font setting for VS Code? I use macOS and I have the following setting: But the \\in symbol is displayed as non-monospace size: I also use Cascadia Mono on iTerm2 but it shows well: How do you set mo…

---

## [ModellingToolkit issue with creating ODEProblem](https://discourse.julialang.org/t/modellingtoolkit-issue-with-creating-odeproblem/115560)

<div class="topic-metadata">

**Author:** [@rveynde](https://discourse.julialang.org/u/rveynde)\
**Replies:** 2\
**Last updated:** [June 14, 2024, 7:02am UTC](https://discourse.julialang.org/t/modellingtoolkit-issue-with-creating-odeproblem/115560 "2024-06-14T07:02:33Z")

</div>

Hi all, I have encountered the same error multiple times when building a model, and I am not sure whether it is a bug or whether I am building the model wrong. Below is an example of the type of model that I am trying t…

---

## [Calling repeat with a CUDA array changes the state of the random number generator](https://discourse.julialang.org/t/calling-repeat-with-a-cuda-array-changes-the-state-of-the-random-number-generator/115598)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 2\
**Last updated:** [June 14, 2024, 6:09am UTC](https://discourse.julialang.org/t/calling-repeat-with-a-cuda-array-changes-the-state-of-the-random-number-generator/115598 "2024-06-14T06:09:30Z")

</div>

I am trying to refactor a code with uses random numbers and CUDA arrays. Quite surprisingly the function repeat changes the sequence of random numbers. I am wondering if other people see the same behavior. Do I miss s…

---

## [Updating with nested Project.toml](https://discourse.julialang.org/t/updating-with-nested-project-toml/115574)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 1\
**Last updated:** [June 13, 2024, 11:31am UTC](https://discourse.julialang.org/t/updating-with-nested-project-toml/115574 "2024-06-13T11:31:38Z")

</div>

In the package I am developing, I follow the best practice of having a separate Project.toml, test/Project.toml, and docs/Project.toml. Unfortunately, this means my dependency versions get out of sync if I run \]update i…

---

## [Broadcast Vec{Matrix}](https://discourse.julialang.org/t/broadcast-vec-matrix/115632)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 1\
**Last updated:** [June 14, 2024, 3:10am UTC](https://discourse.julialang.org/t/broadcast-vec-matrix/115632 "2024-06-14T03:10:44Z")

</div>

I have two vector of matrix AL = \[ A1, A2, ..., An \] and wL = \[ w1, w2, ..., wn \], I want to obtain the array of \[ A1.\*w1, ..., An.\*wn \], but AL.\* wL gives me \[ A1\*w1, ..., An\*wn \]. Is there any methods could make all th…

---

## [Trying PackageCompiler.jl lib example on Python](https://discourse.julialang.org/t/trying-packagecompiler-jl-lib-example-on-python/115492)

<div class="topic-metadata">

**Author:** [@el-analista](https://discourse.julialang.org/u/el-analista)\
**Replies:** 5\
**Last updated:** [June 14, 2024, 2:33am UTC](https://discourse.julialang.org/t/trying-packagecompiler-jl-lib-example-on-python/115492 "2024-06-14T02:33:38Z")

</div>

Hey there, I am testing PackageCompiler with the examples in the repo. I am able to compile the library correctly following the documentation but then when I try to use it in Python with the following code I just get s…

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

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