# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=68

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

**Page:** 69

---

## [Current best plotting package to use with QML.jl](https://discourse.julialang.org/t/current-best-plotting-package-to-use-with-qml-jl/128445)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 0\
**Last updated:** [April 26, 2025, 7:41pm UTC](https://discourse.julialang.org/t/current-best-plotting-package-to-use-with-qml-jl/128445 "2025-04-26T19:41:07Z")

</div>

So far QML.jl has been amazing along with StatsPlots. I was able to develop a pretty complicated prototype for a data dashboard in about a day (unable to share it at this time). This was not what I expected from reading…

---

## [EXCEPTION\_ACCESS\_VIOLATION on Windows but not MacOS](https://discourse.julialang.org/t/exception-access-violation-on-windows-but-not-macos/127653)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 17\
**Last updated:** [April 26, 2025, 4:29pm UTC](https://discourse.julialang.org/t/exception-access-violation-on-windows-but-not-macos/127653 "2025-04-26T16:29:13Z")

</div>

I am running the exact same code on Windows and Mac with Julia 11.4 installed on both. I have to assume this error message relates to an out of bounds request. I’ll paste the huge error message below. I can share the …

---

## [IDE: alternatives to VS Code?](https://discourse.julialang.org/t/ide-alternatives-to-vs-code/122526)

<div class="topic-metadata">

**Author:** [@chskcau](https://discourse.julialang.org/u/chskcau)\
**Replies:** 62\
**Last updated:** [April 26, 2025, 4:16pm UTC](https://discourse.julialang.org/t/ide-alternatives-to-vs-code/122526 "2025-04-26T16:16:54Z")

</div>

Hi, what IDEs are there currently that feature good support for Julia? I understand that Juno used to be a thing, but that it was given up on in favor of VS Code and the VS Code Julia plugin. Everyone now seems to be r…

---

## [Plotly causes WebIO error in Julia Notebook](https://discourse.julialang.org/t/plotly-causes-webio-error-in-julia-notebook/125918)

<div class="topic-metadata">

**Author:** [@decuser](https://discourse.julialang.org/u/decuser)\
**Replies:** 4\
**Last updated:** [April 26, 2025, 7:23am UTC](https://discourse.julialang.org/t/plotly-causes-webio-error-in-julia-notebook/125918 "2025-04-26T07:23:41Z")

</div>

When I try to use Plotly in Julia Notebook, I get the following error: WebIO not detected. Please read the troubleshooting guide for more information on how to resolve this issue. https://juliagizmos.github.io/WebIO.j…

---

## [Performance of Hermitian eigensolvers](https://discourse.julialang.org/t/performance-of-hermitian-eigensolvers/23142)

<div class="topic-metadata">

**Author:** [@Invarianz](https://discourse.julialang.org/u/Invarianz)\
**Replies:** 2\
**Last updated:** [April 26, 2025, 3:01am UTC](https://discourse.julialang.org/t/performance-of-hermitian-eigensolvers/23142 "2025-04-26T03:01:49Z")

</div>

I usually work with full diagonalisation of Hermitian matrices. After some research I realised that there are two options to retrieve the eigenvalues and eigenvectors of such a matrix. LinearAlgebra.LAPACK.syev!() and e…

---

## [Custom dictionary type: fieldless keytype, fieldless valtype](https://discourse.julialang.org/t/custom-dictionary-type-fieldless-keytype-fieldless-valtype/128405)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [April 25, 2025, 9:06pm UTC](https://discourse.julialang.org/t/custom-dictionary-type-fieldless-keytype-fieldless-valtype/128405 "2025-04-25T21:06:21Z")

</div>

Suppose there are some mutable struct types with no fields, and with the default (fallback) equality and hashing methods. A value of such a type has its identity as its only quality. For example: mutable struct A end mu…

---

## [Sub-arrays of static arrays](https://discourse.julialang.org/t/sub-arrays-of-static-arrays/128406)

<div class="topic-metadata">

**Author:** [@TimHargreaves](https://discourse.julialang.org/u/TimHargreaves)\
**Replies:** 6\
**Last updated:** [April 25, 2025, 5:53pm UTC](https://discourse.julialang.org/t/sub-arrays-of-static-arrays/128406 "2025-04-25T17:53:47Z")

</div>

From a previous step in my computations, I have a static array and I would now like to perform an operation, say a QR decomposition, on a sub-array. This is performance critical code so I would like to squeeze as much sp…

---

## [Nextfloat is slower on 2D array than on 1D array](https://discourse.julialang.org/t/nextfloat-is-slower-on-2d-array-than-on-1d-array/128380)

<div class="topic-metadata">

**Author:** [@hawahe](https://discourse.julialang.org/u/hawahe)\
**Replies:** 14\
**Last updated:** [April 25, 2025, 4:27pm UTC](https://discourse.julialang.org/t/nextfloat-is-slower-on-2d-array-than-on-1d-array/128380 "2025-04-25T16:27:36Z")

</div>

Running the following function with a 2D array is much slower than running it with the same array but flattened to a 1D array, and both return the same result. Why is the 2D version slower? function test(data::Array{Flo…

---

## [Why Are Statically Sized Arrays Immutable?](https://discourse.julialang.org/t/why-are-statically-sized-arrays-immutable/128331)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 30\
**Last updated:** [April 25, 2025, 3:06pm UTC](https://discourse.julialang.org/t/why-are-statically-sized-arrays-immutable/128331 "2025-04-25T15:06:20Z")

</div>

I often hear that StaticArrays.SArray is immutable because it is stack allocated. I’m sure this is a misunderstanding on my end, though, because stack allocated types in other languages can be mutated in other languages. …

---

## [Violin plot](https://discourse.julialang.org/t/violin-plot/128381)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 8\
**Last updated:** [April 25, 2025, 11:27am UTC](https://discourse.julialang.org/t/violin-plot/128381 "2025-04-25T11:27:17Z")

</div>

Hi there, It seems like violin plots truncate the support of the data. My understanding is that violin plots are kernel density estimates of the data but I’m struggling to find more information about the actual details. …

---

## [Is it ok to iterate inside a \`@simd\` loop?](https://discourse.julialang.org/t/is-it-ok-to-iterate-inside-a-simd-loop/128338)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 8\
**Last updated:** [April 25, 2025, 10:29am UTC](https://discourse.julialang.org/t/is-it-ok-to-iterate-inside-a-simd-loop/128338 "2025-04-25T10:29:35Z")

</div>

I’m delightfully surprised that this works: function mr(f, op, A, n) a1, s = iterate(A) a2, s = iterate(A, s) v = op(f(a1), f(a2)) @simd for \_ in 3:n ai, s = iterate(A, s) v = op(v, f(ai)…

---

## [Weird error in GitHub action: ERROR: LoadError: KeyError: key "PrecompileTools" not found](https://discourse.julialang.org/t/weird-error-in-github-action-error-loaderror-keyerror-key-precompiletools-not-found/128377)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 7\
**Last updated:** [April 25, 2025, 8:26am UTC](https://discourse.julialang.org/t/weird-error-in-github-action-error-loaderror-keyerror-key-precompiletools-not-found/128377 "2025-04-25T08:26:39Z")

</div>

I m trying to push a newer version of a package on GitHub. It tests fine in local, but on github actions I have the following weird error: Testing DICEModel Status \`/tmp/jl\_AC62Th/Project.toml\` ERROR: LoadEr…

---

## [How does Documenter.jl import the parent package?](https://discourse.julialang.org/t/how-does-documenter-jl-import-the-parent-package/128387)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 4\
**Last updated:** [April 25, 2025, 6:49am UTC](https://discourse.julialang.org/t/how-does-documenter-jl-import-the-parent-package/128387 "2025-04-25T06:49:44Z")

</div>

I am writing documentation for my package AISCSteel.jl. I am wanting to use my other package Handcalcs.jl to show some of the steps in the documentation. There is one limitation to Handcalcs.jl and that is that it will …

---

## [Pre-allocate intermediate arrays for multi-threading](https://discourse.julialang.org/t/pre-allocate-intermediate-arrays-for-multi-threading/128312)

<div class="topic-metadata">

**Author:** [@pulk\_jain](https://discourse.julialang.org/u/pulk_jain)\
**Replies:** 12\
**Last updated:** [April 24, 2025, 10:37pm UTC](https://discourse.julialang.org/t/pre-allocate-intermediate-arrays-for-multi-threading/128312 "2025-04-24T22:37:45Z")

</div>

Hi, I need help in pre-allocating some inner-variables of a for loop to reduce allocations in a multi-threaded code. I am creating multiple local arrays inside the for loop for intermediate calculations. Here’s a MWE wit…

---

## [@info doesn't show whole vector in task](https://discourse.julialang.org/t/info-doesnt-show-whole-vector-in-task/128385)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 7:53pm UTC](https://discourse.julialang.org/t/info-doesnt-show-whole-vector-in-task/128385 "2025-04-24T19:53:33Z")

</div>

I added this @info message to a function which is called from a task: @info "Blending" file=basename(blendFileName) streamNum blend=OffsetArrays.no\_offset\_view(blend) I get this output: ┌ Info: Blending │ file = "gg…

---

## [How do I redirect stdin to interactive Julia?](https://discourse.julialang.org/t/how-do-i-redirect-stdin-to-interactive-julia/128322)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 5\
**Last updated:** [April 24, 2025, 7:44pm UTC](https://discourse.julialang.org/t/how-do-i-redirect-stdin-to-interactive-julia/128322 "2025-04-24T19:44:47Z")

</div>

I need to run a Pkg command on several remote boxen. I wrote a file like this: \] dev ../Foo/ ../Bar/ ../Baz/ ../Quux/ and ran julia --project -i \</path/to/file in the project directory. Julia responded: ERROR: ParseEr…

---

## [Disable default tooltip in Pluto](https://discourse.julialang.org/t/disable-default-tooltip-in-pluto/128307)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [April 24, 2025, 12:26pm UTC](https://discourse.julialang.org/t/disable-default-tooltip-in-pluto/128307 "2025-04-24T12:26:48Z")

</div>

Hi, I am using @NTBond in PlutoExtras.jl to make a widget. Here is a basic example from the documentation: @NTBond "WoW" begin a = ("Description", Slider(1:10)) end I injected custom code into the tuple where “Descri…

---

## [Unitful @refunit converts to other length units](https://discourse.julialang.org/t/unitful-refunit-converts-to-other-length-units/128327)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 11:14am UTC](https://discourse.julialang.org/t/unitful-refunit-converts-to-other-length-units/128327 "2025-04-24T11:14:46Z")

</div>

I define a pixel as a reference unit as follows @refunit px "px" Pixel Unitful.𝐋 true However, the following happens despite not defining its size, uconvert(u"mm", 1u"px") 1000 mm Is this expected?

---

## [Band-gap structure of Mathieu equation](https://discourse.julialang.org/t/band-gap-structure-of-mathieu-equation/128360)

<div class="topic-metadata">

**Author:** [@acubed](https://discourse.julialang.org/u/acubed)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 10:25am UTC](https://discourse.julialang.org/t/band-gap-structure-of-mathieu-equation/128360 "2025-04-24T10:25:41Z")

</div>

I want to plot band-gap structure (also called zone structure) for the Mathieu equation, u''(t)+(B+A\\cos t)u(t)=0. According to the Floquet theory, this structure can be obtained by the computation of the monodromy matri…

---

## [Getting warning generated HTML from md file is too big](https://discourse.julialang.org/t/getting-warning-generated-html-from-md-file-is-too-big/128348)

<div class="topic-metadata">

**Author:** [@co1emi11er](https://discourse.julialang.org/u/co1emi11er)\
**Replies:** 3\
**Last updated:** [April 24, 2025, 6:43am UTC](https://discourse.julialang.org/t/getting-warning-generated-html-from-md-file-is-too-big/128348 "2025-04-24T06:43:33Z")

</div>

I am getting the following warning about two of my md files in my docs. julia\> servedocs() \[ Info: SetupBuildDirectory: setting up build directory. \[ Info: Doctest: running doctests. \[ Info: ExpandTemplates: expanding m…

---

## [SpecialFUnctions and CUDA](https://discourse.julialang.org/t/specialfunctions-and-cuda/116569)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 3\
**Last updated:** [April 24, 2025, 3:14am UTC](https://discourse.julialang.org/t/specialfunctions-and-cuda/116569 "2025-04-24T03:14:39Z")

</div>

Hi, I thought SpecialFunctions.jl worked flowlesly with CUDA, but I get this using CUDA N = 7000 M = CUDA.rand(N,N) besselh.(0,M) ERROR: InvalidIRError: compiling MethodInstance for (::GPUArrays.var"#35#37")(::CUDA.C…

---

## [Segmentation fault (core dumped) in 1.11.5 REPL](https://discourse.julialang.org/t/segmentation-fault-core-dumped-in-1-11-5-repl/128323)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 5\
**Last updated:** [April 24, 2025, 2:15am UTC](https://discourse.julialang.org/t/segmentation-fault-core-dumped-in-1-11-5-repl/128323 "2025-04-24T02:15:45Z")

</div>

I was trying to use my own package Pivot.jl in REPL. When I type m\<TAB\>, I got a segmentation fault. I can try to avoid autocompletion. But it’s a bit annoying not able to use it. Does anyone have similar problem and has…

---

## [Switch from Delphi/Pascal to Julia](https://discourse.julialang.org/t/switch-from-delphi-pascal-to-julia/66254)

<div class="topic-metadata">

**Author:** [@pjuergens](https://discourse.julialang.org/u/pjuergens)\
**Replies:** 14\
**Last updated:** [April 23, 2025, 10:50pm UTC](https://discourse.julialang.org/t/switch-from-delphi-pascal-to-julia/66254 "2025-04-23T22:50:26Z")

</div>

Dear Julia users, I am using an optimization model which is written in Delphi/Pascal and is called from a Python-Skript. However, Delphi (in my opinion) is not a very user friendly language and I would like to switch to…

---

## [PackageCompiler hangs while compiling nonincremental system image on Julia v1.11](https://discourse.julialang.org/t/packagecompiler-hangs-while-compiling-nonincremental-system-image-on-julia-v1-11/128099)

<div class="topic-metadata">

**Author:** [@uwestoehr](https://discourse.julialang.org/u/uwestoehr)\
**Replies:** 53\
**Last updated:** [April 23, 2025, 10:45pm UTC](https://discourse.julialang.org/t/packagecompiler-hangs-while-compiling-nonincremental-system-image-on-julia-v1-11/128099 "2025-04-23T22:45:37Z")

</div>

Thanks. I gave it a try, and the result is disappointing: I took the example as it is and followed the instructions but it hang up at compiling a “nonincremental system image”. (I have no clue what that term actually me…

---

## [How to print a vector on a single line with JSON3.jl](https://discourse.julialang.org/t/how-to-print-a-vector-on-a-single-line-with-json3-jl/128329)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 5:51pm UTC](https://discourse.julialang.org/t/how-to-print-a-vector-on-a-single-line-with-json3-jl/128329 "2025-04-23T17:51:13Z")

</div>

Hi, Is it possible to write a vector on a single line using JSON3.jl ?

---

## [DynamicQuantities - possible to display values with affine units?](https://discourse.julialang.org/t/dynamicquantities-possible-to-display-values-with-affine-units/128332)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 1:58pm UTC](https://discourse.julialang.org/t/dynamicquantities-possible-to-display-values-with-affine-units/128332 "2025-04-23T13:58:37Z")

</div>

Hello, I am experimenting with DynamicQuantities, and I am struggling with a simple problem: once you have created a variable with affine units, is it possible to display it with those units? Let’s say I create a DataFr…

---

## [How to share file with C?](https://discourse.julialang.org/t/how-to-share-file-with-c/128325)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 3\
**Last updated:** [April 23, 2025, 12:52pm UTC](https://discourse.julialang.org/t/how-to-share-file-with-c/128325 "2025-04-23T12:52:19Z")

</div>

My program contains some libraries written in C, and both the Julia part and the C part will write to the same log file. How can I share the file between Julia and C? I didn’t find a way to use FILE\* in Julia. The file …

---

## [JSON3 default values](https://discourse.julialang.org/t/json3-default-values/128324)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [April 23, 2025, 9:57am UTC](https://discourse.julialang.org/t/json3-default-values/128324 "2025-04-23T09:57:17Z")

</div>

How can I add default parameters for a struct that is parsed using JSON3.jl ? Do I need to overload the StructTypes.construct method, or is there an easier way? Something like this: import JSON3 struct Foo foo::U…

---

## [Recursive Accessor descend condition](https://discourse.julialang.org/t/recursive-accessor-descend-condition/128232)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 18\
**Last updated:** [April 23, 2025, 1:29am UTC](https://discourse.julialang.org/t/recursive-accessor-descend-condition/128232 "2025-04-23T01:29:33Z")

</div>

Is it possible to write this with Accessors.Recursive? using Accessors modifyrec(f, x) = if hasproperty(x, :bs) (@modify(x.bs |\> Elements()) do b modifyrec(f, b) end) |\> f else …

---

## [How to fix warnings related to Colors](https://discourse.julialang.org/t/how-to-fix-warnings-related-to-colors/128302)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 1:24am UTC](https://discourse.julialang.org/t/how-to-fix-warnings-related-to-colors/128302 "2025-04-23T01:24:38Z")

</div>

When pre-compiling KiteControllers.jl, I get the following warnings: WARNING: using deprecated binding ColorTypes.RGB1 in Colors. , use XRGB instead. WARNING: using deprecated binding Colors.RGB1 in ImageCore. , use Col…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=67)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=69)
