# Latest

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

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

**Page:** 1998

---

## [Precompile only available in REPL mode?](https://discourse.julialang.org/t/precompile-only-available-in-repl-mode/24115)

<div class="topic-metadata">

**Author:** [@SPV](https://discourse.julialang.org/u/SPV)\
**Replies:** 3\
**Last updated:** [May 11, 2019, 8:05pm UTC](https://discourse.julialang.org/t/precompile-only-available-in-repl-mode/24115 "2019-05-11T20:05:28Z")

</div>

I can do (v1.0) pkg\> precompile Precompiling project... Precompiling IJulia \[ Info: Recompiling stale cache file /Users/sivapvarma/.julia/compiled/v1.0/IJulia/nfu7T.ji for IJulia \[7073ff75-c697-5162-941a-fcdaad2a7d2a\] P…

---

## [How to make a function factory](https://discourse.julialang.org/t/how-to-make-a-function-factory/24108)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 8:38pm UTC](https://discourse.julialang.org/t/how-to-make-a-function-factory/24108 "2019-05-11T20:38:20Z")

</div>

I’m looking into rewriting parts of my VoronoiCells package. One thing I want to do is to have a type Rectangle and make functions that maps points between two Rectangles. This attempt appears to work: struct Rectangle…

---

## [Package Install Statistics](https://discourse.julialang.org/t/package-install-statistics/24057)

<div class="topic-metadata">

**Author:** [@oliver](https://discourse.julialang.org/u/oliver)\
**Replies:** 5\
**Last updated:** [May 11, 2019, 8:29pm UTC](https://discourse.julialang.org/t/package-install-statistics/24057 "2019-05-11T20:29:42Z")

</div>

Is there a way to conveniently extract the usage of a Julia package?

---

## [Unitful docs have diappeared](https://discourse.julialang.org/t/unitful-docs-have-diappeared/24093)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 5\
**Last updated:** [May 11, 2019, 8:09pm UTC](https://discourse.julialang.org/t/unitful-docs-have-diappeared/24093 "2019-05-11T20:09:05Z")

</div>

There is a very useful package Unitful that I use infrequently. https://github.com/PainterQubits/Unitful.jl Thing is that the README links to https://ajkeller34.github.io/Unitful.jl/stable which seemingly disappeared b…

---

## [@threads in array comprehension](https://discourse.julialang.org/t/threads-in-array-comprehension/24072)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 11\
**Last updated:** [May 11, 2019, 3:48pm UTC](https://discourse.julialang.org/t/threads-in-array-comprehension/24072 "2019-05-11T15:48:28Z")

</div>

This is just a feature suggestion. It would be nice it the @threads macro would work also inside array comprehensions as: \[i @threads for i=1:4\] I.e. that example should produce the same result as: julia\> \[i for i=1:4…

---

## [CSV.read() deprecated keyword argument](https://discourse.julialang.org/t/csv-read-deprecated-keyword-argument/24095)

<div class="topic-metadata">

**Author:** [@VincentTam](https://discourse.julialang.org/u/VincentTam)\
**Replies:** 3\
**Last updated:** [May 11, 2019, 9:16am UTC](https://discourse.julialang.org/t/csv-read-deprecated-keyword-argument/24095 "2019-05-11T09:16:41Z")

</div>

In Hayden Klok’s sample code, there’s a deprecated argument for CSV.read(). # from https://github.com/h-Klok/StatsWithJuliaBook/blob/master/1\_chapter/usingR.jl#L3-L5 using CSV, DataFrames, RCall data1 = CSV.read("machin…

---

## [Basename function not working in build\_executable](https://discourse.julialang.org/t/basename-function-not-working-in-build-executable/24102)

<div class="topic-metadata">

**Author:** [@Erisme](https://discourse.julialang.org/u/Erisme)\
**Replies:** 0\
**Last updated:** [May 11, 2019, 6:25am UTC](https://discourse.julialang.org/t/basename-function-not-working-in-build-executable/24102 "2019-05-11T06:25:45Z")

</div>

Hi all, I created an executable file with build\_executable from PackageCompiler and it seems that it crash because of basename function, CMD: fatal: error thrown and no exception handler available. UndefVarError(var=…

---

## [How to shorten plot(p\[1\], p\[2\], p\[3\], p\[4\], p\[5\], p\[6\], p\[7\], p\[8\], layout=(4,2))?](https://discourse.julialang.org/t/how-to-shorten-plot-p-1-p-2-p-3-p-4-p-5-p-6-p-7-p-8-layout-4-2/24100)

<div class="topic-metadata">

**Author:** [@suiato](https://discourse.julialang.org/u/suiato)\
**Replies:** 3\
**Last updated:** [May 11, 2019, 3:14am UTC](https://discourse.julialang.org/t/how-to-shorten-plot-p-1-p-2-p-3-p-4-p-5-p-6-p-7-p-8-layout-4-2/24100 "2019-05-11T03:14:50Z")

</div>

The code below works: a = \[1,2,3\]; b = \[-1,-2,-3\];c = \[5,6,7\]; d=\[-5,-6,-7\] p = Vector(2) p\[1\] = plot(\[a b\]) p\[2\] = plot(\[c d\]) plot(p\[1\], p\[2\], layout=(1,2)) But, for 8 graphs, for example, the last line gets lo…

---

## ["Composing" functions](https://discourse.julialang.org/t/composing-functions/24096)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 1\
**Last updated:** [May 11, 2019, 12:06am UTC](https://discourse.julialang.org/t/composing-functions/24096 "2019-05-11T00:06:32Z")

</div>

Hi, I’m in a situation where I have to assemble an overall function from many other functions. I’m using code generation to create the overall function, so it does not really matter whether the implementation is “nice an…

---

## [How to distribute array by column?](https://discourse.julialang.org/t/how-to-distribute-array-by-column/24091)

<div class="topic-metadata">

**Author:** [@Carol](https://discourse.julialang.org/u/Carol)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 10:23pm UTC](https://discourse.julialang.org/t/how-to-distribute-array-by-column/24091 "2019-05-10T22:23:46Z")

</div>

Background: using Distributed @everywhere using DistributedArrays addprocs(4) A=\[1 1 2 2; 1 1 2 2; 3 3 4 4; 3 3 4 4\] adist = distribute(A) I found A is distributed in a checkerboard block way, which means f…

---

## [NaN and negative values in an undefined array / how to test for correct construction of a Type](https://discourse.julialang.org/t/nan-and-negative-values-in-an-undefined-array-how-to-test-for-correct-construction-of-a-type/24090)

<div class="topic-metadata">

**Author:** [@tim-oh](https://discourse.julialang.org/u/tim-oh)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 9:18pm UTC](https://discourse.julialang.org/t/nan-and-negative-values-in-an-undefined-array-how-to-test-for-correct-construction-of-a-type/24090 "2019-05-10T21:18:26Z")

</div>

I’ve created a type: struct MarketIndex \<: Asset value::Array{Float64} end Then I constructed an instance of it, like so: market = MarketIndex(Array{Float64}(undef, 1000)) Although the entries of the array are said…

---

## [How execute in Julia this string? eval(Meta.parse()) not works](https://discourse.julialang.org/t/how-execute-in-julia-this-string-eval-meta-parse-not-works/24087)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 6:30pm UTC](https://discourse.julialang.org/t/how-execute-in-julia-this-string-eval-meta-parse-not-works/24087 "2019-05-10T18:30:39Z")

</div>

I have some code for julia from another aplication but is with some trash… julia\> output "a=rand(2,2)\\r\\nprintln(a)\\r\\nprintln(\\"podporogram wykonany\\")\\r\\nusing DelimitedFiles\\r\\nwritedlm(\\"a.dat\\",a, '\\\\t');;;;;;;;" …

---

## [Help in cluster usage](https://discourse.julialang.org/t/help-in-cluster-usage/24079)

<div class="topic-metadata">

**Author:** [@thomas\_vilches](https://discourse.julialang.org/u/thomas_vilches)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 5:00pm UTC](https://discourse.julialang.org/t/help-in-cluster-usage/24079 "2019-05-10T17:00:22Z")

</div>

Hello everyone! The University where I work has a cluster with julia 1.0.3. I am trying to run a code that uses the package ClusterManagers and Parameters. But when I ran it using the cluster (I emphasize that the code …

---

## [Why the following code about replace in SymPy have errors?](https://discourse.julialang.org/t/why-the-following-code-about-replace-in-sympy-have-errors/24067)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 4:36pm UTC](https://discourse.julialang.org/t/why-the-following-code-about-replace-in-sympy-have-errors/24067 "2019-05-10T16:36:15Z")

</div>

---

## [Dates.value() applied to a list](https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080)

<div class="topic-metadata">

**Author:** [@dg.aragones](https://discourse.julialang.org/u/dg.aragones)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 3:59pm UTC](https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080 "2019-05-10T15:59:09Z")

</div>

I have a list of dates in the form: t=\[2006-06-01,2006-06-02,2006-06-03\] And I want to apply the function Dates.value() to it. It works well for a single value, however, for a list like the one shown I get an error: E…

---

## [Build error on MacOS 10.12 with recent master (BinaryBuilder dependency issues?)](https://discourse.julialang.org/t/build-error-on-macos-10-12-with-recent-master-binarybuilder-dependency-issues/24031)

<div class="topic-metadata">

**Author:** [@jgoldfar](https://discourse.julialang.org/u/jgoldfar)\
**Replies:** 3\
**Last updated:** [May 9, 2019, 2:40pm UTC](https://discourse.julialang.org/t/build-error-on-macos-10-12-with-recent-master-binarybuilder-dependency-issues/24031 "2019-05-09T14:40:17Z")

</div>

With a clean installation of a recent git clone, I’m unable to make it past the following error: Traceback (most recent call last): File "/Users/jgoldfar/Public/julia-dev/contrib/normalize\_triplet.py", line 118, in \<m…

---

## [ICT-48-2020: Towards a vibrant European network of AI excellence centres](https://discourse.julialang.org/t/ict-48-2020-towards-a-vibrant-european-network-of-ai-excellence-centres/24081)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 3:31pm UTC](https://discourse.julialang.org/t/ict-48-2020-towards-a-vibrant-european-network-of-ai-excellence-centres/24081 "2019-05-10T15:31:08Z")

</div>

Hi, On 28 May 2019 I will be a representative from Poland during H2020 Call on European Network of Artificial Intelligence Excellence Centres: Information and Brokerage day. The meeting is a preparation for “ICT-48-202…

---

## [When Julia 1.1.1 comes, should I upgrade from 1.1.0?](https://discourse.julialang.org/t/when-julia-1-1-1-comes-should-i-upgrade-from-1-1-0/24063)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [May 10, 2019, 3:08pm UTC](https://discourse.julialang.org/t/when-julia-1-1-1-comes-should-i-upgrade-from-1-1-0/24063 "2019-05-10T15:08:54Z")

</div>

If yes, how would I do this most easily, without losing list of installed packages? I use Julia in conjection with Juno in Atom. Kind regards

---

## [Sequential peakflops](https://discourse.julialang.org/t/sequential-peakflops/24066)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 2:36pm UTC](https://discourse.julialang.org/t/sequential-peakflops/24066 "2019-05-10T14:36:07Z")

</div>

Hi Julians, When I use peakflops(8000;parallel=false) I obtain 1.266034664857239e11 which corresponds to (IMHO) the multicore peak perf of my PC. In addition I see top reaching 800%. The parallel flag seems to be …

---

## [Early bird ticket sales for JuliaCon ending soon](https://discourse.julialang.org/t/early-bird-ticket-sales-for-juliacon-ending-soon/24074)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 2:02pm UTC](https://discourse.julialang.org/t/early-bird-ticket-sales-for-juliacon-ending-soon/24074 "2019-05-10T14:02:00Z")

</div>

Early bird ticket sales for JuliaCon 2019 will end tonight. Please get your tickets as soon as possible to lock in these rates. JuliaCon 2019, Baltimore, MD, USA If you have been waiting to see which workshops you can …

---

## [Parallel computing, sharing data with all workers](https://discourse.julialang.org/t/parallel-computing-sharing-data-with-all-workers/23907)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 1:40pm UTC](https://discourse.julialang.org/t/parallel-computing-sharing-data-with-all-workers/23907 "2019-05-10T13:40:18Z")

</div>

How can I make some data (e.g. an array or a dataframe) available to all data? I tried using ParallelDatatrasfer.jl but that is not working (see my issue here https://github.com/ChrisRackauckas/ParallelDataTransfer.jl/i…

---

## [Not able to update the canvas of a GR plot within Gtk windows](https://discourse.julialang.org/t/not-able-to-update-the-canvas-of-a-gr-plot-within-gtk-windows/24009)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 15\
**Last updated:** [May 10, 2019, 1:33pm UTC](https://discourse.julialang.org/t/not-able-to-update-the-canvas-of-a-gr-plot-within-gtk-windows/24009 "2019-05-10T13:33:32Z")

</div>

(using Gtk.jl GitHub - JuliaGraphics/Gtk.jl: Julia interface to Gtk windowing toolkit.) I am able to produce a window which has a widget (button) and a canvas which is ‘drawing’ a GR plot. The problem is that on displa…

---

## [Error installing XLSX package](https://discourse.julialang.org/t/error-installing-xlsx-package/24070)

<div class="topic-metadata">

**Author:** [@dg.aragones](https://discourse.julialang.org/u/dg.aragones)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 12:22pm UTC](https://discourse.julialang.org/t/error-installing-xlsx-package/24070 "2019-05-10T12:22:59Z")

</div>

I’m trying to install the XLSX package into Julia to be able to import data from a spreadsheet. However, when I use the command Pkg.add("XLSX") I get the following error: ERROR: Unsatisfiable requirements detectedfor p…

---

## [Using + updating packages locals](https://discourse.julialang.org/t/using-updating-packages-locals/24065)

<div class="topic-metadata">

**Author:** [@pistacliffcho](https://discourse.julialang.org/u/pistacliffcho)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 11:25am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065 "2019-05-10T11:25:14Z")

</div>

I’m currently developing a package. At the same time, I’d like to use the package at various different locations on my machine, i.e., in Documents\\badData\\analyzeBadData.jl, I’d like to be using MyPackage and in Document…

---

## [NetLogo Julia extension](https://discourse.julialang.org/t/netlogo-julia-extension/24023)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 10:40am UTC](https://discourse.julialang.org/t/netlogo-julia-extension/24023 "2019-05-10T10:40:45Z")

</div>

Just a suggestion. NetLogo has R , Python and Mathematica extensions. why not create a Julia extension?

---

## [How to avoid allocation when modifying a structure in a function](https://discourse.julialang.org/t/how-to-avoid-allocation-when-modifying-a-structure-in-a-function/24062)

<div class="topic-metadata">

**Author:** [@flibe](https://discourse.julialang.org/u/flibe)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 9:03am UTC](https://discourse.julialang.org/t/how-to-avoid-allocation-when-modifying-a-structure-in-a-function/24062 "2019-05-10T09:03:51Z")

</div>

Dear All I have a function which I need to make as efficient as possible. The function takes many many inputs, and I have organised them into a structure in order to make the code more manageble and clean. I have noti…

---

## [Convert a (numerically) non-pd matrix into pd matrix](https://discourse.julialang.org/t/convert-a-numerically-non-pd-matrix-into-pd-matrix/24059)

<div class="topic-metadata">

**Author:** [@Mr.Robot](https://discourse.julialang.org/u/Mr.Robot)\
**Replies:** 2\
**Last updated:** [May 10, 2019, 8:49am UTC](https://discourse.julialang.org/t/convert-a-numerically-non-pd-matrix-into-pd-matrix/24059 "2019-05-10T08:49:37Z")

</div>

Problem I am trying to compute a linear regression model that predicts overall delay of flights with respect to distance, carrier and some other predictors. I decided to use SweepOperator.jl because large number of obser…

---

## [Understanding dispatch on types with nested type parameters and covariance](https://discourse.julialang.org/t/understanding-dispatch-on-types-with-nested-type-parameters-and-covariance/24018)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 8\
**Last updated:** [May 10, 2019, 8:13am UTC](https://discourse.julialang.org/t/understanding-dispatch-on-types-with-nested-type-parameters-and-covariance/24018 "2019-05-10T08:13:34Z")

</div>

I feel it should be obvious, but I can’t figure it out. Why does this work: julia\> function foo(::Type{\<:AbstractArray{\<:Integer}}) julia\> foo(AbstractArray{\<:Signed}) But not this: julia\> function bar(::Type{\<:Abstra…

---

## [Is it possible to effectively hide Juli's code?](https://discourse.julialang.org/t/is-it-possible-to-effectively-hide-julis-code/24060)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [May 10, 2019, 7:04am UTC](https://discourse.julialang.org/t/is-it-possible-to-effectively-hide-julis-code/24060 "2019-05-10T07:04:45Z")

</div>

Is it possible to effectively hide Juli’s code so that the user can not read it and reproduce it? Paul

---

## [Match a string literal via regex](https://discourse.julialang.org/t/match-a-string-literal-via-regex/24002)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 12\
**Last updated:** [May 10, 2019, 3:22am UTC](https://discourse.julialang.org/t/match-a-string-literal-via-regex/24002 "2019-05-10T03:22:28Z")

</div>

Just like '"(\[^\\\\"\]+|\\\\.)\*?"' in Python or "\\G\\"(\[^\\\\\\"\]+|\\\\\\.)\*?\\"" in C#/F#, it could build a regular expression to parse a whole text like "xxxxxxxxxx\\"xxxxxxxxxxxxxx\\"" However things seem not work in Julia. regex…

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

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