# Latest

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

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

**Page:** 1538

---

## [How in GRUtils or GLMakie to have the same range of colormap across plots?](https://discourse.julialang.org/t/how-in-grutils-or-glmakie-to-have-the-same-range-of-colormap-across-plots/52422)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 1\
**Last updated:** [December 26, 2020, 9:24pm UTC](https://discourse.julialang.org/t/how-in-grutils-or-glmakie-to-have-the-same-range-of-colormap-across-plots/52422 "2020-12-26T21:24:43Z")

</div>

I’m trying to compare distance functions looking at a heatmap of the distance matrix and can’t see anywhere in the documentation how to tell the plot function what the “range” of the data to apply to the colormap is. i …

---

## [Rotating the axes labels in GR](https://discourse.julialang.org/t/rotating-the-axes-labels-in-gr/52379)

<div class="topic-metadata">

**Author:** [@bhaveshshrimali](https://discourse.julialang.org/u/bhaveshshrimali)\
**Replies:** 1\
**Last updated:** [December 26, 2020, 9:19pm UTC](https://discourse.julialang.org/t/rotating-the-axes-labels-in-gr/52379 "2020-12-26T21:19:24Z")

</div>

Hi everyone, I was trying to use the GR (version: \[28b8d3ca\] GR v0.53.0) backend with the axes label on the y axis rotated clockwise by 90 degrees. Consider the following snippet using Plots, LaTeXStrings gr() λ\_linear…

---

## [Speed up heatmap for large (2500x2500) matrices?](https://discourse.julialang.org/t/speed-up-heatmap-for-large-2500x2500-matrices/52310)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 13\
**Last updated:** [December 26, 2020, 9:10pm UTC](https://discourse.julialang.org/t/speed-up-heatmap-for-large-2500x2500-matrices/52310 "2020-12-26T21:10:04Z")

</div>

Hi, Trying to plot a heatmap of a distance matrix that is 2500x2500 give or take. This takes almost a minute to complete using Plots.jl and GR as the backend, and it breaks pluto/plotlyjs when i try it interactively. …

---

## [Does anyone find it is a bit annoying that Pluto.jl does not let you reuse variable in different cells?](https://discourse.julialang.org/t/does-anyone-find-it-is-a-bit-annoying-that-pluto-jl-does-not-let-you-reuse-variable-in-different-cells/46901)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 8\
**Last updated:** [December 26, 2020, 8:28pm UTC](https://discourse.julialang.org/t/does-anyone-find-it-is-a-bit-annoying-that-pluto-jl-does-not-let-you-reuse-variable-in-different-cells/46901 "2020-12-26T20:28:56Z")

</div>

Sometimes it is handy to use a same variable name in different cells. For example, I want to test several differenty ways to interpolation a function. I will define a interpolation instance in one cell, say begin spl …

---

## [Why won't \`pkg\> generate\` allow a ".jl" suffix in the name?](https://discourse.julialang.org/t/why-wont-pkg-generate-allow-a-jl-suffix-in-the-name/52412)

<div class="topic-metadata">

**Author:** [@ben-schulz](https://discourse.julialang.org/u/ben-schulz)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 6:01pm UTC](https://discourse.julialang.org/t/why-wont-pkg-generate-allow-a-jl-suffix-in-the-name/52412 "2020-12-26T18:01:17Z")

</div>

hi there, after some time away from Julia, i’m trying to create a new package, and seem to recall that standard convention is to put a “.jl” suffix on the repo name, i.e. on the root project directory. i thought i woul…

---

## [Ridge Regression using Turing.jl](https://discourse.julialang.org/t/ridge-regression-using-turing-jl/52378)

<div class="topic-metadata">

**Author:** [@Michaela\_Maskova](https://discourse.julialang.org/u/Michaela_Maskova)\
**Replies:** 4\
**Last updated:** [December 26, 2020, 7:56pm UTC](https://discourse.julialang.org/t/ridge-regression-using-turing-jl/52378 "2020-12-26T19:56:27Z")

</div>

Hi everyone, I’m trying to create a model in Turing.jl for Ridge Regression to use HMC. However, I need to sample two parameters, alpha and theta which are dependant on each other via θ ~ MvNormal(zeros(3),α^(-1)) α ~ …

---

## [Defining function that accepts both FP32 and FP64](https://discourse.julialang.org/t/defining-function-that-accepts-both-fp32-and-fp64/52394)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 6\
**Last updated:** [December 26, 2020, 5:10pm UTC](https://discourse.julialang.org/t/defining-function-that-accepts-both-fp32-and-fp64/52394 "2020-12-26T17:10:37Z")

</div>

Hi, I’m just starting out with Julia and ran into a weird issue. I defined a function that can take float values (fp32 or fp64, but strictly no int) as follows function elim(A::Array{float},b::Array{float}) #= F…

---

## [How to do escape\_string](https://discourse.julialang.org/t/how-to-do-escape-string/52401)

<div class="topic-metadata">

**Author:** [@Zaim\_Awang](https://discourse.julialang.org/u/Zaim_Awang)\
**Replies:** 15\
**Last updated:** [December 26, 2020, 3:41pm UTC](https://discourse.julialang.org/t/how-to-do-escape-string/52401 "2020-12-26T15:41:56Z")

</div>

I am trying to use escape\_string because as per documentation, “Backslashes ( \\ ) are escaped with a double-backslash ( "\\\\" )”. This is what I tried: mypath1 = escape\_string("C:\\Users\\User\\Dropbox\\codes\\JULIA\\stock1\\"…

---

## [Thoughts on new language CPL](https://discourse.julialang.org/t/thoughts-on-new-language-cpl/52361)

<div class="topic-metadata">

**Author:** [@EmadMasroor](https://discourse.julialang.org/u/EmadMasroor)\
**Replies:** 2\
**Last updated:** [December 26, 2020, 3:17pm UTC](https://discourse.julialang.org/t/thoughts-on-new-language-cpl/52361 "2020-12-26T15:17:55Z")

</div>

Hello, I was wondering if anyone in the Julia community has looked at CPL, a new programming language about which a paper was published on the arXiv recently. It seems similar to Fortran, but I may be wrong. Where do J…

---

## [Compat entry for a package that may or may not be a standard library](https://discourse.julialang.org/t/compat-entry-for-a-package-that-may-or-may-not-be-a-standard-library/52397)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [December 26, 2020, 8:31am UTC](https://discourse.julialang.org/t/compat-entry-for-a-package-that-may-or-may-not-be-a-standard-library/52397 "2020-12-26T08:31:31Z")

</div>

TOML.jl currently (Julia \<=1.5) requires a \[compat\] entry for the General registry, but it will be a standard library for 1.6. Will that compat entry just be ignored then, or is it going to cause problems?

---

## [Is it possible to use @static to distinguish CPU or GPU call in CUDA?](https://discourse.julialang.org/t/is-it-possible-to-use-static-to-distinguish-cpu-or-gpu-call-in-cuda/52366)

<div class="topic-metadata">

**Author:** [@HaoxuanGuo](https://discourse.julialang.org/u/HaoxuanGuo)\
**Replies:** 2\
**Last updated:** [December 26, 2020, 7:37am UTC](https://discourse.julialang.org/t/is-it-possible-to-use-static-to-distinguish-cpu-or-gpu-call-in-cuda/52366 "2020-12-26T07:37:38Z")

</div>

As we all know, some codes can not run on GPU. But there will be some alternative way to solve it. For example, sqrt can not run on GPU due to a \_fpow error. But CUDA.sqrt is an alternative solution. In this condition, …

---

## [\[ANN\] ConventionalApp.jl](https://discourse.julialang.org/t/ann-conventionalapp-jl/52390)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 0\
**Last updated:** [December 26, 2020, 3:56am UTC](https://discourse.julialang.org/t/ann-conventionalapp-jl/52390 "2020-12-26T03:56:39Z")

</div>

Simple framework for making conventional applications in Julia. https://github.com/ma-laforge/ConventionalApp.jl What is it for? Julia “Project Environments” define the set of packages needed to experiment within a par…

---

## [Try catch question](https://discourse.julialang.org/t/try-catch-question/52384)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 4\
**Last updated:** [December 26, 2020, 2:56am UTC](https://discourse.julialang.org/t/try-catch-question/52384 "2020-12-26T02:56:22Z")

</div>

I use try JSON.parsefile(fname) do stuff content = "Nothing ..." end catch content = "File "\*fname\*" not found! "; end But it always returns that file w…

---

## [Assignment not effective in \`@spawn\` in function](https://discourse.julialang.org/t/assignment-not-effective-in-spawn-in-function/52382)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 4\
**Last updated:** [December 26, 2020, 1:25am UTC](https://discourse.julialang.org/t/assignment-not-effective-in-spawn-in-function/52382 "2020-12-26T01:25:11Z")

</div>

Define a simple function copying the contents of one array to another: function copy\_array!(array\_t::AbstractArray, array\_s::AbstractArray) array\_t .= array\_s return nothing end The following function performs…

---

## ["import MyPkg" uses old version of MyPkg](https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385)

<div class="topic-metadata">

**Author:** [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Replies:** 1\
**Last updated:** [December 25, 2020, 11:24pm UTC](https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385 "2020-12-25T23:24:59Z")

</div>

Hello, let’s say you are doing this: pkg\> dev path/to/MyPkg julia\> import MyPkg modify the contents of MyPkg/src/MyPkg.jl on disk julia\> import MyPkg julia\> MyPkg.func() In Julia 1.5 this executes the new versio…

---

## [Sunk with "In-Sync"](https://discourse.julialang.org/t/sunk-with-in-sync/52347)

<div class="topic-metadata">

**Author:** [@Birrell](https://discourse.julialang.org/u/Birrell)\
**Replies:** 5\
**Last updated:** [December 25, 2020, 10:12pm UTC](https://discourse.julialang.org/t/sunk-with-in-sync/52347 "2020-12-25T22:12:39Z")

</div>

Julia is certainly beautiful. A Christmas gift. And… I am trying to use Julia and its modules. I keep getting this error as soon as I open the REPL: " Atom.jl: unrecognised message cacheCompletions. │ Please make s…

---

## [Look up UUID of package by name in the General registry](https://discourse.julialang.org/t/look-up-uuid-of-package-by-name-in-the-general-registry/52369)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [December 25, 2020, 10:08pm UTC](https://discourse.julialang.org/t/look-up-uuid-of-package-by-name-in-the-general-registry/52369 "2020-12-25T22:08:42Z")

</div>

How can I look up UUID of a package by name in the General registry (or return nothing if there is no such package?)

---

## [Workstation advice (for mostly Julia use)](https://discourse.julialang.org/t/workstation-advice-for-mostly-julia-use/25395)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 22\
**Last updated:** [December 25, 2020, 9:32pm UTC](https://discourse.julialang.org/t/workstation-advice-for-mostly-julia-use/25395 "2020-12-25T21:32:24Z")

</div>

I am about to build a new workstation. It is mainly used for numerical tasks, which is nowadays 99% Julia for me. This system is kind of the sweet spot for things a laptop is not adequate for, yet having full control ove…

---

## [Issues in using Econometrics package](https://discourse.julialang.org/t/issues-in-using-econometrics-package/52372)

<div class="topic-metadata">

**Author:** [@j\_mtuba](https://discourse.julialang.org/u/j_mtuba)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 9:20pm UTC](https://discourse.julialang.org/t/issues-in-using-econometrics-package/52372 "2020-12-25T21:20:40Z")

</div>

I just started using julia-1.5.3 on my Linux machine (Pop!\_OS 20.10). I cloned https://github.com/mcreel/Econometrics in order to add the package to Julia. Afterwards I did “using Econometrics” to use the package. I got …

---

## [Looking for a data structure that](https://discourse.julialang.org/t/looking-for-a-data-structure-that/52365)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 18\
**Last updated:** [December 25, 2020, 9:08pm UTC](https://discourse.julialang.org/t/looking-for-a-data-structure-that/52365 "2020-12-25T21:08:48Z")

</div>

I’m looking for a data structure that can insert, delete and mutate (given key) in order log n, and look at the max element in order 1. This is either a SortedDict or one of the trees in DataStructures.jl. My issue is t…

---

## [Sort rows and columns of NamedArray](https://discourse.julialang.org/t/sort-rows-and-columns-of-namedarray/52374)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [December 25, 2020, 7:38pm UTC](https://discourse.julialang.org/t/sort-rows-and-columns-of-namedarray/52374 "2020-12-25T19:38:14Z")

</div>

I am working with a frequency table that is based on a NamedArray. I am having trouble reverse sorting the dimensions. Here is an example: n = NamedArray(\[1 3; 2 4\], ( \["a", "b"\], \["c", "d"\] ), ("Rows", "Cols")) Result…

---

## [Makie memory leak?](https://discourse.julialang.org/t/makie-memory-leak/52362)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 10\
**Last updated:** [December 25, 2020, 5:25pm UTC](https://discourse.julialang.org/t/makie-memory-leak/52362 "2020-12-25T17:25:31Z")

</div>

Hi, I do not understand why the following MWE consumes more an more memory until crash: using GLMakie,AbstractPlotting,ImageCore function leak(img,i) fn=string(i)\*".png" scene = AbstractPlotting.image(rotr90(i…

---

## [Unsatisfiable requirements detected for package SpecialFunctions](https://discourse.julialang.org/t/unsatisfiable-requirements-detected-for-package-specialfunctions/52363)

<div class="topic-metadata">

**Author:** [@Zaim\_Awang](https://discourse.julialang.org/u/Zaim_Awang)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 4:50pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-detected-for-package-specialfunctions/52363 "2020-12-25T16:50:45Z")

</div>

Hi, I am an almost complete newbie. I am trying to add the latest SpecialFunctions package (v 1.2.1) but I am stuck at v0.10.3. I realize the package issue is a common question. I am using JuliaPro Version 1.5.3 (2020-1…

---

## [Christmas Tree Plot ; )](https://discourse.julialang.org/t/christmas-tree-plot/52377)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 0\
**Last updated:** [December 25, 2020, 3:55pm UTC](https://discourse.julialang.org/t/christmas-tree-plot/52377 "2020-12-25T15:55:05Z")

</div>

I overlaid a few dot plots (from StatsPlots.jl) of some real data I work with to make this :smile: (the legend is blurred and axes not shown because it’s a private dataset). Also, I limited the y-axis and modified the…

---

## [Incomplete installation reported when importing package for the first time](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 3:52pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376 "2020-12-25T15:52:03Z")

</div>

I installed the Plots package, but I get the following error when trying to compile it. I am using version 1.5.3 on Ubuntu. While installing this package, there was an interruption in between. What could I do to solve th…

---

## [Include programmatically generated julia file](https://discourse.julialang.org/t/include-programmatically-generated-julia-file/52373)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 3:47pm UTC](https://discourse.julialang.org/t/include-programmatically-generated-julia-file/52373 "2020-12-25T15:47:51Z")

</div>

Hi! My question is about a good way to include programmatically generated julia file . The example is the following: I have a pkg X which generates julia models (functions or DSL-macros) from some external source file…

---

## [A data struct is required almost all sub functions](https://discourse.julialang.org/t/a-data-struct-is-required-almost-all-sub-functions/52360)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 11:06am UTC](https://discourse.julialang.org/t/a-data-struct-is-required-almost-all-sub-functions/52360 "2020-12-25T11:06:25Z")

</div>

Merry Christmas, everyone. I have a struct containing all data required for running an algorithm to solve the problem, say: struct ProblemData x :: Float64 y :: Vector{Float64} z :: Matrix{Float64} end Thi…

---

## [Google's MuZero](https://discourse.julialang.org/t/googles-muzero/52364)

<div class="topic-metadata">

**Author:** [@StatisticalMouse](https://discourse.julialang.org/u/StatisticalMouse)\
**Replies:** 0\
**Last updated:** [December 25, 2020, 10:42am UTC](https://discourse.julialang.org/t/googles-muzero/52364 "2020-12-25T10:42:56Z")

</div>

This looks like a big deal. It uses model-based reinforcement learning and can learn to play both chess and Pac-Man. Abstract from the Science article: " Constructing agents with planning capabilities has long been one …

---

## [Zygote pullback vs gradient](https://discourse.julialang.org/t/zygote-pullback-vs-gradient/52326)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 2\
**Last updated:** [December 25, 2020, 5:56am UTC](https://discourse.julialang.org/t/zygote-pullback-vs-gradient/52326 "2020-12-25T05:56:18Z")

</div>

Hello, I have a sequence to sequence Flux model which has a custom loss function and custom train function. I can do forward propagation. And also take the gradients of the model by using gradient method of Zygote. Ho…

---

## [Why does shuffling rows change the estimates?](https://discourse.julialang.org/t/why-does-shuffling-rows-change-the-estimates/52305)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [December 25, 2020, 7:15am UTC](https://discourse.julialang.org/t/why-does-shuffling-rows-change-the-estimates/52305 "2020-12-25T07:15:44Z")

</div>

This is a small model with fake data in a linear regression. Unexpectedly, shuffling the rows of the dataframe changes the estimates. import Random using DataFrames using Pipe: @pipe using StatsBase: StatsBase, mad, med…

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

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