# Latest

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

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

**Page:** 1272

---

## [ODE model in Turing](https://discourse.julialang.org/t/ode-model-in-turing/67929)

<div class="topic-metadata">

**Author:** [@yunus](https://discourse.julialang.org/u/yunus)\
**Replies:** 3\
**Last updated:** [September 9, 2021, 2:27pm UTC](https://discourse.julialang.org/t/ode-model-in-turing/67929 "2021-09-09T14:27:58Z")

</div>

Hi everyone, I’m new to Julia and would like to use the Turing package for Bayesian inference on high dimensional ordinary differential equations. With this in mind, efficiency is key. To get started I implemented a li…

---

## [Trigger listeners when modifying element Observable{Matrix}](https://discourse.julialang.org/t/trigger-listeners-when-modifying-element-observable-matrix/67937)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 2:15pm UTC](https://discourse.julialang.org/t/trigger-listeners-when-modifying-element-observable-matrix/67937 "2021-09-09T14:15:04Z")

</div>

If I create an Observable{Matrix} : X = Observable(rand(3, 3)) and that I have some listeners on X a = @lift sum($X) 5.7.... Is there any way for this listener to be triggered when I only modify values of X: X\[\]\[1, …

---

## [Memory allocation in dot product](https://discourse.julialang.org/t/memory-allocation-in-dot-product/67901)

<div class="topic-metadata">

**Author:** [@Frisus95](https://discourse.julialang.org/u/Frisus95)\
**Replies:** 11\
**Last updated:** [September 9, 2021, 1:54pm UTC](https://discourse.julialang.org/t/memory-allocation-in-dot-product/67901 "2021-09-09T13:54:12Z")

</div>

Hello everyone. Is it possible to perform a dot product between multidimensional arrays without allocating memory? For example: function funza(A) return dot(A,A) end A = rand(5,5,5,5,5); @btime funza(A) …

---

## [How to plot contour in an arbitrary shape of area?](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 1:50pm UTC](https://discourse.julialang.org/t/how-to-plot-contour-in-an-arbitrary-shape-of-area/67902 "2021-09-09T13:50:02Z")

</div>

How can I use contour to plot a contour in an arbitrary shape, say, a parallelogram? A simple example is: I tried contour!(xgrid, ygrid, zs) but it seems contour can only take vector-like objects, such as range rathe…

---

## [Julia v1.7.0-beta4 is now available](https://discourse.julialang.org/t/julia-v1-7-0-beta4-is-now-available/67382)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 7\
**Last updated:** [September 9, 2021, 1:38pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-beta4-is-now-available/67382 "2021-09-09T13:38:15Z")

</div>

The Julia developers are pleased to announce that the fourth beta release for Julia v1.7.0 is now available. You can download binaries at https://julialang.org/downloads in the “upcoming release” section for macOS (x86-…

---

## [Command not found in shell of VS Code Julia REPL](https://discourse.julialang.org/t/command-not-found-in-shell-of-vs-code-julia-repl/67933)

<div class="topic-metadata">

**Author:** [@altre](https://discourse.julialang.org/u/altre)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 1:28pm UTC](https://discourse.julialang.org/t/command-not-found-in-shell-of-vs-code-julia-repl/67933 "2021-09-09T13:28:56Z")

</div>

When I start the Julia REPL in VS Code no commands in the shell prompt work: shell\> ls zsh:1: command not found: ls When doing the same in julia started from my terminal, everything works fine. I think I’ve messed up …

---

## [Struct field as view of another field](https://discourse.julialang.org/t/struct-field-as-view-of-another-field/67920)

<div class="topic-metadata">

**Author:** [@danielward27](https://discourse.julialang.org/u/danielward27)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 12:42pm UTC](https://discourse.julialang.org/t/struct-field-as-view-of-another-field/67920 "2021-09-09T12:42:28Z")

</div>

Hello, Is it is possible to have a struct field that is a view of another field? A minimum working example is: Base.@kwdef struct TestStruct a::Vector{Float64} b::Vector{Float64} = @view a\[1:2\] end t = TestStr…

---

## [Get the name of a function in the argument](https://discourse.julialang.org/t/get-the-name-of-a-function-in-the-argument/40027)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 11\
**Last updated:** [September 9, 2021, 9:53am UTC](https://discourse.julialang.org/t/get-the-name-of-a-function-in-the-argument/40027 "2021-09-09T09:53:07Z")

</div>

I would like to have a function that returns the name of the function in the argument, e.g.: function give\_me\_my\_name(f::Function) return ??? (f); end such that give\_me\_my\_name(sin) returns sin as a string. How…

---

## [InitError: could not load library "libstdc++-6.dll"](https://discourse.julialang.org/t/initerror-could-not-load-library-libstdc-6-dll/61447)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 9:46am UTC](https://discourse.julialang.org/t/initerror-could-not-load-library-libstdc-6-dll/61447 "2021-09-09T09:46:11Z")

</div>

I get the following exception: julia\> import JuMP \[ Info: Precompiling JuMP \[4076af6c-e467-56ae-b986-b466b2749572\] ERROR: LoadError: InitError: could not load library "libstdc++-6.dll" %1 ist keine zulässige Win32-Anwen…

---

## [Convert a Current Installation of Julia to Use \`BlasInt = \`Int32\`](https://discourse.julialang.org/t/convert-a-current-installation-of-julia-to-use-blasint-int32/67915)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 0\
**Last updated:** [September 9, 2021, 7:58am UTC](https://discourse.julialang.org/t/convert-a-current-installation-of-julia-to-use-blasint-int32/67915 "2021-09-09T07:58:51Z")

</div>

Looking at my Julia installation (Using JuliaWin version Juliawin v1.6.2-0 on 2021-07-22) I can see that LinearAlgebra.BlasInt = Int64. This means that any index to array takes 64 Bit. I was wondering, can I make it In…

---

## [Splitting Values in a Column and Only Taking the Second Value](https://discourse.julialang.org/t/splitting-values-in-a-column-and-only-taking-the-second-value/67917)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 8:44am UTC](https://discourse.julialang.org/t/splitting-values-in-a-column-and-only-taking-the-second-value/67917 "2021-09-09T08:44:56Z")

</div>

Hi All, I am having a tough time figuring out how to split a column and only use the second value from the split in R I would have used gsub: maindf$pcc = gsub(".\*-","", maindf$pcc) Which is just splitting something l…

---

## [Plots.jl annotations location in a type @recipe](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 1\
**Last updated:** [September 9, 2021, 8:27am UTC](https://discourse.julialang.org/t/plots-jl-annotations-location-in-a-type-recipe/13941 "2021-09-09T08:27:20Z")

</div>

hi all, (was posted on Plots.jl gitter) how can I specify the annotations position when i want to label points inside a type recipe? i found that adding this to my @series block works: series\_annotations := \["$i" for i…

---

## [Different interpolations in Ferrite.jl](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913)

<div class="topic-metadata">

**Author:** [@bcsj](https://discourse.julialang.org/u/bcsj)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 8:25am UTC](https://discourse.julialang.org/t/different-interpolations-in-ferrite-jl/67913 "2021-09-09T08:25:21Z")

</div>

In Ferrite.jl when initializing CellValues like CellScalarValues or CellVectorValues one supplies a quadrature rule along with a function interpolation. According to the documentation there is an optional argument geom\_i…

---

## [How to change default save location for downloaded package with "add" command?](https://discourse.julialang.org/t/how-to-change-default-save-location-for-downloaded-package-with-add-command/66998)

<div class="topic-metadata">

**Author:** [@Cong\_Minh](https://discourse.julialang.org/u/Cong_Minh)\
**Replies:** 15\
**Last updated:** [September 9, 2021, 7:56am UTC](https://discourse.julialang.org/t/how-to-change-default-save-location-for-downloaded-package-with-add-command/66998 "2021-09-09T07:56:08Z")

</div>

hi guys i am a newbie Julia i have created my own environment and named it “demo”, i want the downloaded packages to be in the demo folder, i have activated the demo environment, why when i use the command “add PyCall”…

---

## [Reset color cycle with RecipesBase](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 0\
**Last updated:** [July 15, 2021, 6:01pm UTC](https://discourse.julialang.org/t/reset-color-cycle-with-recipesbase/64706 "2021-07-15T18:01:57Z")

</div>

Say I define a struct Example like: struct Example fields end example = Example(\[rand(3), rand(3), rand(3)\]) Using RecipesBase, I can define a plot recipe that allows me to plot each component of such a struct: us…

---

## [\[ANN\] TIDIGITSRecipe.jl: the first Julia-flavoured speech recognition recipe!](https://discourse.julialang.org/t/ann-tidigitsrecipe-jl-the-first-julia-flavoured-speech-recognition-recipe/56070)

<div class="topic-metadata">

**Author:** [@nantonel](https://discourse.julialang.org/u/nantonel)\
**Replies:** 0\
**Last updated:** [February 26, 2021, 8:53am UTC](https://discourse.julialang.org/t/ann-tidigitsrecipe-jl-the-first-julia-flavoured-speech-recognition-recipe/56070 "2021-02-26T08:53:41Z")

</div>

I’m happy to announce TIDIGITSRecipe an entirely Julia-flavoured automatic-speech-recognition (ASR) recipe! The repository comes with a live demo where you can use your own voice to recognise spoken digits in English. …

---

## [Shapefile recipes for Plots.jl?](https://discourse.julialang.org/t/shapefile-recipes-for-plots-jl/22089)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 0\
**Last updated:** [March 20, 2019, 3:48am UTC](https://discourse.julialang.org/t/shapefile-recipes-for-plots-jl/22089 "2019-03-20T03:48:22Z")

</div>

Running plot(shp) on a shapefile after loading Shapefile.jl GeoInterface.jl doesn’t find a recipe for Shapefile.Handle. It seems like recipes existed in the past, but I can’t find them anywhere.

---

## [How to update coordinates and colors in a type recipe?](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213)

<div class="topic-metadata">

**Author:** [@SebastianM-C](https://discourse.julialang.org/u/SebastianM-C)\
**Replies:** 0\
**Last updated:** [March 30, 2021, 9:51am UTC](https://discourse.julialang.org/t/how-to-update-coordinates-and-colors-in-a-type-recipe/58213 "2021-03-30T09:51:15Z")

</div>

I want to create a type recipe which will produce a scatter plot with a variable number of points. I tried to use WGLMakie with the code below using WGLMakie using JSServe using Markdown using JSServe.DOM JSServe.brows…

---

## [Recipes with more inputs](https://discourse.julialang.org/t/recipes-with-more-inputs/22456)

<div class="topic-metadata">

**Author:** [@Santiago\_Cuervo](https://discourse.julialang.org/u/Santiago_Cuervo)\
**Replies:** 0\
**Last updated:** [March 28, 2019, 1:27pm UTC](https://discourse.julialang.org/t/recipes-with-more-inputs/22456 "2019-03-28T13:27:18Z")

</div>

using Pkg using Plots using Interact using RecipesBase md=0:1:50; gamma=rand(51,1).+104; res=rand(51,1).+1300; sp=rand(51,1).-100; den=rand(51,1).+2.65 ntr=rand(51,1); mutable struct omeg depth::Array{Float64} …

---

## [Makie change axis appearance in plot recipe](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897)

<div class="topic-metadata">

**Author:** [@daniel](https://discourse.julialang.org/u/daniel)\
**Replies:** 0\
**Last updated:** [November 9, 2019, 5:49pm UTC](https://discourse.julialang.org/t/makie-change-axis-appearance-in-plot-recipe/30897 "2019-11-09T17:49:09Z")

</div>

Is there a way to change the axis appearance in a plot recipe? Suppose I have @recipe(MyPlot, x, y) do scene Theme( plot\_color = :red ) end function AbstractPlotting.plot!(plot::MyPlot) # normal pl…

---

## [Nesting subplots in plot recipes](https://discourse.julialang.org/t/nesting-subplots-in-plot-recipes/26559)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 6:41pm UTC](https://discourse.julialang.org/t/nesting-subplots-in-plot-recipes/26559 "2019-07-19T18:41:22Z")

</div>

Is there a way to “automatically” nest layouts? using RecipesBase @recipe function f(pt::MyPlotType, arr::Array{\<:MyDataType}) layout := GridLayout(size(arr)...) for data in arr @series begin …

---

## [Setting up packages in REPL session](https://discourse.julialang.org/t/setting-up-packages-in-repl-session/67908)

<div class="topic-metadata">

**Author:** [@nihil](https://discourse.julialang.org/u/nihil)\
**Replies:** 0\
**Last updated:** [September 9, 2021, 4:29am UTC](https://discourse.julialang.org/t/setting-up-packages-in-repl-session/67908 "2021-09-09T04:29:32Z")

</div>

I am following along with the VSCode JuliaCon session and trying to add PkgTemplates in the package manager, but the path is set to /home/pfitzseb/.julia/dev/JuliaCon, and says it can’t find that PkgTemplates package. Se…

---

## [@chain at element level?](https://discourse.julialang.org/t/chain-at-element-level/67906)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [September 9, 2021, 4:19am UTC](https://discourse.julialang.org/t/chain-at-element-level/67906 "2021-09-09T04:19:29Z")

</div>

Does @chain have (or can it be given) the equivalent of Pipe’s dot pipe .|\> I know you can use transform with ByRow, or vectorise a function within a chain block, but it would be very nice to just drop to element l…

---

## [@where ByRow?](https://discourse.julialang.org/t/where-byrow/67905)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [September 9, 2021, 3:28am UTC](https://discourse.julialang.org/t/where-byrow/67905 "2021-09-09T03:28:44Z")

</div>

Does @where have the equivalent of transform’s ByRow function? So you don’t have to vectorise the conditional statement e.g. @where\_ByRow( :col1 \< 10 & :col2 \< 20 ) instead of @where( :col1 .\< 10 .& :col…

---

## [Markdown Preview using Weave.jl](https://discourse.julialang.org/t/markdown-preview-using-weave-jl/50601)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 1:35am UTC](https://discourse.julialang.org/t/markdown-preview-using-weave-jl/50601 "2021-09-09T01:35:08Z")

</div>

Is there a way to use weave.jl to show a preview of a Markdown in pdf or HTML, before it’s converted? I thought I saw a picture like this using atom, in the documentation.

---

## [Calling C++ function having std::vectors as input and output parameters from Julia](https://discourse.julialang.org/t/calling-c-function-having-std-vectors-as-input-and-output-parameters-from-julia/9224)

<div class="topic-metadata">

**Author:** [@pdlotko](https://discourse.julialang.org/u/pdlotko)\
**Replies:** 12\
**Last updated:** [September 9, 2021, 12:20am UTC](https://discourse.julialang.org/t/calling-c-function-having-std-vectors-as-input-and-output-parameters-from-julia/9224 "2021-09-09T00:20:08Z")

</div>

Dear All I am new to Julia and and I am trying to access my C++ code from Julia. I have asked this question already at Stack Overflow, but were not able to find an answer there. I am trying to call a C++ function from …

---

## [Pmap and svdvals from documentation speed](https://discourse.julialang.org/t/pmap-and-svdvals-from-documentation-speed/67898)

<div class="topic-metadata">

**Author:** [@Pulpo](https://discourse.julialang.org/u/Pulpo)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 11:09pm UTC](https://discourse.julialang.org/t/pmap-and-svdvals-from-documentation-speed/67898 "2021-09-08T23:09:46Z")

</div>

I am wondering why the following example of pmap isn’t getting any speedup: using Distributed using BenchmarkTools @everywhere using LinearAlgebra addprocs(length(Sys.cpu\_info())); M = Matrix{Float64}\[rand(1000,100…

---

## [LoadError: AssertionError: isdir(path) - GameZero.jl](https://discourse.julialang.org/t/loaderror-assertionerror-isdir-path-gamezero-jl/67899)

<div class="topic-metadata">

**Author:** [@Nivea\_Freitas](https://discourse.julialang.org/u/Nivea_Freitas)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 11:00pm UTC](https://discourse.julialang.org/t/loaderror-assertionerror-isdir-path-gamezero-jl/67899 "2021-09-08T23:00:07Z")

</div>

Hi, I’m new in Julia and I started studying GameZero.jl package a little while ago. I’m having trouble creating an actor because when I run the rungame(“FileName.jl”) it gives an error message: “LoadError: AssertionError…

---

## [Correct way of using MKL.jl on Julia Version 1.7.0](https://discourse.julialang.org/t/correct-way-of-using-mkl-jl-on-julia-version-1-7-0/67780)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 4\
**Last updated:** [September 8, 2021, 10:26pm UTC](https://discourse.julialang.org/t/correct-way-of-using-mkl-jl-on-julia-version-1-7-0/67780 "2021-09-08T22:26:53Z")

</div>

What is the correct way of using MKL.jl on Julia Version 1.7.0-beta3.0 (2021-07-07) wrt the number of distributed processes and multithreading? I do reinforcement learning (AlphaZero.jl) training on Intel(R) Xeon(R) Gol…

---

## [Can I expect ForwardDiff to give the same performance in this case?](https://discourse.julialang.org/t/can-i-expect-forwarddiff-to-give-the-same-performance-in-this-case/67894)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [September 8, 2021, 8:33pm UTC](https://discourse.julialang.org/t/can-i-expect-forwarddiff-to-give-the-same-performance-in-this-case/67894 "2021-09-08T20:33:10Z")

</div>

Hello! I just learned about Automatic Differentiation and of course need to give it a go using Julia :slight\_smile: I have a function defined as: Wendland(q) = aD\*(1-q/2)^4 \* (2\*q+1) Where aD in my case is 696. And …

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

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