# Latest

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

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

**Page:** 1496

---

## [How to plot a heatmap using jet colormap or/and other matplotlib colormaps](https://discourse.julialang.org/t/how-to-plot-a-heatmap-using-jet-colormap-or-and-other-matplotlib-colormaps/54974)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 15\
**Last updated:** [February 10, 2021, 8:13pm UTC](https://discourse.julialang.org/t/how-to-plot-a-heatmap-using-jet-colormap-or-and-other-matplotlib-colormaps/54974 "2021-02-10T20:13:16Z")

</div>

Hi all, When I enter clibraries(), I get: julia\> clibraries() 5-element Array{Symbol,1}: :Plots :cmocean :misc :colorcet :colorbrewer Misc, is supposed to contain the jet colormap, when I try this simple code …

---

## [Storing big data file for fast access?](https://discourse.julialang.org/t/storing-big-data-file-for-fast-access/54992)

<div class="topic-metadata">

**Author:** [@mihrits](https://discourse.julialang.org/u/mihrits)\
**Replies:** 8\
**Last updated:** [February 10, 2021, 7:31pm UTC](https://discourse.julialang.org/t/storing-big-data-file-for-fast-access/54992 "2021-02-10T19:31:15Z")

</div>

I have a somewhat big .txt data file (~70 MB, ~1M lines, ~30 columns) that I plan to study during the next few months. Data are mostly floats, but also strings and integers. And I’ll probably work with more files like th…

---

## [Dealing with different concepts of "missingness"](https://discourse.julialang.org/t/dealing-with-different-concepts-of-missingness/55008)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 13\
**Last updated:** [February 10, 2021, 7:10pm UTC](https://discourse.julialang.org/t/dealing-with-different-concepts-of-missingness/55008 "2021-02-10T19:10:20Z")

</div>

I’ve come accross different types of missingness that occur when loading and preprocessing data. NaN Nothing Missing e.g. df = groupby(DataFrame(g = \[1,1,2\], v = \[1,2,3\]), :g) |\> x-\> combine(x, :v =\>var) df…

---

## [Plotting a recursion graph for a function with 2 arguments](https://discourse.julialang.org/t/plotting-a-recursion-graph-for-a-function-with-2-arguments/54951)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 6:35pm UTC](https://discourse.julialang.org/t/plotting-a-recursion-graph-for-a-function-with-2-arguments/54951 "2021-02-10T18:35:17Z")

</div>

I have a recursive function with 2 indices of the form: function calc\_rs(n,p) println("Calculating for ($n,$p)") if n != 1 calc\_rs(n-1, 1) calc\_rs(n-1, p+1) end end It is called as: calc\_rs…

---

## [Is there an efficient way to associate a value with a parameterized type.For exa](https://discourse.julialang.org/t/is-there-an-efficient-way-to-associate-a-value-with-a-parameterized-type-for-exa/54940)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 5:49pm UTC](https://discourse.julialang.org/t/is-there-an-efficient-way-to-associate-a-value-with-a-parameterized-type-for-exa/54940 "2021-02-10T17:49:14Z")

</div>

Is there an efficient way to associate a value with a parameterized type. For example: struct GaloisField{p,r}; val::Int end +(a::G, b::G} where G&lt;:GaloisField = addop(a.val, b.val, logtable(G)) Memoization of lo…

---

## [Pluto.jl not being updated](https://discourse.julialang.org/t/pluto-jl-not-being-updated/51533)

<div class="topic-metadata">

**Author:** [@Tim\_G](https://discourse.julialang.org/u/Tim_G)\
**Replies:** 7\
**Last updated:** [February 10, 2021, 5:36pm UTC](https://discourse.julialang.org/t/pluto-jl-not-being-updated/51533 "2021-02-10T17:36:33Z")

</div>

Pluto v0.12.16 should be out. This is what I get in the REPL: julia\> Pkg.status(“Pluto”) Status ~/.julia/environments/v1.5/Project.toml \[c3e4b0f8\] Pluto v0.12.12 julia\> Pkg.update(“Pluto”) Updating registry at ~/.j…

---

## [Is this a valid way of evaluating string of code in local scope?](https://discourse.julialang.org/t/is-this-a-valid-way-of-evaluating-string-of-code-in-local-scope/54996)

<div class="topic-metadata">

**Author:** [@calebwin](https://discourse.julialang.org/u/calebwin)\
**Replies:** 6\
**Last updated:** [February 10, 2021, 5:21pm UTC](https://discourse.julialang.org/t/is-this-a-valid-way-of-evaluating-string-of-code-in-local-scope/54996 "2021-02-10T17:21:34Z")

</div>

From what I’ve read and observed, it seems like there isn’t a way of eval-ing code in local scope or otherwise without incurring significant performance penalty (lots of extra memory allocations and significantly longer …

---

## [Is there a way to implicitly convert two variables with the same \*intrinsic type\*](https://discourse.julialang.org/t/is-there-a-way-to-implicitly-convert-two-variables-with-the-same-intrinsic-type/55006)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 4:14pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-implicitly-convert-two-variables-with-the-same-intrinsic-type/55006 "2021-02-10T16:14:08Z")

</div>

Is there a way to implicitly convert two variables with the same intrinsic type but coming from different modules? see below for example LoadError: MethodError: no method matching synthetise\_schedule(::Array{Main.Schedu…

---

## [Dataframes difficult joins](https://discourse.julialang.org/t/dataframes-difficult-joins/54654)

<div class="topic-metadata">

**Author:** [@Smith](https://discourse.julialang.org/u/Smith)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 5:03pm UTC](https://discourse.julialang.org/t/dataframes-difficult-joins/54654 "2021-02-10T17:03:56Z")

</div>

I am having difficulty in understanding on how to link up two dataframes to create another dataframe based on multiple criteria. Apologies, if the code below seem too long-most of it is to create the two dataframes in qu…

---

## [Only make compilation of a script](https://discourse.julialang.org/t/only-make-compilation-of-a-script/55001)

<div class="topic-metadata">

**Author:** [@Ludsrill](https://discourse.julialang.org/u/Ludsrill)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 4:51pm UTC](https://discourse.julialang.org/t/only-make-compilation-of-a-script/55001 "2021-02-10T16:51:29Z")

</div>

I only want to know if it’s possible to make a compilation for a script without running the script if it’s possible, how can I do it?

---

## [Bugs in isfinite(), isnan and isinf()?](https://discourse.julialang.org/t/bugs-in-isfinite-isnan-and-isinf/55005)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 11\
**Last updated:** [February 10, 2021, 4:39pm UTC](https://discourse.julialang.org/t/bugs-in-isfinite-isnan-and-isinf/55005 "2021-02-10T16:39:37Z")

</div>

the following seems to be bugs to me: julia\> isfinite.(\[NaN, Inf, 2.0, -Inf\]) 4-element BitArray{1}: 1 1 1 1 julia\> isinf.(\[NaN, Inf, 2.0, -Inf\]) 4-element BitArray{1}: 0 0 0 0 julia\> isnan.(\[NaN, Inf, 2.0, -I…

---

## [Installation path and environment variables](https://discourse.julialang.org/t/installation-path-and-environment-variables/54980)

<div class="topic-metadata">

**Author:** [@otto\_bay](https://discourse.julialang.org/u/otto_bay)\
**Replies:** 3\
**Last updated:** [February 10, 2021, 4:22pm UTC](https://discourse.julialang.org/t/installation-path-and-environment-variables/54980 "2021-02-10T16:22:45Z")

</div>

hello, Apologies in advance for the newbie questions: I am new to Julia… I have installed Julia, Atom and Juno and everything seemed to work well to start with. Sadly the .atom and the .julia were created (without ask…

---

## [Single number and array as input in Flux model](https://discourse.julialang.org/t/single-number-and-array-as-input-in-flux-model/54986)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 3:50pm UTC](https://discourse.julialang.org/t/single-number-and-array-as-input-in-flux-model/54986 "2021-02-10T15:50:44Z")

</div>

Suppose I have a Flux simple model like this: model = Dense(1, 10) If I try to call this model with a single number I get an error: model(0.3) # ERROR However If I do this the model works correctly: model(\[0.3\]) D…

---

## [Package Managers -- Dependency Confusion](https://discourse.julialang.org/t/package-managers-dependency-confusion/55003)

<div class="topic-metadata">

**Author:** [@cce](https://discourse.julialang.org/u/cce)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 3:50pm UTC](https://discourse.julialang.org/t/package-managers-dependency-confusion/55003 "2021-02-10T15:50:42Z")

</div>

There is an interesting blog today about how dependency confusion (when private packages are registered publicly) as a security challenge.

---

## [ScatterNNlib: array mutation not supported](https://discourse.julialang.org/t/scatternnlib-array-mutation-not-supported/55004)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 3:44pm UTC](https://discourse.julialang.org/t/scatternnlib-array-mutation-not-supported/55004 "2021-02-10T15:44:32Z")

</div>

I know that Zygote.jl doesn’t support array mutation. I tried to use ScatterNNlib.gather but It shows array mutation error: using Flux using ScatterNNlib f(x) = gather(x, \[1 3; 4 2\], 2) gradient(x -\> f(x), rand(4,4)) L…

---

## [\[ANN\] AbstractSDRs: Julia package to monitor various Software Defined Radios in a common API](https://discourse.julialang.org/t/ann-abstractsdrs-julia-package-to-monitor-various-software-defined-radios-in-a-common-api/55002)

<div class="topic-metadata">

**Author:** [@RGerzaguet](https://discourse.julialang.org/u/RGerzaguet)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 3:26pm UTC](https://discourse.julialang.org/t/ann-abstractsdrs-julia-package-to-monitor-various-software-defined-radios-in-a-common-api/55002 "2021-02-10T15:26:04Z")

</div>

Hello there Hope this post finds you well ! I am really proud to present you a package that is now registered in the Julia registry. This package is called AbstractSDRs.jl and aims to provide a unified API to monitor,…

---

## [Julia v1.6.0-rc1 is now available](https://discourse.julialang.org/t/julia-v1-6-0-rc1-is-now-available/54775)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 28\
**Last updated:** [February 10, 2021, 2:49pm UTC](https://discourse.julialang.org/t/julia-v1-6-0-rc1-is-now-available/54775 "2021-02-10T14:49:47Z")

</div>

The Julia developers are pleased to announce that the first release candidate for Julia v1.6.0 is now available. You can download binaries at Download Julia in the “upcoming release” section for macOS, FreeBSD (x86-64), …

---

## [Loglogistic function robustness in Turing.jl](https://discourse.julialang.org/t/loglogistic-function-robustness-in-turing-jl/54908)

<div class="topic-metadata">

**Author:** [@virgile-baudrot](https://discourse.julialang.org/u/virgile-baudrot)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 2:27pm UTC](https://discourse.julialang.org/t/loglogistic-function-robustness-in-turing-jl/54908 "2021-02-10T14:27:29Z")

</div>

I realized in a Turing.jl model that the log-logistic function was more robust (less rejection) when written as: x^β/(α^β + x^β) rather than: 1/(1+(x/α)^-β) What are the reason? How could I check the robustness of su…

---

## [Could not apply vbox in AbstractPlotting](https://discourse.julialang.org/t/could-not-apply-vbox-in-abstractplotting/54975)

<div class="topic-metadata">

**Author:** [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 1:37pm UTC](https://discourse.julialang.org/t/could-not-apply-vbox-in-abstractplotting/54975 "2021-02-10T13:37:28Z")

</div>

using GLMakie using CairoMakie using AbstractPlotting CairoMakie.activate!() AbstractPlotting.inline!(true) All above packages are up to date. Running the following example: t = range(0, stop = 1, length = 100) θ = …

---

## [Pmap using fewer workers than expected after some time](https://discourse.julialang.org/t/pmap-using-fewer-workers-than-expected-after-some-time/46715)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 5\
**Last updated:** [February 10, 2021, 12:29pm UTC](https://discourse.julialang.org/t/pmap-using-fewer-workers-than-expected-after-some-time/46715 "2021-02-10T12:29:31Z")

</div>

I’m running pmap with 16 workers and batch\_size=1 to process hundreds of files. Each file takes over an hour to work through and the files are relatively homogeneous but don’t take exactly the same time. For the first 14…

---

## [Julia 1.6.0-rc2 (and 1.7 and rc1) with threads is slower - considerations for the Benchmark Game](https://discourse.julialang.org/t/julia-1-6-0-rc2-and-1-7-and-rc1-with-threads-is-slower-considerations-for-the-benchmark-game/54957)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 12:04pm UTC](https://discourse.julialang.org/t/julia-1-6-0-rc2-and-1-7-and-rc1-with-threads-is-slower-considerations-for-the-benchmark-game/54957 "2021-02-10T12:04:54Z")

</div>

First the good stuff, the release candidate takes one sec, 1/5 of the time off when threading isn’t used. But while new and old are both faster as expected with threading, the gain is less on the release candidate makin…

---

## [Calling @docs twice for the same function in Documenter.jl](https://discourse.julialang.org/t/calling-docs-twice-for-the-same-function-in-documenter-jl/37791)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 6\
**Last updated:** [February 10, 2021, 11:43am UTC](https://discourse.julialang.org/t/calling-docs-twice-for-the-same-function-in-documenter-jl/37791 "2021-02-10T11:43:40Z")

</div>

When using Documenter.jl say I have the following two markdown files, Page1.md some text 1 \`\`@docs foo \`\` Page2.md some text 2 \`\`@docs foo \`\` I observe that this results in a warning of the form, Warning: duplicate …

---

## [Zygote: ERROR: LoadError: type NamedTuple has no field first](https://discourse.julialang.org/t/zygote-error-loaderror-type-namedtuple-has-no-field-first/54199)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 5\
**Last updated:** [February 10, 2021, 11:18am UTC](https://discourse.julialang.org/t/zygote-error-loaderror-type-namedtuple-has-no-field-first/54199 "2021-02-10T11:18:54Z")

</div>

Hi, I’m trying to get started using Zygote in a numerical simulation. Basically I need to differentiate through a Laplace solver and am getting an error which I don’t know how to handle. Here is the code: using Plots …

---

## [How to make DataVoyager recognize a variable as temporal?](https://discourse.julialang.org/t/how-to-make-datavoyager-recognize-a-variable-as-temporal/54982)

<div class="topic-metadata">

**Author:** [@LinusSch](https://discourse.julialang.org/u/LinusSch)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 11:13am UTC](https://discourse.julialang.org/t/how-to-make-datavoyager-recognize-a-variable-as-temporal/54982 "2021-02-10T11:13:24Z")

</div>

In David Anthoff’s “Intro to the Queryverse”, at 9:30 ( Intro to the Queryverse, a Julia data science stack | David Anthoff - YouTube ), he passes a dataset to voyager() (from DataVoyager.jl) and one of the variables is …

---

## [Plot a vector of Arrays](https://discourse.julialang.org/t/plot-a-vector-of-arrays/54956)

<div class="topic-metadata">

**Author:** [@fms-1988](https://discourse.julialang.org/u/fms-1988)\
**Replies:** 5\
**Last updated:** [February 10, 2021, 10:02am UTC](https://discourse.julialang.org/t/plot-a-vector-of-arrays/54956 "2021-02-10T10:02:13Z")

</div>

I want to plot a vector. But the elements of this vector are arrays. Was there any way to plot the data that way? a1 = \[1 , 2 , 3\] a2 = \[1,2\] a3 = \[3,1\] A = \[a1,a2,a3\] A = convert(Array{Any}, A) n = 1:3 using Plots sc…

---

## [Hi! I have a function, let's say \`f(ϕ) = sin(ϕ), ϕ = 0...10\`. Now I want to break](https://discourse.julialang.org/t/hi-i-have-a-function-lets-say-f-sin-0-10-now-i-want-to-break/54826)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 28\
**Last updated:** [February 10, 2021, 8:34am UTC](https://discourse.julialang.org/t/hi-i-have-a-function-lets-say-f-sin-0-10-now-i-want-to-break/54826 "2021-02-10T08:34:45Z")

</div>

Hi! I have a function, let’s say f(ϕ) = sin(ϕ), ϕ = 0...10. Now I want to break that function down in a list of lines that approximates the real function well (maybe with a maximum or minimum line length, angle between l…

---

## [Can't use tuple of \`UInt\` as index](https://discourse.julialang.org/t/cant-use-tuple-of-uint-as-index/54968)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 8:58am UTC](https://discourse.julialang.org/t/cant-use-tuple-of-uint-as-index/54968 "2021-02-10T08:58:09Z")

</div>

Is this expected behavior? julia\> idx = UInt(3); A = rand(4); A\[idx\] 0.10882052381690266 julia\> idx = (UInt(3), UInt(1)); A = rand(4, 5); A\[idx\] ERROR: ArgumentError: invalid index: (0x0000000000000003, 0x0000000000000…

---

## [Correlated Random Effects in MixedModels.jl](https://discourse.julialang.org/t/correlated-random-effects-in-mixedmodels-jl/54612)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 1\
**Last updated:** [February 10, 2021, 8:40am UTC](https://discourse.julialang.org/t/correlated-random-effects-in-mixedmodels-jl/54612 "2021-02-10T08:40:57Z")

</div>

I recently read up on Fixed Effects vs. Random Effects and learned about the Correlated Random Effects model in Wooldridge’s Introductory Econometrics. The model looks as follows: y\_{it} = \\beta x\_{it} + \\gamma \\bar x…

---

## [Cbc JuMP : get optimize() best possible, best solution, number of nodes](https://discourse.julialang.org/t/cbc-jump-get-optimize-best-possible-best-solution-number-of-nodes/54904)

<div class="topic-metadata">

**Author:** [@juliamilp](https://discourse.julialang.org/u/juliamilp)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 8:23am UTC](https://discourse.julialang.org/t/cbc-jump-get-optimize-best-possible-best-solution-number-of-nodes/54904 "2021-02-10T08:23:56Z")

</div>

Hello, I’m working on a Cbc optimizer using JuMP. When I use the optimize function, the best possible, best solution, total nodes and nodes on trees appears as : “Cbc0010I After 14000 nodes, 1054 on tree, 662 best solut…

---

## [What is difference between Debugger.jl in REPL and in VS Code GUI one?](https://discourse.julialang.org/t/what-is-difference-between-debugger-jl-in-repl-and-in-vs-code-gui-one/54969)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 0\
**Last updated:** [February 10, 2021, 8:23am UTC](https://discourse.julialang.org/t/what-is-difference-between-debugger-jl-in-repl-and-in-vs-code-gui-one/54969 "2021-02-10T08:23:11Z")

</div>

My impression is that using Debugger.jl is much faster than debugging in VS Code Usage: import Debugger Debugger.@enter function\_name(parameters) vs @enter function\_name(parameters) directly in VS Code My impre…

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

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