# Latest

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

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

**Page:** 1872

---

## [\[ANN\]: SortingLab.jl 0.2.2 - 5x faster Sort and Sort Perm for \`Vector{Union{Missing, T}}\`](https://discourse.julialang.org/t/ann-sortinglab-jl-0-2-2-5x-faster-sort-and-sort-perm-for-vector-union-missing-t/31704)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 10:20pm UTC](https://discourse.julialang.org/t/ann-sortinglab-jl-0-2-2-5x-faster-sort-and-sort-perm-for-vector-union-missing-t/31704 "2019-12-01T22:20:36Z")

</div>

Do you want 5x faster sort and sortperm for Vector{Union{T, Missing}}? You can with SortingLab.jl! Simply use SortingLab.jl’s fsort and fsortperm to enjoy the benefits. Benchmarks Please note that SortingAlgorithms.j…

---

## [\[ANN\] MLJ: an update](https://discourse.julialang.org/t/ann-mlj-an-update/31676)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 7\
**Last updated:** [December 1, 2019, 10:55pm UTC](https://discourse.julialang.org/t/ann-mlj-an-update/31676 "2019-12-01T22:55:31Z")

</div>

A lot of work has been done on MLJ and associated repos since @ablaom’s last announcement some 7 months ago so here’s a brief update: MLJ now interfaces with around 100 models including most of ScikitLearn’s, the @pipe…

---

## [A cluster config for julia parallel computing](https://discourse.julialang.org/t/a-cluster-config-for-julia-parallel-computing/31723)

<div class="topic-metadata">

**Author:** [@DJRahim](https://discourse.julialang.org/u/DJRahim)\
**Replies:** 1\
**Last updated:** [December 1, 2019, 10:21pm UTC](https://discourse.julialang.org/t/a-cluster-config-for-julia-parallel-computing/31723 "2019-12-01T22:21:17Z")

</div>

Hello, I’m getting started with julia parallel computing and i need to test a parallel algorithm in a cluster, my question is what is the best cluster environment for julia parallel computing and what is the configurat…

---

## [Cannot install any Julia package on Atom](https://discourse.julialang.org/t/cannot-install-any-julia-package-on-atom/31724)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 10\
**Last updated:** [December 1, 2019, 9:46pm UTC](https://discourse.julialang.org/t/cannot-install-any-julia-package-on-atom/31724 "2019-12-01T21:46:39Z")

</div>

I re-installed Atom and Julia 1.3 and cannot install any package. I get this error ERROR: The following package names could not be resolved: \* PACKAGENAME.jl (not found in project, manifest or registry) Please specify …

---

## [Setup standard values for PrettyTables](https://discourse.julialang.org/t/setup-standard-values-for-prettytables/31693)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 6\
**Last updated:** [December 1, 2019, 5:57pm UTC](https://discourse.julialang.org/t/setup-standard-values-for-prettytables/31693 "2019-12-01T17:57:53Z")

</div>

I didn’t see any of it in the manual. You tell me: is there a way to set standard values for PrettyTables? For example, you always want blue borders, or always a simple layout, and so on. If you merely want some quick …

---

## [@spawn and @btime/@benchmark causes Julia to "hang"...?](https://discourse.julialang.org/t/spawn-and-btime-benchmark-causes-julia-to-hang/31712)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 7\
**Last updated:** [December 1, 2019, 4:28pm UTC](https://discourse.julialang.org/t/spawn-and-btime-benchmark-causes-julia-to-hang/31712 "2019-12-01T16:28:00Z")

</div>

I just set up a new machine with a CUDA GPU and started playing with the getting started examples from CuArrays.jl when I ran into a strange problem, not linked to CuArrays, but with BenchmarkTools and Threads. The foll…

---

## [Specifying dependency versions in my package](https://discourse.julialang.org/t/specifying-dependency-versions-in-my-package/31705)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 4:18pm UTC](https://discourse.julialang.org/t/specifying-dependency-versions-in-my-package/31705 "2019-12-01T16:18:55Z")

</div>

So I wrote my first package (CurrentPopulationSurvey.jl) and it was just added to the registry. When I went to download it via add CurrentPopulationSurvey I got the following error: (v1.2) pkg\> add CurrentPopulationSurv…

---

## [CuArrays not working as expected when broadcasting a function](https://discourse.julialang.org/t/cuarrays-not-working-as-expected-when-broadcasting-a-function/31382)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [December 1, 2019, 11:02am UTC](https://discourse.julialang.org/t/cuarrays-not-working-as-expected-when-broadcasting-a-function/31382 "2019-12-01T11:02:55Z")

</div>

using CuArrays t = cu(rand(150\_000)) w = cu(rand(150\_000)) t .+ w I define the following function logloss(t, w) = -(t \* log(1 / (1 + exp(-w))) + (1 - t) \* log(1 - 1 / (1 + exp(-w)))) but broadcasting it for CuArrays…

---

## [Custom modules usage](https://discourse.julialang.org/t/custom-modules-usage/31702)

<div class="topic-metadata">

**Author:** [@kirtsar](https://discourse.julialang.org/u/kirtsar)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 6:51am UTC](https://discourse.julialang.org/t/custom-modules-usage/31702 "2019-12-01T06:51:55Z")

</div>

My LOAD\_PATH looks like: ... ~/progs/dev I have two modules in dev folder. However, I can use using only for one module, and the second one seems “invisible” to Julia for some reasons…

---

## [How to analyse module memory usage/memory leak?](https://discourse.julialang.org/t/how-to-analyse-module-memory-usage-memory-leak/31706)

<div class="topic-metadata">

**Author:** [@squaregoldfish](https://discourse.julialang.org/u/squaregoldfish)\
**Replies:** 0\
**Last updated:** [December 1, 2019, 3:36am UTC](https://discourse.julialang.org/t/how-to-analyse-module-memory-usage-memory-leak/31706 "2019-12-01T03:36:44Z")

</div>

I’m trying to analyse the memory usage of a module I’ve written, named InterpolationData. Calling varinfo(InterpolationData) gives the following: julia\> varinfo(InterpolationData) name size summa…

---

## [Saving plot like in Matlab](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871)

<div class="topic-metadata">

**Author:** [@11110](https://discourse.julialang.org/u/11110)\
**Replies:** 2\
**Last updated:** [November 30, 2019, 10:53pm UTC](https://discourse.julialang.org/t/saving-plot-like-in-matlab/22871 "2019-11-30T22:53:36Z")

</div>

Hello everyone! I want to save my plot in Julia in helpful format: Matlab has a format .fig . Saving the chart in this format gives some pluses: When the graph approaches, the axes remain visible. When you click on t…

---

## [Unable to automatically install 'Expat'](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591)

<div class="topic-metadata">

**Author:** [@kamleshbhalui](https://discourse.julialang.org/u/kamleshbhalui)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 8:56pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-expat/31591 "2019-11-30T20:56:10Z")

</div>

sir@sir-Inspiron-5558:~/works/julia/PackageCompiler.jl$ julia \_ \_ \_ ()\_ | Documentation: https://docs.julialang.org () | () () | \_ \_ | | \_\_ \_ | Type “?” for help, “\]?” for Pkg help. | | | | |…

---

## [Accessing Postgresql via Julia](https://discourse.julialang.org/t/accessing-postgresql-via-julia/7031)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 17\
**Last updated:** [November 30, 2019, 8:26pm UTC](https://discourse.julialang.org/t/accessing-postgresql-via-julia/7031 "2019-11-30T20:26:44Z")

</div>

I am currently using R to access a remote Postgresql database, and my code looks like those as below: library(RPostgres) wrds \<- dbConnect(Postgres(), host='wrds-pgdata.wharton.upenn.edu', …

---

## [Loops "for" and "while" in JuMP](https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657)

<div class="topic-metadata">

**Author:** [@jadosfer](https://discourse.julialang.org/u/jadosfer)\
**Replies:** 2\
**Last updated:** [November 30, 2019, 6:22pm UTC](https://discourse.julialang.org/t/loops-for-and-while-in-jump/31657 "2019-11-30T18:22:35Z")

</div>

Hi, I’m working with JuMP and I want to modify expressions in my model within a while or for loop, and I have problems using the “input” command. When I modify a Julia variable, which is a coefficient in a JuMP NLexpress…

---

## [Username and password for pkg.juliacomputing in Atom](https://discourse.julialang.org/t/username-and-password-for-pkg-juliacomputing-in-atom/31696)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 0\
**Last updated:** [November 30, 2019, 5:35pm UTC](https://discourse.julialang.org/t/username-and-password-for-pkg-juliacomputing-in-atom/31696 "2019-11-30T17:35:19Z")

</div>

When I try to update or install packages I am asked my username and password for pkg.juliacomputing. Where can I get those? It still lets me install things without typing any but says that some packages fail to install o…

---

## [PrettyTables; DataFrames: Combination](https://discourse.julialang.org/t/prettytables-dataframes-combination/31674)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 2:38pm UTC](https://discourse.julialang.org/t/prettytables-dataframes-combination/31674 "2019-11-30T14:38:48Z")

</div>

If you do this #df is some DataFrame #pipe the first 10 rows to be formatted with PrettyTables first(df, 10) |\> pretty\_table you get the expected outcome. But I seek (e.g.) this: #pick first 10 rows, print with Prett…

---

## [DifferentialEquations and Julia v 1.3?](https://discourse.julialang.org/t/differentialequations-and-julia-v-1-3/31688)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [November 30, 2019, 2:29pm UTC](https://discourse.julialang.org/t/differentialequations-and-julia-v-1-3/31688 "2019-11-30T14:29:25Z")

</div>

I just removed Julia v. 1.2 from my Windows 10 64bit laptop, installed Julia v.1.3, and renamed v1.2 in .julia\\environments to v1.3, and did \]instantiate. Then I updated packages, and do using DifferentialEquations. I ge…

---

## [Possible to used cached values in Optim.optimize?](https://discourse.julialang.org/t/possible-to-used-cached-values-in-optim-optimize/31464)

<div class="topic-metadata">

**Author:** [@bashonubuntu](https://discourse.julialang.org/u/bashonubuntu)\
**Replies:** 17\
**Last updated:** [November 30, 2019, 11:23am UTC](https://discourse.julialang.org/t/possible-to-used-cached-values-in-optim-optimize/31464 "2019-11-30T11:23:54Z")

</div>

Hello, I am using L-BFGS to solve a maximum likelihood problem. I provide analytical gradients to the solver which is nice. However, many steps I use in the function calculation can be repeated in the gradient calculati…

---

## [Two @spawnat runs in the same thread](https://discourse.julialang.org/t/two-spawnat-runs-in-the-same-thread/31687)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 4\
**Last updated:** [November 30, 2019, 11:21am UTC](https://discourse.julialang.org/t/two-spawnat-runs-in-the-same-thread/31687 "2019-11-30T11:21:16Z")

</div>

The example below is from Julia 1.3 manual (with some prints added) @everywhere function count\_heads(n) c::Int = 0 for i = 1:n c += rand(Bool) end c end a = @spawnat :any begin @async Core.p…

---

## [Color scale and zlim in heatmap in Plots, pyplot()](https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 1\
**Last updated:** [November 30, 2019, 11:19am UTC](https://discourse.julialang.org/t/color-scale-and-zlim-in-heatmap-in-plots-pyplot/31678 "2019-11-30T11:19:34Z")

</div>

I would like to plot 2 heatmap that have a different range of values but preserve comparability, so that the colors have the same meaning in both plots. How can I fix the “zlim”?

---

## [Inconsistent behaviour of Vararg UnionAll](https://discourse.julialang.org/t/inconsistent-behaviour-of-vararg-unionall/31644)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 9:46am UTC](https://discourse.julialang.org/t/inconsistent-behaviour-of-vararg-unionall/31644 "2019-11-30T09:46:07Z")

</div>

dear out there, I just stumbled upon the maybe most weird julia bug I experienced so far f1(args::(Vararg{Any, N} where N); kwargs...) = (args, kwargs) f2(args::(Vararg{Any, N} where N)) = (args, 1) f3(args::(Vararg{An…

---

## [JLD file and Strings, how to ADD new line to STRING Array to existing jld file](https://discourse.julialang.org/t/jld-file-and-strings-how-to-add-new-line-to-string-array-to-existing-jld-file/31475)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [November 30, 2019, 8:50am UTC](https://discourse.julialang.org/t/jld-file-and-strings-how-to-add-new-line-to-string-array-to-existing-jld-file/31475 "2019-11-30T08:50:46Z")

</div>

Is posible to add new line with Float but what about Strings Array? Somebody can help ? Floats works like below: fid = h5open("my\_file.h5","w") A = d\_create(fid, "A", Float64, ((5,5),(-1,-1)), "chunk", (5,5)) A\[:,:\] = …

---

## [How to define NamedTuple types in struct?](https://discourse.julialang.org/t/how-to-define-namedtuple-types-in-struct/31631)

<div class="topic-metadata">

**Author:** [@Elmer\_Cusipuma](https://discourse.julialang.org/u/Elmer_Cusipuma)\
**Replies:** 4\
**Last updated:** [November 30, 2019, 7:05am UTC](https://discourse.julialang.org/t/how-to-define-namedtuple-types-in-struct/31631 "2019-11-30T07:05:55Z")

</div>

I can implement the next code: struct data p::NamedTuple{(:a,:b,:c,:d,:e), Tuple{Symbol,Bool,Any,Any,Any}} end q1 = data((a=:n,b=true,c="one",d=1,e=1.2)) q2 = data((a=:n,b=false,c="one",d=3.5,e=nothing)) #I get jul…

---

## [Function output parametric type assertion](https://discourse.julialang.org/t/function-output-parametric-type-assertion/31669)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 10:32pm UTC](https://discourse.julialang.org/t/function-output-parametric-type-assertion/31669 "2019-11-29T22:32:05Z")

</div>

So, I can assert the output type of a function like this (trivial example for demo purposes) f(x)::Int = x However, what if the output type depends on an input type parameter f(x::Vector{T})::T where T = x\[1\] This p…

---

## [Maintaining OpenCL packages](https://discourse.julialang.org/t/maintaining-opencl-packages/16279)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [November 29, 2019, 10:20pm UTC](https://discourse.julialang.org/t/maintaining-opencl-packages/16279 "2019-11-29T22:20:22Z")

</div>

I tried asking on slack, but since I didn’t get many replies, I am asking here. Could someone from the JuliaGPU organization please take care of the PRs in OpenCL? There are many attempts to port the package to Julia v1…

---

## [Automatic Differentiation with custom functions within likelihood function](https://discourse.julialang.org/t/automatic-differentiation-with-custom-functions-within-likelihood-function/31594)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 6\
**Last updated:** [November 29, 2019, 6:42pm UTC](https://discourse.julialang.org/t/automatic-differentiation-with-custom-functions-within-likelihood-function/31594 "2019-11-29T18:42:11Z")

</div>

Hey everyone, I want to use AD to get gradients of a likelihood function. Inside this likelihood function, I need to use a root solver to get the quantiles of an univariate Mixture distribution, as there is no closed fo…

---

## [Distributed Julia computing failed in Rstudio](https://discourse.julialang.org/t/distributed-julia-computing-failed-in-rstudio/23359)

<div class="topic-metadata">

**Author:** [@Ziyi\_Chen](https://discourse.julialang.org/u/Ziyi_Chen)\
**Replies:** 10\
**Last updated:** [November 29, 2019, 5:27pm UTC](https://discourse.julialang.org/t/distributed-julia-computing-failed-in-rstudio/23359 "2019-11-29T17:27:54Z")

</div>

I successfully setup JuliaCall in R: install.packages(“JuliaCall”) devtools::install\_github(“Non-Contradiction/JuliaCall”) # get the development version of JuliaCall library(JuliaCall) julia=julia\_setup(JULIA\_HOME …

---

## [CoCalc offers Julia 1.3](https://discourse.julialang.org/t/cocalc-offers-julia-1-3/31668)

<div class="topic-metadata">

**Author:** [@ha\_sch](https://discourse.julialang.org/u/ha_sch)\
**Replies:** 0\
**Last updated:** [November 29, 2019, 5:17pm UTC](https://discourse.julialang.org/t/cocalc-offers-julia-1-3/31668 "2019-11-29T17:17:23Z")

</div>

Julia 1.3 is available on CoCalc now. Runt it as julia-1.3 in the Terminal or via the “Julia 1.3” Jupyter Kernel. If you want us to install some packages globally, please contact us in support.

---

## [Calling a nested function from other file to a constructor](https://discourse.julialang.org/t/calling-a-nested-function-from-other-file-to-a-constructor/31590)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 5:15pm UTC](https://discourse.julialang.org/t/calling-a-nested-function-from-other-file-to-a-constructor/31590 "2019-11-29T17:15:05Z")

</div>

let us suppose that we have: include("file2.jl") struct f1 function f1(): expressions function f2(a,b,c): return g2(a) end end end where g2() is a nested function in a functi…

---

## [How to determine where a macro is defined?](https://discourse.julialang.org/t/how-to-determine-where-a-macro-is-defined/31637)

<div class="topic-metadata">

**Author:** [@gcv](https://discourse.julialang.org/u/gcv)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 5:07pm UTC](https://discourse.julialang.org/t/how-to-determine-where-a-macro-is-defined/31637 "2019-11-29T17:07:33Z")

</div>

I figured out how to find where a method is defined: methods(generic\_function).ms returns a handy array of objects which have file and line properties. I’m now trying to do the same thing for macros. For example, Printf…

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

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