# Latest

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

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

**Page:** 1008

---

## [Close Channels when the Last Task Finishes](https://discourse.julialang.org/t/close-channels-when-the-last-task-finishes/82943)

<div class="topic-metadata">

**Author:** [@juliafriend](https://discourse.julialang.org/u/juliafriend)\
**Replies:** 0\
**Last updated:** [June 17, 2022, 9:12pm UTC](https://discourse.julialang.org/t/close-channels-when-the-last-task-finishes/82943 "2022-06-17T21:12:37Z")

</div>

Hi, (This maybe should be in the Julia newbies category?) I know from documentation that if you bind a channel to multiple tasks, bind(c, t1) bind(c, t2) the channel will close when any one of the tasks finishes an…

---

## [JuliaDB compatibility issue](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913)

<div class="topic-metadata">

**Author:** [@Inbar\_Maimon](https://discourse.julialang.org/u/Inbar_Maimon)\
**Replies:** 5\
**Last updated:** [June 17, 2022, 8:48pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913 "2022-06-17T20:48:34Z")

</div>

Hi! I’m trying to use JuliaDB. When I try to add it, I get the following incompatibility message: (@v1.7) pkg\> add JuliaDB Resolving package versions... ERROR: Unsatisfiable requirements detected for package MLUtils…

---

## [Relationship between WeakRef and finalizer (building a cache)](https://discourse.julialang.org/t/relationship-between-weakref-and-finalizer-building-a-cache/82935)

<div class="topic-metadata">

**Author:** [@herzfeldd](https://discourse.julialang.org/u/herzfeldd)\
**Replies:** 0\
**Last updated:** [June 17, 2022, 7:31pm UTC](https://discourse.julialang.org/t/relationship-between-weakref-and-finalizer-building-a-cache/82935 "2022-06-17T19:31:00Z")

</div>

I am hoping someone can tell me what I am doing wrong. Long story short, I am working on a program that does some caching in Julia. My goal is to allow my “cache” structure to be garbage collected as necessary, but any …

---

## [Julia Python equivalent of \_\_main\_\_?](https://discourse.julialang.org/t/julia-python-equivalent-of-main/35433)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 4\
**Last updated:** [June 17, 2022, 6:50pm UTC](https://discourse.julialang.org/t/julia-python-equivalent-of-main/35433 "2022-06-17T18:50:36Z")

</div>

In Julia, what is the python equivalent of if name == “main” ? For example: def main(): pass def print\_tre\_volte(parola): print(parola) print(parola) print(parola) if \_\_name\_\_ == "\_\_main\_\_": m…

---

## [Gratuitous, Annoying Changes for Julie 2.0](https://discourse.julialang.org/t/gratuitous-annoying-changes-for-julie-2-0/66170)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 64\
**Last updated:** [June 17, 2022, 5:36pm UTC](https://discourse.julialang.org/t/gratuitous-annoying-changes-for-julie-2-0/66170 "2022-06-17T17:36:28Z")

</div>

In a another thread (that has gone on way longer than I expected) @StefanKarpinski stated we are not interesting in making gratuitous annoying changes in Julia 2.0. Where some may hear an idea and say, “Why?”, I see …

---

## [Best way to plot an arrow in a MeshCatMechanisms visualizer?](https://discourse.julialang.org/t/best-way-to-plot-an-arrow-in-a-meshcatmechanisms-visualizer/69717)

<div class="topic-metadata">

**Author:** [@hkolano](https://discourse.julialang.org/u/hkolano)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 5:10pm UTC](https://discourse.julialang.org/t/best-way-to-plot-an-arrow-in-a-meshcatmechanisms-visualizer/69717 "2022-06-17T17:10:08Z")

</div>

I’d like to get a result similar to the force plotting done in this issue: Body wrench from forces applied at different points · Issue #589 · JuliaRobotics/RigidBodyDynamics.jl · GitHub. Unfortunately, the code for the a…

---

## [RemoteFiles.jl User Survey](https://discourse.julialang.org/t/remotefiles-jl-user-survey/82553)

<div class="topic-metadata">

**Author:** [@helgee](https://discourse.julialang.org/u/helgee)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 4:26pm UTC](https://discourse.julialang.org/t/remotefiles-jl-user-survey/82553 "2022-06-17T16:26:40Z")

</div>

Hi folks, I am planning to overhaul my RemoteFiles.jl package. If you are currently using the package, I would like to know which backends you are using. I am uncertain whether the different backends are still needed or…

---

## [Idempotent matrices in Julia](https://discourse.julialang.org/t/idempotent-matrices-in-julia/82467)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 4:06pm UTC](https://discourse.julialang.org/t/idempotent-matrices-in-julia/82467 "2022-06-17T16:06:31Z")

</div>

Hi all, I have created a small blog post related to Idempotent matrices with Julia. Idempotent matrices in Julia Please provide your feedback.

---

## [Very simple statistic needed](https://discourse.julialang.org/t/very-simple-statistic-needed/82923)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [June 17, 2022, 3:54pm UTC](https://discourse.julialang.org/t/very-simple-statistic-needed/82923 "2022-06-17T15:54:33Z")

</div>

I have a very simple task: I have a list of CAN bus addresses like this: 1236454-element Vector{Union{Missing, Int64}}: 65 65 48 48 49 49 50 50 ⋮ 57 65 58 58 65 59 59 Because all numbers are below 128 …

---

## [MS Teams not supporting Julia syntax highlighting](https://discourse.julialang.org/t/ms-teams-not-supporting-julia-syntax-highlighting/82904)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [June 17, 2022, 3:06pm UTC](https://discourse.julialang.org/t/ms-teams-not-supporting-julia-syntax-highlighting/82904 "2022-06-17T15:06:14Z")

</div>

In MS Teams you can insert code snippets, but you cannot select Julia as language. Any idea where to complain about it?

---

## [\[ANN\] PartialLeastSquaresRegressor.jl](https://discourse.julialang.org/t/ann-partialleastsquaresregressor-jl/48549)

<div class="topic-metadata">

**Author:** [@lalvim](https://discourse.julialang.org/u/lalvim)\
**Replies:** 17\
**Last updated:** [June 17, 2022, 3:05pm UTC](https://discourse.julialang.org/t/ann-partialleastsquaresregressor-jl/48549 "2022-06-17T15:05:32Z")

</div>

Hello everyone. This is an open invitation to the community. PartialLeastSquaresRegressor.jl is a package made in Julia with the aim of solving regression problems, especially when there are few samples. Very suitable f…

---

## [ModelingToolkit.jl version management](https://discourse.julialang.org/t/modelingtoolkit-jl-version-management/67771)

<div class="topic-metadata">

**Author:** [@Akhilesh\_Raj](https://discourse.julialang.org/u/Akhilesh_Raj)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 3:05pm UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-version-management/67771 "2022-06-17T15:05:12Z")

</div>

The ModelingToolkit.jl latest releases have some error popping up associated with the ODESystem. I am a novice to Julia coding and I can’t figure out why the error : ArgumentError: The name keyword must be provided. Pl…

---

## [\[ANN\] IterativeNelderMead.jl - A Robust Nelder-Mead Solver](https://discourse.julialang.org/t/ann-iterativeneldermead-jl-a-robust-nelder-mead-solver/82786)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 8\
**Last updated:** [June 17, 2022, 8:46am UTC](https://discourse.julialang.org/t/ann-iterativeneldermead-jl-a-robust-nelder-mead-solver/82786 "2022-06-17T08:46:50Z")

</div>

IterativeNelderMead.jl This flavor of Nelder-Mead is based on the Matlab algorithm available here with additional tweaks. Some details: The solver performs multiple iterations of full-dimensional simplex calls followe…

---

## [How to create a custom circle plot with arrow and a perpendicular sign for certain point?](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 10\
**Last updated:** [June 17, 2022, 1:28pm UTC](https://discourse.julialang.org/t/how-to-create-a-custom-circle-plot-with-arrow-and-a-perpendicular-sign-for-certain-point/82867 "2022-06-17T13:28:42Z")

</div>

Hi all, I want to create an arrow that can show how many radians a certain point has been rotated, another one is a perpendicular sign from right side triangle, I do not know how to create that symbol in Julia. Picture…

---

## [A guide: How to handle "ERROR: Unsatisfiable requirements detected ..."](https://discourse.julialang.org/t/a-guide-how-to-handle-error-unsatisfiable-requirements-detected/43406)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 1:08pm UTC](https://discourse.julialang.org/t/a-guide-how-to-handle-error-unsatisfiable-requirements-detected/43406 "2022-06-17T13:08:13Z")

</div>

Approximately once or twice a week (based on my feelings, not actual stats), I see a post asking about error: How to handle “ERROR: Unsatisfiable requirements detected …” It’s so common that I think it’s time for a syst…

---

## [I don't get an error messages after a task/ thread failed](https://discourse.julialang.org/t/i-dont-get-an-error-messages-after-a-task-thread-failed/36255)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 20\
**Last updated:** [June 17, 2022, 12:41pm UTC](https://discourse.julialang.org/t/i-dont-get-an-error-messages-after-a-task-thread-failed/36255 "2022-06-17T12:41:18Z")

</div>

Shouldn’t I get notified it a inner task fails?

---

## [Background image with specific coordinates in Plots.jl](https://discourse.julialang.org/t/background-image-with-specific-coordinates-in-plots-jl/82905)

<div class="topic-metadata">

**Author:** [@unis](https://discourse.julialang.org/u/unis)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 12:08pm UTC](https://discourse.julialang.org/t/background-image-with-specific-coordinates-in-plots-jl/82905 "2022-06-17T12:08:03Z")

</div>

How can a background image be added at specific coordinates (and with a specific scale) on a Plots.jl plot? Assume you have an image of a floor plan whose corner points are associated with specific coordinates, and you’…

---

## [Teaching Scientific Computing with Julia](https://discourse.julialang.org/t/teaching-scientific-computing-with-julia/82851)

<div class="topic-metadata">

**Author:** [@martin.d.maas](https://discourse.julialang.org/u/martin.d.maas)\
**Replies:** 22\
**Last updated:** [June 17, 2022, 11:44am UTC](https://discourse.julialang.org/t/teaching-scientific-computing-with-julia/82851 "2022-06-17T11:44:49Z")

</div>

This post is to continue a discussion posted by @Bruno\_Amorim in another thread. I occasionally teach a class about numerical methods. On one occasion (a small advanced course) I managed to use Julia with my students, b…

---

## [Reasons that trigger precompilation?](https://discourse.julialang.org/t/reasons-that-trigger-precompilation/82625)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 9:33am UTC](https://discourse.julialang.org/t/reasons-that-trigger-precompilation/82625 "2022-06-17T09:33:34Z")

</div>

I’m using Julia 1.7.2 mostly through Jupyter notebooks and I’m running into a weird thing. Often (but not always), restarting the kernel triggers a recompilations of some key packages (GLM, Flux, CUDA, PyCall, among othe…

---

## [How to plot a 2D rotated array](https://discourse.julialang.org/t/how-to-plot-a-2d-rotated-array/47603)

<div class="topic-metadata">

**Author:** [@luraess](https://discourse.julialang.org/u/luraess)\
**Replies:** 17\
**Last updated:** [June 17, 2022, 8:58am UTC](https://discourse.julialang.org/t/how-to-plot-a-2d-rotated-array/47603 "2022-06-17T08:58:01Z")

</div>

I am trying to plot a heatmap (or contourf, or similar) of a 2D array as function of rotated x and y coordinates. Here a code snippet of what I am trying to achieve: using Plots α = 10.0 lx, ly = 300.0, 100.0 nx, n…

---

## [\[Debugging\] Need help on a ForwardDiff issue](https://discourse.julialang.org/t/debugging-need-help-on-a-forwarddiff-issue/82894)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 10\
**Last updated:** [June 17, 2022, 8:36am UTC](https://discourse.julialang.org/t/debugging-need-help-on-a-forwarddiff-issue/82894 "2022-06-17T08:36:05Z")

</div>

Hey, In my package Copulas.jl there might be a typing error somewhere that does not allow ForwardDiff to pass through some of the functions. Symply trying to minimize the loglikelyhood of the model does not work as expe…

---

## [Can I persuade vscode NOT to autocomplete keywords?](https://discourse.julialang.org/t/can-i-persuade-vscode-not-to-autocomplete-keywords/82883)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 7:33am UTC](https://discourse.julialang.org/t/can-i-persuade-vscode-not-to-autocomplete-keywords/82883 "2022-06-17T07:33:39Z")

</div>

It insists on completing for instance end. Very annoying. I cannot find any setting to control this. But, perhaps there is a trick?

---

## [MultivariateStats.transform ,MethodError:](https://discourse.julialang.org/t/multivariatestats-transform-methoderror/82825)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 7:23am UTC](https://discourse.julialang.org/t/multivariatestats-transform-methoderror/82825 "2022-06-17T07:23:19Z")

</div>

How to overcome that Method error ? Data 7043×2 Matrix{Float64}: -1.27735 -1.16024 0.0663227 -0.259611 -1.23664 -0.362635 0.514215 -0.746482 -1.23664 0.197351 -0.992332 1.15946 -0.422287 …

---

## [Plot using remote server](https://discourse.julialang.org/t/plot-using-remote-server/82873)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 2\
**Last updated:** [June 17, 2022, 7:20am UTC](https://discourse.julialang.org/t/plot-using-remote-server/82873 "2022-06-17T07:20:27Z")

</div>

I have a strange simple problem but very important for my reports when I try to generate an image using Super Computer server I got it with a cut at the axis (vertical and horizontal ) like this photo this is the co…

---

## [Communication error between local processes and remote processes](https://discourse.julialang.org/t/communication-error-between-local-processes-and-remote-processes/82903)

<div class="topic-metadata">

**Author:** [@Isaia\_Nisoli](https://discourse.julialang.org/u/Isaia_Nisoli)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 5:02am UTC](https://discourse.julialang.org/t/communication-error-between-local-processes-and-remote-processes/82903 "2022-06-17T05:02:14Z")

</div>

Hi, I’m experimenting with a setup and I’m getting a strange behavior. using Distributed loc\_proc = addprocs(4) # this adds processes 2 to 5 on the local machine rem\_proc = addprocs(\[("foo@remote\_machine", :auto)\]) # …

---

## [Watch folder and plot new data in Makie](https://discourse.julialang.org/t/watch-folder-and-plot-new-data-in-makie/82796)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 4:30am UTC](https://discourse.julialang.org/t/watch-folder-and-plot-new-data-in-makie/82796 "2022-06-17T04:30:54Z")

</div>

I have an experiment where a detector collects data and then writes a file. I want to watch a folder and when a new file appears, I want to load the data and plot it using GLMakie. I am almost there but I’m hitting one …

---

## [Creating a corpus with a custom tokenizer](https://discourse.julialang.org/t/creating-a-corpus-with-a-custom-tokenizer/82902)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 4:05am UTC](https://discourse.julialang.org/t/creating-a-corpus-with-a-custom-tokenizer/82902 "2022-06-17T04:05:09Z")

</div>

I am trying to build a corpus with a custom tokenizer in Julia but I cannot figure out how to do it. I tried using TextAnalysis.jl’s Corpus function in order to create the corpus, but it does not allow me to specify a to…

---

## [ParseError: KaTeX parse error: No such environment: tabular at position 7: \\begin{̲t̲a̲b̲u̲l̲a̲r̲}̲ {l | r | r | r…](https://discourse.julialang.org/t/parseerror-katex-parse-error-no-such-environment-tabular-at-position-7-begin-t-a-b-u-l-a-r-l-r-r-r/82889)

<div class="topic-metadata">

**Author:** [@Aesth\_Estheticism](https://discourse.julialang.org/u/Aesth_Estheticism)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 3:25am UTC](https://discourse.julialang.org/t/parseerror-katex-parse-error-no-such-environment-tabular-at-position-7-begin-t-a-b-u-l-a-r-l-r-r-r/82889 "2022-06-17T03:25:21Z")

</div>

When I used the default code of MixedModels package, and a error happened that “ParseError: KaTeX parse error: No such environment: tabular at position 7: \\begin{̲t̲a̲b̲u̲l̲a̲r̲}̲ {l | r | r | r…”. The default code are …

---

## [Is it possible to train sparse neural networks in GPU?](https://discourse.julialang.org/t/is-it-possible-to-train-sparse-neural-networks-in-gpu/82680)

<div class="topic-metadata">

**Author:** [@paulobruno](https://discourse.julialang.org/u/paulobruno)\
**Replies:** 3\
**Last updated:** [June 17, 2022, 2:57am UTC](https://discourse.julialang.org/t/is-it-possible-to-train-sparse-neural-networks-in-gpu/82680 "2022-06-17T02:57:34Z")

</div>

I would like to train a sparse neural network using Flux. I can train it in CPU, but I would like to do it using GPU, profiting from CuSparseMatrixCSC. However, when I try to run the code below I get ERROR: LoadError: Th…

---

## [Recommended way to test for precompilation warnings and errors?](https://discourse.julialang.org/t/recommended-way-to-test-for-precompilation-warnings-and-errors/82896)

<div class="topic-metadata">

**Author:** [@Xuan](https://discourse.julialang.org/u/Xuan)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 1:37am UTC](https://discourse.julialang.org/t/recommended-way-to-test-for-precompilation-warnings-and-errors/82896 "2022-06-17T01:37:13Z")

</div>

Several times recently while developing Julia packages, I have found myself needing to test that a particular package feature does not result in precompilation warnings or errors when used by other packages. Often this i…

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

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