# Latest

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

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

**Page:** 196

---

## [Plots.jl ylim and yflip don't work together as expected](https://discourse.julialang.org/t/plots-jl-ylim-and-yflip-dont-work-together-as-expected/127394)

<div class="topic-metadata">

**Author:** [@ayushinav](https://discourse.julialang.org/u/ayushinav)\
**Replies:** 0\
**Last updated:** [March 27, 2025, 12:03am UTC](https://discourse.julialang.org/t/plots-jl-ylim-and-yflip-dont-work-together-as-expected/127394 "2025-03-27T00:03:39Z")

</div>

On Julia 1.11.4, Plots v1.40.11 MWE : using Plots xs = Float64\[1,2,3,4\] ys = Float64\[1,2,3,4,5,6,7,8\] zs = xs'./10 .+ ys p1 = heatmap(xs, ys, zs, title = "original") p2 = heatmap(xs, ys, zs, ylims = (2,4), title = "yl…

---

## [Inconsistency in \`accumulate\` between \`Array\` and \`CuArray.\`](https://discourse.julialang.org/t/inconsistency-in-accumulate-between-array-and-cuarray/127382)

<div class="topic-metadata">

**Author:** [@0samuraiE](https://discourse.julialang.org/u/0samuraiE)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 11:58pm UTC](https://discourse.julialang.org/t/inconsistency-in-accumulate-between-array-and-cuarray/127382 "2025-03-26T23:58:38Z")

</div>

Hi all. I’m performing the following computation using GPUArrays: julia\> using GPUArrays julia\> src = CuArray(rand(0:9, 10)) 10-element CuArray{Int64, 1, CUDA.DeviceMemory}: 3 4 3 7 3 9 7 2 9 6 julia\> dst =…

---

## [Getting JuMP model variables and containers in order of creation](https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245)

<div class="topic-metadata">

**Author:** [@brunompacheco](https://discourse.julialang.org/u/brunompacheco)\
**Replies:** 9\
**Last updated:** [March 26, 2025, 10:20pm UTC](https://discourse.julialang.org/t/getting-jump-model-variables-and-containers-in-order-of-creation/127245 "2025-03-26T22:20:28Z")

</div>

Hi! I want to get all variables in my model organized in containers, whenever possible. I am currently using object\_dictionary for that, which seems quite satisfactory, but the order does not follow the creation order, …

---

## [User defined operator in JuMP when one of the arguments is data](https://discourse.julialang.org/t/user-defined-operator-in-jump-when-one-of-the-arguments-is-data/127200)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 5\
**Last updated:** [March 26, 2025, 9:50pm UTC](https://discourse.julialang.org/t/user-defined-operator-in-jump-when-one-of-the-arguments-is-data/127200 "2025-03-26T21:50:04Z")

</div>

Hi there, I need to solve for a MLE problem where the likelihood function I defined reads in an Array{Obs{Float64}} where Obs{Float64} is an immutable struct containing a bunch of numbers. Since my problem involves a c…

---

## [Von mises stress](https://discourse.julialang.org/t/von-mises-stress/127393)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 0\
**Last updated:** [March 26, 2025, 9:34pm UTC](https://discourse.julialang.org/t/von-mises-stress/127393 "2025-03-26T21:34:55Z")

</div>

Hi, I am using gridap in julia to find the vonMises stress. As it is for topology optimization I penalized the E for material distribution. It is working correctly when I have unifor material distribution but it is not s…

---

## [\[ANN\] UnitfulTensors.jl: Efficient arrays with units](https://discourse.julialang.org/t/ann-unitfultensors-jl-efficient-arrays-with-units/114028)

<div class="topic-metadata">

**Author:** [@anonymous\_shrew](https://discourse.julialang.org/u/anonymous_shrew)\
**Replies:** 17\
**Last updated:** [March 26, 2025, 7:17pm UTC](https://discourse.julialang.org/t/ann-unitfultensors-jl-efficient-arrays-with-units/114028 "2025-03-26T19:17:25Z")

</div>

Hello everyone! I wrote a package UnitfulTensors.jl for working efficiently with arrays of physical quantities. It implements most of the LinearAlgebra functionality, but with physical units (including arrays with mixe…

---

## [A matter of taste](https://discourse.julialang.org/t/a-matter-of-taste/127334)

<div class="topic-metadata">

**Author:** [@Soel](https://discourse.julialang.org/u/Soel)\
**Replies:** 18\
**Last updated:** [March 26, 2025, 3:27pm UTC](https://discourse.julialang.org/t/a-matter-of-taste/127334 "2025-03-26T15:27:32Z")

</div>

Hello dears, Would you please review the herebelow piece of code w.r.t the style, the way of doing things, performance-wise if possible… not necessarily task specific, but as a Julia programmer in general, how do you f…

---

## [CartesianIndex to an integer vector](https://discourse.julialang.org/t/cartesianindex-to-an-integer-vector/127338)

<div class="topic-metadata">

**Author:** [@seismobassoon](https://discourse.julialang.org/u/seismobassoon)\
**Replies:** 7\
**Last updated:** [March 26, 2025, 2:11pm UTC](https://discourse.julialang.org/t/cartesianindex-to-an-integer-vector/127338 "2025-03-26T14:11:06Z")

</div>

I have a simple question, rather esthetic than essential: I need to use CartesianIndex as an integer vector. The code below does work with “collect+Tuple” but collect, Vector alone did not. Do you have any idea? julia\> …

---

## [\[ANN\] LightSumTypes.jl v4](https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 33\
**Last updated:** [March 26, 2025, 1:59pm UTC](https://discourse.julialang.org/t/ann-lightsumtypes-jl-v4/116741 "2025-03-26T13:59:32Z")

</div>

Hi all, I’d like to share with you that version 3 of DynamicSumTypes.jl is now out! The package allows to enclose multiple types into one with the @sumtype macro and it is almost like working with a Union of types, but …

---

## [Modeling Toolkit (v8.76) - Change parameters by reference with remake](https://discourse.julialang.org/t/modeling-toolkit-v8-76-change-parameters-by-reference-with-remake/127350)

<div class="topic-metadata">

**Author:** [@Bill\_Holmes](https://discourse.julialang.org/u/Bill_Holmes)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 1:53pm UTC](https://discourse.julialang.org/t/modeling-toolkit-v8-76-change-parameters-by-reference-with-remake/127350 "2025-03-26T13:53:57Z")

</div>

Hello all. I have a question about using remake on an ODEproblem constructed using modeling toolkit (MTK). I’ll note that I’m using MTK v8.76.0. I am aware that v9 introduces new structure referencing (Frequently Asked Q…

---

## [How to install DSDP.jl](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033)

<div class="topic-metadata">

**Author:** [@tdp](https://discourse.julialang.org/u/tdp)\
**Replies:** 3\
**Last updated:** [March 26, 2025, 1:30pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033 "2025-03-26T13:30:47Z")

</div>

Hi, When trying to install DSDP.jl using the command below, I get the error below about incompatible versions for MathOptInterface. How would I resolve this? I have version 0.99 of MathOptInterface and version 1.3.0 of…

---

## [\[ANN\] (Belatedly) Announcing Tidier.jl](https://discourse.julialang.org/t/ann-belatedly-announcing-tidier-jl/109222)

<div class="topic-metadata">

**Author:** [@kdpsingh](https://discourse.julialang.org/u/kdpsingh)\
**Replies:** 26\
**Last updated:** [March 26, 2025, 12:52pm UTC](https://discourse.julialang.org/t/ann-belatedly-announcing-tidier-jl/109222 "2025-03-26T12:52:59Z")

</div>

With the 1-year anniversary of Tidier.jl coming up soon, I wanted to put together an official (if slightly belated) package announcement describing Tidier.jl to invite you to give it a try. Tidier.jl originally began as…

---

## [Redirecting stdout only redirects part of the output](https://discourse.julialang.org/t/redirecting-stdout-only-redirects-part-of-the-output/127379)

<div class="topic-metadata">

**Author:** [@MarcMiranda](https://discourse.julialang.org/u/MarcMiranda)\
**Replies:** 3\
**Last updated:** [March 26, 2025, 12:35pm UTC](https://discourse.julialang.org/t/redirecting-stdout-only-redirects-part-of-the-output/127379 "2025-03-26T12:35:03Z")

</div>

Good morning, I am using redirect\_stdout to redirect the ouput to a file “log.log”. However, only the part of printed statements using println() are being printed. However, a library I am importing uses display() and the…

---

## [Makie Visualization for Planetary Simulation for High School Students](https://discourse.julialang.org/t/makie-visualization-for-planetary-simulation-for-high-school-students/126811)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 8\
**Last updated:** [March 26, 2025, 12:31pm UTC](https://discourse.julialang.org/t/makie-visualization-for-planetary-simulation-for-high-school-students/126811 "2025-03-26T12:31:58Z")

</div>

Hi, I am going to teach some simple orbital dynamics to high school students in summer. The students are going to implement the gravitational forces and some sort of time integration (simple explicit or implicit euler)…

---

## [JuliaCon Local Paris 2025 - call for proposals open!](https://discourse.julialang.org/t/juliacon-local-paris-2025-call-for-proposals-open/127367)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 0\
**Last updated:** [March 26, 2025, 8:16am UTC](https://discourse.julialang.org/t/juliacon-local-paris-2025-call-for-proposals-open/127367 "2025-03-26T08:16:45Z")

</div>

Hi everyone, In case you missed it, there are not one, but two JuliaCon conferences happening this year :partying\_face: The global event in Pittsburgh, and a local event in… Paris! You can find all of the information o…

---

## [Module names in module namespaces](https://discourse.julialang.org/t/module-names-in-module-namespaces/127365)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 2\
**Last updated:** [March 26, 2025, 7:13am UTC](https://discourse.julialang.org/t/module-names-in-module-namespaces/127365 "2025-03-26T07:13:47Z")

</div>

Do I grasp correctly that a module’s name is contained in its own namespace?

---

## [ISO8601 year week formatting](https://discourse.julialang.org/t/iso8601-year-week-formatting/127065)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 4\
**Last updated:** [March 26, 2025, 4:20am UTC](https://discourse.julialang.org/t/iso8601-year-week-formatting/127065 "2025-03-26T04:20:43Z")

</div>

Hello All This seems like it should be a very common situation, but I cannot seem to find a standard function in Dates to return the ISO 8601 Year and Week in Julia? The week number is correct, but It doesn’t seem to r…

---

## [Can anyone improve this macro?](https://discourse.julialang.org/t/can-anyone-improve-this-macro/127359)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 3\
**Last updated:** [March 26, 2025, 4:05am UTC](https://discourse.julialang.org/t/can-anyone-improve-this-macro/127359 "2025-03-26T04:05:37Z")

</div>

I have written the following macro: using Logging """ @no\_logging(code\_to\_execute) Execute \`code\_to\_execute\` sending all logging to the \[\`Logging.NullLogger\`\](@ref). """ macro no\_logging(code) return :( with\_…

---

## [HTCondor workflow for "embarrassingly" parallel computations](https://discourse.julialang.org/t/htcondor-workflow-for-embarrassingly-parallel-computations/127314)

<div class="topic-metadata">

**Author:** [@alexdmeyer](https://discourse.julialang.org/u/alexdmeyer)\
**Replies:** 1\
**Last updated:** [March 26, 2025, 12:40am UTC](https://discourse.julialang.org/t/htcondor-workflow-for-embarrassingly-parallel-computations/127314 "2025-03-26T00:40:44Z")

</div>

Hey Julia Community, I’m currently using HTCondor to run batches of jobs on my university’s computing cluster. The problem I’m working on is “embarrassingly” (a.k.a. “pleasingly”) parallel, in that each job does the sam…

---

## [Parallel feeding of a dataframe](https://discourse.julialang.org/t/parallel-feeding-of-a-dataframe/127061)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 17\
**Last updated:** [March 26, 2025, 12:39am UTC](https://discourse.julialang.org/t/parallel-feeding-of-a-dataframe/127061 "2025-03-26T00:39:12Z")

</div>

Hi, this is my problem: I have files of the same type in year folders, e.g.: ./2024/file1.csv ./2024/file2.csv ./2023/file1.csv ./2023/file2.csv etc. I want to fill a dataframe with all this data. I already use read…

---

## [What's your AI programming tool stack?](https://discourse.julialang.org/t/whats-your-ai-programming-tool-stack/113455)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 13\
**Last updated:** [March 26, 2025, 12:38am UTC](https://discourse.julialang.org/t/whats-your-ai-programming-tool-stack/113455 "2025-03-26T00:38:43Z")

</div>

Hey y’all! @tbeason suggested that I put up a little thread asking people about what misc AI tooling they actually use. I mostly just want to understand how people are using these tools in the ecosystem. First – a note …

---

## [Cookiecutter template for Julia](https://discourse.julialang.org/t/cookiecutter-template-for-julia/18361)

<div class="topic-metadata">

**Author:** [@epogrebnyak](https://discourse.julialang.org/u/epogrebnyak)\
**Replies:** 9\
**Last updated:** [March 25, 2025, 8:33pm UTC](https://discourse.julialang.org/t/cookiecutter-template-for-julia/18361 "2025-03-25T20:33:24Z")

</div>

I could be misisng something, but there still seems no cookiecutter template for Julia? There must be a reason for this: cookiecutter does not generate Project.toml and uuid for package, so it has to be used with Pkg.…

---

## [Question on programmatically defining a nonlinear expression involving product and sum](https://discourse.julialang.org/t/question-on-programmatically-defining-a-nonlinear-expression-involving-product-and-sum/127330)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 9\
**Last updated:** [March 25, 2025, 7:12pm UTC](https://discourse.julialang.org/t/question-on-programmatically-defining-a-nonlinear-expression-involving-product-and-sum/127330 "2025-03-25T19:12:58Z")

</div>

I have a n-dimensional vector m, a set of JuMP variables defined by \\{x\_{i,k\_{i}}\\}\_{i\\in\\{1,2,\\ldots,n\\},k\_{i}\\in\\{1,2,\\ldots,m\_{i}\\}}=\\{x\_{1,1},x\_{1,2},\\ldots,x\_{1,m\_{1}},x\_{2,1},x\_{2,2},\\ldots,x\_{2,m\_{2}},\\ldots,x\_{…

---

## [Slower times to TTFX for GMT in 1.11 and even more in nightly](https://discourse.julialang.org/t/slower-times-to-ttfx-for-gmt-in-1-11-and-even-more-in-nightly/126350)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 6\
**Last updated:** [March 25, 2025, 7:08pm UTC](https://discourse.julialang.org/t/slower-times-to-ttfx-for-gmt-in-1-11-and-even-more-in-nightly/126350 "2025-03-25T19:08:39Z")

</div>

Hi, I’ve been delaying this post but not that time to v1.12 release seems to approach I think I should not delay it no more. Since the 1.10 I have notice that building and using has become progressively slower but this…

---

## [BilevelJuMP: Symmetric variables not supported?](https://discourse.julialang.org/t/bileveljump-symmetric-variables-not-supported/127346)

<div class="topic-metadata">

**Author:** [@HSt](https://discourse.julialang.org/u/HSt)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 6:58pm UTC](https://discourse.julialang.org/t/bileveljump-symmetric-variables-not-supported/127346 "2025-03-25T18:58:47Z")

</div>

I’ve build functions to add specific variables and constraints one after another, to modularize model creation. Some of the variables should be symmetric, which is fine in regular JuMP when constrained on creation. How…

---

## [Pkg: Some registries failed to update: and Operation too slow](https://discourse.julialang.org/t/pkg-some-registries-failed-to-update-and-operation-too-slow/127363)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 5:53pm UTC](https://discourse.julialang.org/t/pkg-some-registries-failed-to-update-and-operation-too-slow/127363 "2025-03-25T17:53:04Z")

</div>

I was trying to update my packages in the REPL and was having the download of the General registry fail with an error that the data rate was too slow (less than 1 byte per 20 seconds). Here is a session in the pkg mod…

---

## [Any reason to specify triu()?](https://discourse.julialang.org/t/any-reason-to-specify-triu/127361)

<div class="topic-metadata">

**Author:** [@Huputus](https://discourse.julialang.org/u/Huputus)\
**Replies:** 1\
**Last updated:** [March 25, 2025, 5:46pm UTC](https://discourse.julialang.org/t/any-reason-to-specify-triu/127361 "2025-03-25T17:46:14Z")

</div>

Is there any reason to use triu() when working with upper triangular matrices? Performance-wise, it doesn’t seem to have any impact. Here is sample code: function upper\_triangular\_means(mate) n = size(mate, 1) …

---

## [Unable to run or debug when using VSCode](https://discourse.julialang.org/t/unable-to-run-or-debug-when-using-vscode/127325)

<div class="topic-metadata">

**Author:** [@ThermionicsGuy](https://discourse.julialang.org/u/ThermionicsGuy)\
**Replies:** 2\
**Last updated:** [March 25, 2025, 5:01pm UTC](https://discourse.julialang.org/t/unable-to-run-or-debug-when-using-vscode/127325 "2025-03-25T17:01:51Z")

</div>

Using: Windows 11 Julia 1.11.4 Visual Studio Code 1.98.2 julialang extension 1.127.2 I get an error message whenever I try to run any code from VSCode if it contains a user-defined function. Here’s an example I thre…

---

## [\[ANN\] ZXingCPP.jl - Julia wrapper for the C++ library ZXing-CPP](https://discourse.julialang.org/t/ann-zxingcpp-jl-julia-wrapper-for-the-c-library-zxing-cpp/127358)

<div class="topic-metadata">

**Author:** [@Rakesh](https://discourse.julialang.org/u/Rakesh)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 4:35pm UTC](https://discourse.julialang.org/t/ann-zxingcpp-jl-julia-wrapper-for-the-c-library-zxing-cpp/127358 "2025-03-25T16:35:25Z")

</div>

I am very pleased to announce the ZXingCPP.jl, Julia interface to the popular zxing-cpp barcode library. This package enables easy integration of barcode generation and decoding in julia. Key Features: Simple and intui…

---

## [Integrating over piecewise approxfun](https://discourse.julialang.org/t/integrating-over-piecewise-approxfun/127309)

<div class="topic-metadata">

**Author:** [@nilsbecker](https://discourse.julialang.org/u/nilsbecker)\
**Replies:** 8\
**Last updated:** [March 25, 2025, 4:08pm UTC](https://discourse.julialang.org/t/integrating-over-piecewise-approxfun/127309 "2025-03-25T16:08:26Z")

</div>

Following up on my earlier post, I now have an ApproxFun.jl Fun defined over a piecewise domain: using ApproxFun f\_pw = Fun(x -\> (x \< 1.0 ? exp(x) : 1.), union(Segment(0.,1.), Segment(1.,2.))) f\_pw\_i = integrate(f\_pw) T…

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

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