# Latest

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

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

**Page:** 1940

---

## [Winston on Travis](https://discourse.julialang.org/t/winston-on-travis/27659)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 3\
**Last updated:** [August 17, 2019, 8:02pm UTC](https://discourse.julialang.org/t/winston-on-travis/27659 "2019-08-17T20:02:07Z")

</div>

I am trying to build documentation on Travis with Literate.jl which contains figures made with Winston.jl. Locally everything works great, but when I build stuff on Travis I get precompilation error: value = Failed to p…

---

## [Is Shared Memory Parallel Tasks Possible in Julia?](https://discourse.julialang.org/t/is-shared-memory-parallel-tasks-possible-in-julia/27645)

<div class="topic-metadata">

**Author:** [@Gavinclarke](https://discourse.julialang.org/u/Gavinclarke)\
**Replies:** 4\
**Last updated:** [August 17, 2019, 7:23pm UTC](https://discourse.julialang.org/t/is-shared-memory-parallel-tasks-possible-in-julia/27645 "2019-08-17T19:23:21Z")

</div>

I looking to run separate tasks in parallel that are required to share access to a few variables that are constantly updated in a program that is latency-sensitive. I am starting to see that this may not be currently po…

---

## [Vecnorm, countnz, At\_mul\_B and "all that jazz" - how to learn that these (and other) features have been deprecated?](https://discourse.julialang.org/t/vecnorm-countnz-at-mul-b-and-all-that-jazz-how-to-learn-that-these-and-other-features-have-been-deprecated/27639)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 4\
**Last updated:** [August 17, 2019, 1:08pm UTC](https://discourse.julialang.org/t/vecnorm-countnz-at-mul-b-and-all-that-jazz-how-to-learn-that-these-and-other-features-have-been-deprecated/27639 "2019-08-17T13:08:04Z")

</div>

While trying to manually upgrade to Julia 1.x a package developed in the pre-0.7 days by somebody else, namely PolynomialMatrices (my fork), now seemingly abandoned by its original author(s), I - being new to Julia - fre…

---

## [Suppressing the label when using Plots or StatsPlots](https://discourse.julialang.org/t/suppressing-the-label-when-using-plots-or-statsplots/27658)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 1\
**Last updated:** [August 17, 2019, 5:26pm UTC](https://discourse.julialang.org/t/suppressing-the-label-when-using-plots-or-statsplots/27658 "2019-08-17T17:26:06Z")

</div>

When using scatter in the Plots or StatsPlots package it seems that I get a label by default. The only way I have found to suppress the label is to add a named argument label="". If I have a simple scatterplot of one v…

---

## [Pkg update downgrade JuMP](https://discourse.julialang.org/t/pkg-update-downgrade-jump/27621)

<div class="topic-metadata">

**Author:** [@remi-garcia](https://discourse.julialang.org/u/remi-garcia)\
**Replies:** 3\
**Last updated:** [August 17, 2019, 3:11pm UTC](https://discourse.julialang.org/t/pkg-update-downgrade-jump/27621 "2019-08-17T15:11:53Z")

</div>

Hi, When I add JuMP and GLPK I get this: (v1.1) pkg\> st Status \`~/.julia/environments/v1.1/Project.toml\` (empty environment) (v1.1) pkg\> add JuMP GLPK Resolving package versions... Updating \`~/.julia/environm…

---

## [Ink 0.10.12 failed on ubuntu](https://discourse.julialang.org/t/ink-0-10-12-failed-on-ubuntu/27656)

<div class="topic-metadata">

**Author:** [@Axl\_Rubio\_I](https://discourse.julialang.org/u/Axl_Rubio_I)\
**Replies:** 0\
**Last updated:** [August 17, 2019, 3:01pm UTC](https://discourse.julialang.org/t/ink-0-10-12-failed-on-ubuntu/27656 "2019-08-17T15:01:20Z")

</div>

I can’t install Ink, I tried on Atom and terminal. ink@0.10.12 postinstall /tmp/apm-install-dir-119717-6889-1yboq04.p0kfl/node\_modules/ink node scripts/postinstall.js internal/modules/cjs/loader.js:596 throw err; …

---

## [Typeof(f()) at compile time](https://discourse.julialang.org/t/typeof-f-at-compile-time/27615)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [August 17, 2019, 2:53pm UTC](https://discourse.julialang.org/t/typeof-f-at-compile-time/27615 "2019-08-17T14:53:12Z")

</div>

typeof(f(x)) can be evaluated at compile-time, provided the return type of f(x) is inferrable. Why can’t we have a guarantee that this is always the case? For example, I tried this: julia\> f(x) = typeof(sin(x)) julia\> …

---

## [SVector vs Vec usage: Why do I have an 8x speedup in a simple example?](https://discourse.julialang.org/t/svector-vs-vec-usage-why-do-i-have-an-8x-speedup-in-a-simple-example/27647)

<div class="topic-metadata">

**Author:** [@davidbp](https://discourse.julialang.org/u/davidbp)\
**Replies:** 7\
**Last updated:** [August 17, 2019, 2:12pm UTC](https://discourse.julialang.org/t/svector-vs-vec-usage-why-do-i-have-an-8x-speedup-in-a-simple-example/27647 "2019-08-17T14:12:40Z")

</div>

Hello, I was playing with both SVector and Vec from StaticArrays and SIMD respectively. I was surprised obtaining an 8x speedup using SVector vs Vec. Am I using Vecin a non suitable example or maybe I’m not using it pr…

---

## [Separating values from Iterator.product() tuple](https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628)

<div class="topic-metadata">

**Author:** [@DocDave](https://discourse.julialang.org/u/DocDave)\
**Replies:** 6\
**Last updated:** [August 17, 2019, 2:10pm UTC](https://discourse.julialang.org/t/separating-values-from-iterator-product-tuple/27628 "2019-08-17T14:10:15Z")

</div>

I am calling a function many times using pmap(), where some of the arguments are passed each time while others are iterated over. To produce the correct permutations of the arguments I am utilising the Iterator library. …

---

## [Defining the objective using function](https://discourse.julialang.org/t/defining-the-objective-using-function/27633)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 5\
**Last updated:** [August 17, 2019, 2:09pm UTC](https://discourse.julialang.org/t/defining-the-objective-using-function/27633 "2019-08-17T14:09:55Z")

</div>

Dear users, I need to minimize this nonlinear function: f(x1,x2) = 1 + x2^2 - x - sin(x1) with box constraints. How can I do this by using a function, named E-restrito, providing as argument f? My code is: function E…

---

## [How to reconfigure Couenne for Cplex in windows](https://discourse.julialang.org/t/how-to-reconfigure-couenne-for-cplex-in-windows/27581)

<div class="topic-metadata">

**Author:** [@Raminel](https://discourse.julialang.org/u/Raminel)\
**Replies:** 2\
**Last updated:** [August 17, 2019, 2:02pm UTC](https://discourse.julialang.org/t/how-to-reconfigure-couenne-for-cplex-in-windows/27581 "2019-08-17T14:02:54Z")

</div>

Hi all, Can someone tell me how I can “reconfigure and recompile” Couenne to use Cplex for lp solver? I added this to couenne.opt “lp\_solver cplex” and read in teh manual that I need to run the configuration file after…

---

## [Julia PyPlot add legend](https://discourse.julialang.org/t/julia-pyplot-add-legend/27616)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [August 17, 2019, 1:44pm UTC](https://discourse.julialang.org/t/julia-pyplot-add-legend/27616 "2019-08-17T13:44:31Z")

</div>

hello, is there a simple way to add a legend to the plot with PyPlot? There are different solutions online but none worked. I have this command: myPlot = plot(x, y1, x, y2, linewidth=2.0) legend() savefig("./plot.png"…

---

## [Pmap throwing BoundsErrors when accessing SharedArray](https://discourse.julialang.org/t/pmap-throwing-boundserrors-when-accessing-sharedarray/27652)

<div class="topic-metadata">

**Author:** [@DocDave](https://discourse.julialang.org/u/DocDave)\
**Replies:** 0\
**Last updated:** [August 17, 2019, 12:21pm UTC](https://discourse.julialang.org/t/pmap-throwing-boundserrors-when-accessing-sharedarray/27652 "2019-08-17T12:21:29Z")

</div>

A code which I am writing is heavily numerical in nature, but ultimately it calculates a value for each point of a 4D array according to the values within multiple separate 4D arrays. Consequently, now that I have a work…

---

## [Makie on Travis](https://discourse.julialang.org/t/makie-on-travis/27637)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 2\
**Last updated:** [August 17, 2019, 11:34am UTC](https://discourse.julialang.org/t/makie-on-travis/27637 "2019-08-17T11:34:24Z")

</div>

Hello everyone! I am writing documentation for a package which includes animations created with Makie. As I am using Literate.jl it makes sense to generate animations at the time of compiling the document with Documente…

---

## [DAEs and initialization](https://discourse.julialang.org/t/daes-and-initialization/27648)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [August 17, 2019, 11:33am UTC](https://discourse.julialang.org/t/daes-and-initialization/27648 "2019-08-17T11:33:07Z")

</div>

I need to use DAE formulation of models, and wonder about the initialization… From the documentation: Question: Does this imply that those differential\_vars which are differential, are assumed to have correct initial…

---

## [How to use dot notation when extending functions for a user-defined type?](https://discourse.julialang.org/t/how-to-use-dot-notation-when-extending-functions-for-a-user-defined-type/27638)

<div class="topic-metadata">

**Author:** [@kmundnic](https://discourse.julialang.org/u/kmundnic)\
**Replies:** 2\
**Last updated:** [August 17, 2019, 12:58am UTC](https://discourse.julialang.org/t/how-to-use-dot-notation-when-extending-functions-for-a-user-defined-type/27638 "2019-08-17T00:58:21Z")

</div>

Let’s say that I create a new struct called MyMatrix: import Base: size, getindex struct MyMatrix{T} \<: AbstractMatrix{T} X::Matrix{T} function MyMatrix(n::Int) new{Float64}(rand(n,n)) # For sake of th…

---

## [GPU simulation time of neural ODE program](https://discourse.julialang.org/t/gpu-simulation-time-of-neural-ode-program/27416)

<div class="topic-metadata">

**Author:** [@JunichiFukui](https://discourse.julialang.org/u/JunichiFukui)\
**Replies:** 8\
**Last updated:** [August 16, 2019, 11:43pm UTC](https://discourse.julialang.org/t/gpu-simulation-time-of-neural-ode-program/27416 "2019-08-16T23:43:45Z")

</div>

Hello, I’m trying to run the following neural ODE program using GPU. If I run the code using GPU (NVIDIA GeForce GTX 1050), the simulation time of Flux.train!(loss\_n\_ode, ps, data, opt, cb = cb) part was much longer tha…

---

## [Julia equivalent of Python's "fsum" for floating point summation](https://discourse.julialang.org/t/julia-equivalent-of-pythons-fsum-for-floating-point-summation/17785)

<div class="topic-metadata">

**Author:** [@anon32405968](https://discourse.julialang.org/u/anon32405968)\
**Replies:** 53\
**Last updated:** [August 16, 2019, 9:37pm UTC](https://discourse.julialang.org/t/julia-equivalent-of-pythons-fsum-for-floating-point-summation/17785 "2019-08-16T21:37:59Z")

</div>

I have been looking for a Julia equivalent of Python’s fsum and have thus far been unable to find one. Is there an implementation already available? If not I will write my own and put it on Github for others to use. Fro…

---

## [Using BenchmarkTools with CUDAnative and CuArrays and running out of CPU or GPU memory](https://discourse.julialang.org/t/using-benchmarktools-with-cudanative-and-cuarrays-and-running-out-of-cpu-or-gpu-memory/27278)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 0\
**Last updated:** [August 7, 2019, 5:41pm UTC](https://discourse.julialang.org/t/using-benchmarktools-with-cudanative-and-cuarrays-and-running-out-of-cpu-or-gpu-memory/27278 "2019-08-07T17:41:54Z")

</div>

I’m doing some simple “get acquainted” experimenting with convolutions using DSP, CUDAnative, CUDAdrv and CuArrays. I’m creating random 3-d arrays - rand(Float32, N, N, N). I then create “device” versions of the arrays b…

---

## [Type FPFunctionalCache has no field caches error](https://discourse.julialang.org/t/type-fpfunctionalcache-has-no-field-caches-error/27598)

<div class="topic-metadata">

**Author:** [@Farnazmdi](https://discourse.julialang.org/u/Farnazmdi)\
**Replies:** 5\
**Last updated:** [August 16, 2019, 6:42pm UTC](https://discourse.julialang.org/t/type-fpfunctionalcache-has-no-field-caches-error/27598 "2019-08-16T18:42:27Z")

</div>

Hi, I am using BlackBoxOptim and I get this error when I run it. Starting optimization with optimizer DiffEvoOpt{FitPopulation{Float64},RadiusLimitedSelector,BlackBoxOptim.AdaptiveDiffEvoRandBin{3},RandomBound{Continuo…

---

## [Juno links in error messages don't work when path contains whitspace](https://discourse.julialang.org/t/juno-links-in-error-messages-dont-work-when-path-contains-whitspace/27625)

<div class="topic-metadata">

**Author:** [@drhouse82](https://discourse.julialang.org/u/drhouse82)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 6:17pm UTC](https://discourse.julialang.org/t/juno-links-in-error-messages-dont-work-when-path-contains-whitspace/27625 "2019-08-16T18:17:51Z")

</div>

Hi! for me, when Julia throws errors in Juno REPL, clicking on the location does not bring the editor to this place, unless the entire path of the file does not consist any whitespaces. For paths containing white space…

---

## [BoundsError with Julia DataFrame](https://discourse.julialang.org/t/boundserror-with-julia-dataframe/27624)

<div class="topic-metadata">

**Author:** [@jaketothepast](https://discourse.julialang.org/u/jaketothepast)\
**Replies:** 2\
**Last updated:** [August 16, 2019, 6:12pm UTC](https://discourse.julialang.org/t/boundserror-with-julia-dataframe/27624 "2019-08-16T18:12:47Z")

</div>

Hello everybody, I am working on an AI experiment involving generating candidate solutions to a problem. My candidates are in the form of smaller dataframes derived from the larger dataset dataframe. The error I’m facin…

---

## [TypeError: non-boolean (Missing) used in boolean context](https://discourse.julialang.org/t/typeerror-non-boolean-missing-used-in-boolean-context/25227)

<div class="topic-metadata">

**Author:** [@shahriariit](https://discourse.julialang.org/u/shahriariit)\
**Replies:** 3\
**Last updated:** [August 16, 2019, 5:18pm UTC](https://discourse.julialang.org/t/typeerror-non-boolean-missing-used-in-boolean-context/25227 "2019-08-16T17:18:50Z")

</div>

I try to run this code ## remove NaNs df\_food\[:gpa\] = collect(FltOrMiss, map(x -\> isnan(x)?missing:x, df\_food\[:gpa\])) df\_food\[:wgt\] = collect(FltOrMiss, map(x -\> isnan(x)?missing:x, df\_food\[:wgt\])) But get this error…

---

## [Julia v1.2.0-rc3 is now available](https://discourse.julialang.org/t/julia-v1-2-0-rc3-is-now-available/27480)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 7\
**Last updated:** [August 16, 2019, 3:11pm UTC](https://discourse.julialang.org/t/julia-v1-2-0-rc3-is-now-available/27480 "2019-08-16T15:11:53Z")

</div>

The third (and hopefully final) release candidate for Julia v1.2.0 is now available. Get binaries for all of your favorite platforms at Download Julia and check the NEWS file for v1.2.0-rc3 to see what will be new in 1.2…

---

## [Does Julia language need Dependency Injection?](https://discourse.julialang.org/t/does-julia-language-need-dependency-injection/27527)

<div class="topic-metadata">

**Author:** [@zsykm](https://discourse.julialang.org/u/zsykm)\
**Replies:** 15\
**Last updated:** [August 16, 2019, 3:34pm UTC](https://discourse.julialang.org/t/does-julia-language-need-dependency-injection/27527 "2019-08-16T15:34:06Z")

</div>

Dependency Injection is widely used in Java, c# and some other languages as an important design pattern. How to do the same thing in Julia? Example will be appreciated. :slight\_smile:

---

## [Pkg: status/instantiate: "ERROR: IOError: stat: permission denied (EACCES)"](https://discourse.julialang.org/t/pkg-status-instantiate-error-ioerror-stat-permission-denied-eacces/27619)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 3:31pm UTC](https://discourse.julialang.org/t/pkg-status-instantiate-error-ioerror-stat-permission-denied-eacces/27619 "2019-08-16T15:31:30Z")

</div>

When I do \] status or \] instantiate inside a folder with a Project.toml and a Manifest.toml file, I get the error: ERROR: IOError: stat: permission denied (EACCES) Here is the full shell output: omlins@daint106:/scrat…

---

## [Julia v1.2.0-rc2 is now available](https://discourse.julialang.org/t/julia-v1-2-0-rc2-is-now-available/26170)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 4\
**Last updated:** [August 16, 2019, 1:15pm UTC](https://discourse.julialang.org/t/julia-v1-2-0-rc2-is-now-available/26170 "2019-08-16T13:15:40Z")

</div>

The second release candidate for Julia v1.2.0 is here! You can get binaries for all tier 1 platforms from the “upcoming release” section of Download Julia. See the NEWS file for v1.2.0-rc2 to get a taste for what will be…

---

## [CSV in Parallel Error](https://discourse.julialang.org/t/csv-in-parallel-error/27585)

<div class="topic-metadata">

**Author:** [@austinbean](https://discourse.julialang.org/u/austinbean)\
**Replies:** 6\
**Last updated:** [August 16, 2019, 1:12pm UTC](https://discourse.julialang.org/t/csv-in-parallel-error/27585 "2019-08-16T13:12:49Z")

</div>

I have a very large (160 Gb) csv file. I had the idea to do some processing of the file in parallel, but I’m stuck on an error in CSV.jl. What I wanted to do was use CSV.Rows on non-contiguous chunks of the file across…

---

## [Julia is now available on Travis Windows builds](https://discourse.julialang.org/t/julia-is-now-available-on-travis-windows-builds/27187)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 20\
**Last updated:** [August 16, 2019, 1:05pm UTC](https://discourse.julialang.org/t/julia-is-now-available-on-travis-windows-builds/27187 "2019-08-16T13:05:48Z")

</div>

Exciting news for people who love cross-platform CI! As you may know, Travis added Windows builds last year. I’m pleased to announce that after some testing and working out the kinks, Julia is now available out of the bo…

---

## [FemtoCleaner and Deprecations upgrade](https://discourse.julialang.org/t/femtocleaner-and-deprecations-upgrade/27561)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 8\
**Last updated:** [August 16, 2019, 11:32am UTC](https://discourse.julialang.org/t/femtocleaner-and-deprecations-upgrade/27561 "2019-08-16T11:32:36Z")

</div>

This is important: there are many packages that are written in Julia 0.4, 0.5, 0.6, etc and are abandoned/unmaintained. One solution to help these packages revive is to use FemtoCleaner to removed deprecated syntax. Now…

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

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