# Latest

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

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

**Page:** 1876

---

## [BenchmarkTools not working in Julia 1.2?](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334)

<div class="topic-metadata">

**Author:** [@hhb](https://discourse.julialang.org/u/hhb)\
**Replies:** 5\
**Last updated:** [November 26, 2019, 5:06am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334 "2019-11-26T05:06:31Z")

</div>

Issuing using Pkg; Pkg.add(“BenchmarkTools”) Leads to the error Updating registry at ~/.julia/registries/General Updating git-repo https://github.com/JuliaRegistries/General.git Resolving package versions… Unknown …

---

## [Working with Weave.jl and jmd files](https://discourse.julialang.org/t/working-with-weave-jl-and-jmd-files/31514)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 5:05am UTC](https://discourse.julialang.org/t/working-with-weave-jl-and-jmd-files/31514 "2019-11-26T05:05:01Z")

</div>

I’m putting together .jmd examples for a few packages- to build pdfs, jupyter notebooks and package documentation. Does anyone have a good workflow for working with jmd? In both vim and Atom I struggle to actually use a…

---

## [Adjust solution obtained from DifferentialEquations.jl](https://discourse.julialang.org/t/adjust-solution-obtained-from-differentialequations-jl/31452)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 4\
**Last updated:** [November 25, 2019, 10:39pm UTC](https://discourse.julialang.org/t/adjust-solution-obtained-from-differentialequations-jl/31452 "2019-11-25T22:39:30Z")

</div>

Hello, I am using DifferentialEquations.jl to solve these ordinary differential equations: where dN/dt is bacteria susceptible, dI/dt is bacteria infected and dV/dt is phages. I wrote the following code: function dy…

---

## [Julia Meeting Regulatory Standards?](https://discourse.julialang.org/t/julia-meeting-regulatory-standards/30103)

<div class="topic-metadata">

**Author:** [@anon92994695](https://discourse.julialang.org/u/anon92994695)\
**Replies:** 17\
**Last updated:** [November 25, 2019, 10:34pm UTC](https://discourse.julialang.org/t/julia-meeting-regulatory-standards/30103 "2019-11-25T22:34:55Z")

</div>

Not sure where this post belongs - or where it might go - but I have an interesting question maybe for @StefanKarpinski or someone really involved in the language. So a lot of people in biostatistics, pharma, etc, have …

---

## [Code stability with for loop](https://discourse.julialang.org/t/code-stability-with-for-loop/31509)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 1\
**Last updated:** [November 25, 2019, 10:31pm UTC](https://discourse.julialang.org/t/code-stability-with-for-loop/31509 "2019-11-25T22:31:17Z")

</div>

With for loops, @code\_warntype can have one yellow/warning about union. Is it ok performance-wise or am I doing something wrong here? example function f(a) c = zero(eltype(a)) ns = 10 for i in 1:10 c…

---

## [Need help getting started with FluxML](https://discourse.julialang.org/t/need-help-getting-started-with-fluxml/31196)

<div class="topic-metadata">

**Author:** [@cgo](https://discourse.julialang.org/u/cgo)\
**Replies:** 5\
**Last updated:** [November 25, 2019, 9:47pm UTC](https://discourse.julialang.org/t/need-help-getting-started-with-fluxml/31196 "2019-11-25T21:47:53Z")

</div>

Hi all, I am just getting started with Flux. While the documentation is present, I have a hard time finding some information. In particular, these are some questions that came up: am I to use Zygote or the Tracker m…

---

## [Am I reaching limits of multiple dispatch?](https://discourse.julialang.org/t/am-i-reaching-limits-of-multiple-dispatch/31479)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 7:54pm UTC](https://discourse.julialang.org/t/am-i-reaching-limits-of-multiple-dispatch/31479 "2019-11-25T19:54:53Z")

</div>

Recently I implemented some basic cryptographic protocols. One of them is Diffie-Hellman key exchange protocol where only necessity is that the communication channel implements serialize and deserialize methods. Initiall…

---

## [ANN: ToggleableAsserts.jl](https://discourse.julialang.org/t/ann-toggleableasserts-jl/31291)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 18\
**Last updated:** [November 25, 2019, 6:42pm UTC](https://discourse.julialang.org/t/ann-toggleableasserts-jl/31291 "2019-11-25T18:42:59Z")

</div>

Following two back to back questions on slack on the topic of “how can I turn off assertions in my code?” I decided to make a small package insipired by this clever trick: @assert alternatives? - #14 by WschW Here’s a…

---

## [Multiple plots in Plots.jl](https://discourse.julialang.org/t/multiple-plots-in-plots-jl/31497)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 4:20pm UTC](https://discourse.julialang.org/t/multiple-plots-in-plots-jl/31497 "2019-11-25T16:20:09Z")

</div>

Why doesn’t the following work: using Plots pyplot() p=plot(layout=2) for i = 1:2 plot!(p,rand(10),subplot=i) end while the following does work: using Plots pyplot() p=plot(layout=2) plot!(p,rand(10),subplot=1) pl…

---

## [Statistic for differentiating two distributions?](https://discourse.julialang.org/t/statistic-for-differentiating-two-distributions/31492)

<div class="topic-metadata">

**Author:** [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Replies:** 6\
**Last updated:** [November 25, 2019, 3:35pm UTC](https://discourse.julialang.org/t/statistic-for-differentiating-two-distributions/31492 "2019-11-25T15:35:32Z")

</div>

I need some advice on choosing a proper statistical test for project I will be starting soon. My expectation is that the data will consist of two distinct datasets with similar (normal?) distributions, but different mean…

---

## [Set environmental variable for BLAST analysis via Julia](https://discourse.julialang.org/t/set-environmental-variable-for-blast-analysis-via-julia/31498)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 0\
**Last updated:** [November 25, 2019, 3:13pm UTC](https://discourse.julialang.org/t/set-environmental-variable-for-blast-analysis-via-julia/31498 "2019-11-25T15:13:11Z")

</div>

Hello I am using a shell command called blastx to find some organism’s names from a sequencing experiment. This program requires the definition of an environmental variable BLASTDB pointing to a specific directory insid…

---

## [Create a Package](https://discourse.julialang.org/t/create-a-package/20280)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 25\
**Last updated:** [November 25, 2019, 1:37pm UTC](https://discourse.julialang.org/t/create-a-package/20280 "2019-11-25T13:37:44Z")

</div>

Hello Julia Community, i have a question what if i want to create a Package on Julia 0.7 is it possible and if it’s yes how can i do that ?

---

## [How to define a function negation?](https://discourse.julialang.org/t/how-to-define-a-function-negation/31483)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 4\
**Last updated:** [November 25, 2019, 11:55am UTC](https://discourse.julialang.org/t/how-to-define-a-function-negation/31483 "2019-11-25T11:55:41Z")

</div>

For example, julia\> f(::Int) = \[1, 1\] f (generic function with 1 method) Now I want to define the negation function of f: julia\> (!f)(::Int) = 2 ERROR: syntax: invalid function name "!(f)" Stacktrace: \[1\] top-level s…

---

## [\`using AMQPClient\` significantly slows down code](https://discourse.julialang.org/t/using-amqpclient-significantly-slows-down-code/31228)

<div class="topic-metadata">

**Author:** [@Marek\_Kukan](https://discourse.julialang.org/u/Marek_Kukan)\
**Replies:** 4\
**Last updated:** [November 25, 2019, 10:05am UTC](https://discourse.julialang.org/t/using-amqpclient-significantly-slows-down-code/31228 "2019-11-25T10:05:52Z")

</div>

Hello, I came across this weird performance issue, can someone please explain why using AMQPClient causes ~100x performance drop? julia\> m = Matrix{Any}(rand(1000,1000)); julia\> function f(m, n) for i in 1:…

---

## [Confused about Dimension Mismatch](https://discourse.julialang.org/t/confused-about-dimension-mismatch/31461)

<div class="topic-metadata">

**Author:** [@Tommaso\_D\_Amico](https://discourse.julialang.org/u/Tommaso_D_Amico)\
**Replies:** 5\
**Last updated:** [November 25, 2019, 9:50am UTC](https://discourse.julialang.org/t/confused-about-dimension-mismatch/31461 "2019-11-25T09:50:07Z")

</div>

I have the following code snip: a = Matrix(dR') b = W @show size(a),size(b) @show typeof(a), typeof(b) G = a\*b This is the output/error I get: (size(a), size(b)) = ((1, 5), (5, 4096)) (typeof(a), typeof(b)) = …

---

## [A transparent way for a decorator pattern (maybe without SimpleTraits)](https://discourse.julialang.org/t/a-transparent-way-for-a-decorator-pattern-maybe-without-simpletraits/31446)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 4\
**Last updated:** [November 25, 2019, 9:27am UTC](https://discourse.julialang.org/t/a-transparent-way-for-a-decorator-pattern-maybe-without-simpletraits/31446 "2019-11-25T09:27:43Z")

</div>

Let’s say I have a type A a user should easily be able to extend by subtypes and write functions f, g, … and so on for. These functions are quite a few let’s say 20. Furthermore a decorator pattern that decorates A addi…

---

## [How to NLsolve with sparsity but no jacobian?](https://discourse.julialang.org/t/how-to-nlsolve-with-sparsity-but-no-jacobian/31462)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 7\
**Last updated:** [November 25, 2019, 8:41am UTC](https://discourse.julialang.org/t/how-to-nlsolve-with-sparsity-but-no-jacobian/31462 "2019-11-25T08:41:38Z")

</div>

From the NLsolve-docs i know that one can pass a jacobian to nlsolve and make the solver treating the jacobian as sparse. But what can I do when I don’t want to write down a jacobian of a PDE discretisation, and only k…

---

## [JuliaPro, Authentication timeout, Token not found](https://discourse.julialang.org/t/juliapro-authentication-timeout-token-not-found/31467)

<div class="topic-metadata">

**Author:** [@Aizzaac](https://discourse.julialang.org/u/Aizzaac)\
**Replies:** 1\
**Last updated:** [November 25, 2019, 8:40am UTC](https://discourse.julialang.org/t/juliapro-authentication-timeout-token-not-found/31467 "2019-11-25T08:40:26Z")

</div>

Hi I have just installed JuliaPro in a computer which ONLY has command line. I want to use the Knet package. But whenever I use the following command Pkg.add("Knet"), I get an error. I have authenticated and downlo…

---

## [JLD file , how to add new line to existing array in jld file?](https://discourse.julialang.org/t/jld-file-how-to-add-new-line-to-existing-array-in-jld-file/31447)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 3:07pm UTC](https://discourse.julialang.org/t/jld-file-how-to-add-new-line-to-existing-array-in-jld-file/31447 "2019-11-24T15:07:49Z")

</div>

Ho to add new data to existingg Array in jld file julia\> f=jldopen("file.jld","w") julia\> close(f) julia\> f=jldopen("file.jld","r+") julia\> write(f,"A",rand(5,5)) julia\> read(f,"A") 5×5 Array{Float64,2}: 0.626607 0.14…

---

## [Bayesian Analysis of Weighted Parameter](https://discourse.julialang.org/t/bayesian-analysis-of-weighted-parameter/31372)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 10\
**Last updated:** [November 25, 2019, 6:41am UTC](https://discourse.julialang.org/t/bayesian-analysis-of-weighted-parameter/31372 "2019-11-25T06:41:34Z")

</div>

I am interested in analyzing the posterior distribution of a Bernoulli parameter, weighted by given amounts. A simple example: weights = \[100, 50 , 50, 150, 200 \] trials = \[1, 0, 0, 1, 0 \] q\_weghted = sum(weights .\* …

---

## [TraitWrapper - an idea for developing a traits based system](https://discourse.julialang.org/t/traitwrapper-an-idea-for-developing-a-traits-based-system/31179)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 9\
**Last updated:** [November 25, 2019, 4:57am UTC](https://discourse.julialang.org/t/traitwrapper-an-idea-for-developing-a-traits-based-system/31179 "2019-11-25T04:57:47Z")

</div>

I read with interests The Emergent Features of JuliaLang: Part II - Traits and have been thinking about traits lately. I think I understand how Holy Traits work but I feel unsatisfied with it. The examples and the blogs…

---

## ["CuArrays.CUDNN is unavailable", but it is installed](https://discourse.julialang.org/t/cuarrays-cudnn-is-unavailable-but-it-is-installed/31470)

<div class="topic-metadata">

**Author:** [@jchen975](https://discourse.julialang.org/u/jchen975)\
**Replies:** 0\
**Last updated:** [November 25, 2019, 3:23am UTC](https://discourse.julialang.org/t/cuarrays-cudnn-is-unavailable-but-it-is-installed/31470 "2019-11-25T03:23:57Z")

</div>

Hi, I’m using Julia 1.2.0 with the following packages installed: (v1.2) pkg\> st Status \`~/.julia/environments/v1.2/Project.toml\` \[fbb218c0\] BSON v0.2.4 \[3895d2a7\] CUDAapi v1.2.0 \[c5f51814\] CUDAdrv v3.1.0 \[be…

---

## [Paper for discussion: The Linear Algebra Mapping Problem](https://discourse.julialang.org/t/paper-for-discussion-the-linear-algebra-mapping-problem/31431)

<div class="topic-metadata">

**Author:** [@berceanu](https://discourse.julialang.org/u/berceanu)\
**Replies:** 13\
**Last updated:** [November 25, 2019, 3:06am UTC](https://discourse.julialang.org/t/paper-for-discussion-the-linear-algebra-mapping-problem/31431 "2019-11-25T03:06:22Z")

</div>

---

## [Convert method interferes with custom array colon broadcasting](https://discourse.julialang.org/t/convert-method-interferes-with-custom-array-colon-broadcasting/31468)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 0\
**Last updated:** [November 25, 2019, 2:10am UTC](https://discourse.julialang.org/t/convert-method-interferes-with-custom-array-colon-broadcasting/31468 "2019-11-25T02:10:53Z")

</div>

I have defined a custom Vector type which appears to work as required. struct MyVector{T} \<: AbstractVector{T} data::Vector{T} end Base.size(A::MyVector) = size(A.data) Base.IndexStyle(::Type{T}) where {T\<:MyVector…

---

## [Question Regarding leveraging MLJ.jl's CV features for my own](https://discourse.julialang.org/t/question-regarding-leveraging-mlj-jls-cv-features-for-my-own/31439)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 5\
**Last updated:** [November 25, 2019, 12:42am UTC](https://discourse.julialang.org/t/question-regarding-leveraging-mlj-jls-cv-features-for-my-own/31439 "2019-11-25T00:42:49Z")

</div>

I tried to read through the Adding Models for General Use · MLJ article, but I can’t find any information on how I can expose the hyper-parameters in my model to MLJ.jl so that I can use MLJ’s infrastructure to do CV. Ca…

---

## [Getting the CartesianIndex of specifi array elements](https://discourse.julialang.org/t/getting-the-cartesianindex-of-specifi-array-elements/31456)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 1\
**Last updated:** [November 24, 2019, 11:24pm UTC](https://discourse.julialang.org/t/getting-the-cartesianindex-of-specifi-array-elements/31456 "2019-11-24T23:24:34Z")

</div>

Dear all, I’m wondering if there is a simple way to get the CartesianIndex of speciic array elements. I’m not trying to build the whole list of CartesianIndices of an array, only of some of them. I’m asking because in …

---

## [\`maximum\` element across the 2nd dim of a matrix with \`missing\` values](https://discourse.julialang.org/t/maximum-element-across-the-2nd-dim-of-a-matrix-with-missing-values/31463)

<div class="topic-metadata">

**Author:** [@mroavi](https://discourse.julialang.org/u/mroavi)\
**Replies:** 2\
**Last updated:** [November 24, 2019, 9:16pm UTC](https://discourse.julialang.org/t/maximum-element-across-the-2nd-dim-of-a-matrix-with-missing-values/31463 "2019-11-24T21:16:31Z")

</div>

I am trying to find the maximum element across the 2nd dim of a matrix with missing values. This code unfortunatelly gives an error: A = \[1 missing 3; 4 5 missing; 7 8 9\] B = maximum(skipmissing(A), dims=2) ERROR: Loa…

---

## [Multivariate Normal Distribution](https://discourse.julialang.org/t/multivariate-normal-distribution/29973)

<div class="topic-metadata">

**Author:** [@Hugo\_RB](https://discourse.julialang.org/u/Hugo_RB)\
**Replies:** 17\
**Last updated:** [November 24, 2019, 8:27pm UTC](https://discourse.julialang.org/t/multivariate-normal-distribution/29973 "2019-11-24T20:27:02Z")

</div>

Hi there Could somebody give me a clear example about how to construct a MVND using the syntaxis given by the Distribution Pkg. I know that with Distributions.jl it is possible to generate a MVND just as it is possible t…

---

## [Converting docstrings into wiki documentation](https://discourse.julialang.org/t/converting-docstrings-into-wiki-documentation/31458)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 2\
**Last updated:** [November 24, 2019, 7:08pm UTC](https://discourse.julialang.org/t/converting-docstrings-into-wiki-documentation/31458 "2019-11-24T19:08:13Z")

</div>

Hi, I am in the process of finishing the testing for the new version of TSAnalysis.jl. I documented most functions and types via docstrings, and I was wondering whether there is a way to automatically convert docstrings…

---

## [Fully Removing Packages](https://discourse.julialang.org/t/fully-removing-packages/31161)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 5\
**Last updated:** [November 24, 2019, 6:08pm UTC](https://discourse.julialang.org/t/fully-removing-packages/31161 "2019-11-24T18:08:28Z")

</div>

If you remove a package with the builtin package manager, are there any leftover files or directories that you could clean up manually? Any additional important information also appreciated.

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

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