# Latest

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

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

**Page:** 779

---

## [ScatteredInterpolation - basic example from docs not working](https://discourse.julialang.org/t/scatteredinterpolation-basic-example-from-docs-not-working/94726)

<div class="topic-metadata">

**Author:** [@wave\_and\_matter](https://discourse.julialang.org/u/wave_and_matter)\
**Replies:** 2\
**Last updated:** [February 17, 2023, 8:32am UTC](https://discourse.julialang.org/t/scatteredinterpolation-basic-example-from-docs-not-working/94726 "2023-02-17T08:32:08Z")

</div>

I have tried to use the ScatteredInterpolation package. When i duplicate the first simple example from the documentation Home · ScatteredInterpolation.jl using ScatteredInterpolation samples = \[0.0; 0.5; 0.5; 0.5; 1.0\]…

---

## [How to construct StaticArray?](https://discourse.julialang.org/t/how-to-construct-staticarray/94772)

<div class="topic-metadata">

**Author:** [@J\_I](https://discourse.julialang.org/u/J_I)\
**Replies:** 6\
**Last updated:** [February 17, 2023, 8:24am UTC](https://discourse.julialang.org/t/how-to-construct-staticarray/94772 "2023-02-17T08:24:35Z")

</div>

Hi everyone. This is maybe a basic question regarding StaticArray.jl. I had just started to use StaticArrays.jl to optimize some codes of mine. I want to construct the SVector from Vector{SVector} like below a = \[@SVe…

---

## [Documenter.jl; Documentation workflow run failed for main branch ERROR in GitHub](https://discourse.julialang.org/t/documenter-jl-documentation-workflow-run-failed-for-main-branch-error-in-github/94744)

<div class="topic-metadata">

**Author:** [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Replies:** 2\
**Last updated:** [February 17, 2023, 8:21am UTC](https://discourse.julialang.org/t/documenter-jl-documentation-workflow-run-failed-for-main-branch-error-in-github/94744 "2023-02-17T08:21:56Z")

</div>

Following the “Documenter.jl” documentation I pushed documetation.yml file to GitHub. For some reason receiving the below error. Could you please help me with that? Run julia --project=docs/ -e 'using Pkg; Pkg.develop(P…

---

## [Is there any way to plot an inequality of 7 variables?](https://discourse.julialang.org/t/is-there-any-way-to-plot-an-inequality-of-7-variables/94770)

<div class="topic-metadata">

**Author:** [@Kanishk](https://discourse.julialang.org/u/Kanishk)\
**Replies:** 2\
**Last updated:** [February 17, 2023, 8:20am UTC](https://discourse.julialang.org/t/is-there-any-way-to-plot-an-inequality-of-7-variables/94770 "2023-02-17T08:20:45Z")

</div>

Hello, Could you please explain if there is any way to plot inequality of the form f(p,q,r,s,t,u,v) \<= g(p,q,r,s,t,u,v) ? Any example will be really helpful. Thank you

---

## [Changes in for-loop don't apply outside loop](https://discourse.julialang.org/t/changes-in-for-loop-dont-apply-outside-loop/94670)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 4\
**Last updated:** [February 17, 2023, 6:37am UTC](https://discourse.julialang.org/t/changes-in-for-loop-dont-apply-outside-loop/94670 "2023-02-17T06:37:59Z")

</div>

value = # A custom array I've made with dictionaries in them. Pretend original price values were \[1.0, 5.0, 7.0, 9.0, 12.0\]. for cur\_perm in perm\_array println(cur\_perm) # looks something like \[2.0, 10.0, 20.0, 30.0…

---

## [Anybody with an M1 Mac able to use the VSCode debugger? Unusably slow for me](https://discourse.julialang.org/t/anybody-with-an-m1-mac-able-to-use-the-vscode-debugger-unusably-slow-for-me/94773)

<div class="topic-metadata">

**Author:** [@jonathanfischer97](https://discourse.julialang.org/u/jonathanfischer97)\
**Replies:** 0\
**Last updated:** [February 17, 2023, 6:15am UTC](https://discourse.julialang.org/t/anybody-with-an-m1-mac-able-to-use-the-vscode-debugger-unusably-slow-for-me/94773 "2023-02-17T06:15:35Z")

</div>

Just wondering if anybody has the same experience on an M1 Mac. I like the features of the VSCode debugger but when I try to step through a Julia file it runs so slow that hitting the pause button only registers about 10…

---

## [How to control Julia from an external non-Julia program](https://discourse.julialang.org/t/how-to-control-julia-from-an-external-non-julia-program/93538)

<div class="topic-metadata">

**Author:** [@Jerry](https://discourse.julialang.org/u/Jerry)\
**Replies:** 4\
**Last updated:** [February 17, 2023, 4:43am UTC](https://discourse.julialang.org/t/how-to-control-julia-from-an-external-non-julia-program/93538 "2023-02-17T04:43:03Z")

</div>

I want to to use Julia to create plots from data generated by an externally compiled program written in another language. I am on macOS Monterey using Julia 1.8.3. I want to control Julia from within the external progra…

---

## [Can executables created by PackageCompiler.jl use julia command line options?](https://discourse.julialang.org/t/can-executables-created-by-packagecompiler-jl-use-julia-command-line-options/94764)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 4:07am UTC](https://discourse.julialang.org/t/can-executables-created-by-packagecompiler-jl-use-julia-command-line-options/94764 "2023-02-17T04:07:48Z")

</div>

More specifically, I want to run something like MyApp --julia-option="--trace-compile=compile.log" so that I can find what functions still need compilation, and update my precompile script accordingly.

---

## [What is pthread\_cond\_wait in PProf.jl output?](https://discourse.julialang.org/t/what-is-pthread-cond-wait-in-pprof-jl-output/94229)

<div class="topic-metadata">

**Author:** [@aksahoo](https://discourse.julialang.org/u/aksahoo)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 1:24am UTC](https://discourse.julialang.org/t/what-is-pthread-cond-wait-in-pprof-jl-output/94229 "2023-02-17T01:24:36Z")

</div>

I got a pthread\_cond\_wait in my profilling with PProf.jl What does that men? and how to avoid that or reduce that time?

---

## [Does everyone's code highlight on Discourse look so bland?](https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803)

<div class="topic-metadata">

**Author:** [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Replies:** 15\
**Last updated:** [February 17, 2023, 1:03am UTC](https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803 "2023-02-17T01:03:07Z")

</div>

This is how all code here looks like for me: The if, else, etc. are bolded, once in a while some words are in blue or red. I find it really hard sometimes to parse quickly what am I looking at. Discourse is said to…

---

## [Fail to run a compiled julia app on another machine](https://discourse.julialang.org/t/fail-to-run-a-compiled-julia-app-on-another-machine/79391)

<div class="topic-metadata">

**Author:** [@efJerryYang](https://discourse.julialang.org/u/efJerryYang)\
**Replies:** 1\
**Last updated:** [February 17, 2023, 12:42am UTC](https://discourse.julialang.org/t/fail-to-run-a-compiled-julia-app-on-another-machine/79391 "2023-02-17T00:42:54Z")

</div>

Update: I think this problem may not be solved unless the absolute path used in PyCall was fixed Hi, I am getting this error when I run a compiled Julia app on another win10 machine. I found an almost same problem iss…

---

## [Segfault calling C function, any advice?](https://discourse.julialang.org/t/segfault-calling-c-function-any-advice/94730)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 11:34pm UTC](https://discourse.julialang.org/t/segfault-calling-c-function-any-advice/94730 "2023-02-16T23:34:06Z")

</div>

Hey all, I’m trying to call the libsais\_int function from libsais, with signature: int32\_t libsais\_int(int32\_t \* T, int32\_t \* SA, int32\_t n, int32\_t k, int32\_t fs); I wrote the following (and also tried using pointer(…

---

## [Avoid allocating an anonymous function](https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 5\
**Last updated:** [February 17, 2023, 12:11am UTC](https://discourse.julialang.org/t/avoid-allocating-an-anonymous-function/94689 "2023-02-17T00:11:30Z")

</div>

I have an application where the package I am using requires the user to provide a function phi with calling statement like phi(a::Real)=.... I would like to pass additional function arguments args to phi. The way I have …

---

## [CausalELM.jl: extreme learning machines for causal inference](https://discourse.julialang.org/t/causalelm-jl-extreme-learning-machines-for-causal-inference/94748)

<div class="topic-metadata">

**Author:** [@dscolby](https://discourse.julialang.org/u/dscolby)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 10:01pm UTC](https://discourse.julialang.org/t/causalelm-jl-extreme-learning-machines-for-causal-inference/94748 "2023-02-16T22:01:58Z")

</div>

CausalELM.jl is a new package to estimate treatment effects by predicting counterfactuals and correcting for nonrandomization. CausalELM.jl enables the estimation of event study designs, G-Computation, doubly robust est…

---

## [Complex equations](https://discourse.julialang.org/t/complex-equations/94742)

<div class="topic-metadata">

**Author:** [@johhell](https://discourse.julialang.org/u/johhell)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 9:39pm UTC](https://discourse.julialang.org/t/complex-equations/94742 "2023-02-16T21:39:39Z")

</div>

After \>20 years working with MODELICA I tried to use Complex equations in MTK. In a simple example an ohmic resistor and a inductor are connected in series to a constant voltage source. I used per unit system with space…

---

## [Optionally async method in API of a package](https://discourse.julialang.org/t/optionally-async-method-in-api-of-a-package/94740)

<div class="topic-metadata">

**Author:** [@danlkv](https://discourse.julialang.org/u/danlkv)\
**Replies:** 0\
**Last updated:** [February 16, 2023, 7:52pm UTC](https://discourse.julialang.org/t/optionally-async-method-in-api-of-a-package/94740 "2023-02-16T19:52:16Z")

</div>

I’m developing a package which submits some jobs over the network. My main do\_job(...) function uses @async and sends data over without blocking so I can submit multiple jobs and potentially handle them in parallel. Howe…

---

## [Display IMAP server message when writing a command to it](https://discourse.julialang.org/t/display-imap-server-message-when-writing-a-command-to-it/56291)

<div class="topic-metadata">

**Author:** [@Chen](https://discourse.julialang.org/u/Chen)\
**Replies:** 14\
**Last updated:** [February 16, 2023, 8:02am UTC](https://discourse.julialang.org/t/display-imap-server-message-when-writing-a-command-to-it/56291 "2023-02-16T08:02:20Z")

</div>

I’m trying to hack out some codes to fetch emails from IMAP server. I’m able to connect to an IMAP server and send a message to the server I changed the user name and the password in the code below, because I do not wa…

---

## [How do I add content-type to HTTP.jl server?](https://discourse.julialang.org/t/how-do-i-add-content-type-to-http-jl-server/94725)

<div class="topic-metadata">

**Author:** [@zeroexcuses](https://discourse.julialang.org/u/zeroexcuses)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 7:07pm UTC](https://discourse.julialang.org/t/how-do-i-add-content-type-to-http-jl-server/94725 "2023-02-16T19:07:02Z")

</div>

Main problem here is, when serving \*.js file: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts p…

---

## [Choosing what to precompile as a package author](https://discourse.julialang.org/t/choosing-what-to-precompile-as-a-package-author/94705)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [February 16, 2023, 4:34pm UTC](https://discourse.julialang.org/t/choosing-what-to-precompile-as-a-package-author/94705 "2023-02-16T16:34:50Z")

</div>

The native code caching in 1.9 is amazing, but as a package author its sometimes hard to navigate the precompile-time / run-time tradeoff and decide what to precompile. In my case if I precompile “pretty much everything …

---

## [Julia artifact overrides](https://discourse.julialang.org/t/julia-artifact-overrides/94704)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 4:34pm UTC](https://discourse.julialang.org/t/julia-artifact-overrides/94704 "2023-02-16T16:34:27Z")

</div>

I have a few questions regarding the behavior of the Overrides.toml file, which aren’t directly answered in the docs (although I’m happy to add a PR with more detail once answered :smiley:) To override a \*\_jll package…

---

## [Download CSV from DataFrame in Pluto](https://discourse.julialang.org/t/download-csv-from-dataframe-in-pluto/94560)

<div class="topic-metadata">

**Author:** [@vzion](https://discourse.julialang.org/u/vzion)\
**Replies:** 4\
**Last updated:** [February 16, 2023, 4:32pm UTC](https://discourse.julialang.org/t/download-csv-from-dataframe-in-pluto/94560 "2023-02-16T16:32:07Z")

</div>

Hello, Is there a better way to generate a downloadable CSV file from a dataframe in Pluto/PlutoUI than using CSV.write with take! like this? df = DataFrame(a=\[1,2\],b=\["a","b"\]) DownloadButton(take!(CSV.write(IOBuffer(…

---

## [Why is 'trace' slow on CUDA matrices?](https://discourse.julialang.org/t/why-is-trace-slow-on-cuda-matrices/94723)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 4\
**Last updated:** [February 16, 2023, 4:05pm UTC](https://discourse.julialang.org/t/why-is-trace-slow-on-cuda-matrices/94723 "2023-02-16T16:05:09Z")

</div>

Hello, I am kind of surprised to see this benchmark: julia\> using BenchmarkTools, CUDA, LinearAlgebra julia\> A = rand(128, 128); julia\> Ad = cu(A); julia\> @btime tr($A) 70.092 ns (0 allocations: 0 bytes) 64.994448…

---

## [Adding 1d array into 1d array (or Vector?) in mutable structs](https://discourse.julialang.org/t/adding-1d-array-into-1d-array-or-vector-in-mutable-structs/94727)

<div class="topic-metadata">

**Author:** [@rolim.gustavo](https://discourse.julialang.org/u/rolim.gustavo)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 3:50pm UTC](https://discourse.julialang.org/t/adding-1d-array-into-1d-array-or-vector-in-mutable-structs/94727 "2023-02-16T15:50:06Z")

</div>

Hello everyone! I’m an industrial engineer and relatively new to Julia, so I’m sorry for any possible conceptual mistakes here. I am interested in creating a vector containing multiple 1d arrays within a mutable structu…

---

## [Annotating and Restricting Parametric Types](https://discourse.julialang.org/t/annotating-and-restricting-parametric-types/94683)

<div class="topic-metadata">

**Author:** [@opiateblush](https://discourse.julialang.org/u/opiateblush)\
**Replies:** 12\
**Last updated:** [February 16, 2023, 2:44pm UTC](https://discourse.julialang.org/t/annotating-and-restricting-parametric-types/94683 "2023-02-16T14:44:58Z")

</div>

Hello Julia experts! I’m trying to understand the differences between the following parametric type annotations and their general implications: d1 = Dict{String, Matrix{Real}}() d2 = Dict{String, Matrix{\<:Real}}() d1\["…

---

## [Theming coloured boxplots in Makie](https://discourse.julialang.org/t/theming-coloured-boxplots-in-makie/94552)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 8\
**Last updated:** [February 16, 2023, 2:27pm UTC](https://discourse.julialang.org/t/theming-coloured-boxplots-in-makie/94552 "2023-02-16T14:27:49Z")

</div>

Can someone explain to me how to theme a Makie boxplot such that I can colour boxes by specific conditions or ‘groups’, and also control the colour palette for this via a custom theme? I can alter colour palette via the…

---

## [Searching unicode characters in Visual Studio Code](https://discourse.julialang.org/t/searching-unicode-characters-in-visual-studio-code/94722)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [February 16, 2023, 1:42pm UTC](https://discourse.julialang.org/t/searching-unicode-characters-in-visual-studio-code/94722 "2023-02-16T13:42:27Z")

</div>

I love Julia and Visual Studio Code (VSC), and I have adopted Unicode characters such as \\omega\[tab\]. However, how do I search for those characters using VSC? I have not figured this out or found any information that all…

---

## [Simple DiGraph Plot Directed Graph: no method matching](https://discourse.julialang.org/t/simple-digraph-plot-directed-graph-no-method-matching/94721)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 2:14pm UTC](https://discourse.julialang.org/t/simple-digraph-plot-directed-graph-no-method-matching/94721 "2023-02-16T14:14:44Z")

</div>

Hi all, I am reading this post: but when I try the code: # Load the packages using LightGraphs, GraphPlot, MetaGraphs, GraphRecipes, Plots # Load the adjacency matrix and graph attributes mat\_arcTwoNodes = \[0 1 …

---

## [\[ANN\] RelevanceStacktrace.jl: For fastest error locating](https://discourse.julialang.org/t/ann-relevancestacktrace-jl-for-fastest-error-locating/86097)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 8\
**Last updated:** [February 16, 2023, 2:02pm UTC](https://discourse.julialang.org/t/ann-relevancestacktrace-jl-for-fastest-error-locating/86097 "2023-02-16T14:02:46Z")

</div>

Hey Julianners! Errors are part of our life, but locating them isn’t! The package locate the files that are yours and highlights them. Also, it will BOLD the first file you are actually looking for 99% of the time. So …

---

## [StatsPlot error: Cannot convert Normal{Float64} to series data for plotting](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 12:40pm UTC](https://discourse.julialang.org/t/statsplot-error-cannot-convert-normal-float64-to-series-data-for-plotting/94720 "2023-02-16T12:40:19Z")

</div>

Hi all I am trying the plot from StatsPlot but I can’t… my status: Status \`~/LasthrimProjection/JupyterLab/Statistics/Project.toml\` \[31c24e10\] Distributions v0.25.80 \[f3b207a7\] StatsPlots v0.15.4 the code …

---

## [Validating the content of a struct field](https://discourse.julialang.org/t/validating-the-content-of-a-struct-field/94717)

<div class="topic-metadata">

**Author:** [@Sibbe\_Bakker](https://discourse.julialang.org/u/Sibbe_Bakker)\
**Replies:** 5\
**Last updated:** [February 16, 2023, 11:14am UTC](https://discourse.julialang.org/t/validating-the-content-of-a-struct-field/94717 "2023-02-16T11:14:12Z")

</div>

Hello all, I am a beginner in the julia language and I quite like it. I am trying to make a struct that checks whether the input is valid: struct Dna # Basic elements of a DNA string sequence::String identi…

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

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