# Latest

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

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

**Page:** 1347

---

## [\[ANN\] Sliding-Window Fast Local (Pearson) Correlation Coefficients](https://discourse.julialang.org/t/ann-sliding-window-fast-local-pearson-correlation-coefficients/63720)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 1:32am UTC](https://discourse.julialang.org/t/ann-sliding-window-fast-local-pearson-correlation-coefficients/63720 "2021-06-29T01:32:51Z")

</div>

Calculate the local (Pearson) correlation coefficients between a needle and all sliding windows of the same size within a haystack. The best match is where the coefficient is the largest. Find the needle even when your c…

---

## [Product Manager at Julia Computing](https://discourse.julialang.org/t/product-manager-at-julia-computing/63714)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 7:06pm UTC](https://discourse.julialang.org/t/product-manager-at-julia-computing/63714 "2021-06-28T19:06:51Z")

</div>

Julia is an open source language for mathematical computing and artificial intelligence, which has been downloaded over 25 million times and is growing rapidly worldwide. Julia Computing is a company founded by all creat…

---

## [Optimal approach to simulating large system of time-dependent ODEs?](https://discourse.julialang.org/t/optimal-approach-to-simulating-large-system-of-time-dependent-odes/63709)

<div class="topic-metadata">

**Author:** [@kharing](https://discourse.julialang.org/u/kharing)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 10:39pm UTC](https://discourse.julialang.org/t/optimal-approach-to-simulating-large-system-of-time-dependent-odes/63709 "2021-06-28T22:39:00Z")

</div>

I’m looking to solve a large (N ~ 1000) system of 1st order, linear ODEs with time-dependent coefficients, \\frac{d u}{d t} = A(t) \\cdot u(t). Because both the numerical constants involved in the coefficients and the nu…

---

## [Exporting a \`RuntimeGeneratedFunction\`](https://discourse.julialang.org/t/exporting-a-runtimegeneratedfunction/63628)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 10:34pm UTC](https://discourse.julialang.org/t/exporting-a-runtimegeneratedfunction/63628 "2021-06-28T22:34:11Z")

</div>

I have a ModelingToolkit.ODESystem in a package called AstrodynamicalModels. I want to export an ODEFunction, which uses RuntimeGeneratedFunctions to avoid world-age issues. When I import AstrodynamicalModels, and try t…

---

## [\[ANN\] Yota v0.5 - now with ChainRules support](https://discourse.julialang.org/t/ann-yota-v0-5-now-with-chainrules-support/63404)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 16\
**Last updated:** [June 28, 2021, 10:21pm UTC](https://discourse.julialang.org/t/ann-yota-v0-5-now-with-chainrules-support/63404 "2021-06-28T22:21:12Z")

</div>

A reverse-mode autodiff package Yota.jl just got its biggest update with the release of v0.5 version. ChainRules support In an effort towards unified autodiff ecosystem, Yota has moved from custom derivative rules to th…

---

## [Eigenvectors from quadratic form of a low-rank matrix](https://discourse.julialang.org/t/eigenvectors-from-quadratic-form-of-a-low-rank-matrix/63715)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 10:07pm UTC](https://discourse.julialang.org/t/eigenvectors-from-quadratic-form-of-a-low-rank-matrix/63715 "2021-06-28T22:07:14Z")

</div>

Hello, I would like to compute the leading eigenvectors of a positive semi-definite matrix A with a low-rank structure. Are you aware of method that only rely on evaluations of y^\\top A x for arbitrary y, x vectors?

---

## [Keeping scientific objectivity and details in benchmark reports](https://discourse.julialang.org/t/keeping-scientific-objectivity-and-details-in-benchmark-reports/63579)

<div class="topic-metadata">

**Author:** [@shahmoradi](https://discourse.julialang.org/u/shahmoradi)\
**Replies:** 56\
**Last updated:** [June 28, 2021, 9:49pm UTC](https://discourse.julialang.org/t/keeping-scientific-objectivity-and-details-in-benchmark-reports/63579 "2021-06-28T21:49:57Z")

</div>

Greetings, Julia programmers and enthusiasts. I am a long-time C/Fortran/MATLAB/Python/R programmer, an old-time Julia enthusiast, and a recent Julia-news and events follower. However, I have no more than a few hundred l…

---

## [Fixed point decimals for accounting](https://discourse.julialang.org/t/fixed-point-decimals-for-accounting/63400)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 44\
**Last updated:** [June 28, 2021, 9:39pm UTC](https://discourse.julialang.org/t/fixed-point-decimals-for-accounting/63400 "2021-06-28T21:39:36Z")

</div>

What are some efficient ways to implement fixed point decimals, for tasks like accounting?

---

## [How does Julia compare with Nim, Go and Crystal for Artificial Intelligence?](https://discourse.julialang.org/t/how-does-julia-compare-with-nim-go-and-crystal-for-artificial-intelligence/63631)

<div class="topic-metadata">

**Author:** [@development\_mentor](https://discourse.julialang.org/u/development_mentor)\
**Replies:** 12\
**Last updated:** [June 28, 2021, 5:55pm UTC](https://discourse.julialang.org/t/how-does-julia-compare-with-nim-go-and-crystal-for-artificial-intelligence/63631 "2021-06-28T17:55:38Z")

</div>

Hello, I’m new to programming and I considered these languages. Firstly I choose Julia as it is simple and said it’s built for computing specifically. But when compared with other languages like nim it is slower in that …

---

## [Precompiling Plots fails in jupyter notebook](https://discourse.julialang.org/t/precompiling-plots-fails-in-jupyter-notebook/63707)

<div class="topic-metadata">

**Author:** [@murrayE](https://discourse.julialang.org/u/murrayE)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 4:51pm UTC](https://discourse.julialang.org/t/precompiling-plots-fails-in-jupyter-notebook/63707 "2021-06-28T16:51:42Z")

</div>

After using the REPL to add the Plots package in julia 1.6.1 under macOS Big sur 11.4, I opened the jupyter notebook ott\_chaos.ipynb from the JuliaDynamics tutorials and evaluated the first cell: using Plots, Dynamical…

---

## [Overwrite function in a submodule](https://discourse.julialang.org/t/overwrite-function-in-a-submodule/63706)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 4:58pm UTC](https://discourse.julialang.org/t/overwrite-function-in-a-submodule/63706 "2021-06-28T16:58:07Z")

</div>

Hi everyone, I have a Base module that contains some functionality, which I would like to (optionally) extend upon. Ideally, the extension simply overrides some functions in the base module, while leaving the others as…

---

## [How to prevent Inf or NaN at low floating number precision](https://discourse.julialang.org/t/how-to-prevent-inf-or-nan-at-low-floating-number-precision/63705)

<div class="topic-metadata">

**Author:** [@yingqiuz](https://discourse.julialang.org/u/yingqiuz)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 4:44pm UTC](https://discourse.julialang.org/t/how-to-prevent-inf-or-nan-at-low-floating-number-precision/63705 "2021-06-28T16:44:08Z")

</div>

Hi I am programming at Float32 to improve the speed. In my calculations, however, Inf or NaNs occur occasionally due to the use of exp.(x). For example x=90.30891f0; exp(x) will yield Inf32, even if x is fine. I was wo…

---

## [Periods / shifts argument for the diff function](https://discourse.julialang.org/t/periods-shifts-argument-for-the-diff-function/63701)

<div class="topic-metadata">

**Author:** [@scimas](https://discourse.julialang.org/u/scimas)\
**Replies:** 7\
**Last updated:** [June 28, 2021, 4:33pm UTC](https://discourse.julialang.org/t/periods-shifts-argument-for-the-diff-function/63701 "2021-06-28T16:33:52Z")

</div>

The diff function doesn’t have a periods / shifts argument, similar to the equivalent pandas function. But looking at the julia source code, it seems it would be easy to add it without breaking any existing code. So bef…

---

## [Basic problem with specifying dependencies](https://discourse.julialang.org/t/basic-problem-with-specifying-dependencies/63704)

<div class="topic-metadata">

**Author:** [@PedroOS](https://discourse.julialang.org/u/PedroOS)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 4:33pm UTC](https://discourse.julialang.org/t/basic-problem-with-specifying-dependencies/63704 "2021-06-28T16:33:31Z")

</div>

Hi there, I have this recurring error pattern which I can’t seem to “grok” from the Packages documentation so I’ll ask. I load my package with import MyPackage, then I get Warning: Package MyPackage does not have Dates…

---

## [Avoid \`expected Int32, got Int64 value\` error on CI](https://discourse.julialang.org/t/avoid-expected-int32-got-int64-value-error-on-ci/63695)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 6\
**Last updated:** [June 28, 2021, 3:06pm UTC](https://discourse.julialang.org/t/avoid-expected-int32-got-int64-value-error-on-ci/63695 "2021-06-28T15:06:12Z")

</div>

I have an odd error on github actions where my tests fail on x86 machines but pass on x64. Basically this: Single Baseline Region: Error During Test at /home/runner/work/LandUse.jl/LandUse.jl/test/model\_test.jl:1 385 …

---

## [ProgressMeter generates lots of allocations and overhead when multi-threaded (even if disabled)](https://discourse.julialang.org/t/progressmeter-generates-lots-of-allocations-and-overhead-when-multi-threaded-even-if-disabled/63696)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [June 28, 2021, 2:49pm UTC](https://discourse.julialang.org/t/progressmeter-generates-lots-of-allocations-and-overhead-when-multi-threaded-even-if-disabled/63696 "2021-06-28T14:49:10Z")

</div>

Maybe I should post an issue on the package site, but lets go. Given this simple threaded loop: julia\> using ProgressMeter, BenchmarkTools julia\> function loop(n) s = zeros(Threads.nthreads()) Threads…

---

## [Drawing a median line in a histogram in Plots](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-plots/63682)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 2:46pm UTC](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-plots/63682 "2021-06-28T14:46:57Z")

</div>

Following the idea of the link, I reproduced the graph using the Plots package, and I got the following questions: It is possible to replace the following lines of code with a command: subplot = plot!()\[1\] h = extrema(…

---

## [Documenter can't find docs](https://discourse.julialang.org/t/documenter-cant-find-docs/63200)

<div class="topic-metadata">

**Author:** [@Joinijo](https://discourse.julialang.org/u/Joinijo)\
**Replies:** 3\
**Last updated:** [June 28, 2021, 2:20pm UTC](https://discourse.julialang.org/t/documenter-cant-find-docs/63200 "2021-06-28T14:20:38Z")

</div>

Hi, I’m trying to build a documentation using documenter and run into a weird error. In one of the .md files, I have a few @docs blocks. It looks as follows: ##Functions \`\`\`@docs f \`\`\` ##Some more functions \`\`\`@docs …

---

## [Can you filter a Dict with pairs?](https://discourse.julialang.org/t/can-you-filter-a-dict-with-pairs/63685)

<div class="topic-metadata">

**Author:** [@gleyland](https://discourse.julialang.org/u/gleyland)\
**Replies:** 8\
**Last updated:** [June 28, 2021, 1:59pm UTC](https://discourse.julialang.org/t/can-you-filter-a-dict-with-pairs/63685 "2021-06-28T13:59:36Z")

</div>

Hi, I can filter a Dict with first and last: d = Dict("a" =\> 1, "b" =\> 2, "c" =\> 3) filter(e -\> first(e) == "a" || last(e) == 3, d) But it would be really nice if I could destructure e into a key and a value: filter(…

---

## [Stack OverFlow-athon starting Wednesday June 30th, 7 AM CST](https://discourse.julialang.org/t/stack-overflow-athon-starting-wednesday-june-30th-7-am-cst/63689)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 3\
**Last updated:** [June 28, 2021, 1:54pm UTC](https://discourse.julialang.org/t/stack-overflow-athon-starting-wednesday-june-30th-7-am-cst/63689 "2021-06-28T13:54:25Z")

</div>

Hey folks! One of the things that has been most beneficial to my Julia learning journey has been posting on Stack Overflow. I try to find questions from other prominent languages or libraries and ask / answer the analog …

---

## [Center colorbar ticks in a categorical colorbar in Makie.jl](https://discourse.julialang.org/t/center-colorbar-ticks-in-a-categorical-colorbar-in-makie-jl/63691)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 4\
**Last updated:** [June 28, 2021, 1:52pm UTC](https://discourse.julialang.org/t/center-colorbar-ticks-in-a-categorical-colorbar-in-makie-jl/63691 "2021-06-28T13:52:45Z")

</div>

MWE: using GLMakie xg = range(0, 10; length = 100) yg = range(0, 10; length = 100) bsn = rand(1:5, (100, 100)) fig = Figure(resolution = (700,600)) display(fig) colors = \[:black, :blue, :red, :teal, :yellow\] cmap = …

---

## [Import package from python](https://discourse.julialang.org/t/import-package-from-python/47144)

<div class="topic-metadata">

**Author:** [@nadaa](https://discourse.julialang.org/u/nadaa)\
**Replies:** 18\
**Last updated:** [June 28, 2021, 1:34pm UTC](https://discourse.julialang.org/t/import-package-from-python/47144 "2021-06-28T13:34:31Z")

</div>

Hi, I have a package installed in anaconda, and I want to use in Julia. I did the following: set python environment in Julia to be anaconda python and rebuilt pycall restart Julia I still have an importerror! Any s…

---

## [3D scatter with AlgebraOfGraphics.jl](https://discourse.julialang.org/t/3d-scatter-with-algebraofgraphics-jl/63686)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [June 28, 2021, 1:18pm UTC](https://discourse.julialang.org/t/3d-scatter-with-algebraofgraphics-jl/63686 "2021-06-28T13:18:50Z")

</div>

Is it possible to get a 3D scatter plot with AlgebraOfGraphics.jl? I tried it with data(df) \* mapping(:X, :Y, :Z) |\> draw but it only shows a 2D scatter as if the3rd argument :Z was ignored.

---

## [SuiteSparse.CHOLMOD.lowrankupdate! does not speed up calculations](https://discourse.julialang.org/t/suitesparse-cholmod-lowrankupdate-does-not-speed-up-calculations/63690)

<div class="topic-metadata">

**Author:** [@sidelkin](https://discourse.julialang.org/u/sidelkin)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 11:17am UTC](https://discourse.julialang.org/t/suitesparse-cholmod-lowrankupdate-does-not-speed-up-calculations/63690 "2021-06-28T11:17:48Z")

</div>

Hello. Can someone explain why using SuiteSparse.CHOLMOD.lowrankupdate! does not give acceleration in this example? using BenchmarkTools, LinearAlgebra, SparseArrays, Test, SuiteSparse N = 100; M = 20 b = rand(N) spA =…

---

## [Why Pkg.jl uses TOML?](https://discourse.julialang.org/t/why-pkg-jl-uses-toml/63411)

<div class="topic-metadata">

**Author:** [@philipGaudreau](https://discourse.julialang.org/u/philipGaudreau)\
**Replies:** 6\
**Last updated:** [June 28, 2021, 11:11am UTC](https://discourse.julialang.org/t/why-pkg-jl-uses-toml/63411 "2021-06-28T11:11:58Z")

</div>

Everything is in the title. It says in the docs: toml files are not only used by the package manager; they are also used by Julia’s code loading, and determine e.g. what using Example should do. What were the reason…

---

## [Hyperbolic tangents (of matrix) numerically inaccurate?](https://discourse.julialang.org/t/hyperbolic-tangents-of-matrix-numerically-inaccurate/63558)

<div class="topic-metadata">

**Author:** [@judober](https://discourse.julialang.org/u/judober)\
**Replies:** 3\
**Last updated:** [June 28, 2021, 10:56am UTC](https://discourse.julialang.org/t/hyperbolic-tangents-of-matrix-numerically-inaccurate/63558 "2021-06-28T10:56:37Z")

</div>

Hello everyone, I need to calculate the tanh of a complex square matrix. The function needs to work for different matrixes and the numbers can get relative big (well, values around 20 don’t seem big but apparently they …

---

## [Would it be better to redirect all new Julia usage questions to Stack Overflow?](https://discourse.julialang.org/t/would-it-be-better-to-redirect-all-new-julia-usage-questions-to-stack-overflow/63157)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 33\
**Last updated:** [June 28, 2021, 10:54am UTC](https://discourse.julialang.org/t/would-it-be-better-to-redirect-all-new-julia-usage-questions-to-stack-overflow/63157 "2021-06-28T10:54:21Z")

</div>

Stack Overflow is the de facto source of useful results when searching for “how to …” for most programming tasks. I strongly prefer its layout and moderation to what’s implemented in Discourse. Often, when I find a threa…

---

## [Help with constraints to select and/or insert columns to a matrix](https://discourse.julialang.org/t/help-with-constraints-to-select-and-or-insert-columns-to-a-matrix/63654)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 3\
**Last updated:** [June 28, 2021, 10:48am UTC](https://discourse.julialang.org/t/help-with-constraints-to-select-and-or-insert-columns-to-a-matrix/63654 "2021-06-28T10:48:12Z")

</div>

I suppose this might be more of a generic MIP formulation question, but I’m not sure stackexchange would accept it and in here I can at least provide some almost working code using JuMP. Simple context free question is …

---

## [Bridge the gap, please! (from Matlab to Julia)](https://discourse.julialang.org/t/bridge-the-gap-please-from-matlab-to-julia/63549)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 45\
**Last updated:** [June 28, 2021, 10:44am UTC](https://discourse.julialang.org/t/bridge-the-gap-please-from-matlab-to-julia/63549 "2021-06-28T10:44:22Z")

</div>

Coming from Matlab, my experience with Julia: The first phase - getting the Julia syntax right - was rather easy - as long as everything is kept in a single file. Then one (me) hits a wall - How to do the stuff below? …

---

## [Drawing a median line in a histogram in Makie](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-makie/63359)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 5\
**Last updated:** [June 28, 2021, 10:14am UTC](https://discourse.julialang.org/t/drawing-a-median-line-in-a-histogram-in-makie/63359 "2021-06-28T10:14:33Z")

</div>

I can’t figure out a non-manual way to do this: mwe\_fig = let fig = Figure() data = randn(1000) .+ 1 ax = Axis(fig\[1,1\]; xlabel="Value", ylabel="Count") hist!(ax, data) m = median(data) m\_color = Makie.wong\_colors…

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

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