# Latest

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

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

**Page:** 1823

---

## [Pkg crashes](https://discourse.julialang.org/t/pkg-crashes/34750)

<div class="topic-metadata">

**Author:** [@mih](https://discourse.julialang.org/u/mih)\
**Replies:** 5\
**Last updated:** [February 17, 2020, 1:38pm UTC](https://discourse.julialang.org/t/pkg-crashes/34750 "2020-02-17T13:38:13Z")

</div>

I’m new to Julia so please be patient with me. I tried to install the SQLite package by running the Julia repl using Pkg add SQLite. Unfortunately the repl crashes: Before I’m getting lots of errors: ‘unknown line …’, …

---

## [I asked for help optimizing my Julia code, now it's someone's package?](https://discourse.julialang.org/t/i-asked-for-help-optimizing-my-julia-code-now-its-someones-package/34679)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 40\
**Last updated:** [February 17, 2020, 11:22am UTC](https://discourse.julialang.org/t/i-asked-for-help-optimizing-my-julia-code-now-its-someones-package/34679 "2020-02-17T11:22:17Z")

</div>

I have been so happy with the amazing efforts this platform offers to newbies like me who have fallen in love with this amazing language. I learn well by doing so I have been implementing classical ML algorithms from sc…

---

## [How to define method for (:)?](https://discourse.julialang.org/t/how-to-define-method-for/34755)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 12:08pm UTC](https://discourse.julialang.org/t/how-to-define-method-for/34755 "2020-02-17T12:08:21Z")

</div>

if I don’t want to do like: import Base: (:) (:)(x, y) = xxxxxx how could I define like: Base.(:)(x, y) = ... ERROR: syntax: invalid function name "Base.((:,))" ? thanks.

---

## [Is it normal for precompiling to happen every time i'm \`using VulkanCore\`?](https://discourse.julialang.org/t/is-it-normal-for-precompiling-to-happen-every-time-im-using-vulkancore/34710)

<div class="topic-metadata">

**Author:** [@xbat](https://discourse.julialang.org/u/xbat)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 11:59am UTC](https://discourse.julialang.org/t/is-it-normal-for-precompiling-to-happen-every-time-im-using-vulkancore/34710 "2020-02-17T11:59:34Z")

</div>

There’s also a warning every time: julia\> using VulkanCore \[ Info: Precompiling VulkanCore \[16167f82-ea26-5cba-b1de-ed6fd5e30a11\] ┌ Warning: Package VulkanCore does not have Libdl in its dependencies: │ - If you hav…

---

## [Pkg gc throws unknown string escape error](https://discourse.julialang.org/t/pkg-gc-throws-unknown-string-escape-error/34289)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 10:29am UTC](https://discourse.julialang.org/t/pkg-gc-throws-unknown-string-escape-error/34289 "2020-02-17T10:29:11Z")

</div>

Can someone give me a hint on how to fix this. Which file contains the wrong string escape? Julia Version 1.3.1 Commit 2d5741174c (2019-12-30 21:36 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R)…

---

## [Int numerical calculation speed slower than Float?](https://discourse.julialang.org/t/int-numerical-calculation-speed-slower-than-float/34705)

<div class="topic-metadata">

**Author:** [@nuclear718](https://discourse.julialang.org/u/nuclear718)\
**Replies:** 12\
**Last updated:** [February 17, 2020, 10:10am UTC](https://discourse.julialang.org/t/int-numerical-calculation-speed-slower-than-float/34705 "2020-02-17T10:10:24Z")

</div>

Why the calculation speed of “Int” matrix is much slower than “Float” matrix? IDE: Jupyter Julia version: 1.1.0 Code for Float: s=1000 d1=rand(s,s) d2=rand(s,s) @time (d1\*d2); Result: 0.032192 seconds (6 allocati…

---

## [Plotly() save in very low resolution](https://discourse.julialang.org/t/plotly-save-in-very-low-resolution/34742)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 8:13am UTC](https://discourse.julialang.org/t/plotly-save-in-very-low-resolution/34742 "2020-02-17T08:13:08Z")

</div>

Wouls somebody suggests, how to save plotly figure with reasonably high resolution? thank you.

---

## [Diamond dependencies problem between Atom dependencies and my project's dependencies](https://discourse.julialang.org/t/diamond-dependencies-problem-between-atom-dependencies-and-my-projects-dependencies/34678)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 5\
**Last updated:** [February 17, 2020, 8:05am UTC](https://discourse.julialang.org/t/diamond-dependencies-problem-between-atom-dependencies-and-my-projects-dependencies/34678 "2020-02-17T08:05:56Z")

</div>

Hello, I want to use StringDistances v0.6.2 in my project that I am working on in the Juno IDE. The package Atom v0.11.3 has a dependency to DocSeeker v0.3.1 (version set in the compat bloc) which itself has a depende…

---

## [Automate training MLJ models](https://discourse.julialang.org/t/automate-training-mlj-models/32284)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 14\
**Last updated:** [February 17, 2020, 2:44am UTC](https://discourse.julialang.org/t/automate-training-mlj-models/32284 "2020-02-17T02:44:54Z")

</div>

I’d like to train 3 models in MLJ: ARDRegressor, AdaBoostRegressor, BaggingRegressor Currently, I train them 1 at a time for example: using Pkg; Pkg.activate("."); Pkg.instantiate(); using RDatasets, MLJ, Statistics, P…

---

## [Module version standard/convention](https://discourse.julialang.org/t/module-version-standard-convention/34686)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 3\
**Last updated:** [February 17, 2020, 12:07am UTC](https://discourse.julialang.org/t/module-version-standard-convention/34686 "2020-02-17T00:07:06Z")

</div>

In the Python world, you can find out the current version of a module by querying \_version\_ attribute of the module. Is there any reason why we shouldn’t adopt a similar standard/convention so that one can dynamically f…

---

## [ANN: JuliaActuary](https://discourse.julialang.org/t/ann-juliaactuary/31996)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 1\
**Last updated:** [February 16, 2020, 10:52pm UTC](https://discourse.julialang.org/t/ann-juliaactuary/31996 "2020-02-16T22:52:05Z")

</div>

I have created a GitHub organization to focus on extending Julia functionality into the actuarial domain: https://github.com/JuliaActuary I think there’s a lot of untapped potential to use Julia in the Actuarial profes…

---

## [Package for Confidence Intervals?](https://discourse.julialang.org/t/package-for-confidence-intervals/33902)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 19\
**Last updated:** [February 16, 2020, 10:42pm UTC](https://discourse.julialang.org/t/package-for-confidence-intervals/33902 "2020-02-16T22:42:02Z")

</div>

Is there a package dealing with these kinds of computations, or should I make my own functions for my purposes?

---

## [Possible reasons that MixedModels would not create the property "sigmas"?](https://discourse.julialang.org/t/possible-reasons-that-mixedmodels-would-not-create-the-property-sigmas/34073)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 4\
**Last updated:** [February 16, 2020, 10:11pm UTC](https://discourse.julialang.org/t/possible-reasons-that-mixedmodels-would-not-create-the-property-sigmas/34073 "2020-02-16T22:11:53Z")

</div>

I want to fit a linear mixed model inside my function and extract estimates of random effect standard deviations (sigmas from a LinearMixedModel object). So I wrote the following function, and it runs perfectly in REPL …

---

## [Is it possible to "precompile" a method with a set of argument types?](https://discourse.julialang.org/t/is-it-possible-to-precompile-a-method-with-a-set-of-argument-types/34730)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 7\
**Last updated:** [February 16, 2020, 10:06pm UTC](https://discourse.julialang.org/t/is-it-possible-to-precompile-a-method-with-a-set-of-argument-types/34730 "2020-02-16T22:06:44Z")

</div>

I swear i saw a macro at some point that allowed you to precompile methods. However I haven’t been able to google for it. I do find lots on compileing my whole application or compiling to an executable. I’m trying to f…

---

## [\[ANN\] Lilith.jl - yet another deep learning library](https://discourse.julialang.org/t/ann-lilith-jl-yet-another-deep-learning-library/34732)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 9:11pm UTC](https://discourse.julialang.org/t/ann-lilith-jl-yet-another-deep-learning-library/34732 "2020-02-16T21:11:18Z")

</div>

Last several months I’ve been working on a thing called Lilith.jl - deep learning library with PyTorch-like API, high backward compatibility and ephasis on performance. It’s far from being complete yet, but it starts to …

---

## [CuArrays: error calling CuArray() (ERROR\_INVALID\_DEVICE)](https://discourse.julialang.org/t/cuarrays-error-calling-cuarray-error-invalid-device/18654)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 25\
**Last updated:** [February 16, 2020, 5:47pm UTC](https://discourse.julialang.org/t/cuarrays-error-calling-cuarray-error-invalid-device/18654 "2020-02-16T17:47:54Z")

</div>

Hi all, I am new to Julia and would like to try out CuArrays. However, I get the following error when following the basic example from the Julia doc: julia\> using CuArrays julia\> julia\> B = ones(10\_000) ./ 2; julia\> …

---

## [UndefVarError: active\_repl not defined](https://discourse.julialang.org/t/undefvarerror-active-repl-not-defined/34728)

<div class="topic-metadata">

**Author:** [@henry2004y](https://discourse.julialang.org/u/henry2004y)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 4:54pm UTC](https://discourse.julialang.org/t/undefvarerror-active-repl-not-defined/34728 "2020-02-16T16:54:15Z")

</div>

Hi everyone, I am upgrading this IDL.jl to be compatible with Julia 1.3. Similar to Matlab, IDL is another commonly used numerical computing language. This package has support for dropping into IDL repl, and it works fi…

---

## [Plot sol with time transformation](https://discourse.julialang.org/t/plot-sol-with-time-transformation/34696)

<div class="topic-metadata">

**Author:** [@Lecalvaire](https://discourse.julialang.org/u/Lecalvaire)\
**Replies:** 1\
**Last updated:** [February 16, 2020, 5:04am UTC](https://discourse.julialang.org/t/plot-sol-with-time-transformation/34696 "2020-02-16T05:04:21Z")

</div>

I have the solution of a system stored in a variable sol, which behaves just like a continuous function. What I need in not just a basic plot(sol, vars=\[1 2 3...\]) but a plot with the x-axis transformed, i.e. I want to …

---

## [Vegalite.jl Linear Fitting & Question of Controlling Interface](https://discourse.julialang.org/t/vegalite-jl-linear-fitting-question-of-controlling-interface/34681)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 2:55pm UTC](https://discourse.julialang.org/t/vegalite-jl-linear-fitting-question-of-controlling-interface/34681 "2020-02-16T14:55:14Z")

</div>

What is the easiest most basic example of quickly fitting to a simple scatterplot using Vegalite.jl? (Say, with two columns of some numbers.) My other question is whether there are any plans to again have that higher ge…

---

## [Nesting @ncall](https://discourse.julialang.org/t/nesting-ncall/34724)

<div class="topic-metadata">

**Author:** [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 2:21pm UTC](https://discourse.julialang.org/t/nesting-ncall/34724 "2020-02-16T14:21:58Z")

</div>

I would like to “nest” @ncall operations from Bese.Cartesian. The motivation is to create a statically sized Svector of Svectors. To that end, I tried the following: julia\> using StaticArrays julia\> using Base.Cartes…

---

## [Problem with replacing module and ambiguous methods](https://discourse.julialang.org/t/problem-with-replacing-module-and-ambiguous-methods/34712)

<div class="topic-metadata">

**Author:** [@EvgeniyMist](https://discourse.julialang.org/u/EvgeniyMist)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 10:02am UTC](https://discourse.julialang.org/t/problem-with-replacing-module-and-ambiguous-methods/34712 "2020-02-16T10:02:12Z")

</div>

Initially, I wanted to create a structure similar to a linked list, but more complex, namely: mutable struct Move data::Int64 next\_moves::Union{Array{Move, 1}, Nothing} Move(data) = new(data, nothing) end N…

---

## [\[ANN\] HidApi.jl to access USB-HID devices](https://discourse.julialang.org/t/ann-hidapi-jl-to-access-usb-hid-devices/34670)

<div class="topic-metadata">

**Author:** [@laborg](https://discourse.julialang.org/u/laborg)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 4:19am UTC](https://discourse.julialang.org/t/ann-hidapi-jl-to-access-usb-hid-devices/34670 "2020-02-16T04:19:30Z")

</div>

Hi! I’ve registered HidApi.jl. It allows easy interaction with devices that implement the USB human interface device class and should work on all platforms without any further installation (though Linux might require an…

---

## [Searching for new job](https://discourse.julialang.org/t/searching-for-new-job/34697)

<div class="topic-metadata">

**Author:** [@aaowens](https://discourse.julialang.org/u/aaowens)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 2:03am UTC](https://discourse.julialang.org/t/searching-for-new-job/34697 "2020-02-16T02:03:25Z")

</div>

I’m currently a PhD student in economics, but I’ve decided to leave my program to work as a data scientist or scientific programmer. Previously I was a research assistant at the Fed. Most of my programming in the last fe…

---

## [Syntax: use "^" instead of "\*\*" AND syntax: "^" is not a unary operator](https://discourse.julialang.org/t/syntax-use-instead-of-and-syntax-is-not-a-unary-operator/34258)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 8\
**Last updated:** [February 16, 2020, 1:06am UTC](https://discourse.julialang.org/t/syntax-use-instead-of-and-syntax-is-not-a-unary-operator/34258 "2020-02-16T01:06:03Z")

</div>

Hi I am translating Python into Julia. When converting this python line into Julia I get an error. oneshotsearch\_results = service.jobs.oneshot(searchquery\_oneshot, \*\*kwargs\_oneshot) syntax: use "^" instead of "\*\*" S…

---

## [Memory requirement in \`addprocs\` and loading packages](https://discourse.julialang.org/t/memory-requirement-in-addprocs-and-loading-packages/34695)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 0\
**Last updated:** [February 16, 2020, 12:52am UTC](https://discourse.julialang.org/t/memory-requirement-in-addprocs-and-loading-packages/34695 "2020-02-16T00:52:36Z")

</div>

My cluster jobs keep getting killed due to execd enforced h\_vmem limit. My script is below: using Distributed addprocs(8) println("loaded 8 cores...") @everywhere begin using DifferentialEquations using Thyros…

---

## [How can I add a legend](https://discourse.julialang.org/t/how-can-i-add-a-legend/34667)

<div class="topic-metadata">

**Author:** [@bayerndd](https://discourse.julialang.org/u/bayerndd)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 12:01am UTC](https://discourse.julialang.org/t/how-can-i-add-a-legend/34667 "2020-02-16T00:01:24Z")

</div>

Hi! I plot a data, for example y = \[1, 2, 3, 999, 34, 35, 34, 23, 345, 234, 23\] and with classes=\[1, 2, 1, 2, 3, 1, 2, 3, …\] Then I write: plot(x, y, linecolor = classes) So I get a plot with one line with three diff…

---

## [Is Distributions.jl currently accepting PRs for new distributions?](https://discourse.julialang.org/t/is-distributions-jl-currently-accepting-prs-for-new-distributions/34078)

<div class="topic-metadata">

**Author:** [@johnczito](https://discourse.julialang.org/u/johnczito)\
**Replies:** 1\
**Last updated:** [February 15, 2020, 10:53pm UTC](https://discourse.julialang.org/t/is-distributions-jl-currently-accepting-prs-for-new-distributions/34078 "2020-02-15T22:53:22Z")

</div>

What is the current “policy” regarding merging new distributions into Distributions.jl? It would appear that the last time someone tried https://github.com/JuliaStats/Distributions.jl/pull/972 they got partially tied …

---

## [Call a function f with a list of arguments for a helper function](https://discourse.julialang.org/t/call-a-function-f-with-a-list-of-arguments-for-a-helper-function/34541)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Replies:** 3\
**Last updated:** [February 15, 2020, 8:53pm UTC](https://discourse.julialang.org/t/call-a-function-f-with-a-list-of-arguments-for-a-helper-function/34541 "2020-02-15T20:53:31Z")

</div>

I found Generic function to call arbitrary Julia function and its arguments but can’t quite figure out how to make this work: Given a helper function f(a;b=5,c=10), I want to write a function g( args ) that iterates ove…

---

## [Gadfly legend (key)](https://discourse.julialang.org/t/gadfly-legend-key/34649)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 2\
**Last updated:** [February 15, 2020, 8:05pm UTC](https://discourse.julialang.org/t/gadfly-legend-key/34649 "2020-02-15T20:05:07Z")

</div>

The new version of gadfly adds a white line around the colors in the Key (legend). How to remove it?!

---

## [Broadcast vs. scalar loop, can Julia vectorize better?](https://discourse.julialang.org/t/broadcast-vs-scalar-loop-can-julia-vectorize-better/34617)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 8\
**Last updated:** [February 15, 2020, 7:28pm UTC](https://discourse.julialang.org/t/broadcast-vs-scalar-loop-can-julia-vectorize-better/34617 "2020-02-15T19:28:54Z")

</div>

Or is there something wrong with my code? Below is a MVE of my code. func1 and func2 do the same thing. Why is func2 faster than func1? Why can’t the compiler figure it out? I think func1 more clearly expresses my inte…

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

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