# Latest

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

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

**Page:** 927

---

## [Dynamical label text using @lift (makie)](https://discourse.julialang.org/t/dynamical-label-text-using-lift-makie/87117)

<div class="topic-metadata">

**Author:** [@Iker96](https://discourse.julialang.org/u/Iker96)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 6:02am UTC](https://discourse.julialang.org/t/dynamical-label-text-using-lift-makie/87117 "2022-09-13T06:02:28Z")

</div>

Hi, I am trying to simulate a football game with Makie. Thereby the score and the time are updated in each step of the animstep!() function. I do not get an error message, but neither the time nor the result is updated. …

---

## [How can I find where a method is called within my code?](https://discourse.julialang.org/t/how-can-i-find-where-a-method-is-called-within-my-code/87121)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 4\
**Last updated:** [September 13, 2022, 6:01am UTC](https://discourse.julialang.org/t/how-can-i-find-where-a-method-is-called-within-my-code/87121 "2022-09-13T06:01:59Z")

</div>

While using Julia’s multiple dispatch feature I built quite a few methods of the same function. For example: function foo(df::DataFrame) ... end function foo(x::Float64) ... end function foo(d::Dict(Symbol,Vector{Flo…

---

## [Pmap timeout](https://discourse.julialang.org/t/pmap-timeout/87187)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 0\
**Last updated:** [September 13, 2022, 5:26am UTC](https://discourse.julialang.org/t/pmap-timeout/87187 "2022-09-13T05:26:18Z")

</div>

I am using pmap for multiprocessing on a single machine. Sometimes a worker hangs and never returns. Is it possible to set a timeout? Alternatively, how can I work around this problem? I see there is JULIA\_WORKER\_TIMEOU…

---

## [About examples in format validation from inmemorydatasets documents](https://discourse.julialang.org/t/about-examples-in-format-validation-from-inmemorydatasets-documents/86640)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 1\
**Last updated:** [September 13, 2022, 4:17am UTC](https://discourse.julialang.org/t/about-examples-in-format-validation-from-inmemorydatasets-documents/86640 "2022-09-13T04:17:16Z")

</div>

Hi, I am relatively new to Julia, I can’t find the example for content inside red lines, can someone please make an example? How to show in Julia that changing the definition of the formats destroys the sorting order of …

---

## [Rank 1 and rank 2 cholesky updates?](https://discourse.julialang.org/t/rank-1-and-rank-2-cholesky-updates/87176)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 2\
**Last updated:** [September 13, 2022, 3:48am UTC](https://discourse.julialang.org/t/rank-1-and-rank-2-cholesky-updates/87176 "2022-09-13T03:48:00Z")

</div>

According to the docs on lowrankupdate!, I can compute the cholesky factor of A + vv' in \\mathcal{O}(n^2) time by updating an existing cholesky factor of A. How would this syntax work if I want the cholesky factor of A …

---

## [Bucket sorting in Julia, with functions](https://discourse.julialang.org/t/bucket-sorting-in-julia-with-functions/87173)

<div class="topic-metadata">

**Author:** [@Alejandro\_Quiaro\_San](https://discourse.julialang.org/u/Alejandro_Quiaro_San)\
**Replies:** 1\
**Last updated:** [September 13, 2022, 2:53am UTC](https://discourse.julialang.org/t/bucket-sorting-in-julia-with-functions/87173 "2022-09-13T02:53:53Z")

</div>

Hello guys, I finished writing a Bucket Sorting package, that supports the following operations: build bucket, update bucket, empty bucket, top\_bucket and search bucket. I am using these codes for ray tracing. It is supp…

---

## [Constant propagation: Irrationals doing much better than Float64](https://discourse.julialang.org/t/constant-propagation-irrationals-doing-much-better-than-float64/87142)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 15\
**Last updated:** [September 13, 2022, 2:10am UTC](https://discourse.julialang.org/t/constant-propagation-irrationals-doing-much-better-than-float64/87142 "2022-09-13T02:10:06Z")

</div>

@oschulz and I have been talking about a deterministic RNG, with the main application being to generate an arbitrary point in the support of a given distribution. Here’s our current implementation: export FixedRNG struc…

---

## [Findn() function not found in Julia](https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 3\
**Last updated:** [September 13, 2022, 2:08am UTC](https://discourse.julialang.org/t/findn-function-not-found-in-julia/87175 "2022-09-13T02:08:57Z")

</div>

I am trying to run the code: ai, aj = findn(triu(NA, 1)) But it throws an error of undefined variable. I don’t know which package has this function. UndefVarError: findn not defined Stacktrace: \[1\] top-level scope …

---

## [max(A, A') gives isless() error](https://discourse.julialang.org/t/max-a-a-gives-isless-error/87165)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 10:24pm UTC](https://discourse.julialang.org/t/max-a-a-gives-isless-error/87165 "2022-09-12T22:24:44Z")

</div>

I am trying to generate a graph G by taking maxof SparseArrays.SparseMatrixCSC{Float64, Int64} and LinearAlgebra.Adjoint{Float64, SparseArrays.SparseMatrixCSC{Float64, Int64}} But it throws me an error when I do G = m…

---

## [Avoiding eval() - struggling with correct macro syntax](https://discourse.julialang.org/t/avoiding-eval-struggling-with-correct-macro-syntax/70665)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 10:05pm UTC](https://discourse.julialang.org/t/avoiding-eval-struggling-with-correct-macro-syntax/70665 "2022-09-12T22:05:25Z")

</div>

I’m again struggling with correct macro syntax. I have a macro that is doing it’s job as required but relies on eval(), which I understand is not ideal. The macro should insert fields of an existing struct into a new st…

---

## [Using local module with @everywhere](https://discourse.julialang.org/t/using-local-module-with-everywhere/87163)

<div class="topic-metadata">

**Author:** [@bojeryd91](https://discourse.julialang.org/u/bojeryd91)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 9:38pm UTC](https://discourse.julialang.org/t/using-local-module-with-everywhere/87163 "2022-09-12T21:38:31Z")

</div>

Hi, my goal is to within one script define a module only once in my local scope, and then read it to all my workers. However, I cannot figure out what to do. This is my MWE: using Distributed module myModule export f f…

---

## [Easy way to send custom function to distributed workers?](https://discourse.julialang.org/t/easy-way-to-send-custom-function-to-distributed-workers/22118)

<div class="topic-metadata">

**Author:** [@nickeubank](https://discourse.julialang.org/u/nickeubank)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 8:35pm UTC](https://discourse.julialang.org/t/easy-way-to-send-custom-function-to-distributed-workers/22118 "2022-09-12T20:35:07Z")

</div>

Is there a way to pass a function to workers? e.g. using Distributed addprocs(4) function my\_func(x) return x ^ 2 end \[send my function to everyone\] pmap(my\_func, 1:100) I recognize I can do something like: @ev…

---

## [How to extract intermediate results from GMRES of Krylov.jl](https://discourse.julialang.org/t/how-to-extract-intermediate-results-from-gmres-of-krylov-jl/87019)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 7\
**Last updated:** [September 12, 2022, 7:10pm UTC](https://discourse.julialang.org/t/how-to-extract-intermediate-results-from-gmres-of-krylov-jl/87019 "2022-09-12T19:10:05Z")

</div>

Hi, I am using gmres from Krylov.jl as follows x,stat=gmres(A,b,itmax=3000,memory=500,history=true) which will return some information about the iteration, e.g., stat.residuals. Is there a way to also return the interm…

---

## [Drawing a circle](https://discourse.julialang.org/t/drawing-a-circle/87154)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 6:34pm UTC](https://discourse.julialang.org/t/drawing-a-circle/87154 "2022-09-12T18:34:08Z")

</div>

Hello. Can anyone please tell me what I’m doing wrong here? I just want to draw a circle at the point (1,2), but I can’t find any circle, ellipse or rectangle drawing commands in Makie. julia\> using GLMakie julia\> funct…

---

## [Cant read any kind of file exclusively in vscode](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063)

<div class="topic-metadata">

**Author:** [@Can\_Atasayar](https://discourse.julialang.org/u/Can_Atasayar)\
**Replies:** 12\
**Last updated:** [September 12, 2022, 6:24pm UTC](https://discourse.julialang.org/t/cant-read-any-kind-of-file-exclusively-in-vscode/87063 "2022-09-12T18:24:19Z")

</div>

hi, my code cant read any kind of file while i am using vscode. i have tried all kinds of files and when i use jupyter notebook, i have no problem like this.

---

## [What do you think about using generated functions for constants?](https://discourse.julialang.org/t/what-do-you-think-about-using-generated-functions-for-constants/87149)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 5:35pm UTC](https://discourse.julialang.org/t/what-do-you-think-about-using-generated-functions-for-constants/87149 "2022-09-12T17:35:16Z")

</div>

Hellow, what do you think about using generated functions for constants like this? @generated get\_const() = :($(\[i for i = 1:100\_000\_000\])) # constant is evaluated when called

---

## [LocalRegistry.jl: is \`master\` branch required?](https://discourse.julialang.org/t/localregistry-jl-is-master-branch-required/87023)

<div class="topic-metadata">

**Author:** [@tuckermcclure](https://discourse.julialang.org/u/tuckermcclure)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 5:23pm UTC](https://discourse.julialang.org/t/localregistry-jl-is-master-branch-required/87023 "2022-09-12T17:23:15Z")

</div>

I decided to try using LocalRegistry.jl for some private packages we have. I created a registry and added one package to it, and that appears to have pushed correctly. However, trying to use it doesn’t appear to be worki…

---

## [\[ANN\] PlutoStyles.jl: override styles of Pluto notebooks](https://discourse.julialang.org/t/ann-plutostyles-jl-override-styles-of-pluto-notebooks/64280)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 38\
**Last updated:** [September 12, 2022, 3:46pm UTC](https://discourse.julialang.org/t/ann-plutostyles-jl-override-styles-of-pluto-notebooks/64280 "2022-09-12T15:46:53Z")

</div>

Alexander Plavin / PlutoStyles.jl · GitLab - a small package adding the ability to override CSS styles of Pluto.jl notebooks. Or any other static Pluto asset, really. As you may be aware of, Pluto.jl doesn’t support the…

---

## [Forcing data points containing one sinusoidal signal to be symetric around zero and multithreading](https://discourse.julialang.org/t/forcing-data-points-containing-one-sinusoidal-signal-to-be-symetric-around-zero-and-multithreading/87139)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 4\
**Last updated:** [September 12, 2022, 3:27pm UTC](https://discourse.julialang.org/t/forcing-data-points-containing-one-sinusoidal-signal-to-be-symetric-around-zero-and-multithreading/87139 "2022-09-12T15:27:49Z")

</div>

Starting point are real world measurements containing one unique sinusoidal signal. For signal processing purposes it might be beneficial to reduce the offset around zero before evaluating the signal either with fft() o…

---

## [3d plots with a matrix](https://discourse.julialang.org/t/3d-plots-with-a-matrix/87006)

<div class="topic-metadata">

**Author:** [@Jayo](https://discourse.julialang.org/u/Jayo)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 2:54pm UTC](https://discourse.julialang.org/t/3d-plots-with-a-matrix/87006 "2022-09-12T14:54:32Z")

</div>

I am either missing an easy solution or trying the impossible. I am attempting to make a 3d plot of a data set I have, two vectors and a matrix. I am running into issues where the data isn’t being indexed correctly, it …

---

## [\[ANN\] Announcing ItPropFit.jl](https://discourse.julialang.org/t/ann-announcing-itpropfit-jl/87143)

<div class="topic-metadata">

**Author:** [@vankesteren](https://discourse.julialang.org/u/vankesteren)\
**Replies:** 2\
**Last updated:** [September 12, 2022, 2:50pm UTC](https://discourse.julialang.org/t/ann-announcing-itpropfit-jl/87143 "2022-09-12T14:50:03Z")

</div>

I am happy to announce my first Julia package, ItPropFit.jl! It is a package for multidimensional iterative proportional fitting. It has similar features to the R package mipfp: the target array can be multidimensional, …

---

## [CxxWrap can't find .dylib on MacOS](https://discourse.julialang.org/t/cxxwrap-cant-find-dylib-on-macos/86997)

<div class="topic-metadata">

**Author:** [@danny.s](https://discourse.julialang.org/u/danny.s)\
**Replies:** 3\
**Last updated:** [September 12, 2022, 2:41pm UTC](https://discourse.julialang.org/t/cxxwrap-cant-find-dylib-on-macos/86997 "2022-09-12T14:41:53Z")

</div>

I’m working on a C++ package (called MParT) for MacOS and Linux, as well as creating bindings to it in Julia. So far, I’ve had moderate success, where I can use Linux to \]add https://github.com/MeasureTransport/MParT.jl …

---

## [How to interpret return type shown by Cthulhu?](https://discourse.julialang.org/t/how-to-interpret-return-type-shown-by-cthulhu/87145)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [September 12, 2022, 2:36pm UTC](https://discourse.julialang.org/t/how-to-interpret-return-type-shown-by-cthulhu/87145 "2022-09-12T14:36:33Z")

</div>

Looking at the output of @descend\_code\_warntype reduce(vcat, eachcol(rand(2,2))) on nightly, I find Advanced: dump \[P\]arams cache. %69 = invoke throw\_boundserror(::Matrix{Float64},::Tuple{Base.Slice{Base.OneTo{Int64}…

---

## [Mapsplat function](https://discourse.julialang.org/t/mapsplat-function/87020)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 2:29pm UTC](https://discourse.julialang.org/t/mapsplat-function/87020 "2022-09-12T14:29:46Z")

</div>

Does this function exist already somewhere? mapsplat(f, xs...) = map(Base.splat(f), xs...)

---

## [Fitting Sinusoidal Signal with LsqFit](https://discourse.julialang.org/t/fitting-sinusoidal-signal-with-lsqfit/84777)

<div class="topic-metadata">

**Author:** [@WC1991](https://discourse.julialang.org/u/WC1991)\
**Replies:** 5\
**Last updated:** [August 16, 2022, 3:24pm UTC](https://discourse.julialang.org/t/fitting-sinusoidal-signal-with-lsqfit/84777 "2022-08-16T15:24:45Z")

</div>

Hi everyone, I have problems with fitting a sinusoidal signal with 4 parameters. Everything works just fine, if the Signal Frequency is under 800Hz. Above that Frequency the fitting is very bad (except for 802Hz and 804H…

---

## [LightOSM : reading GeoJSON files](https://discourse.julialang.org/t/lightosm-reading-geojson-files/87131)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 1:22pm UTC](https://discourse.julialang.org/t/lightosm-reading-geojson-files/87131 "2022-09-12T13:22:42Z")

</div>

Hi I am attempting to use the Agents.jl library to design ABM with OpenStreetMapSpace, which uses the features from LightOSM.jl. Unfortunately the road network require (for the country guadeloupe) is unavailable to be do…

---

## [DataFrame with mix types](https://discourse.julialang.org/t/dataframe-with-mix-types/87134)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 1:36pm UTC](https://discourse.julialang.org/t/dataframe-with-mix-types/87134 "2022-09-12T13:36:23Z")

</div>

How can I create a dataframe with only one row composed by a Vector and a Int . When I do DataFrame(a=\[1,2,3\],b=1) the result dataFrame is a 3x2 DataFrame of Ints.

---

## [Outer-only constructors and concrete types](https://discourse.julialang.org/t/outer-only-constructors-and-concrete-types/87036)

<div class="topic-metadata">

**Author:** [@pgoulart](https://discourse.julialang.org/u/pgoulart)\
**Replies:** 4\
**Last updated:** [September 12, 2022, 1:26pm UTC](https://discourse.julialang.org/t/outer-only-constructors-and-concrete-types/87036 "2022-09-12T13:26:25Z")

</div>

Suppose I have a type like this, taken from the docs on outer-only constructors: struct Foo{T\<:Number,S\<:Number} \<: SuperType{T} data::Vector{T} sum::S function Foo(a::Vector{T}) where T S = widen(T)…

---

## [Creating and formatting data tables in Julia and saving as high quality image](https://discourse.julialang.org/t/creating-and-formatting-data-tables-in-julia-and-saving-as-high-quality-image/87128)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [September 12, 2022, 12:49pm UTC](https://discourse.julialang.org/t/creating-and-formatting-data-tables-in-julia-and-saving-as-high-quality-image/87128 "2022-09-12T12:49:55Z")

</div>

Is there a package in Julia that allows the creation and formatting of data tables, for the purpose of saving as high quality images?

---

## [How to identify oscillatory conditions in Julia ODEs?](https://discourse.julialang.org/t/how-to-identify-oscillatory-conditions-in-julia-odes/81824)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 24\
**Last updated:** [September 12, 2022, 11:59am UTC](https://discourse.julialang.org/t/how-to-identify-oscillatory-conditions-in-julia-odes/81824 "2022-09-12T11:59:46Z")

</div>

Dear all, I am simulating bacterial infections and I would like to know if there is a way to spot cases when the population enters an oscillatory equilibrium, for instance, as in this case: To note that the two theo…

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

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