# Latest

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

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

**Page:** 1604

---

## [Seek for a detailed description on scopes and modules](https://discourse.julialang.org/t/seek-for-a-detailed-description-on-scopes-and-modules/16442)

<div class="topic-metadata">

**Author:** [@alegarra](https://discourse.julialang.org/u/alegarra)\
**Replies:** 8\
**Last updated:** [October 14, 2020, 5:34am UTC](https://discourse.julialang.org/t/seek-for-a-detailed-description-on-scopes-and-modules/16442 "2020-10-14T05:34:15Z")

</div>

I am an R / Fortran programmer trying to understand scopes in Julia. I know the great debate local/global, but what I’m looking for is a document (resource) where the actual rules for scopes are described with examples. …

---

## [A\* path on graph](https://discourse.julialang.org/t/a-path-on-graph/48340)

<div class="topic-metadata">

**Author:** [@anon94806364](https://discourse.julialang.org/u/anon94806364)\
**Replies:** 0\
**Last updated:** [October 14, 2020, 5:02am UTC](https://discourse.julialang.org/t/a-path-on-graph/48340 "2020-10-14T05:02:26Z")

</div>

Newly introduced to Julia, after working with slow graph libraries in Python. I’m trying to find the shortest path through a graph, constructed through an adjacency matrix using LightGraphs. Part of my confusion is whet…

---

## [Using Manipulate for ploting](https://discourse.julialang.org/t/using-manipulate-for-ploting/48305)

<div class="topic-metadata">

**Author:** [@Kantvishu](https://discourse.julialang.org/u/Kantvishu)\
**Replies:** 3\
**Last updated:** [October 13, 2020, 7:15pm UTC](https://discourse.julialang.org/t/using-manipulate-for-ploting/48305 "2020-10-13T19:15:44Z")

</div>

Hello Everyone, I am trying to use interactive plotting using manipulate function (Pkg-Ineract) on Juno-Atom. I am unable to plot x-axis in dynamic plot using @manipulate function. I am pasting my static plot and dynami…

---

## [Cxx/CxxWrap best practices examples](https://discourse.julialang.org/t/cxx-cxxwrap-best-practices-examples/48313)

<div class="topic-metadata">

**Author:** [@mcognetta](https://discourse.julialang.org/u/mcognetta)\
**Replies:** 2\
**Last updated:** [October 14, 2020, 2:25am UTC](https://discourse.julialang.org/t/cxx-cxxwrap-best-practices-examples/48313 "2020-10-14T02:25:40Z")

</div>

I am in the very early stages of porting a few libraries (all C++) to Julia. I’d like to have Julia wrappers of them first, but I have little experience in this area. Other than the examples in the docs for Cxx.jl and Cx…

---

## [Dynamic Imports and User Defined Interfaces in Julia](https://discourse.julialang.org/t/dynamic-imports-and-user-defined-interfaces-in-julia/48274)

<div class="topic-metadata">

**Author:** [@gyrfalcon](https://discourse.julialang.org/u/gyrfalcon)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 2:16am UTC](https://discourse.julialang.org/t/dynamic-imports-and-user-defined-interfaces-in-julia/48274 "2020-10-14T02:16:38Z")

</div>

Hello! I am a newcomer to Julia and I am trying to recreate something that I worked a bit on in Python in Julia, because I think Julia will be the better language overall for numerical performance. However, I am trying t…

---

## [Consistent patterns to convert types / find methods for a particular type?](https://discourse.julialang.org/t/consistent-patterns-to-convert-types-find-methods-for-a-particular-type/48276)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 2\
**Last updated:** [October 14, 2020, 1:24am UTC](https://discourse.julialang.org/t/consistent-patterns-to-convert-types-find-methods-for-a-particular-type/48276 "2020-10-14T01:24:24Z")

</div>

I’ve done a fair amount of Julia programming and understand that “method” means something very different in Python vs Julia, however there are similarities too in that a method has type specificity (in Python always “sel…

---

## [\[ANN\] Shuffle.jl: requesting feedback](https://discourse.julialang.org/t/ann-shuffle-jl-requesting-feedback/48261)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 10\
**Last updated:** [October 14, 2020, 12:32am UTC](https://discourse.julialang.org/t/ann-shuffle-jl-requesting-feedback/48261 "2020-10-14T00:32:36Z")

</div>

Hey julia community, I started on Shuffle.jl, a package for a number of different shuffling algorithms in julia. See the docs for more details. I’d like to add a Cut shuffle that does a cut like you’d do with a deck o…

---

## [Nanosecond epoch time - POSIXClock.jl refresh](https://discourse.julialang.org/t/nanosecond-epoch-time-posixclock-jl-refresh/48321)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [October 13, 2020, 10:15pm UTC](https://discourse.julialang.org/t/nanosecond-epoch-time-posixclock-jl-refresh/48321 "2020-10-13T22:15:51Z")

</div>

These are just notes on updating from a conversation on Slack: const librt = Sys.isunix() ? Libdl.find\_library(\["librt.so"\]) : nothing mutable struct Clock{IsUnix} sec::Int nsec::Int end function Clock() …

---

## [Interest in single molecule localization microscopy?](https://discourse.julialang.org/t/interest-in-single-molecule-localization-microscopy/48227)

<div class="topic-metadata">

**Author:** [@nboyd](https://discourse.julialang.org/u/nboyd)\
**Replies:** 3\
**Last updated:** [October 13, 2020, 10:08pm UTC](https://discourse.julialang.org/t/interest-in-single-molecule-localization-microscopy/48227 "2020-10-13T22:08:55Z")

</div>

I’ve implemented a few algorithms for single molecule localization microscopy: a (quite) fast localizer for high density 2D SMLM and a drift correction algorithm for 2D and 3D localizations. My question is whether there…

---

## [UndefVarError: t not defined](https://discourse.julialang.org/t/undefvarerror-t-not-defined/47987)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 10:01pm UTC](https://discourse.julialang.org/t/undefvarerror-t-not-defined/47987 "2020-10-13T22:01:12Z")

</div>

function DR\_Model\_MPEC(J,T,W,PS\_tw,D\_jtw,delta\_jcmax,C\_t,sigma\_w,M\_S,M\_P,M\_C,M\_T) m = Model(Gurobi.Optimizer) # Variables definition ################################# @variables(m, begin De…

---

## [Text Editor](https://discourse.julialang.org/t/text-editor/48316)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 8:49pm UTC](https://discourse.julialang.org/t/text-editor/48316 "2020-10-13T20:49:50Z")

</div>

Hello! Linux Text Editor, internally gedit, which I run on Linux Mint, does not highlight “struct” keyword - I thought whether to write it there or here, then concluded, that if they are not up to highlight that part, t…

---

## [Reverse a colormap in GRUtils.jl](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 6:47pm UTC](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311 "2020-10-13T18:47:01Z")

</div>

How can I reverse a colormap in GRUtils? I can’t grab cmap = colormap("jet") to flip it or something. The documentation says the colormap values can be retrieved… but doesn’t say how, and the above line of code doesn…

---

## [Comparing two Complex Numbers](https://discourse.julialang.org/t/comparing-two-complex-numbers/48176)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 12\
**Last updated:** [October 13, 2020, 5:31pm UTC](https://discourse.julialang.org/t/comparing-two-complex-numbers/48176 "2020-10-13T17:31:19Z")

</div>

Hello! How does Julia compare two complex numbers? Why it isn’t just looking the points and knowing, that if x1 \< x2, y1 \< y2, with the number being not smaller if x1 \> x2 or y1 \> y2. What is the primary reason, why Ju…

---

## [Massive memory allocation on iterating algorithm \`8.789115 seconds (26.65 M allocations: 7.826 GiB, 25.07% gc time)\`](https://discourse.julialang.org/t/massive-memory-allocation-on-iterating-algorithm-8-789115-seconds-26-65-m-allocations-7-826-gib-25-07-gc-time/48275)

<div class="topic-metadata">

**Author:** [@valenmgama](https://discourse.julialang.org/u/valenmgama)\
**Replies:** 24\
**Last updated:** [October 13, 2020, 5:20pm UTC](https://discourse.julialang.org/t/massive-memory-allocation-on-iterating-algorithm-8-789115-seconds-26-65-m-allocations-7-826-gib-25-07-gc-time/48275 "2020-10-13T17:20:25Z")

</div>

Hey everyone, I’ve written my first major algorithm in Julia which uses a Genetic Algorithm approach to finding a solution to the Travelling Salesman Problem. It works fine but next week I will be pitching it aginst oth…

---

## [Try/Catch shortcut](https://discourse.julialang.org/t/try-catch-shortcut/48271)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 15\
**Last updated:** [October 13, 2020, 5:00pm UTC](https://discourse.julialang.org/t/try-catch-shortcut/48271 "2020-10-13T17:00:31Z")

</div>

Clarification: I’m looking for something similar to: condition ? a : b Except, my condition is when a returns some type of error, then do b instead of a. AZ(x)= try; sqrt(x); catch e; return sqrt(complex(x)); end AZ(2…

---

## [\[ANN\] StaticModules.jl](https://discourse.julialang.org/t/ann-staticmodules-jl/48010)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 21\
**Last updated:** [October 13, 2020, 4:32pm UTC](https://discourse.julialang.org/t/ann-staticmodules-jl/48010 "2020-10-13T16:32:54Z")

</div>

Hi all, I recently made a little package StaticModules.jl (awaiting registration in 3 days). The idea is that a StaticModule is kinda like a module, but can be created in the local scope, is immutable and doesn’t suppor…

---

## [Will Julia support Flang Fortran?](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [October 13, 2020, 4:07pm UTC](https://discourse.julialang.org/t/will-julia-support-flang-fortran/48293 "2020-10-13T16:07:45Z")

</div>

Just released: https://github.com/flang-compiler/flang/wiki Any comments?

---

## [Deferred-shape arrays](https://discourse.julialang.org/t/deferred-shape-arrays/48177)

<div class="topic-metadata">

**Author:** [@xanfus](https://discourse.julialang.org/u/xanfus)\
**Replies:** 11\
**Last updated:** [October 13, 2020, 3:58pm UTC](https://discourse.julialang.org/t/deferred-shape-arrays/48177 "2020-10-13T15:58:33Z")

</div>

Does Julia have deferred-shape array type like in Fortran? The feature can reduce clogging in main function by taking care of variable declarations somewhere else, if variables have parametric dimensions. https://www.ib…

---

## [Best practices for profiling compilation](https://discourse.julialang.org/t/best-practices-for-profiling-compilation/48249)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 5\
**Last updated:** [October 13, 2020, 3:40pm UTC](https://discourse.julialang.org/t/best-practices-for-profiling-compilation/48249 "2020-10-13T15:40:16Z")

</div>

In DataFrames.jl we see a strong trend that people want more and more powerful functions allowing for transformation of data frames (to match dplyr, data.table, pandas, …). This leads to a situation when code base becom…

---

## [Global memory behavior explained](https://discourse.julialang.org/t/global-memory-behavior-explained/47422)

<div class="topic-metadata">

**Author:** [@barrettp](https://discourse.julialang.org/u/barrettp)\
**Replies:** 9\
**Last updated:** [October 13, 2020, 2:58pm UTC](https://discourse.julialang.org/t/global-memory-behavior-explained/47422 "2020-10-13T14:58:27Z")

</div>

Can anyone explain the following behavior? I am using CUDA and have a nested set of kernels, one first-level kernel and three second-level kernels. I’m performing three summations/reductions and storing the results in a…

---

## [Current situation using GLWF/modernGL/shaders](https://discourse.julialang.org/t/current-situation-using-glwf-moderngl-shaders/46815)

<div class="topic-metadata">

**Author:** [@etijulvisu](https://discourse.julialang.org/u/etijulvisu)\
**Replies:** 15\
**Last updated:** [October 13, 2020, 2:19pm UTC](https://discourse.julialang.org/t/current-situation-using-glwf-moderngl-shaders/46815 "2020-10-13T14:19:59Z")

</div>

after a couple of years successfully using Julia0.7 to prototype a software to model a painter’s creative process by using my own custom bindings to openGL1.0 using free glut I would like to explore modernGL and shaders……

---

## [Julia kernel of Jupyter](https://discourse.julialang.org/t/julia-kernel-of-jupyter/48301)

<div class="topic-metadata">

**Author:** [@saeed\_RA](https://discourse.julialang.org/u/saeed_RA)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 2:18pm UTC](https://discourse.julialang.org/t/julia-kernel-of-jupyter/48301 "2020-10-13T14:18:19Z")

</div>

I unintentionally removed Julia kernel from Jupyter note book. after that I tried the code \] build IJulia to get that kernel back to Jupyter but it did not worked out and the Julia kernel folder is not created after se…

---

## [U.S. Counties Choropleth](https://discourse.julialang.org/t/u-s-counties-choropleth/20845)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 27\
**Last updated:** [October 13, 2020, 1:43pm UTC](https://discourse.julialang.org/t/u-s-counties-choropleth/20845 "2020-10-13T13:43:40Z")

</div>

I can’t seem to find any info on how to create a choropleth map with U.S. counties in Julia. Is everyone using Python/R packages for this or is there a way to do it in Julia? It would be really nice if it was possible to…

---

## [HPC / Julia, MPI / big data](https://discourse.julialang.org/t/hpc-julia-mpi-big-data/48236)

<div class="topic-metadata">

**Author:** [@oddodaoddo](https://discourse.julialang.org/u/oddodaoddo)\
**Replies:** 15\
**Last updated:** [October 13, 2020, 1:37pm UTC](https://discourse.julialang.org/t/hpc-julia-mpi-big-data/48236 "2020-10-13T13:37:38Z")

</div>

Hello. Many years ago I was in HPC (as in university/govt supercomputers). We used to write code in C/pthreads, MPI, PVM etc. Then I left and went to the private sector and then big data came with Spark, Scala and that w…

---

## [Memory allocation when using broadcasting macro @. with long expression?](https://discourse.julialang.org/t/memory-allocation-when-using-broadcasting-macro-with-long-expression/48238)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 6\
**Last updated:** [October 13, 2020, 12:16pm UTC](https://discourse.julialang.org/t/memory-allocation-when-using-broadcasting-macro-with-long-expression/48238 "2020-10-13T12:16:45Z")

</div>

It seems that if the expression is a bit long then @. allocates memory whereas manually using . does not. Why? Here is an expression. No memory allocation if NOT including the last term within the brackets, but allocate…

---

## [Pin all packages of a project](https://discourse.julialang.org/t/pin-all-packages-of-a-project/39308)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 4\
**Last updated:** [October 13, 2020, 11:59am UTC](https://discourse.julialang.org/t/pin-all-packages-of-a-project/39308 "2020-10-13T11:59:11Z")

</div>

Is there a simple way to lock the versions of all the packages of a given project? Something like \]pin X for all (direct and indirect) dependencies of its environment. The Manifest.toml file is a very nice way of ensuri…

---

## [Joining two DataFrames (no common column)](https://discourse.julialang.org/t/joining-two-dataframes-no-common-column/48288)

<div class="topic-metadata">

**Author:** [@mausam614](https://discourse.julialang.org/u/mausam614)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 11:52am UTC](https://discourse.julialang.org/t/joining-two-dataframes-no-common-column/48288 "2020-10-13T11:52:44Z")

</div>

I am trying to join two DataFrames with no matching columns. Please refer to the pics attached. Thanks in advance.

---

## [A question about SCIP in Julia](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 8\
**Last updated:** [October 13, 2020, 8:28am UTC](https://discourse.julialang.org/t/a-question-about-scip-in-julia/35842 "2020-10-13T08:28:41Z")

</div>

Error: Error building \`SCIP\`: │ ERROR: LoadError: Unable to locate SCIP installation. │ Tried: │ scip.dll │ Note that this must be downloaded separately from scip.zib.de. │ Please set the environment variable SCI…

---

## [Artifact: Zstd and artifact: MbedTLS installation failure when adding packages MAT and IJulia respectively](https://discourse.julialang.org/t/artifact-zstd-and-artifact-mbedtls-installation-failure-when-adding-packages-mat-and-ijulia-respectively/40014)

<div class="topic-metadata">

**Author:** [@dunky-star](https://discourse.julialang.org/u/dunky-star)\
**Replies:** 6\
**Last updated:** [October 13, 2020, 6:58am UTC](https://discourse.julialang.org/t/artifact-zstd-and-artifact-mbedtls-installation-failure-when-adding-packages-mat-and-ijulia-respectively/40014 "2020-10-13T06:58:26Z")

</div>

PyPlot get installed very well but MAT and IJulia are failed. Any idea? julia\> versioninfo() Julia Version 1.4.1 Commit 381693d3df\* (2020-04-14 17:20 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R…

---

## [Converting an array of string types](https://discourse.julialang.org/t/converting-an-array-of-string-types/48262)

<div class="topic-metadata">

**Author:** [@mausam614](https://discourse.julialang.org/u/mausam614)\
**Replies:** 2\
**Last updated:** [October 13, 2020, 2:17am UTC](https://discourse.julialang.org/t/converting-an-array-of-string-types/48262 "2020-10-13T02:17:44Z")

</div>

Hi all, I am doing a small assignment project and this is the second time I am stuck. I have scrapped a website and got the data of the type stated below. Could some one please help me on how to convert the following ar…

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

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