# Latest

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

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

**Page:** 548

---

## [Optimizing Direct 2D Convolution Code](https://discourse.julialang.org/t/optimizing-direct-2d-convolution-code/106598)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 14\
**Last updated:** [November 23, 2023, 8:48pm UTC](https://discourse.julialang.org/t/optimizing-direct-2d-convolution-code/106598 "2023-11-23T20:48:40Z")

</div>

I have implemented 2D convolution using direct calculation: using BenchmarkTools; function \_Conv2D!( mO :: Matrix{T}, mI :: Matrix{T}, mK :: Matrix{T} ) where {T \<: AbstractFloat} numRowsI, numColsI = size(mI); …

---

## [Run parrallel computing code](https://discourse.julialang.org/t/run-parrallel-computing-code/106645)

<div class="topic-metadata">

**Author:** [@Somali10](https://discourse.julialang.org/u/Somali10)\
**Replies:** 10\
**Last updated:** [November 23, 2023, 7:01pm UTC](https://discourse.julialang.org/t/run-parrallel-computing-code/106645 "2023-11-23T19:01:38Z")

</div>

I have met this issue when I need to run the Performance Overview code GitError(Code:ENOTFOUND, Class:Config, config value ‘safe.directory’ was not found) Stacktrace: \[1\] macro expansion @ \[C:\\Users\\profe\\AppData\\Local\\…

---

## [Make EWMA as fast as pandas](https://discourse.julialang.org/t/make-ewma-as-fast-as-pandas/106416)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 29\
**Last updated:** [November 23, 2023, 5:29pm UTC](https://discourse.julialang.org/t/make-ewma-as-fast-as-pandas/106416 "2023-11-23T17:29:15Z")

</div>

Hi I don’t think Julia has a EWMA implementation I could easily use (there are some old packages but they’re not maintained), so I tried to build my own based on the pandas implementation. This is what I’ve come up with …

---

## [Converting non-linear optimization with fmincom from Matlab to Julia](https://discourse.julialang.org/t/converting-non-linear-optimization-with-fmincom-from-matlab-to-julia/106536)

<div class="topic-metadata">

**Author:** [@Alfespo97](https://discourse.julialang.org/u/Alfespo97)\
**Replies:** 12\
**Last updated:** [November 23, 2023, 5:23pm UTC](https://discourse.julialang.org/t/converting-non-linear-optimization-with-fmincom-from-matlab-to-julia/106536 "2023-11-23T17:23:11Z")

</div>

Hi, I’m new to Julia language and I’m trying to replicate an optimization function created in Matlab using fmincom in Julia in order to improve the computation time that is quite huge in Matlab. I’ve used the JuMP mode…

---

## [Julia using openpyxl to change column width & row height](https://discourse.julialang.org/t/julia-using-openpyxl-to-change-column-width-row-height/45172)

<div class="topic-metadata">

**Author:** [@Emmanouil\_Bakirtzis](https://discourse.julialang.org/u/Emmanouil_Bakirtzis)\
**Replies:** 8\
**Last updated:** [November 23, 2023, 3:57pm UTC](https://discourse.julialang.org/t/julia-using-openpyxl-to-change-column-width-row-height/45172 "2023-11-23T15:57:21Z")

</div>

Hi all, I am using Julia 1.5.0 with openpyxl and I want to change the column width in an excel worksheet. The python way to this is depicted here: https://stackoverflow.com/questions/53906532/is-it-possible-to-change-…

---

## [Custom Sampler with multiple parameters](https://discourse.julialang.org/t/custom-sampler-with-multiple-parameters/106446)

<div class="topic-metadata">

**Author:** [@oliviermilla](https://discourse.julialang.org/u/oliviermilla)\
**Replies:** 4\
**Last updated:** [November 23, 2023, 1:37pm UTC](https://discourse.julialang.org/t/custom-sampler-with-multiple-parameters/106446 "2023-11-23T13:37:15Z")

</div>

Hello, with the following structures I’d like to do this: struct A a::Float64 b::Float64 end struct B x::Float64 end b = B(32.5) res = rand(A, b, 3) # Vector of 3 A with the computation of the random 3 A fact…

---

## [Dictionary with custom hash function](https://discourse.julialang.org/t/dictionary-with-custom-hash-function/49168)

<div class="topic-metadata">

**Author:** [@tisztamo](https://discourse.julialang.org/u/tisztamo)\
**Replies:** 6\
**Last updated:** [December 30, 2021, 7:45am UTC](https://discourse.julialang.org/t/dictionary-with-custom-hash-function/49168 "2021-12-30T07:45:22Z")

</div>

In a tight loop (50-100ns/cycle) I am using a dict filled with randomly generated UInt64 keys. I think that they could be used directly in a hashmap, without hashing, so I am looking for a hashmap with a custom (here th…

---

## [Mongoc errors in container with julia 1.9 libmongoc driver](https://discourse.julialang.org/t/mongoc-errors-in-container-with-julia-1-9-libmongoc-driver/106592)

<div class="topic-metadata">

**Author:** [@ginger\_snaps](https://discourse.julialang.org/u/ginger_snaps)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 12:57pm UTC](https://discourse.julialang.org/t/mongoc-errors-in-container-with-julia-1-9-libmongoc-driver/106592 "2023-11-23T12:57:54Z")

</div>

bHello! Everything was fine on my PC (I use Julia 1.8) but I needed to deploy the app in a container and could not find the official 1.8 image so I installed 1.9. The problem appeared with Mongoc package. I have the sam…

---

## [Julia's array processing vs J](https://discourse.julialang.org/t/julias-array-processing-vs-j/106600)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 5\
**Last updated:** [November 23, 2023, 12:37pm UTC](https://discourse.julialang.org/t/julias-array-processing-vs-j/106600 "2023-11-23T12:37:54Z")

</div>

Whenever I read a laudatory comment re: Julia’s performance, I am frequently brought back to J’s performance claims, e.g. Vocabulary/ArrayProcessing - J Wiki (jsoftware.com) Does anyone in this forum know of/use J, APL…

---

## [Package Compiler doesn't download required artifact](https://discourse.julialang.org/t/package-compiler-doesnt-download-required-artifact/94967)

<div class="topic-metadata">

**Author:** [@haikal-arif](https://discourse.julialang.org/u/haikal-arif)\
**Replies:** 6\
**Last updated:** [November 23, 2023, 11:50am UTC](https://discourse.julialang.org/t/package-compiler-doesnt-download-required-artifact/94967 "2023-11-23T11:50:22Z")

</div>

I am trying to precompile LanguageServer using PackageCompiler by typing this into REPL using PackageCompiler; create\_sysimage(\[:LanguageServer,:SymbolServer\], sysimage\_path="./julials.dll", precompile\_statements\_file="…

---

## [Strategy for finding eigenvalues of an infinite banded matrix](https://discourse.julialang.org/t/strategy-for-finding-eigenvalues-of-an-infinite-banded-matrix/106513)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 9\
**Last updated:** [November 23, 2023, 10:42am UTC](https://discourse.julialang.org/t/strategy-for-finding-eigenvalues-of-an-infinite-banded-matrix/106513 "2023-11-23T10:42:54Z")

</div>

So I’ve got a (Hermitian) like the following, and I want to find its first few eigenvalues: \\begin{pmatrix} \\ddots & \\ddots &\\ddots\\\\ \\ddots & T\_{i,i} &T\_{i+1,i} &T\_{i+2,i} & 0 & 0 & 0 &\\\\ \\ddots &…

---

## [How to clip a raster with a polygon](https://discourse.julialang.org/t/how-to-clip-a-raster-with-a-polygon/105883)

<div class="topic-metadata">

**Author:** [@WillHWThompson](https://discourse.julialang.org/u/WillHWThompson)\
**Replies:** 3\
**Last updated:** [November 7, 2023, 8:21am UTC](https://discourse.julialang.org/t/how-to-clip-a-raster-with-a-polygon/105883 "2023-11-07T08:21:58Z")

</div>

Hi all. I have a julia GIS problem that I can’t seem to solve. I have been using Rasters.jl to load rasterized GIS data into julia. This implements a Raster data structure where latitude and longitude points are associa…

---

## [Spectral Coherence in Julia](https://discourse.julialang.org/t/spectral-coherence-in-julia/106144)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 27\
**Last updated:** [November 23, 2023, 9:14am UTC](https://discourse.julialang.org/t/spectral-coherence-in-julia/106144 "2023-11-23T09:14:14Z")

</div>

Hi everyone, I am trying to do the spectral coherence between two signals in julia. Much like mscohere in Matlab. https://www.mathworks.com/help/signal/ug/measuring-signal-similarities.html I guess DSP.jl must have it,…

---

## [Unstack dataframe with combine by the same date](https://discourse.julialang.org/t/unstack-dataframe-with-combine-by-the-same-date/106614)

<div class="topic-metadata">

**Author:** [@Tatiana\_P](https://discourse.julialang.org/u/Tatiana_P)\
**Replies:** 1\
**Last updated:** [November 23, 2023, 8:56am UTC](https://discourse.julialang.org/t/unstack-dataframe-with-combine-by-the-same-date/106614 "2023-11-23T08:56:17Z")

</div>

What is the simplest way to unstack the following dataframe df = DataFrame(date=\[Date(2018,1,1), Date(2018,1,1), Date(2018,1,1), Date(2018,1,2), Date(2018,1,2), Date(2018,1,2)\], B=\[“T1”, “T2”, “T3”, “T1”, “T2”, “T3”\], v…

---

## [How to generate a customized \`for\` loop code?](https://discourse.julialang.org/t/how-to-generate-a-customized-for-loop-code/106552)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 6\
**Last updated:** [November 23, 2023, 8:01am UTC](https://discourse.julialang.org/t/how-to-generate-a-customized-for-loop-code/106552 "2023-11-23T08:01:17Z")

</div>

I’m using the macro @hyperopt from package hyperopt.jl to optimize some hyperparameters for a machine learning model. However, I’m pretty constrained by the syntax of @hyperopt, which is designed to be used as follows: h…

---

## [Makie: plotting text at arbitrary position in \`GridLayout\`?](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [November 23, 2023, 5:54am UTC](https://discourse.julialang.org/t/makie-plotting-text-at-arbitrary-position-in-gridlayout/106407 "2023-11-23T05:54:57Z")

</div>

I asked how to plot some text at an arbitrary position in a Figure in this thread . The simplest answer was to plot the text using the coordinates of fig.scene. Then, my question here is, does a GridLayout has its own…

---

## [Gridap.jl: Help with a Coupled PDE](https://discourse.julialang.org/t/gridap-jl-help-with-a-coupled-pde/84204)

<div class="topic-metadata">

**Author:** [@James\_Gorman](https://discourse.julialang.org/u/James_Gorman)\
**Replies:** 8\
**Last updated:** [November 23, 2023, 3:26am UTC](https://discourse.julialang.org/t/gridap-jl-help-with-a-coupled-pde/84204 "2023-11-23T03:26:26Z")

</div>

Looking over the various FEM PDE solvers (those written in julia and other languages), few of them have tutorials that deal with fracture mechanics. While there are different formulations that could be used, I want to im…

---

## [Makie: open-ended contouring levels for contourf?](https://discourse.julialang.org/t/makie-open-ended-contouring-levels-for-contourf/106411)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [November 23, 2023, 3:03am UTC](https://discourse.julialang.org/t/makie-open-ended-contouring-levels-for-contourf/106411 "2023-11-23T03:03:19Z")

</div>

This thread discusses how to limit the contouring values. My question is a followup on that: How to paint all values above and below the limits and coordinate with the colorbar? The first image below is what I need and …

---

## [Speeding up a color transformation loop](https://discourse.julialang.org/t/speeding-up-a-color-transformation-loop/106445)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 29\
**Last updated:** [November 23, 2023, 12:23am UTC](https://discourse.julialang.org/t/speeding-up-a-color-transformation-loop/106445 "2023-11-23T00:23:40Z")

</div>

First, a little background. I have an image \[2000 x 2000 pixels\] I am applying different illuminants to. Towards the end of this process I have to transform the CIE1931 X,Y, and Z coordinate to RGB. These are stored as…

---

## [Plots.jl pythonplot() matplotlib downgrading](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 9:41pm UTC](https://discourse.julialang.org/t/plots-jl-pythonplot-matplotlib-downgrading/106599 "2023-11-22T21:41:36Z")

</div>

When attempting to plot three aligned subplots in Plots.jl’s pythonplot() backend, the following error message is displayed: ERROR: Python: AttributeError: 'GrouperView' object has no attribute 'join' Python stacktrace:…

---

## [Read mouse position in Pluto?](https://discourse.julialang.org/t/read-mouse-position-in-pluto/105919)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 7\
**Last updated:** [November 22, 2023, 7:30pm UTC](https://discourse.julialang.org/t/read-mouse-position-in-pluto/105919 "2023-11-22T19:30:15Z")

</div>

I would like to construct a simple Mandelbrot browser in Pluto. In particular, I’d like to be able to put my mouse pointer on a point on a plot, read the position (preferably a complex number) and press a mouse button to…

---

## [How to properly install the HSL.jl package?](https://discourse.julialang.org/t/how-to-properly-install-the-hsl-jl-package/106541)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 3\
**Last updated:** [November 22, 2023, 7:27pm UTC](https://discourse.julialang.org/t/how-to-properly-install-the-hsl-jl-package/106541 "2023-11-22T19:27:37Z")

</div>

A few of the packages I use often have the package HSL.jl as a dependency. I have noticed that when I install packages that have such dependency, I get a message informing me that HSL.jl is not properly installed and I n…

---

## [Optimization ADType](https://discourse.julialang.org/t/optimization-adtype/106587)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 6:55pm UTC](https://discourse.julialang.org/t/optimization-adtype/106587 "2023-11-22T18:55:37Z")

</div>

What do I do wrong julia\> import Pkg julia\> Pkg.activate(;temp=true) Activating new project at \`C:\\Users\\LOCAL\_~4\\Temp\\jl\_cF3P4l\` (jl\_cF3P4l) pkg\> add Optimization, ForwardDiff ... \[f6369f11\] + ForwardDiff v0.10.36…

---

## [How do we Julians win big when the situation is so unfair?](https://discourse.julialang.org/t/how-do-we-julians-win-big-when-the-situation-is-so-unfair/106433)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 98\
**Last updated:** [November 22, 2023, 5:50pm UTC](https://discourse.julialang.org/t/how-do-we-julians-win-big-when-the-situation-is-so-unfair/106433 "2023-11-22T17:50:23Z")

</div>

We all cheer when 10 lines of Julia beat 1000 lines of something else with twice the performance, or when one Julian beats 100 people, but there is an endless number of people and an endless amount of funding in Python/C…

---

## [Writing CSV files with fixed decimal format](https://discourse.julialang.org/t/writing-csv-files-with-fixed-decimal-format/106571)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [November 22, 2023, 5:38pm UTC](https://discourse.julialang.org/t/writing-csv-files-with-fixed-decimal-format/106571 "2023-11-22T17:38:58Z")

</div>

Any option to CSV.write with a format string (e.g. "%.4f")?

---

## [\[ANN\] Stencils.jl for fast small/direct stencils on CPU/GPU](https://discourse.julialang.org/t/ann-stencils-jl-for-fast-small-direct-stencils-on-cpu-gpu/106579)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 5:01pm UTC](https://discourse.julialang.org/t/ann-stencils-jl-for-fast-small-direct-stencils-on-cpu-gpu/106579 "2023-11-22T17:01:46Z")

</div>

Thought I should announce this as its getting kind of stable and useful: The core idea of Stencils.jl is that a Stencil is a StaticVector of values extracted from an array at a specific position, following some pattern…

---

## [Optimize Julia for size, and other potential or actual switches](https://discourse.julialang.org/t/optimize-julia-for-size-and-other-potential-or-actual-switches/106584)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [November 22, 2023, 4:33pm UTC](https://discourse.julialang.org/t/optimize-julia-for-size-and-other-potential-or-actual-switches/106584 "2023-11-22T16:33:36Z")

</div>

Julia has -O, --optimize={0,1,2\*,3} Set the optimization level (level 3 if -O is used without a level) ($) I.e. -O2 is the default (unlike in e.g. C/C++), does anyone use -O3 aka -O, or the other options often? It …

---

## [Running @testitem in VS Code fails](https://discourse.julialang.org/t/running-testitem-in-vs-code-fails/106527)

<div class="topic-metadata">

**Author:** [@Tobias-Thomas](https://discourse.julialang.org/u/Tobias-Thomas)\
**Replies:** 7\
**Last updated:** [November 22, 2023, 3:58pm UTC](https://discourse.julialang.org/t/running-testitem-in-vs-code-fails/106527 "2023-11-22T15:58:16Z")

</div>

Hi everyone, I am currently developing a small package and wrote some Unit-tests for it. Since I am developing it in VS Code, I am using the TestItemRunner.jl package. The tests also work as expected when using the Pac…

---

## [Makie: defaulting to minus symbol everywhere?](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 13\
**Last updated:** [November 22, 2023, 3:53pm UTC](https://discourse.julialang.org/t/makie-defaulting-to-minus-symbol-everywhere/106291 "2023-11-22T15:53:13Z")

</div>

I have the feeling that this problem has already been solved, but I haven’t been able to locate the solution. Basically, I want all numeric labels and letterings for negative numbers to use the unicode minus symbol, not…

---

## [Error precompiling Differential Equations: in setfield!, expected LinearAlgebra.QRPivoted](https://discourse.julialang.org/t/error-precompiling-differential-equations-in-setfield-expected-linearalgebra-qrpivoted/106581)

<div class="topic-metadata">

**Author:** [@vxj9800](https://discourse.julialang.org/u/vxj9800)\
**Replies:** 3\
**Last updated:** [November 22, 2023, 3:50pm UTC](https://discourse.julialang.org/t/error-precompiling-differential-equations-in-setfield-expected-linearalgebra-qrpivoted/106581 "2023-11-22T15:50:38Z")

</div>

I am facing the issue of precompiling DifferentialEquations with a fresh install of Julia 1.9.4 in Windows 11. I am not sure if the core in my case issue is the same as the one being discussed above. Following is the out…

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

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