# Latest

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

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

**Page:** 444

---

## [10 years... countless hours worked into Julia... for what?](https://discourse.julialang.org/t/10-years-countless-hours-worked-into-julia-for-what/112444)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 1:14am UTC](https://discourse.julialang.org/t/10-years-countless-hours-worked-into-julia-for-what/112444 "2024-04-03T01:14:26Z")

</div>

10 years of struggle… countless problems solved. After we’ve finally made it, a fast high-level language. Except it’s not used a lot. Except people don’t really consider script-like languages to be “real programming”. …

---

## [How does io redirection work with tasks?](https://discourse.julialang.org/t/how-does-io-redirection-work-with-tasks/112405)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 11:56pm UTC](https://discourse.julialang.org/t/how-does-io-redirection-work-with-tasks/112405 "2024-04-02T23:56:28Z")

</div>

I don’t understand this simple MWE: julia\> redirect\_stdio(;stdout = devnull) do @async println("hello") @async redirect\_io(; stdout = devnull) do println("hey") end …

---

## [How to convert bytes to \`BitVector\`?](https://discourse.julialang.org/t/how-to-convert-bytes-to-bitvector/112440)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 8:21pm UTC](https://discourse.julialang.org/t/how-to-convert-bytes-to-bitvector/112440 "2024-04-02T20:21:13Z")

</div>

I’m handed some bytes by a file format, and each bit represent a Bool – now, I know a little bit about how our BitVector works, so I have some snippet that’s quite fragile: total\_num\_elements = ... # pad to near…

---

## [Improving doc for display/print/show/repr/](https://discourse.julialang.org/t/improving-doc-for-display-print-show-repr/69124)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 9:01pm UTC](https://discourse.julialang.org/t/improving-doc-for-display-print-show-repr/69124 "2024-04-02T21:01:48Z")

</div>

Continuing on what was started in (wrong forum?) Julep: extended proposal for fixing show, print, & friends · Issue #14052 · JuliaLang/julia · GitHub Questions Why would we use repr() over string()? Clearly, the call …

---

## [Why does Pluto crash on loading a certain package?](https://discourse.julialang.org/t/why-does-pluto-crash-on-loading-a-certain-package/111540)

<div class="topic-metadata">

**Author:** [@user23804985096787](https://discourse.julialang.org/u/user23804985096787)\
**Replies:** 4\
**Last updated:** [April 2, 2024, 9:07pm UTC](https://discourse.julialang.org/t/why-does-pluto-crash-on-loading-a-certain-package/111540 "2024-04-02T21:07:12Z")

</div>

When I use the Julia REPL or load a regular julia file from the command line, I can do something like using SomePackage and it will load in a matter of seconds if the package is already installed. However, when I launch …

---

## [PSA: backdoor in xz-utils and relevance for the Julia ecosystem](https://discourse.julialang.org/t/psa-backdoor-in-xz-utils-and-relevance-for-the-julia-ecosystem/112328)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 8:18pm UTC](https://discourse.julialang.org/t/psa-backdoor-in-xz-utils-and-relevance-for-the-julia-ecosystem/112328 "2024-04-02T20:18:26Z")

</div>

Statement of the problem A thread in oss-security mailing list reported that the XZ Utils project was affected by a backdoor: one of the current maintainers of the project appeared to have injected malicious code, includ…

---

## [Multi-threading packages - preferences, use cases. recommendations?](https://discourse.julialang.org/t/multi-threading-packages-preferences-use-cases-recommendations/112436)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 7:19pm UTC](https://discourse.julialang.org/t/multi-threading-packages-preferences-use-cases-recommendations/112436 "2024-04-02T19:19:48Z")

</div>

I have so far not specifically needed to multi-thread any of my code. I have, out of curiosity, tossed the odd @threads in front of one or two for loops to see if it made enough of a difference to bother, but the calcula…

---

## [Correct way to define vectorized variables and constraints with JuMP](https://discourse.julialang.org/t/correct-way-to-define-vectorized-variables-and-constraints-with-jump/112401)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 7:03pm UTC](https://discourse.julialang.org/t/correct-way-to-define-vectorized-variables-and-constraints-with-jump/112401 "2024-04-02T19:03:24Z")

</div>

using JuMP # Block1 M = Model() @variable(M, x\[1:3\] \>= 1) # Block2 M = Model() @variable(M, x\[1:3\] .\>= 1) # Block3 M = Model() @variable(M, x\[1:3\]) @constraint(M, x\[1:3\] \>= 1) # Block4 M = Model() @variable(M, x\[…

---

## [How to tweak tick label position in Makie?](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 6:31pm UTC](https://discourse.julialang.org/t/how-to-tweak-tick-label-position-in-makie/60085 "2024-04-02T18:31:11Z")

</div>

The new layout system is awesome, and the basic and layout tutorials gave very good explanations. After reading all the docs, in particular the Modifying ticks section, I see how to set the ticks strings (otherwise th…

---

## [Unsatisfiable requirements error when adding Clarabel.jl thru package manager](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431)

<div class="topic-metadata">

**Author:** [@charshaw](https://discourse.julialang.org/u/charshaw)\
**Replies:** 4\
**Last updated:** [April 2, 2024, 6:29pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-error-when-adding-clarabel-jl-thru-package-manager/112431 "2024-04-02T18:29:08Z")

</div>

I went to add Clarabel.jl thru the package manager and received the following error message ERROR: Unsatisfiable requirements detected for package Clarabel \[61c947e1\]: Clarabel \[61c947e1\] log: ├─possible versions are:…

---

## [Quick way to reinterpret this?](https://discourse.julialang.org/t/quick-way-to-reinterpret-this/112432)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 5:56pm UTC](https://discourse.julialang.org/t/quick-way-to-reinterpret-this/112432 "2024-04-02T17:56:36Z")

</div>

Hello! When reading from a .h5 file, where I have saved some position value as SVector{3,Float64} I get this: julia\> data\["Position"\] 3027-element Vector{@NamedTuple{data::@NamedTuple{1::Float64, 2::Float64, 3::Float64…

---

## [Multiple Worker Processes with Different Numbers of Threads](https://discourse.julialang.org/t/multiple-worker-processes-with-different-numbers-of-threads/112428)

<div class="topic-metadata">

**Author:** [@mikel8](https://discourse.julialang.org/u/mikel8)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 5:02pm UTC](https://discourse.julialang.org/t/multiple-worker-processes-with-different-numbers-of-threads/112428 "2024-04-02T17:02:33Z")

</div>

Hi all, I’m trying to write a program which needs to solve three large problems and about 50 small problems in parallel. I’m planning to create workers for each process, but need 8 threads for the large problems and one…

---

## [Saving and updating in-memory HDF5 files?](https://discourse.julialang.org/t/saving-and-updating-in-memory-hdf5-files/112395)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 4:52pm UTC](https://discourse.julialang.org/t/saving-and-updating-in-memory-hdf5-files/112395 "2024-04-02T16:52:46Z")

</div>

Hello! Reading the documentation of HDF5.jl (Home · HDF5.jl) I see how it is possible to have an in-memory hdf5 file. I was wondering if; Can I update a dataset in an hdf in place? Can I save a copy of the current in-…

---

## [Makie - Reuse axis / Clear plots](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 6\
**Last updated:** [April 2, 2024, 4:31pm UTC](https://discourse.julialang.org/t/makie-reuse-axis-clear-plots/58160 "2024-04-02T16:31:56Z")

</div>

Hello!! Is there a way to clean everything that has been plot into an Axis but keepong the axis? I know of convenient methods to create a new Axis within a given fugure, passing a Dict with parameters in order to set i…

---

## [Problem when assessing parameter identifiability using ODE system built with @mtkbuild](https://discourse.julialang.org/t/problem-when-assessing-parameter-identifiability-using-ode-system-built-with-mtkbuild/112418)

<div class="topic-metadata">

**Author:** [@giro](https://discourse.julialang.org/u/giro)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 3:32pm UTC](https://discourse.julialang.org/t/problem-when-assessing-parameter-identifiability-using-ode-system-built-with-mtkbuild/112418 "2024-04-02T15:32:46Z")

</div>

Hello, I have built several models of protein dynamics with ModelingToolkit.jl (using @mtkmodel and @mtkbuild) and I would like to perform a parameter identifiability assessement with StructuralIdentifiability.jl. But …

---

## [How to log with ETW in Julia](https://discourse.julialang.org/t/how-to-log-with-etw-in-julia/112420)

<div class="topic-metadata">

**Author:** [@SunnyUser](https://discourse.julialang.org/u/SunnyUser)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 3:11pm UTC](https://discourse.julialang.org/t/how-to-log-with-etw-in-julia/112420 "2024-04-02T15:11:05Z")

</div>

Hi all :slight\_smile: I need to write some ETW (Event Tracing for Windows) events where the Julia app is the event source (event provider). Is there already a pkg that can do that? Or is there a ccalable lib that I can …

---

## [In search for a Julia analog of an R's package](https://discourse.julialang.org/t/in-search-for-a-julia-analog-of-an-rs-package/112413)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 4\
**Last updated:** [April 2, 2024, 1:31pm UTC](https://discourse.julialang.org/t/in-search-for-a-julia-analog-of-an-rs-package/112413 "2024-04-02T13:31:44Z")

</div>

My question is motivated by the need for a quick Deming regression computation. In R, it is included in the mcr, Method Comparison Regression, package. Alas, my search for a Julia’s alternative wasn’t successful, despit…

---

## [Turing.jl is not working](https://discourse.julialang.org/t/turing-jl-is-not-working/112410)

<div class="topic-metadata">

**Author:** [@Sourish](https://discourse.julialang.org/u/Sourish)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 1:10pm UTC](https://discourse.julialang.org/t/turing-jl-is-not-working/112410 "2024-04-02T13:10:43Z")

</div>

I worked with Turing.jl and it worked nicely. But currently, it has stopped working. Even for a simple toy example from Turing website like # Import packages. using Turing using StatsPlots # Define a simple Normal mode…

---

## [Infinite Loop Issue with HiGHS Solver in Julia-JuMP During Sensitivity Analysis](https://discourse.julialang.org/t/infinite-loop-issue-with-highs-solver-in-julia-jump-during-sensitivity-analysis/110470)

<div class="topic-metadata">

**Author:** [@vicente\_zehnder](https://discourse.julialang.org/u/vicente_zehnder)\
**Replies:** 16\
**Last updated:** [April 2, 2024, 12:10pm UTC](https://discourse.julialang.org/t/infinite-loop-issue-with-highs-solver-in-julia-jump-during-sensitivity-analysis/110470 "2024-04-02T12:10:54Z")

</div>

I’m encountering a problem while running a sensitivity analysis for an optimization problem in Julia using JuMP and the HiGHS solver. Initially, the model execution time varies between 5 to 20 minutes for different input…

---

## [Disable the Discourse chat](https://discourse.julialang.org/t/disable-the-discourse-chat/112398)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 7\
**Last updated:** [April 2, 2024, 12:09pm UTC](https://discourse.julialang.org/t/disable-the-discourse-chat/112398 "2024-04-02T12:09:12Z")

</div>

This Julia Discourse appears to have a chat (Channels / general at the bottom of the side-bar). Sending messages to that chat seems to notify everyone, which is a bit intrusive. I think we have plenty of Julia chat opti…

---

## [Dataframe recalculation and plot](https://discourse.julialang.org/t/dataframe-recalculation-and-plot/112412)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 11:11am UTC](https://discourse.julialang.org/t/dataframe-recalculation-and-plot/112412 "2024-04-02T11:11:24Z")

</div>

using XLSX, DataFrames, PlotlyJS, Dates, Statistics df = coalesce.(DataFrame(XLSX.readtable("台湾.xlsx","财政税收")), 0.0) # coalesce将missing替换为浮点数0.0 ########### # 各项税收 ########### scatter\_data = GenericTrace{Dict{Symbol,…

---

## [How can I use NonlinearSolve.jl with matrix functions?](https://discourse.julialang.org/t/how-can-i-use-nonlinearsolve-jl-with-matrix-functions/112379)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 8\
**Last updated:** [April 2, 2024, 11:06am UTC](https://discourse.julialang.org/t/how-can-i-use-nonlinearsolve-jl-with-matrix-functions/112379 "2024-04-02T11:06:52Z")

</div>

I want to use NonlinearSolve.jl with matrix functions, something like: using NonlinearSolve using LinearAlgebra dim = 2 function f(u, p) return exp(u) - Matrix{Float64}(I(dim)) end u0 = rand(dim, dim) \* 0.01 p = n…

---

## [ANN: DynamicGrids.jl](https://discourse.julialang.org/t/ann-dynamicgrids-jl/44396)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 13\
**Last updated:** [April 2, 2024, 11:00am UTC](https://discourse.julialang.org/t/ann-dynamicgrids-jl/44396 "2024-04-02T11:00:30Z")

</div>

It’s been a long time coming, but finally it’s time to announce DynamicGrids.jl - a high performance grid-based modelling framework. It’s been developed at cesar for use in our ecological dispersal modelling, but it shou…

---

## [Does norm() allocate?](https://discourse.julialang.org/t/does-norm-allocate/112407)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 9:51am UTC](https://discourse.julialang.org/t/does-norm-allocate/112407 "2024-04-02T09:51:46Z")

</div>

I have the following code: using KiteModels, StaticArrays, LinearAlgebra, BenchmarkTools function test(vec) KiteModels.norm(vec) end vec=MVector{3}(\[1.0,2,3\]) test(vec) bytes=@allocated test(vec) println("Allocate …

---

## [Indexable set data structure](https://discourse.julialang.org/t/indexable-set-data-structure/112287)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 8\
**Last updated:** [April 2, 2024, 9:25am UTC](https://discourse.julialang.org/t/indexable-set-data-structure/112287 "2024-04-02T09:25:12Z")

</div>

I’m looking for a data structure that I’m sure must have already been invented and implemented, but which I can’t find (probably because I don’t know its canonical name). The data structure I have in mind shares some pr…

---

## [SDDP with Quasi Monte Carlo sampling](https://discourse.julialang.org/t/sddp-with-quasi-monte-carlo-sampling/112370)

<div class="topic-metadata">

**Author:** [@FelixSchmidt](https://discourse.julialang.org/u/FelixSchmidt)\
**Replies:** 2\
**Last updated:** [April 2, 2024, 9:03am UTC](https://discourse.julialang.org/t/sddp-with-quasi-monte-carlo-sampling/112370 "2024-04-02T09:03:31Z")

</div>

Hi Oscar (@odow), I am working on a SDDP implementation of a capacity expansion problem using SDDP.jl. I suspect that convergence could be improved by using a type of stratified sampling scheme in the forward pass, such…

---

## [Resolving Almost Optimal solution in Clarabel (Tulip does well)](https://discourse.julialang.org/t/resolving-almost-optimal-solution-in-clarabel-tulip-does-well/112319)

<div class="topic-metadata">

**Author:** [@J\_T](https://discourse.julialang.org/u/J_T)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 8:32am UTC](https://discourse.julialang.org/t/resolving-almost-optimal-solution-in-clarabel-tulip-does-well/112319 "2024-04-02T08:32:18Z")

</div>

I have a (for the moment) linear minimisation problem, but there is a related non-linear problem I wish to solve. Its a branch and bound problem, and the range of values is quite plausibly going to cause numerical probl…

---

## [Render LaTeX left aligned](https://discourse.julialang.org/t/render-latex-left-aligned/112251)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 7\
**Last updated:** [April 2, 2024, 7:47am UTC](https://discourse.julialang.org/t/render-latex-left-aligned/112251 "2024-04-02T07:47:20Z")

</div>

Is there a way I can get the LaTeX to render as left aligned instead of at the center of the page in Pluto?

---

## [Can \`π\` be used as a general variable name?](https://discourse.julialang.org/t/can-be-used-as-a-general-variable-name/112400)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 5\
**Last updated:** [April 2, 2024, 7:02am UTC](https://discourse.julialang.org/t/can-be-used-as-a-general-variable-name/112400 "2024-04-02T07:02:19Z")

</div>

julia\> π = 1 ERROR: cannot assign a value to imported variable MathConstants.π from module Main I know π is the circular constant, but is it always a reserved variable in Julia? Can I borrow it temporarily?

---

## [Lazy vcat of matrices just before multiplication](https://discourse.julialang.org/t/lazy-vcat-of-matrices-just-before-multiplication/112387)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [April 2, 2024, 5:16am UTC](https://discourse.julialang.org/t/lazy-vcat-of-matrices-just-before-multiplication/112387 "2024-04-02T05:16:11Z")

</div>

Dear All, I am implementing neural network for hyper-multigraph (this is not a joke, the graph has multiple types of edges of arities higher than 3). This is “fairly” straightforward extension of the Mill.jl framework. …

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

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