# Latest

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

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

**Page:** 1346

---

## [\[ANN\] MultiKDE.jl: A Lazy Evaluation Multivariate Kernel Density Estimator](https://discourse.julialang.org/t/ann-multikde-jl-a-lazy-evaluation-multivariate-kernel-density-estimator/63786)

<div class="topic-metadata">

**Author:** [@noil-reed](https://discourse.julialang.org/u/noil-reed)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 7:48am UTC](https://discourse.julialang.org/t/ann-multikde-jl-a-lazy-evaluation-multivariate-kernel-density-estimator/63786 "2021-06-30T07:48:09Z")

</div>

I realized currently there is no library for multivariate kernel density estimation (unless you extend some existing code). And I need it for one of my projects. So here it is: MultiKDE.jl. Unique feature: Multidimensi…

---

## [Why \`Int\` instead of \`UInt\` for indexing?](https://discourse.julialang.org/t/why-int-instead-of-uint-for-indexing/63589)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 13\
**Last updated:** [June 30, 2021, 7:05am UTC](https://discourse.julialang.org/t/why-int-instead-of-uint-for-indexing/63589 "2021-06-30T07:05:40Z")

</div>

julia\> typeof(length(\[\])) Int64 It seems like length(::Vector) is always nonnegative. Why is it Int64 and not UInt32 or UInt64?

---

## [reactionMechanismSimulator.jl idealGas() call fails due to no default for stoichmatrix](https://discourse.julialang.org/t/reactionmechanismsimulator-jl-idealgas-call-fails-due-to-no-default-for-stoichmatrix/61502)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 6:51am UTC](https://discourse.julialang.org/t/reactionmechanismsimulator-jl-idealgas-call-fails-due-to-no-default-for-stoichmatrix/61502 "2021-06-30T06:51:04Z")

</div>

The basic example of idealGas in reactionMechanism.jl fails to due no default for stoichmatrix. Advice to fix is much appreciated. Thx! using ReactionMechanismSimulator phaseDict = readinput("src/superminimal.rms"…

---

## [Mutation of a scalar variable](https://discourse.julialang.org/t/mutation-of-a-scalar-variable/63798)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 10\
**Last updated:** [June 30, 2021, 6:38am UTC](https://discourse.julialang.org/t/mutation-of-a-scalar-variable/63798 "2021-06-30T06:38:01Z")

</div>

Hi, I’d like to mutate a scalar variable. For example, if x is a vector, then x .= x\_new works fine for mutation. However, when x is a Number, e.g., x = 1.0, x .= x\_new does not work properly. Also, I cannot find…

---

## [AMD Instinct in Engineering and Science - grants and discounts](https://discourse.julialang.org/t/amd-instinct-in-engineering-and-science-grants-and-discounts/63799)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 5:47am UTC](https://discourse.julialang.org/t/amd-instinct-in-engineering-and-science-grants-and-discounts/63799 "2021-06-30T05:47:39Z")

</div>

---

## [\[ANN\] MLJ now has iteration control and model stacking](https://discourse.julialang.org/t/ann-mlj-now-has-iteration-control-and-model-stacking/63726)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 5:36am UTC](https://discourse.julialang.org/t/ann-mlj-now-has-iteration-control-and-model-stacking/63726 "2021-06-29T05:36:51Z")

</div>

Announcing two significant enhancements to the multi-paradigm machine learning framework MLJ. A model wrapper for controlling iterative models By wrapping a model using IterativeModel(model=...) one can control the mode…

---

## [Shouldn't there be a warning when package can't update to latest?](https://discourse.julialang.org/t/shouldnt-there-be-a-warning-when-package-cant-update-to-latest/51446)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 32\
**Last updated:** [June 30, 2021, 3:59am UTC](https://discourse.julialang.org/t/shouldnt-there-be-a-warning-when-package-cant-update-to-latest/51446 "2021-06-30T03:59:17Z")

</div>

Hellooo, So I just used up Plots which updated it to v1.7.3. When I went to the github page, I saw that the latest release was 1.9.1. So I used up Plots@v1.9.1 to force installation of the latest release and to see wha…

---

## [Julia Package Flux](https://discourse.julialang.org/t/julia-package-flux/63767)

<div class="topic-metadata">

**Author:** [@narayan](https://discourse.julialang.org/u/narayan)\
**Replies:** 3\
**Last updated:** [June 30, 2021, 2:46am UTC](https://discourse.julialang.org/t/julia-package-flux/63767 "2021-06-30T02:46:17Z")

</div>

using Flux f(x) = 3x + 2 df(x) = gradient(f,x)\[1\] df(2) when I am running this code, I am getting an error - LoadError: UndefVarError: gradient not defined. However, if I change gradient by Flux.gradient, it works f…

---

## [Delaunay triangulation in best fit plane](https://discourse.julialang.org/t/delaunay-triangulation-in-best-fit-plane/63792)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 2:42am UTC](https://discourse.julialang.org/t/delaunay-triangulation-in-best-fit-plane/63792 "2021-06-30T02:42:07Z")

</div>

Hi I have a set of points scattered in 3D x,y, z, with an associated scalar property f. But these points are very nearly planar, and I want the triangulation of f in a “best fit” plane, which I can then import as a VTK f…

---

## [How to catch this error?](https://discourse.julialang.org/t/how-to-catch-this-error/63721)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [June 30, 2021, 1:10am UTC](https://discourse.julialang.org/t/how-to-catch-this-error/63721 "2021-06-30T01:10:36Z")

</div>

I am optimizing a complicated function. That function depends on 2 variables t1 and t2. I can derive first order conditions that result in a system of 2 equations. I can also derive conditions for when t1 \< t2, t1 \> t2, …

---

## [Any benchmark comparing Julia on Windows vs Linux vs OSX?](https://discourse.julialang.org/t/any-benchmark-comparing-julia-on-windows-vs-linux-vs-osx/18394)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 7\
**Last updated:** [June 29, 2021, 8:55pm UTC](https://discourse.julialang.org/t/any-benchmark-comparing-julia-on-windows-vs-linux-vs-osx/18394 "2021-06-29T20:55:24Z")

</div>

Is there any benchmark comparing the speed and memory usage of Julia on different Operating Systems?

---

## [Unexpected spacing in LaTeX plot label](https://discourse.julialang.org/t/unexpected-spacing-in-latex-plot-label/63740)

<div class="topic-metadata">

**Author:** [@psanan](https://discourse.julialang.org/u/psanan)\
**Replies:** 6\
**Last updated:** [June 29, 2021, 7:38pm UTC](https://discourse.julialang.org/t/unexpected-spacing-in-latex-plot-label/63740 "2021-06-29T19:38:21Z")

</div>

I’d like to label a line on a plot using LaTeX to write a norm, e.g. using Plots using LaTeXStrings plot(\[1,2,3\], label=L"||x-y||^2") I see but the text inside the norm appears shifted to the right and the spacing b…

---

## [Sub plus (₊) instead of dot in the dot notation in equations displayed by ModelingToolkit](https://discourse.julialang.org/t/sub-plus-instead-of-dot-in-the-dot-notation-in-equations-displayed-by-modelingtoolkit/61113)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 4\
**Last updated:** [June 29, 2021, 6:45pm UTC](https://discourse.julialang.org/t/sub-plus-instead-of-dot-in-the-dot-notation-in-equations-displayed-by-modelingtoolkit/61113 "2021-06-29T18:45:49Z")

</div>

I was just wondering what was the reason for displaying the MTK equations using (for example) capacitor₊n₊v instead of capacitor.n.v (as in the RC Circuit example). Couldn’t dots be used for displaying as well (when they…

---

## [Convex.jl matrix constraints interface : How can i supply this matrix?](https://discourse.julialang.org/t/convex-jl-matrix-constraints-interface-how-can-i-supply-this-matrix/63753)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 5:32pm UTC](https://discourse.julialang.org/t/convex-jl-matrix-constraints-interface-how-can-i-supply-this-matrix/63753 "2021-06-29T17:32:36Z")

</div>

Hi, I want to constraint some matrix that is given as a linear functions of the variables to be semi-definite positive. However, I found something strange : function get\_hankels(s,a,b) m = length(s)-1 if iseven…

---

## [Parse string to int](https://discourse.julialang.org/t/parse-string-to-int/63776)

<div class="topic-metadata">

**Author:** [@daviddoij](https://discourse.julialang.org/u/daviddoij)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 5:25pm UTC](https://discourse.julialang.org/t/parse-string-to-int/63776 "2021-06-29T17:25:40Z")

</div>

Hi there! Newbie in Julia here. How can I parse a string of numbers with newlines to an integer? E.g.: NUM = " 123 456 789 " So, in Julia looks like this: “123\\n456\\n789\\n” and I’d like to have something like: …

---

## [Restricting method dispatch to a few concrete types](https://discourse.julialang.org/t/restricting-method-dispatch-to-a-few-concrete-types/63765)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 5\
**Last updated:** [June 29, 2021, 4:04pm UTC](https://discourse.julialang.org/t/restricting-method-dispatch-to-a-few-concrete-types/63765 "2021-06-29T16:04:34Z")

</div>

Hey, I have a method : function f(x) return x end for which i have a faster version that works only if x is either of type T1 or of type T2. I tried writting: function f(x::T) where {Union{T1,T2} \<: T \<: Union{T1…

---

## [Package precompiles in one environment and not another](https://discourse.julialang.org/t/package-precompiles-in-one-environment-and-not-another/63653)

<div class="topic-metadata">

**Author:** [@rafelafrance](https://discourse.julialang.org/u/rafelafrance)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 2:26pm UTC](https://discourse.julialang.org/t/package-precompiles-in-one-environment-and-not-another/63653 "2021-06-29T14:26:31Z")

</div>

I want to use the package ImageBinarization in a project environment but it won’t precompile. What seems odd to me, is that it will precompile in another (the global) environment. Is there some sort of cache I can clear? …

---

## [Using Accessors to mutate an incomplete initialized struct](https://discourse.julialang.org/t/using-accessors-to-mutate-an-incomplete-initialized-struct/61917)

<div class="topic-metadata">

**Author:** [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 1:47pm UTC](https://discourse.julialang.org/t/using-accessors-to-mutate-an-incomplete-initialized-struct/61917 "2021-06-29T13:47:39Z")

</div>

Hi, I am trying to write a method for finalizing incomplete initialization of a struct. I want to avoid using a mutable struct. I found Setfield.jl or Accessors.jl which seem to fulfill my requirements, but it fails so…

---

## [Performance issue with this bootstrapp](https://discourse.julialang.org/t/performance-issue-with-this-bootstrapp/63551)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 11\
**Last updated:** [June 29, 2021, 1:34pm UTC](https://discourse.julialang.org/t/performance-issue-with-this-bootstrapp/63551 "2021-06-29T13:34:16Z")

</div>

Hi, I have the following piece of code that performs a simple bootstrap, but which is taking a very long time. I was wondering If I made obvious mistakes in the implmentation, although @code\_warntype seems to tell me ev…

---

## [GLMakie Method error (Makie.image!)](https://discourse.julialang.org/t/glmakie-method-error-makie-image/63090)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 9\
**Last updated:** [June 29, 2021, 1:22pm UTC](https://discourse.julialang.org/t/glmakie-method-error-makie-image/63090 "2021-06-29T13:22:14Z")

</div>

I am trying to duplicate the example on the VideoIO github page that uses Makie. My code is very similar to this example but using some cell phone video from a Blackberry Key2. using VideoIO using GLMakie path = strin…

---

## [Display image in Dash app](https://discourse.julialang.org/t/display-image-in-dash-app/63745)

<div class="topic-metadata">

**Author:** [@Aju](https://discourse.julialang.org/u/Aju)\
**Replies:** 0\
**Last updated:** [June 29, 2021, 12:05pm UTC](https://discourse.julialang.org/t/display-image-in-dash-app/63745 "2021-06-29T12:05:02Z")

</div>

Hello, I am currently building an app for image visualisation using Dash platform. But, I am unable to find the right graph to display the image, which could be a 2D array or 3D array with RGB channels. Here is a simple…

---

## [Simulation of regression coefficients](https://discourse.julialang.org/t/simulation-of-regression-coefficients/63683)

<div class="topic-metadata">

**Author:** [@elbersb](https://discourse.julialang.org/u/elbersb)\
**Replies:** 7\
**Last updated:** [June 29, 2021, 9:49am UTC](https://discourse.julialang.org/t/simulation-of-regression-coefficients/63683 "2021-06-29T09:49:51Z")

</div>

I’m still very much a novice in Julia, but I’m already using it productively for many tasks. In my research area, R and Stata are the main alternatives, so Julia really has a number of advantages in terms of speed and sy…

---

## [Hypergeometric functions](https://discourse.julialang.org/t/hypergeometric-functions/63621)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 6\
**Last updated:** [June 29, 2021, 9:48am UTC](https://discourse.julialang.org/t/hypergeometric-functions/63621 "2021-06-29T09:48:29Z")

</div>

Hello, I need to evaluate the Gauss Hypergeometric functions \_2F\_1(a,b;c;z). Here are some specifications for the arguments of this function a has compex values. The real part is \\sim2 (and is strictly positive), whi…

---

## [What am I doing wrong, I can't use Julia with jupyterlab?](https://discourse.julialang.org/t/what-am-i-doing-wrong-i-cant-use-julia-with-jupyterlab/63727)

<div class="topic-metadata">

**Author:** [@development\_mentor](https://discourse.julialang.org/u/development_mentor)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 9:12am UTC](https://discourse.julialang.org/t/what-am-i-doing-wrong-i-cant-use-julia-with-jupyterlab/63727 "2021-06-29T09:12:20Z")

</div>

Hello, yesterday I was able to use julia with jupyterlab simply. I just followed the instructions. But when I turned on my PC, next morning it didn’t work. I tried reinstalling julia, and IJulia. But it didn’t work. Plea…

---

## [How to access the output from Chain.jl?](https://discourse.julialang.org/t/how-to-access-the-output-from-chain-jl/63699)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 8:56am UTC](https://discourse.julialang.org/t/how-to-access-the-output-from-chain-jl/63699 "2021-06-29T08:56:14Z")

</div>

Hi, Discovering Julia and loving it. I started to dabble with the piping method with Dataframes but can’t get the output as a variable. for example, how do I get the updated df returned in this case? @chain df begin …

---

## [Is there a way to capture an upper bound via dispatch?](https://discourse.julialang.org/t/is-there-a-way-to-capture-an-upper-bound-via-dispatch/63718)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 6\
**Last updated:** [June 29, 2021, 8:10am UTC](https://discourse.julialang.org/t/is-there-a-way-to-capture-an-upper-bound-via-dispatch/63718 "2021-06-29T08:10:35Z")

</div>

As part of the logic of writing some function, I’d like to use the upper bound of some passed-in type’s argument. Is there any way to capture this upper bound cleanly via dispatch? Basically, I’d like the following: str…

---

## [Interpolate variables in markdown in Documenter.jl](https://discourse.julialang.org/t/interpolate-variables-in-markdown-in-documenter-jl/60726)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [June 29, 2021, 8:04am UTC](https://discourse.julialang.org/t/interpolate-variables-in-markdown-in-documenter-jl/60726 "2021-06-29T08:04:08Z")

</div>

Is it possible to interpolate a variable (such as a url name) in the doc pages? For example, I want to set: my\_page = "http://url.to.my.page.org" and then, in the Documenter Markdown files, do: \[MyPage\]($my\_page) or…

---

## [Is there a Julia book you recommend?](https://discourse.julialang.org/t/is-there-a-julia-book-you-recommend/63722)

<div class="topic-metadata">

**Author:** [@waforbes](https://discourse.julialang.org/u/waforbes)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 7:50am UTC](https://discourse.julialang.org/t/is-there-a-julia-book-you-recommend/63722 "2021-06-29T07:50:42Z")

</div>

I’ve already written a numerical PDE project in Julia, but I’d like to learn it a bit more thoroughly. I have professional experience in Python and a little experience in R, by the way.

---

## [Lorenz attractor with makie](https://discourse.julialang.org/t/lorenz-attractor-with-makie/63712)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 4\
**Last updated:** [June 29, 2021, 4:56am UTC](https://discourse.julialang.org/t/lorenz-attractor-with-makie/63712 "2021-06-29T04:56:27Z")

</div>

I’m trying to reproduce the Lorenz attractor simulation from here: https://lazarusa.github.io/gnuplot-examples/menu3/#animations (scroll to the third example) and I feel like this should be easier or at least there sho…

---

## [What happens if I set more threads than available?](https://discourse.julialang.org/t/what-happens-if-i-set-more-threads-than-available/63717)

<div class="topic-metadata">

**Author:** [@fredih](https://discourse.julialang.org/u/fredih)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 3:06am UTC](https://discourse.julialang.org/t/what-happens-if-i-set-more-threads-than-available/63717 "2021-06-29T03:06:16Z")

</div>

My computer has 8 cores, so use set\_optimizer\_attribute(myModel, "threads", 8) before starting the optimization. What would happen if I use the exact same code on another computer that has, for example, 4 cores? The prog…

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

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