# Latest

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

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

**Page:** 587

---

## [This month in Julia world - 2023-09](https://discourse.julialang.org/t/this-month-in-julia-world-2023-09/104375)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 6\
**Last updated:** [October 1, 2023, 2:16pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2023-09/104375 "2023-10-01T14:16:35Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Internals” Fora …

---

## [DataframesMeta track row number](https://discourse.julialang.org/t/dataframesmeta-track-row-number/104441)

<div class="topic-metadata">

**Author:** [@vtomar](https://discourse.julialang.org/u/vtomar)\
**Replies:** 2\
**Last updated:** [October 1, 2023, 1:31pm UTC](https://discourse.julialang.org/t/dataframesmeta-track-row-number/104441 "2023-10-01T13:31:42Z")

</div>

When using each row, you can track row number as shown below for (i, row) in enumerate( eachrow( test\_df ) ) # do something with row and i end but how do I track the row number in each iteration when using DataF…

---

## [Build Julia on NixOS](https://discourse.julialang.org/t/build-julia-on-nixos/35129)

<div class="topic-metadata">

**Author:** [@RCHG](https://discourse.julialang.org/u/RCHG)\
**Replies:** 74\
**Last updated:** [October 1, 2023, 1:00pm UTC](https://discourse.julialang.org/t/build-julia-on-nixos/35129 "2023-10-01T13:00:42Z")

</div>

Hello! Here I would like to create a topic about the use of Julia on NixOS, and open the contact with other Julia users under NixOS or those using the Nix package manager. First, just a short introduction about why the …

---

## [Replace all values greater than 1 in a DataFrame with 1](https://discourse.julialang.org/t/replace-all-values-greater-than-1-in-a-dataframe-with-1/104397)

<div class="topic-metadata">

**Author:** [@aadam](https://discourse.julialang.org/u/aadam)\
**Replies:** 10\
**Last updated:** [October 1, 2023, 12:40pm UTC](https://discourse.julialang.org/t/replace-all-values-greater-than-1-in-a-dataframe-with-1/104397 "2023-10-01T12:40:10Z")

</div>

What’s the most idiomatic way of achieving this in Julia? Can this be done as a one-liner? Something like this: df\[df.\> 0\] .= 1

---

## [Calculate partition columns with multiply /divide](https://discourse.julialang.org/t/calculate-partition-columns-with-multiply-divide/104436)

<div class="topic-metadata">

**Author:** [@edas](https://discourse.julialang.org/u/edas)\
**Replies:** 3\
**Last updated:** [October 1, 2023, 12:31pm UTC](https://discourse.julialang.org/t/calculate-partition-columns-with-multiply-divide/104436 "2023-10-01T12:31:25Z")

</div>

Hi, I want to partition dataframe and then combine to find multiples or divisions of columns in partition. My example such: to calculate area sums (column square), price sums and get price per square. I was unable to…

---

## [\[ANN\] Stranbo.jl - when time series get strange](https://discourse.julialang.org/t/ann-stranbo-jl-when-time-series-get-strange/104458)

<div class="topic-metadata">

**Author:** [@gvdr](https://discourse.julialang.org/u/gvdr)\
**Replies:** 4\
**Last updated:** [October 1, 2023, 10:04am UTC](https://discourse.julialang.org/t/ann-stranbo-jl-when-time-series-get-strange/104458 "2023-10-01T10:04:49Z")

</div>

Stranbo.jl I’m writing a little package for time series simulations. It’s one of those packages that does just ONE thing: simulate time series, possibly complicated ones, and possibly with anomalies. It’s still in earl…

---

## [REPL nested index completion](https://discourse.julialang.org/t/repl-nested-index-completion/104420)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 4\
**Last updated:** [October 1, 2023, 9:49am UTC](https://discourse.julialang.org/t/repl-nested-index-completion/104420 "2023-10-01T09:49:58Z")

</div>

I am working with deeply nested structs, that I would like to navigate like a Dict. Got it working thanks to suggestions from this thread, but it only goes one level deep. This is true even if these are plain nested Dic…

---

## [Using varinfo() very slow when there is 3d data in the struct structure](https://discourse.julialang.org/t/using-varinfo-very-slow-when-there-is-3d-data-in-the-struct-structure/104454)

<div class="topic-metadata">

**Author:** [@13299118606](https://discourse.julialang.org/u/13299118606)\
**Replies:** 0\
**Last updated:** [October 1, 2023, 7:34am UTC](https://discourse.julialang.org/t/using-varinfo-very-slow-when-there-is-3d-data-in-the-struct-structure/104454 "2023-10-01T07:34:23Z")

</div>

There is a bug in using varinfo when there is three-dimensional data in the struct structure. When there is 3d data inside the structure, it will greatly slow down the corresponding response speed when using varinfo. The…

---

## [Different structs with the same properties](https://discourse.julialang.org/t/different-structs-with-the-same-properties/104417)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 3\
**Last updated:** [October 1, 2023, 8:01am UTC](https://discourse.julialang.org/t/different-structs-with-the-same-properties/104417 "2023-10-01T08:01:08Z")

</div>

I have two .jld2 files. I loaded structs from the above files, which have the same properties but they are regarded as different objects as follows: julia\> for prop in \[fieldnames(typeof(a))..., fieldnames(typeof(b))..…

---

## [How to call the original Base.show function extended in DataFrames.jl while overriding it?](https://discourse.julialang.org/t/how-to-call-the-original-base-show-function-extended-in-dataframes-jl-while-overriding-it/104437)

<div class="topic-metadata">

**Author:** [@raythurnevoid](https://discourse.julialang.org/u/raythurnevoid)\
**Replies:** 3\
**Last updated:** [October 1, 2023, 3:52am UTC](https://discourse.julialang.org/t/how-to-call-the-original-base-show-function-extended-in-dataframes-jl-while-overriding-it/104437 "2023-10-01T03:52:55Z")

</div>

I’m using the DataFrames.jl package and I want to change the default behavior of show(), I want to print all the rows and columns without passing additional arguments because I want it to work seamlessly while calling di…

---

## [How to make GLMakie observables work](https://discourse.julialang.org/t/how-to-make-glmakie-observables-work/104445)

<div class="topic-metadata">

**Author:** [@ollie\_d](https://discourse.julialang.org/u/ollie_d)\
**Replies:** 1\
**Last updated:** [October 1, 2023, 3:44am UTC](https://discourse.julialang.org/t/how-to-make-glmakie-observables-work/104445 "2023-10-01T03:44:11Z")

</div>

Still really struggling to get anything done with glmakie using GLMakie points = Observable(Point2f) push!(points, Point2f(1.0,1.0)) fig = Figure() ax = Axis(fig\[1,1\]) scatter(points, markersize = 40) push!(points,…

---

## [Float construction function is lossy](https://discourse.julialang.org/t/float-construction-function-is-lossy/104415)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 6\
**Last updated:** [September 30, 2023, 11:14pm UTC](https://discourse.julialang.org/t/float-construction-function-is-lossy/104415 "2023-09-30T23:14:21Z")

</div>

julia\> let x = 2^53 + 1 Int(float(x)) - x end -1 How do we feel about float(x) being lossy? That behavior is not documented. I’m wondering if it should throw an error.

---

## [\`range\` of \`DateTime\`s](https://discourse.julialang.org/t/range-of-datetime-s/29060)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 13\
**Last updated:** [September 30, 2023, 6:05pm UTC](https://discourse.julialang.org/t/range-of-datetime-s/29060 "2023-09-30T18:05:25Z")

</div>

I want to create a uniformly-spaced range of DateTime values with e.g. 100 points between two given values. range function doesn’t work for me: range(DateTime(2000, 1, 1, 0, 0), DateTime(2000, 1, 2, 0, 0), length=100) gi…

---

## [Make Julia’s Error Codes Even Better Than Elm’s](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409)

<div class="topic-metadata">

**Author:** [@NickW3101](https://discourse.julialang.org/u/NickW3101)\
**Replies:** 61\
**Last updated:** [September 30, 2023, 5:21pm UTC](https://discourse.julialang.org/t/make-julia-s-error-codes-even-better-than-elm-s/87409 "2023-09-30T17:21:59Z")

</div>

Extremely user friendly and helpful for new users

---

## [Tool for composable circuit simulation?](https://discourse.julialang.org/t/tool-for-composable-circuit-simulation/103449)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 28\
**Last updated:** [September 30, 2023, 4:10pm UTC](https://discourse.julialang.org/t/tool-for-composable-circuit-simulation/103449 "2023-09-30T16:10:14Z")

</div>

I’m looking for a (free) tool to do some rather basic electrical circuit simulations describing a unit with a couple of current sources, a couple of resistors, switches and some external connections. Having that I would …

---

## [REPL copy/paste resulting in UndefVarError 'julia' not defined](https://discourse.julialang.org/t/repl-copy-paste-resulting-in-undefvarerror-julia-not-defined/104418)

<div class="topic-metadata">

**Author:** [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)\
**Replies:** 2\
**Last updated:** [September 30, 2023, 1:18pm UTC](https://discourse.julialang.org/t/repl-copy-paste-resulting-in-undefvarerror-julia-not-defined/104418 "2023-09-30T13:18:10Z")

</div>

Copying and pasting julia code from documentation or help mode resulting in UndefVarError ‘julia’ not defined. Specifically I copied this line of code from help mode for the filter function: julia\> map(filter(iseven),…

---

## [\[ANN\] QML.jl v0.8](https://discourse.julialang.org/t/ann-qml-jl-v0-8/104328)

<div class="topic-metadata">

**Author:** [@barche](https://discourse.julialang.org/u/barche)\
**Replies:** 14\
**Last updated:** [September 28, 2023, 4:53pm UTC](https://discourse.julialang.org/t/ann-qml-jl-v0-8/104328 "2023-09-28T16:53:46Z")

</div>

Hi all, After a too long delay, there is finally a significant new version of QML.jl, the package wrapping the Qt QML GUI toolkit. Highlights are: Switch to Qt 6 New JuliaItemModel that is compatible with QML TableVie…

---

## [DtLessThanMin while err estimate = 1.65e-10](https://discourse.julialang.org/t/dtlessthanmin-while-err-estimate-1-65e-10/104120)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 2\
**Last updated:** [September 30, 2023, 1:35am UTC](https://discourse.julialang.org/t/dtlessthanmin-while-err-estimate-1-65e-10/104120 "2023-09-30T01:35:15Z")

</div>

I was troubleshooting a mass-matrix ODE model for nonconvergence due to DtLessThanMin. It turns out that, with a set of properly initialized nonlinear algebraic equations (i.e., the mass matrix is all zero), OrdinaryDif…

---

## [Distribute obfuscated code with a REPL](https://discourse.julialang.org/t/distribute-obfuscated-code-with-a-repl/104382)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 3\
**Last updated:** [September 29, 2023, 10:55pm UTC](https://discourse.julialang.org/t/distribute-obfuscated-code-with-a-repl/104382 "2023-09-29T22:55:33Z")

</div>

I have written a program that is well suited to be run in the REPL. I want to distribute it without making the code available. What are my options? It is OK if it means some REPL functions won’t work. I realize it’s prob…

---

## [Unexpected behavior when assigning value to variable compared to using the value itself](https://discourse.julialang.org/t/unexpected-behavior-when-assigning-value-to-variable-compared-to-using-the-value-itself/104414)

<div class="topic-metadata">

**Author:** [@Michael\_Hess](https://discourse.julialang.org/u/Michael_Hess)\
**Replies:** 1\
**Last updated:** [September 29, 2023, 10:26pm UTC](https://discourse.julialang.org/t/unexpected-behavior-when-assigning-value-to-variable-compared-to-using-the-value-itself/104414 "2023-09-29T22:26:32Z")

</div>

Hello, I am still pretty new to Julia, so I’m sure this is a silly question, but I am having a hard time searching for an explanation. I am seeing some strange behavior I was hoping someone could clarify for me. Essent…

---

## [Problems with implementing a basic DeepAR algorithm in Julia](https://discourse.julialang.org/t/problems-with-implementing-a-basic-deepar-algorithm-in-julia/104405)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 2\
**Last updated:** [September 29, 2023, 9:34pm UTC](https://discourse.julialang.org/t/problems-with-implementing-a-basic-deepar-algorithm-in-julia/104405 "2023-09-29T21:34:59Z")

</div>

I am trying to implement a basic DeepAR that serves as a baseline to compare with other time series forecasting algorithms. However, when testing the following code, it seems that the code does not learn well an example …

---

## [ANN: COPIERTemplate.jl](https://discourse.julialang.org/t/ann-copiertemplate-jl/104412)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 8:03pm UTC](https://discourse.julialang.org/t/ann-copiertemplate-jl/104412 "2023-09-29T20:03:06Z")

</div>

I am happy to announce COPIERTemplate.jl A template using copier, a python package that renders project templates; and A Julia package created with said template, wrapping the copier Python package. I chose copier bec…

---

## [How to set std value as objective?](https://discourse.julialang.org/t/how-to-set-std-value-as-objective/104304)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 7\
**Last updated:** [September 29, 2023, 7:56pm UTC](https://discourse.julialang.org/t/how-to-set-std-value-as-objective/104304 "2023-09-29T19:56:21Z")

</div>

function solution() model = Model(Gurobi.Optimizer);set\_silent(model) @variable(model,x\[1:3000,1:125\],Bin) @constraint(model,\[i=1:3000\],sum(x\[i,:\]) == 5) @constraint(model,\[i=1:125\],sum(x\[:,i\]) == 120) …

---

## [Confused by behavior when changing ENV\["PYTHONPATH"\] in new module](https://discourse.julialang.org/t/confused-by-behavior-when-changing-env-pythonpath-in-new-module/104408)

<div class="topic-metadata">

**Author:** [@mgalenb](https://discourse.julialang.org/u/mgalenb)\
**Replies:** 0\
**Last updated:** [September 29, 2023, 6:48pm UTC](https://discourse.julialang.org/t/confused-by-behavior-when-changing-env-pythonpath-in-new-module/104408 "2023-09-29T18:48:01Z")

</div>

I am making a module (which has a local python env installed) and I am trying to add a path to ENV\[“PYTHONPATH”\] and then import a module I am hacking in module Test ENV\["PYTHONPATH"\]=joinpath(dirname(@\_\_FILE\_\_), "pyth…

---

## [Restrictions on isbits type paremeter](https://discourse.julialang.org/t/restrictions-on-isbits-type-paremeter/104369)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 4\
**Last updated:** [September 29, 2023, 6:14pm UTC](https://discourse.julialang.org/t/restrictions-on-isbits-type-paremeter/104369 "2023-09-29T18:14:00Z")

</div>

In functions, you can put restrictions on the types of arguments like so: function f(a::Array{T, 3}) where {T\<:Real} \[ Function Body ...\] end Can you do something similar for type parameters that are not types, but…

---

## [Issues with foreign threads calling back Julia and GC](https://discourse.julialang.org/t/issues-with-foreign-threads-calling-back-julia-and-gc/104384)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 11\
**Last updated:** [September 29, 2023, 6:06pm UTC](https://discourse.julialang.org/t/issues-with-foreign-threads-calling-back-julia-and-gc/104384 "2023-09-29T18:06:31Z")

</div>

In the Geant4.jl project I am wrapping a large C++ library that supports multi-threading for tracking particles through matter. I have found an almost working solution by disabling the GC, but if the run is very long, …

---

## [ModelingToolkitStandardLibrary SampledData Component](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-sampleddata-component/104401)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 3\
**Last updated:** [September 29, 2023, 5:54pm UTC](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-sampleddata-component/104401 "2023-09-29T17:54:05Z")

</div>

I’ve been trying to understand how to use the SampledData component from ModelingToolkitStandardLibrary, but I’ve been having trouble getting the example from documentation working. I’ve modified the code from the exampl…

---

## [How to use TLS client certificates with HTTP.jl](https://discourse.julialang.org/t/how-to-use-tls-client-certificates-with-http-jl/40643)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 3\
**Last updated:** [September 29, 2023, 4:17pm UTC](https://discourse.julialang.org/t/how-to-use-tls-client-certificates-with-http-jl/40643 "2023-09-29T16:17:51Z")

</div>

How do I connect to a HTTPS server that requires client certificates using HTTP.jl? I can do this with LibCURL.jl with the following options: curl\_easy\_setopt(curl, CURLOPT\_SSL\_VERIFYPEER, 1) # Verify the peer's …

---

## [Is there any plot package that is "relocatable"?](https://discourse.julialang.org/t/is-there-any-plot-package-that-is-relocatable/38699)

<div class="topic-metadata">

**Author:** [@dact](https://discourse.julialang.org/u/dact)\
**Replies:** 12\
**Last updated:** [September 29, 2023, 3:58pm UTC](https://discourse.julialang.org/t/is-there-any-plot-package-that-is-relocatable/38699 "2023-09-29T15:58:49Z")

</div>

I’m trying to compile a simple app that depends on Plots.jl and the GR backend using PackageCompiler.jl. I get warnings about Plots and GR being not relocatable. If I ignore the warnings, indeed the app doesn’t run in my…

---

## [Is there a good reason to have an LTS version of Julia?](https://discourse.julialang.org/t/is-there-a-good-reason-to-have-an-lts-version-of-julia/104179)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 22\
**Last updated:** [September 29, 2023, 3:29pm UTC](https://discourse.julialang.org/t/is-there-a-good-reason-to-have-an-lts-version-of-julia/104179 "2023-09-29T15:29:01Z")

</div>

Hi! I was wondering what is the purpose of an LTS version of Julia today? I understand that close to 1.0 release, an LTS version would be important because the language was changing very fast. However, given that relea…

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

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