# Latest

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

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

**Page:** 1746

---

## [Lsp-julia in Emacs not finding environment folder](https://discourse.julialang.org/t/lsp-julia-in-emacs-not-finding-environment-folder/39582)

<div class="topic-metadata">

**Author:** [@donk\_fish](https://discourse.julialang.org/u/donk_fish)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 3:43pm UTC](https://discourse.julialang.org/t/lsp-julia-in-emacs-not-finding-environment-folder/39582 "2020-05-16T15:43:27Z")

</div>

Hi. I’m trying to configure lsp-julia in Emacs. Supposedly, one has to set the correct value of the variable lsp-julia-default-environment. An example value of this is ~/.julia/environments/v1.0 However, I don’t have a…

---

## [Multivariate dirichlet mixture with Turing](https://discourse.julialang.org/t/multivariate-dirichlet-mixture-with-turing/39546)

<div class="topic-metadata">

**Author:** [@fooman](https://discourse.julialang.org/u/fooman)\
**Replies:** 6\
**Last updated:** [May 16, 2020, 3:06pm UTC](https://discourse.julialang.org/t/multivariate-dirichlet-mixture-with-turing/39546 "2020-05-16T15:06:18Z")

</div>

Hi – I’m trying to fit a mixture of 4 bivariate gaussians with Turing and getting a strange error? Can someone help with the syntax here: @model GaussianMixtureModel(x, K) = begin # K is expected number of clusters # …

---

## [Lend a hand on the Hessian of ordinal logistic regression](https://discourse.julialang.org/t/lend-a-hand-on-the-hessian-of-ordinal-logistic-regression/18842)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 13\
**Last updated:** [May 16, 2020, 2:47pm UTC](https://discourse.julialang.org/t/lend-a-hand-on-the-hessian-of-ordinal-logistic-regression/18842 "2020-05-16T14:47:51Z")

</div>

I am trying to port the ordinal logistic regression to a Fisher Scoring implementation. I need to validate the objective function, gradient, and hessian for these purposes. I am struggling with the Hessian and would appr…

---

## [Deactivate REPL](https://discourse.julialang.org/t/deactivate-repl/39525)

<div class="topic-metadata">

**Author:** [@Diego](https://discourse.julialang.org/u/Diego)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 2:29pm UTC](https://discourse.julialang.org/t/deactivate-repl/39525 "2020-05-16T14:29:06Z")

</div>

Team there is a library I load in a parallel execution process that prints something into REPL once succesfully loaded. The problem is that when I run 100 parallel process I get a pretty much unusable REPL. Is there a…

---

## [To factor or not to factor? Functions with small differences within loops](https://discourse.julialang.org/t/to-factor-or-not-to-factor-functions-with-small-differences-within-loops/39532)

<div class="topic-metadata">

**Author:** [@Dr.Merkwuedigliebe](https://discourse.julialang.org/u/Dr.Merkwuedigliebe)\
**Replies:** 4\
**Last updated:** [May 16, 2020, 1:25pm UTC](https://discourse.julialang.org/t/to-factor-or-not-to-factor-functions-with-small-differences-within-loops/39532 "2020-05-16T13:25:18Z")

</div>

I have a number of functions that perform updates on a number of large arrays in the same loop. Previously, I learned that this is often a good idea for performance. Now, I am facing another issue: I need a few variants …

---

## [Zygote gradients for functions with Array output](https://discourse.julialang.org/t/zygote-gradients-for-functions-with-array-output/39560)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 1:17pm UTC](https://discourse.julialang.org/t/zygote-gradients-for-functions-with-array-output/39560 "2020-05-16T13:17:50Z")

</div>

My basic task is to get derivatives of a function that outputs an array, wrt each of the input parameters. Below I copy a toy MWE to try to illustrate the point. The desired result of taking a gradient will be the grad…

---

## [RData. UndefVarError: identifier not defined](https://discourse.julialang.org/t/rdata-undefvarerror-identifier-not-defined/39276)

<div class="topic-metadata">

**Author:** [@marinooss](https://discourse.julialang.org/u/marinooss)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 1:02pm UTC](https://discourse.julialang.org/t/rdata-undefvarerror-identifier-not-defined/39276 "2020-05-16T13:02:50Z")

</div>

load(“working\_data//hospital\_demand\_other\_jl.RData”) got the error: UndefVarError: identifier not defined Also, when loading the package RData I got: WARNING: could not import DataFrames.identifier into RData How to…

---

## [Best Practice for Lookup Table Definition](https://discourse.julialang.org/t/best-practice-for-lookup-table-definition/39543)

<div class="topic-metadata">

**Author:** [@forever\_learning](https://discourse.julialang.org/u/forever_learning)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 8:53am UTC](https://discourse.julialang.org/t/best-practice-for-lookup-table-definition/39543 "2020-05-16T08:53:58Z")

</div>

Hello, I am looking for some guidance on what the idiomatic way to define a small database of objects/materials might be. For example, this might pertain to a small set of materials and their associated material propert…

---

## [@distributed @sync @async](https://discourse.julialang.org/t/distributed-sync-async/39504)

<div class="topic-metadata">

**Author:** [@Jing\_Zhang](https://discourse.julialang.org/u/Jing_Zhang)\
**Replies:** 5\
**Last updated:** [May 16, 2020, 8:05am UTC](https://discourse.julialang.org/t/distributed-sync-async/39504 "2020-05-16T08:05:59Z")

</div>

Dear Julia peers, I got three questions regarding @distributed @sync @async, as follows. I am parallel running 5 layers of for loops using 5 @distributed for. However, from the output, I found some operations within t…

---

## [Revise error stack trace](https://discourse.julialang.org/t/revise-error-stack-trace/39557)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 6:58am UTC](https://discourse.julialang.org/t/revise-error-stack-trace/39557 "2020-05-16T06:58:24Z")

</div>

My error stack traces are impossible to read. It’s a major pain point and a huge waste of time. Besides the fact that everything is dumped on screen, the line throwing the error is actually lost so I have to blindly debu…

---

## [Unexpected response to syntax error in function definition](https://discourse.julialang.org/t/unexpected-response-to-syntax-error-in-function-definition/39548)

<div class="topic-metadata">

**Author:** [@portig](https://discourse.julialang.org/u/portig)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 6:55am UTC](https://discourse.julialang.org/t/unexpected-response-to-syntax-error-in-function-definition/39548 "2020-05-16T06:55:28Z")

</div>

Here is a REPL session demonstrating the issue. The function definition contains an error, but Julia’s response is puzzling and not helpful. -\> function ff(a; b::Int64=0.5) println(a) println(b) end…

---

## [Matrix multiplication - inconsistent behaviour](https://discourse.julialang.org/t/matrix-multiplication-inconsistent-behaviour/36640)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 50\
**Last updated:** [May 16, 2020, 6:06am UTC](https://discourse.julialang.org/t/matrix-multiplication-inconsistent-behaviour/36640 "2020-05-16T06:06:08Z")

</div>

If I multiply a 1 by m matrix by an m by 1 matrix, that should give a number. Unfortunately, not in Julia. Consider below: julia\> mat1=randn(3,3); mat2=randn(3,2); julia\> mat1\*mat2 3×2 Array{Float64,2}: 1.55168 …

---

## [Reducing allocations for repeatedly generating MvNormal distributions](https://discourse.julialang.org/t/reducing-allocations-for-repeatedly-generating-mvnormal-distributions/39483)

<div class="topic-metadata">

**Author:** [@ArnoStrouwen](https://discourse.julialang.org/u/ArnoStrouwen)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 2:25am UTC](https://discourse.julialang.org/t/reducing-allocations-for-repeatedly-generating-mvnormal-distributions/39483 "2020-05-16T02:25:25Z")

</div>

I have to repeatedly generate few random numbers from many different bivariate normal distributions. I want to do this with as few allocations as possible. A simplified example of my code: using Distributions using Rand…

---

## [Explanation of .julia/packages/\* directory](https://discourse.julialang.org/t/explanation-of-julia-packages-directory/39562)

<div class="topic-metadata">

**Author:** [@joemiller](https://discourse.julialang.org/u/joemiller)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 1:30am UTC](https://discourse.julialang.org/t/explanation-of-julia-packages-directory/39562 "2020-05-16T01:30:03Z")

</div>

I’m trying to install Julia and a bunch of packages on an edge node in a cluster without internet access and ended up exploring the ~/.julia/packages directory a little and am curious about the following. $ pwd /Users/m…

---

## [Trying to get remote REPL working between Windows computers](https://discourse.julialang.org/t/trying-to-get-remote-repl-working-between-windows-computers/39537)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 1:16am UTC](https://discourse.julialang.org/t/trying-to-get-remote-repl-working-between-windows-computers/39537 "2020-05-16T01:16:54Z")

</div>

Hi, I’m trying to do use ftp-remote-edit to allow editing and executing code on another machine. Both machines are running Windows 10 and Julia 1.4.1. I have openSSH running on the remote machine and I can log in from …

---

## [Should Julia be able to (really) kill a worker?](https://discourse.julialang.org/t/should-julia-be-able-to-really-kill-a-worker/39564)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 1:05am UTC](https://discourse.julialang.org/t/should-julia-be-able-to-really-kill-a-worker/39564 "2020-05-16T01:05:07Z")

</div>

There is a Base.kill method that kills a Process. Distributed has a rmprocs method that tries to kill a worker but fails in many situations. A rmprocs call is not able to kill the worker if it is running a Julia code th…

---

## [Please vote if you find the Collapsed view menu button position in documentation unproductive](https://discourse.julialang.org/t/please-vote-if-you-find-the-collapsed-view-menu-button-position-in-documentation-unproductive/39563)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 0\
**Last updated:** [May 16, 2020, 12:22am UTC](https://discourse.julialang.org/t/please-vote-if-you-find-the-collapsed-view-menu-button-position-in-documentation-unproductive/39563 "2020-05-16T00:22:10Z")

</div>

This hurts my productivity. Please vote if you feel the same.

---

## [Legends on figure](https://discourse.julialang.org/t/legends-on-figure/39531)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 8\
**Last updated:** [May 15, 2020, 9:03pm UTC](https://discourse.julialang.org/t/legends-on-figure/39531 "2020-05-15T21:03:36Z")

</div>

I am using Plots.jl with plotly() backend. Legends of following figure are outer of the figure. Is it possible to take these legends on the figure as below Thank you.

---

## [Reinterpret packed data which is already in memory?](https://discourse.julialang.org/t/reinterpret-packed-data-which-is-already-in-memory/39549)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 8:09pm UTC](https://discourse.julialang.org/t/reinterpret-packed-data-which-is-already-in-memory/39549 "2020-05-15T20:09:03Z")

</div>

I have a quite trivial question. I have read large arrays of bytes from different source into a single array (sometimes 2e9 bytes and more) and now I need to make it pretty for the user and thought utilising reinterpret …

---

## [Updating Values via Iteration](https://discourse.julialang.org/t/updating-values-via-iteration/39505)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 1:48am UTC](https://discourse.julialang.org/t/updating-values-via-iteration/39505 "2020-05-15T01:48:15Z")

</div>

I’m having a few issues with using a while loop to update values and return. The code seems to work fine when wrapped in functions but not otherwise. As I’m still learning the language I want to understand where I’m goin…

---

## [Julia 1.4.2 testing period](https://discourse.julialang.org/t/julia-1-4-2-testing-period/39540)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 6:20pm UTC](https://discourse.julialang.org/t/julia-1-4-2-testing-period/39540 "2020-05-15T18:20:15Z")

</div>

The release-1.4 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.4.2, the second patch release in the 1.4 series. The list of commits included since v1.4.1 is available here. As …

---

## [Is this function type unstable?](https://discourse.julialang.org/t/is-this-function-type-unstable/39539)

<div class="topic-metadata">

**Author:** [@rvignolo](https://discourse.julialang.org/u/rvignolo)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 5:18pm UTC](https://discourse.julialang.org/t/is-this-function-type-unstable/39539 "2020-05-15T17:18:48Z")

</div>

Hi, could you please try to help understand why this minimal working example does not return an object of concrete type? using DifferentialEquations function f(du,u,p,t) du\[1\] = p.a du\[2\] = p.b end function sol…

---

## [Plotly gives error with contour plot](https://discourse.julialang.org/t/plotly-gives-error-with-contour-plot/39462)

<div class="topic-metadata">

**Author:** [@O\_Julia](https://discourse.julialang.org/u/O_Julia)\
**Replies:** 3\
**Last updated:** [May 15, 2020, 5:23pm UTC](https://discourse.julialang.org/t/plotly-gives-error-with-contour-plot/39462 "2020-05-15T17:23:36Z")

</div>

I am using Julia 1.4.1 with juno. I want to draw a filled contour plot. Following codes give me error. using Plots x = -3:0.1:3 y = -3:0.1:3 X = reshape(\[xi for xi in x for yj in y\], length(y), length(x)) Y = reshape…

---

## [Zip and namedtuple](https://discourse.julialang.org/t/zip-and-namedtuple/39516)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 4:57pm UTC](https://discourse.julialang.org/t/zip-and-namedtuple/39516 "2020-05-15T16:57:32Z")

</div>

Hi all, I wonder why zip of named tuples does not take into the account names of variables. Is this a desired behavior? Is there an alternative I am not aware of, which does? julia\> x, y = (a = 1, b = 2), (b = 4, a = …

---

## [BlackBox Optimization: Multiple Cores (Workers) Rather than Threads](https://discourse.julialang.org/t/blackbox-optimization-multiple-cores-workers-rather-than-threads/39497)

<div class="topic-metadata">

**Author:** [@rpm](https://discourse.julialang.org/u/rpm)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 4:14pm UTC](https://discourse.julialang.org/t/blackbox-optimization-multiple-cores-workers-rather-than-threads/39497 "2020-05-15T16:14:11Z")

</div>

The example for blackboxoptim in parallel uses multiple threads (BlackBoxOptim.jl/multithreaded\_optimization.jl at master · robertfeldt/BlackBoxOptim.jl · GitHub) I am interested in using the same approach but on a shar…

---

## [NN: how to choose the layers/neurons?](https://discourse.julialang.org/t/nn-how-to-choose-the-layers-neurons/39530)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [May 15, 2020, 3:45pm UTC](https://discourse.julialang.org/t/nn-how-to-choose-the-layers-neurons/39530 "2020-05-15T15:45:00Z")

</div>

I am implementing my own NN “library”, but I am stuck on which is the best way to then implement the network itself, i.e. which type of layers to use, how many and how many neurons. Let’s consider for example the follow…

---

## [Doc linking in NEWS](https://discourse.julialang.org/t/doc-linking-in-news/39520)

<div class="topic-metadata">

**Author:** [@jne](https://discourse.julialang.org/u/jne)\
**Replies:** 4\
**Last updated:** [May 15, 2020, 3:39pm UTC](https://discourse.julialang.org/t/doc-linking-in-news/39520 "2020-05-15T15:39:57Z")

</div>

Hmm, question… When a PR adds to NEWS.md, why is it not practice for the author to link not only the github PR/Issue but also documentation entries? For example in the 1.5 Release Notes, in The @timed macro now return…

---

## [Logging performance](https://discourse.julialang.org/t/logging-performance/17389)

<div class="topic-metadata">

**Author:** [@dpo](https://discourse.julialang.org/u/dpo)\
**Replies:** 6\
**Last updated:** [May 15, 2020, 3:37pm UTC](https://discourse.julialang.org/t/logging-performance/17389 "2020-05-15T15:37:16Z")

</div>

In order to turn verbosity on or off, I used to write functions in the old-fashioned style julia\> using Printf julia\> function do\_something(verbose=false) for i in 1:10000 verbose && @printf("print s…

---

## [Issues using Stan.jl on a cluster to run embarrassingly parallelisable experiments](https://discourse.julialang.org/t/issues-using-stan-jl-on-a-cluster-to-run-embarrassingly-parallelisable-experiments/39529)

<div class="topic-metadata">

**Author:** [@HarrisonWilde](https://discourse.julialang.org/u/HarrisonWilde)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 3:01pm UTC](https://discourse.julialang.org/t/issues-using-stan-jl-on-a-cluster-to-run-embarrassingly-parallelisable-experiments/39529 "2020-05-15T15:01:07Z")

</div>

Hi, So I have a working experiment of some Stan code on my local machine. But when I do wrap the main part in a pmap with an interior where I load in a series of models, then do sampling and write evaluation metrics to …

---

## [Confusing MethodError: bad message or bad usage?](https://discourse.julialang.org/t/confusing-methoderror-bad-message-or-bad-usage/39528)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 0\
**Last updated:** [May 15, 2020, 2:46pm UTC](https://discourse.julialang.org/t/confusing-methoderror-bad-message-or-bad-usage/39528 "2020-05-15T14:46:52Z")

</div>

The MethodError message sometimes doesn’t make sense, and I’m not sure if it’s a problem with MethodError or the way it’s used. For example the following fails (as documented in Measurements.jl): julia\> using SpecialFu…

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

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