# Latest

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

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

**Page:** 1260

---

## [Peculiar behavior with Pkg.test](https://discourse.julialang.org/t/peculiar-behavior-with-pkg-test/68540)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 1:11pm UTC](https://discourse.julialang.org/t/peculiar-behavior-with-pkg-test/68540 "2021-09-22T13:11:56Z")

</div>

Unfortunately, I’m going to have to describe my problem in pretty general terms; I don’t know of a simple way of inducing it, and it’s not practical to include the actual code involved. I have a package that I’m writing …

---

## [How to check if function is in-place](https://discourse.julialang.org/t/how-to-check-if-function-is-in-place/68570)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 9\
**Last updated:** [September 22, 2021, 11:37am UTC](https://discourse.julialang.org/t/how-to-check-if-function-is-in-place/68570 "2021-09-22T11:37:35Z")

</div>

Say I am given a function f and would like to know whether f will return a new array or simply write into its first argument. How do I do that? I know DifferentialEquations.jl does this, for example. You just supply a f…

---

## [How can I access multiple values of a dictionary using a tuple of keys?](https://discourse.julialang.org/t/how-can-i-access-multiple-values-of-a-dictionary-using-a-tuple-of-keys/56868)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 10:50am UTC](https://discourse.julialang.org/t/how-can-i-access-multiple-values-of-a-dictionary-using-a-tuple-of-keys/56868 "2021-09-22T10:50:44Z")

</div>

How can I access multiple values of a dictionary using a tuple of keys? Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or p…

---

## [DataLoaders.jl Workers systematically end up outside bounds](https://discourse.julialang.org/t/dataloaders-jl-workers-systematically-end-up-outside-bounds/62928)

<div class="topic-metadata">

**Author:** [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 9:55am UTC](https://discourse.julialang.org/t/dataloaders-jl-workers-systematically-end-up-outside-bounds/62928 "2021-09-22T09:55:35Z")

</div>

Hello fellow Julians. I am trying to train a model using a parallel DataLoader, however, following the example from the documentation (available here: https://github.com/lorenzoh/DataLoaders.jl/blob/master/docs/dataconta…

---

## [Can't restart kernel in VSCode jupyter notebook](https://discourse.julialang.org/t/cant-restart-kernel-in-vscode-jupyter-notebook/68136)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 14\
**Last updated:** [September 22, 2021, 9:50am UTC](https://discourse.julialang.org/t/cant-restart-kernel-in-vscode-jupyter-notebook/68136 "2021-09-22T09:50:04Z")

</div>

As the title says, recently notebooks in VSCode does not allow me to press restart kernel or interrupt (greyed out) and running the command “Julia: Restart kernel” results in the error Command ‘Julia: Restart kernel’ r…

---

## [Error in Pre-Compiling](https://discourse.julialang.org/t/error-in-pre-compiling/68563)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 7:48am UTC](https://discourse.julialang.org/t/error-in-pre-compiling/68563 "2021-09-22T07:48:25Z")

</div>

Hi! I am facing problem importing DynamicalSystems.jl library in jupyter environment by using DynamicalSystems . I recently installed version 1.2.2. of the library. The following error message appears. However no…

---

## [Can I use \`@eval\` to dynamically define methods for dispatch on \`Val\`s?](https://discourse.julialang.org/t/can-i-use-eval-to-dynamically-define-methods-for-dispatch-on-val-s/68468)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 7:21am UTC](https://discourse.julialang.org/t/can-i-use-eval-to-dynamically-define-methods-for-dispatch-on-val-s/68468 "2021-09-22T07:21:57Z")

</div>

Hi all, I’m trying to dynamically define methods for a function to dispatch on specific names (symbols/strings) which seems to work outside a loop, but not inside a loop. Can someone explain how I may be mis-applying t…

---

## [How to read a graph from a GML file](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 6:03am UTC](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539 "2021-09-22T06:03:38Z")

</div>

I cannot figure out how to get a graph definition from a GML file. I downloaded the following file https://github.com/empet/Datasets/blob/master/gstrang\_descendants.gml and tried with the following code: using Ligh…

---

## [First post - what am I doing wrong - distributed benchmark show no improvement](https://discourse.julialang.org/t/first-post-what-am-i-doing-wrong-distributed-benchmark-show-no-improvement/68567)

<div class="topic-metadata">

**Author:** [@Behemot](https://discourse.julialang.org/u/Behemot)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 5:08am UTC](https://discourse.julialang.org/t/first-post-what-am-i-doing-wrong-distributed-benchmark-show-no-improvement/68567 "2021-09-22T05:08:01Z")

</div>

Howdy - this is my first foray into Julia so I started with Gary Feierbach “Learning Julia 1.0” O’Reilly video. I am on Julia 1.5 (installed a while ago but never started). And on Win10 machine. After first lecture I w…

---

## [How to make this function compatible with ForwardDiff?](https://discourse.julialang.org/t/how-to-make-this-function-compatible-with-forwarddiff/67415)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 15\
**Last updated:** [September 22, 2021, 5:00am UTC](https://discourse.julialang.org/t/how-to-make-this-function-compatible-with-forwarddiff/67415 "2021-09-22T05:00:04Z")

</div>

How can I make this function compatible with ForwardDiff with respect to τ? using ForwardDiff randmat = rand(10, 2) sto = similar(randmat) function claytonsample!(sto, τ; randmat=randmat) sto .= randmat τ == 0…

---

## [BetaPrime Distribution](https://discourse.julialang.org/t/betaprime-distribution/68542)

<div class="topic-metadata">

**Author:** [@Naba7](https://discourse.julialang.org/u/Naba7)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 4:37am UTC](https://discourse.julialang.org/t/betaprime-distribution/68542 "2021-09-22T04:37:35Z")

</div>

b1 = BetaPrime() rand(rng, b1) === quantile(b1, rand(rng)) this returns false, while this says otherwise.

---

## [AlphaZero.jl throwing CUDNNError (code 8)](https://discourse.julialang.org/t/alphazero-jl-throwing-cudnnerror-code-8/68367)

<div class="topic-metadata">

**Author:** [@victorromeo](https://discourse.julialang.org/u/victorromeo)\
**Replies:** 11\
**Last updated:** [September 22, 2021, 4:12am UTC](https://discourse.julialang.org/t/alphazero-jl-throwing-cudnnerror-code-8/68367 "2021-09-22T04:12:26Z")

</div>

Currently getting an error when trying the Connect Four example project using Julia v1.6.1 May I please get someone’s expertise to suggest where I’m going wrong. AlphaZero.jl was installed via Pkg, not source. julia\> …

---

## [Mesh-Free method for CG giving method error](https://discourse.julialang.org/t/mesh-free-method-for-cg-giving-method-error/68509)

<div class="topic-metadata">

**Author:** [@Nikhil\_Singh](https://discourse.julialang.org/u/Nikhil_Singh)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 3:13am UTC](https://discourse.julialang.org/t/mesh-free-method-for-cg-giving-method-error/68509 "2021-09-22T03:13:45Z")

</div>

Hi, I am attempting to develop linear operator to be used into IterativeSolver.cg. I have scripted the following for the same struct MyA Asm::SparseMatrixCSC{Float64, Int64} Freedof::Vector{Int64} Cdof::Matrix{Int64} …

---

## [How to divide block threads in warps?](https://discourse.julialang.org/t/how-to-divide-block-threads-in-warps/68562)

<div class="topic-metadata">

**Author:** [@fza\_ch](https://discourse.julialang.org/u/fza_ch)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 2:52am UTC](https://discourse.julialang.org/t/how-to-divide-block-threads-in-warps/68562 "2021-09-22T02:52:12Z")

</div>

I have watched you tutorial video GPU programming in Julia | Workshop | JuliaCon 2021 - YouTube. I have clear the concept, how to assign blocks and thread. But I want to get video about Streaming process(SP).how can war…

---

## [Plot with sticks or arrows](https://discourse.julialang.org/t/plot-with-sticks-or-arrows/68422)

<div class="topic-metadata">

**Author:** [@ccmejia](https://discourse.julialang.org/u/ccmejia)\
**Replies:** 14\
**Last updated:** [September 22, 2021, 12:33am UTC](https://discourse.julialang.org/t/plot-with-sticks-or-arrows/68422 "2021-09-22T00:33:15Z")

</div>

Hi there, I’m trying to plot scatter data with impulses, specifically with arrows. But, it seems that it does not exist in seriestype options. Any idea about how I can obtain that? Thanks in advance!

---

## [Questions about Polyester.jl](https://discourse.julialang.org/t/questions-about-polyester-jl/68369)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 7\
**Last updated:** [September 21, 2021, 11:56pm UTC](https://discourse.julialang.org/t/questions-about-polyester-jl/68369 "2021-09-21T23:56:12Z")

</div>

It this package work only with simple operations? Can I use SpinLock() inside cycle? Can I use variables declared outside cycle? (now I get UndefVarError: varname#661 not defined) Actually, I try to get a sum of multi…

---

## [Plots not working with MethodError or Undefined](https://discourse.julialang.org/t/plots-not-working-with-methoderror-or-undefined/68495)

<div class="topic-metadata">

**Author:** [@Hamzah\_Iqbal](https://discourse.julialang.org/u/Hamzah_Iqbal)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 10:19pm UTC](https://discourse.julialang.org/t/plots-not-working-with-methoderror-or-undefined/68495 "2021-09-21T22:19:12Z")

</div>

I am trying to plot columns of a dataframe and tried to run the example here. using StatsPlots, RDatasets gr() iris = DataFrame(dataset("iris")) @df iris scatter( :SepalLength, :SepalWidth, group = :Species,…

---

## [Add the default RNG as explicit type in Random?](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 9:15pm UTC](https://discourse.julialang.org/t/add-the-default-rng-as-explicit-type-in-random/68551 "2021-09-21T21:15:02Z")

</div>

Apparently at some point recently the default RNG was changed from MersenneTwister to some xorshift based thing. But Random still only has MersenneTwister and RandomDevice as the available generators. It seems like it’d …

---

## [Automatic differentiation - ForwardDiff: components of gradient](https://discourse.julialang.org/t/automatic-differentiation-forwarddiff-components-of-gradient/68528)

<div class="topic-metadata">

**Author:** [@bdc](https://discourse.julialang.org/u/bdc)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 8:49pm UTC](https://discourse.julialang.org/t/automatic-differentiation-forwarddiff-components-of-gradient/68528 "2021-09-21T20:49:00Z")

</div>

Hello, I’m once again running into some limitation of my Julia skills Background I’m using forward mode automated differentiation on a function F that maps a matrix A\\in\\mathbb{R}^{N \\times N} to \\mathbb{R} F(A):\\mathbb…

---

## [Observables, Verilog style](https://discourse.julialang.org/t/observables-verilog-style/68537)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 8:34pm UTC](https://discourse.julialang.org/t/observables-verilog-style/68537 "2021-09-21T20:34:07Z")

</div>

I was looking for an observable implementation similar to Verilog AMS or SystemVerilog. There you would have constructs like always @(sig1 && posedge(sig2)) // when sig1 (analog) changes AND sig2 (digital) does trans 0…

---

## [Can't figure out why this code isn't working](https://discourse.julialang.org/t/cant-figure-out-why-this-code-isnt-working/68546)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [September 21, 2021, 7:48pm UTC](https://discourse.julialang.org/t/cant-figure-out-why-this-code-isnt-working/68546 "2021-09-21T19:48:31Z")

</div>

using CSV using StringDistances using Unicode data = CSV.File(raw"C:\\Users\\mthel\\Julia\\src\_data\\data.csv", normalizenames=true) data = clean\_strings(data\[i\]\[2\] for i in 1:200) function build\_dict(data) dict = Dict…

---

## [Querying optimal solution without allocating memory](https://discourse.julialang.org/t/querying-optimal-solution-without-allocating-memory/68184)

<div class="topic-metadata">

**Author:** [@bsturt](https://discourse.julialang.org/u/bsturt)\
**Replies:** 4\
**Last updated:** [September 21, 2021, 5:33pm UTC](https://discourse.julialang.org/t/querying-optimal-solution-without-allocating-memory/68184 "2021-09-21T17:33:50Z")

</div>

I am implementing a large-scale decomposition method for solving a huge linear optimization problem. At each iteration of the algorithm, I need to efficiently obtain the optimal primal and dual solution to the LP. The al…

---

## [Speed up a loop with matrix operations](https://discourse.julialang.org/t/speed-up-a-loop-with-matrix-operations/68533)

<div class="topic-metadata">

**Author:** [@HJWang](https://discourse.julialang.org/u/HJWang)\
**Replies:** 4\
**Last updated:** [September 21, 2021, 4:37pm UTC](https://discourse.julialang.org/t/speed-up-a-loop-with-matrix-operations/68533 "2021-09-21T16:37:16Z")

</div>

Hello: I am working on a maximum simulated likelihood estimation on a multi-layer (group/firm/time) model. There are three random variables and I have to do simulation draws for two of them. The estimation is very slow …

---

## [Difference between rem2pi and mod2pi?](https://discourse.julialang.org/t/difference-between-rem2pi-and-mod2pi/68527)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 8\
**Last updated:** [September 21, 2021, 3:52pm UTC](https://discourse.julialang.org/t/difference-between-rem2pi-and-mod2pi/68527 "2021-09-21T15:52:38Z")

</div>

I’m trying to understand the difference between rem2pi(x, RoundNearest) and mod2pi (or more precisely mod2pi - π) from Base, Math functions. Is that correct that roughly speaking both function return the same thing, tha…

---

## [Why Pluto doesn't let you have multiple expressions in the same cell?](https://discourse.julialang.org/t/why-pluto-doesnt-let-you-have-multiple-expressions-in-the-same-cell/68530)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 3:40pm UTC](https://discourse.julialang.org/t/why-pluto-doesnt-let-you-have-multiple-expressions-in-the-same-cell/68530 "2021-09-21T15:40:45Z")

</div>

The following error is a bit annoying: Why Pluto has this restriction? Moreover, simply adding a semi-colon here makes this work:

---

## [Unexpected end of JSON input with PlotlyJS](https://discourse.julialang.org/t/unexpected-end-of-json-input-with-plotlyjs/67823)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 3:09pm UTC](https://discourse.julialang.org/t/unexpected-end-of-json-input-with-plotlyjs/67823 "2021-09-21T15:09:29Z")

</div>

The following code work well with PlotlyBase.jl. using DataFrames, PlotlyBase, PlotlyJS using Dash, DashHtmlComponents, DashCoreComponents using JSON MMM = DataFrame(GRADE = \["M", "M", "F"\], LOTE = \["L1","L2","L3"\], f…

---

## [Comparison formula with random effect term \[StatsModels.jl\]](https://discourse.julialang.org/t/comparison-formula-with-random-effect-term-statsmodels-jl/68489)

<div class="topic-metadata">

**Author:** [@Yonghee\_Lee](https://discourse.julialang.org/u/Yonghee_Lee)\
**Replies:** 10\
**Last updated:** [September 21, 2021, 3:07pm UTC](https://discourse.julialang.org/t/comparison-formula-with-random-effect-term-statsmodels-jl/68489 "2021-09-21T15:07:07Z")

</div>

The follwing comparision between two formula with random effect term for MixedModels.jl gives false: @formula(y ~ 1 + x + (1 | z3) ) == @formula(y ~ 1 + x + (1 | z3) ) However, a comparision formula without random eff…

---

## [Pkg can not create Manifest.toml as "nt authority\\system" user account on Windows](https://discourse.julialang.org/t/pkg-can-not-create-manifest-toml-as-nt-authority-system-user-account-on-windows/68452)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 2:33pm UTC](https://discourse.julialang.org/t/pkg-can-not-create-manifest-toml-as-nt-authority-system-user-account-on-windows/68452 "2021-09-21T14:33:58Z")

</div>

Hi All :slight\_smile: I run into a very wired error. It only happens while using Julia as system-user on Windows. Let me explain what I’m doing: 1.) Created an project with the following structure: /my\_project /my\_p…

---

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

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 8\
**Last updated:** [September 21, 2021, 2:29pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-rc1-is-now-available/68278 "2021-09-21T14:29:45Z")

</div>

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

---

## [Parsing a bespoke file format](https://discourse.julialang.org/t/parsing-a-bespoke-file-format/68463)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 1:36pm UTC](https://discourse.julialang.org/t/parsing-a-bespoke-file-format/68463 "2021-09-21T13:36:19Z")

</div>

I have a text file that has the following structure begin"head" \<head1 content\> end"head" begin"body" \<body1 content\> end"body" begin"foot" \<foot1 content\> end"foot" begin"head" \<head2 content\> end"head"…

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

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