# Latest

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

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

**Page:** 715

---

## [Probability Outcomes Plot with JULIA for Fair Coin Tossing](https://discourse.julialang.org/t/probability-outcomes-plot-with-julia-for-fair-coin-tossing/94663)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 28\
**Last updated:** [April 30, 2023, 8:52am UTC](https://discourse.julialang.org/t/probability-outcomes-plot-with-julia-for-fair-coin-tossing/94663 "2023-04-30T08:52:03Z")

</div>

Hi all, I want to plot the possible outcomes of tossing a fair coin for n times. If three times tossed then it should be like this graph: Which package in Julia can make this kind of graph?

---

## [How to convert Symbolics.jl expressions to functions while keeping speed?](https://discourse.julialang.org/t/how-to-convert-symbolics-jl-expressions-to-functions-while-keeping-speed/98111)

<div class="topic-metadata">

**Author:** [@Tony\_Zhang](https://discourse.julialang.org/u/Tony_Zhang)\
**Replies:** 2\
**Last updated:** [April 30, 2023, 5:16am UTC](https://discourse.julialang.org/t/how-to-convert-symbolics-jl-expressions-to-functions-while-keeping-speed/98111 "2023-04-30T05:16:34Z")

</div>

Hello! I’m using Symbolics.jl to perform some symbolic computations and then convert the resulting expressions to functions for further use. However, when I use build\_function to generate functions, the speed is only a …

---

## [Multithreading broadcast/map calls](https://discourse.julialang.org/t/multithreading-broadcast-map-calls/97956)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 7\
**Last updated:** [April 30, 2023, 1:34am UTC](https://discourse.julialang.org/t/multithreading-broadcast-map-calls/97956 "2023-04-30T01:34:38Z")

</div>

I’m working on improving the performance of code and one simple step is making broadcast calls multithreaded. After seeing that Threads.@threads macro doesn’t work for broadcast lines, I started converting code like b …

---

## [Problem processing TCP CONNECT REFUSED in Julia](https://discourse.julialang.org/t/problem-processing-tcp-connect-refused-in-julia/98096)

<div class="topic-metadata">

**Author:** [@Charles\_Brauer](https://discourse.julialang.org/u/Charles_Brauer)\
**Replies:** 3\
**Last updated:** [April 30, 2023, 1:36am UTC](https://discourse.julialang.org/t/problem-processing-tcp-connect-refused-in-julia/98096 "2023-04-30T01:36:23Z")

</div>

Hey Guys, I am trying to convert some C# code that processes real-time data streaming of financial data. My application uses the TCP socket-based client from https://www.IQFeed.net to receive the data during market hou…

---

## [How to omit type assertion from compiled output](https://discourse.julialang.org/t/how-to-omit-type-assertion-from-compiled-output/98090)

<div class="topic-metadata">

**Author:** [@ColinCaine](https://discourse.julialang.org/u/ColinCaine)\
**Replies:** 8\
**Last updated:** [April 30, 2023, 12:34am UTC](https://discourse.julialang.org/t/how-to-omit-type-assertion-from-compiled-output/98090 "2023-04-30T00:34:16Z")

</div>

Hello! I have a struct S that contains a Union{Some{String}, Nothing} and I’m accessing the value at a time when it’s guaranteed to be a Some{String} (unless someone accesses the private fields of the struct). Can I acc…

---

## [Hiring Tutors](https://discourse.julialang.org/t/hiring-tutors/61317)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 15\
**Last updated:** [April 30, 2023, 12:14am UTC](https://discourse.julialang.org/t/hiring-tutors/61317 "2023-04-30T00:14:51Z")

</div>

Is there somwhere I can hire a tutor to learn Julia and stats? Whenever I try going through the documentation for packages, there is always something unexplained, and when I ask a question on discourse, everyone gets up…

---

## [Resizing GLMakie figure to display window](https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [April 29, 2023, 10:21pm UTC](https://discourse.julialang.org/t/resizing-glmakie-figure-to-display-window/98103 "2023-04-29T22:21:17Z")

</div>

For the following figure, using GLMakie fig = Figure(fontsize = 27) sl = Slider(fig\[1, 0\]) \[Axis(fig\[i, j\], width = 600, height = 300, title = "i,j") for i in 1:2, j in 1:3\] le = LineElement(color=:red,linewidth=2,line…

---

## [Why my julia keep running in the background, even though I have shut down the terminal?](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870)

<div class="topic-metadata">

**Author:** [@Daniel\_Liu](https://discourse.julialang.org/u/Daniel_Liu)\
**Replies:** 9\
**Last updated:** [April 29, 2023, 10:06pm UTC](https://discourse.julialang.org/t/why-my-julia-keep-running-in-the-background-even-though-i-have-shut-down-the-terminal/97870 "2023-04-29T22:06:47Z")

</div>

why my julia keep running under the background,even though I have shut down the terminal?

---

## [Problem with visual studio code and LinearAlgebra](https://discourse.julialang.org/t/problem-with-visual-studio-code-and-linearalgebra/98100)

<div class="topic-metadata">

**Author:** [@marco\_menarini](https://discourse.julialang.org/u/marco_menarini)\
**Replies:** 3\
**Last updated:** [April 29, 2023, 9:38pm UTC](https://discourse.julialang.org/t/problem-with-visual-studio-code-and-linearalgebra/98100 "2023-04-29T21:38:29Z")

</div>

I have a problem that is difficult to diagnose. I generated a sparse matrix and a vector, all the elements are allocated, if I run the function step by step in VS Code everything seems to work fine, but when I just run J…

---

## [Robust Mahalanobis distance in high-dimensions with limited samples](https://discourse.julialang.org/t/robust-mahalanobis-distance-in-high-dimensions-with-limited-samples/98089)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 9:15pm UTC](https://discourse.julialang.org/t/robust-mahalanobis-distance-in-high-dimensions-with-limited-samples/98089 "2023-04-29T21:15:51Z")

</div>

Hello, I would like to use an iterative algorithm to estimate the parameters of a t-distribution \\pi\_X characterized by a mean \\mu \\in \\mathbb{R}^n, a PSD scale matrix C \\in \\mathbb{R}^{Nx \\times Nx}, and a degree of fr…

---

## [Package for KPCA](https://discourse.julialang.org/t/package-for-kpca/74248)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 3\
**Last updated:** [April 29, 2023, 9:17pm UTC](https://discourse.julialang.org/t/package-for-kpca/74248 "2023-04-29T21:17:18Z")

</div>

Hi, I am a newbie to Julia. I am looking for a package for KPCA please. I tried using MultivariateStats, unfortunately, ran into the below issue https://github.com/JuliaStats/MultivariateStats.jl/issues/164 I couldn’t …

---

## [Great paper on World Age in Julia](https://discourse.julialang.org/t/great-paper-on-world-age-in-julia/63694)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 0\
**Last updated:** [June 28, 2021, 1:21pm UTC](https://discourse.julialang.org/t/great-paper-on-world-age-in-julia/63694 "2021-06-28T13:21:56Z")

</div>

Probably a re-post but I really enjoyed this paper: World Age in Julia Optimizing Method Dispatch in the Presence of Eval (Extended Version) JULIA BELYAKOVA,Northeastern University, USA BENJAMIN CHUNG,Northeastern Univ…

---

## [\[ANN\] DelaunayTriangulation.jl v0.5: Constrained triangulation and mesh refinement](https://discourse.julialang.org/t/ann-delaunaytriangulation-jl-v0-5-constrained-triangulation-and-mesh-refinement/97508)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 3\
**Last updated:** [April 24, 2023, 6:02pm UTC](https://discourse.julialang.org/t/ann-delaunaytriangulation-jl-v0-5-constrained-triangulation-and-mesh-refinement/97508 "2023-04-24T18:02:54Z")

</div>

Hi all, I have just released v0.5 of my package DelaunayTriangulation.jl, a package for computing Delaunay triangulations of planar point sets. This is probably the last version before v1.0, I don’t expect much of the i…

---

## [When to use String() over string()?](https://discourse.julialang.org/t/when-to-use-string-over-string/98068)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 7\
**Last updated:** [April 29, 2023, 8:28pm UTC](https://discourse.julialang.org/t/when-to-use-string-over-string/98068 "2023-04-29T20:28:17Z")

</div>

Hi this may be a silly question but just wondering if there are cases when String() be used over string()? To the untutored, it appears that they are doing the same thing. string(SubString("use string")) === String(Su…

---

## [Plot in matlab](https://discourse.julialang.org/t/plot-in-matlab/98092)

<div class="topic-metadata">

**Author:** [@Hicham\_Ihyaden](https://discourse.julialang.org/u/Hicham_Ihyaden)\
**Replies:** 5\
**Last updated:** [April 29, 2023, 4:22pm UTC](https://discourse.julialang.org/t/plot-in-matlab/98092 "2023-04-29T16:22:36Z")

</div>

Hi all, Please, I need help, how to plot like the attached graph. I have a data table in Excel.

---

## [How do I get an error in a try catch to end all running tasks](https://discourse.julialang.org/t/how-do-i-get-an-error-in-a-try-catch-to-end-all-running-tasks/97830)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 1\
**Last updated:** [April 29, 2023, 8:15am UTC](https://discourse.julialang.org/t/how-do-i-get-an-error-in-a-try-catch-to-end-all-running-tasks/97830 "2023-04-29T08:15:01Z")

</div>

In the code below when the first task throws an error I want it to kill the second task immediately and then go to the catch block. I think the code currently ends the first task and then just runs the second task, and i…

---

## [Volume integral in Julia?](https://discourse.julialang.org/t/volume-integral-in-julia/98085)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [April 29, 2023, 2:21pm UTC](https://discourse.julialang.org/t/volume-integral-in-julia/98085 "2023-04-29T14:21:14Z")

</div>

Hello! Is something like this possible in Julia, here an example from Matlab: Where it is possible to perform a volume integral using non-constant values in the limits? EDIT: Just to make it a bit easier I pasted …

---

## [How to get the variables/constraint names using MathProgBase?](https://discourse.julialang.org/t/how-to-get-the-variables-constraint-names-using-mathprogbase/40511)

<div class="topic-metadata">

**Author:** [@sugyeong-jo](https://discourse.julialang.org/u/sugyeong-jo)\
**Replies:** 12\
**Last updated:** [April 29, 2023, 1:51pm UTC](https://discourse.julialang.org/t/how-to-get-the-variables-constraint-names-using-mathprogbase/40511 "2023-04-29T13:51:05Z")

</div>

Is there any method for getting the variables/constraint name not a just index from the MPS file format? I just want to make a dictionary for “variable name - index, constraint name - index” model = MathProgBase.Linear…

---

## [\[ANN\] ProjectEuler.jl v0.1.0: Exploring Challenging Mathematical Questions from ProjectEuler in Julia's Versatile REPL](https://discourse.julialang.org/t/ann-projecteuler-jl-v0-1-0-exploring-challenging-mathematical-questions-from-projecteuler-in-julias-versatile-repl/98064)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 7\
**Last updated:** [April 29, 2023, 12:07pm UTC](https://discourse.julialang.org/t/ann-projecteuler-jl-v0-1-0-exploring-challenging-mathematical-questions-from-projecteuler-in-julias-versatile-repl/98064 "2023-04-29T12:07:28Z")

</div>

Package ProjectEuler.jl : A package that allows offline access to challenging mathematical problems from Project Euler through Julia’s REPL. It is a valuable resource for those looking to improve their Julia programming …

---

## [Inset plot with twin axis](https://discourse.julialang.org/t/inset-plot-with-twin-axis/98038)

<div class="topic-metadata">

**Author:** [@Woodmouth](https://discourse.julialang.org/u/Woodmouth)\
**Replies:** 5\
**Last updated:** [April 28, 2023, 2:52pm UTC](https://discourse.julialang.org/t/inset-plot-with-twin-axis/98038 "2023-04-28T14:52:09Z")

</div>

I want a plot with an inset that has two y axes. Even when I first make a plot with a twin axis, and then try to add it as an inset, it modifies the plot that the inset should be in. using Plots pyplot() twinPlot = pl…

---

## [Need learning material](https://discourse.julialang.org/t/need-learning-material/98069)

<div class="topic-metadata">

**Author:** [@VISHWARATH\_T](https://discourse.julialang.org/u/VISHWARATH_T)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 7:10am UTC](https://discourse.julialang.org/t/need-learning-material/98069 "2023-04-29T07:10:01Z")

</div>

Hello, I want to access the materials shared as part of the course “Julia for nervous beginners”. Is that available?

---

## [Multithreaded IOBuffer memory leak?](https://discourse.julialang.org/t/multithreaded-iobuffer-memory-leak/98003)

<div class="topic-metadata">

**Author:** [@louisponet](https://discourse.julialang.org/u/louisponet)\
**Replies:** 15\
**Last updated:** [April 29, 2023, 4:36am UTC](https://discourse.julialang.org/t/multithreaded-iobuffer-memory-leak/98003 "2023-04-29T04:36:35Z")

</div>

See #49545. Basically this piece of code leads to runaway memory that I can’t get rid of anymore: function explode(lck, buffer, path, message; kwargs...) lock(buffer) do println(buffer, message) ope…

---

## [How to use HawkesProcesses.jl to plot intensity for a given vector?](https://discourse.julialang.org/t/how-to-use-hawkesprocesses-jl-to-plot-intensity-for-a-given-vector/98073)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 1\
**Last updated:** [April 29, 2023, 3:50am UTC](https://discourse.julialang.org/t/how-to-use-hawkesprocesses-jl-to-plot-intensity-for-a-given-vector/98073 "2023-04-29T03:50:17Z")

</div>

I’m trying to figure out how to use HawkesProcesses.jl to get the intensity for a given input vector of event arrival data. # Event arrival data vector eventTimestamps = sort(rand(100)\*100) bg = 0.5 kappa = 0.5 kernel…

---

## [Dictionary has same key more than once](https://discourse.julialang.org/t/dictionary-has-same-key-more-than-once/98019)

<div class="topic-metadata">

**Author:** [@okai](https://discourse.julialang.org/u/okai)\
**Replies:** 6\
**Last updated:** [April 28, 2023, 6:57am UTC](https://discourse.julialang.org/t/dictionary-has-same-key-more-than-once/98019 "2023-04-28T06:57:21Z")

</div>

For my chess engine with alpha-beta-pruning algorithm with transposition tables, I wanted to create a Dictionary, that uses my own hash function. So i did the following: mutable struct Zobrist val::UInt end Base.ha…

---

## [Minor grid lines in CairoMakie](https://discourse.julialang.org/t/minor-grid-lines-in-cairomakie/98074)

<div class="topic-metadata">

**Author:** [@AkchurinDA](https://discourse.julialang.org/u/AkchurinDA)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 2:38am UTC](https://discourse.julialang.org/t/minor-grid-lines-in-cairomakie/98074 "2023-04-29T02:38:10Z")

</div>

Hi everyone, I’m relatively new to Julia, but a long-time user of MATLAB. I want to know how to create plots with CairoMakie with minor gridlines in the same fashion you would do in MATLAB using grid on grid minor wit…

---

## [Mass Spring Damper with BlockSystems.jl](https://discourse.julialang.org/t/mass-spring-damper-with-blocksystems-jl/97981)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 4\
**Last updated:** [April 29, 2023, 1:51am UTC](https://discourse.julialang.org/t/mass-spring-damper-with-blocksystems-jl/97981 "2023-04-29T01:51:27Z")

</div>

How does one add a proportional constant k and a damping constant b to this IOBlock to setup a spring mass damper transfer function? using BlockSystems using ModelingToolkit @parameters t M F(t) @variables x(t) v(t) D …

---

## [Create a matrix with given dimension](https://discourse.julialang.org/t/create-a-matrix-with-given-dimension/98066)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 12:59am UTC](https://discourse.julialang.org/t/create-a-matrix-with-given-dimension/98066 "2023-04-29T00:59:07Z")

</div>

Dear all, I need to creeate a null three-dimensional matrix d = d\[s,l,t\] where s = \[2,3,4,5\], l=\[12,13,14,15,16\] and t=1:12, e.g, I don’t need for example of positions \[1,1,1\], \[1,2,1\], etc, but only in the ranges of th…

---

## [What's the best Julia Editor?](https://discourse.julialang.org/t/whats-the-best-julia-editor/98060)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 5\
**Last updated:** [April 28, 2023, 11:11pm UTC](https://discourse.julialang.org/t/whats-the-best-julia-editor/98060 "2023-04-28T23:11:15Z")

</div>

I used to use Atom/Juno for my Julia programming purposes. However, it seems that Atom is being sunsetted. What is the best alternative? Many thanks.

---

## [How to save the queen?](https://discourse.julialang.org/t/how-to-save-the-queen/98024)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 9\
**Last updated:** [April 28, 2023, 8:29pm UTC](https://discourse.julialang.org/t/how-to-save-the-queen/98024 "2023-04-28T20:29:06Z")

</div>

I’m looking for (but haven’t found yet) a way to save the solutions of the 8 queens problem on a chessboard into an array of some sort, without necessarily having to “print” them live. If possible by changing the follow…

---

## [How to explain recursive generation of method instances for non-concrete types](https://discourse.julialang.org/t/how-to-explain-recursive-generation-of-method-instances-for-non-concrete-types/98020)

<div class="topic-metadata">

**Author:** [@JohnnyChen94](https://discourse.julialang.org/u/JohnnyChen94)\
**Replies:** 4\
**Last updated:** [April 28, 2023, 2:27pm UTC](https://discourse.julialang.org/t/how-to-explain-recursive-generation-of-method-instances-for-non-concrete-types/98020 "2023-04-28T14:27:01Z")

</div>

I’m trying to understand under what circumstances Julia would trigger a compilation for “bad” Julia codes, so I use MethodAnalysis.jl to help the diagnosis. My first assumption is that each creation of a method instance …

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

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