# Latest

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

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

**Page:** 1792

---

## [Correlation Matrix vs Contingency Table](https://discourse.julialang.org/t/correlation-matrix-vs-contingency-table/36522)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 4\
**Last updated:** [March 26, 2020, 1:06am UTC](https://discourse.julialang.org/t/correlation-matrix-vs-contingency-table/36522 "2020-03-26T01:06:55Z")

</div>

Is there a difference between a correlation table and a contingency matrix?

---

## [pow(Complex, Int) supported on CUDA?](https://discourse.julialang.org/t/pow-complex-int-supported-on-cuda/36280)

<div class="topic-metadata">

**Author:** [@a5vzener](https://discourse.julialang.org/u/a5vzener)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 12:57am UTC](https://discourse.julialang.org/t/pow-complex-int-supported-on-cuda/36280 "2020-03-26T00:57:14Z")

</div>

I’m trying to run some Julia code on my new nVidia Jetson Nano and I ran into this error: \> \*\*\[ Info:\*\* Building the CUDAnative run-time library for your sm\_53 device, this might take a while... \> \*\*ERROR:\*\* LoadError: …

---

## [Pointer error](https://discourse.julialang.org/t/pointer-error/36341)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 11:57pm UTC](https://discourse.julialang.org/t/pointer-error/36341 "2020-03-25T23:57:24Z")

</div>

it’s my first time using Threads for parallel computing as i’m new to it, and i wanted to work with the parallel for loop using @threads, there are 4 threads and i put the macro before the for loop then i called the code…

---

## [Is it possible to load a subset of a package?](https://discourse.julialang.org/t/is-it-possible-to-load-a-subset-of-a-package/31136)

<div class="topic-metadata">

**Author:** [@StevenWhitaker](https://discourse.julialang.org/u/StevenWhitaker)\
**Replies:** 5\
**Last updated:** [March 25, 2020, 11:51pm UTC](https://discourse.julialang.org/t/is-it-possible-to-load-a-subset-of-a-package/31136 "2020-03-25T23:51:21Z")

</div>

I have run into issues with long loading times for using some of my custom packages, and it appears to be because those packages load a lot of dependencies (as suggested here). But often my packages only need some small …

---

## [Language Julia on Android](https://discourse.julialang.org/t/language-julia-on-android/36526)

<div class="topic-metadata">

**Author:** [@Marques](https://discourse.julialang.org/u/Marques)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 11:06pm UTC](https://discourse.julialang.org/t/language-julia-on-android/36526 "2020-03-25T23:06:00Z")

</div>

I wonder if it is necessary to have Root to program Julia on Android.

---

## [Error trying to run example ODE from blog post](https://discourse.julialang.org/t/error-trying-to-run-example-ode-from-blog-post/36523)

<div class="topic-metadata">

**Author:** [@stormyweathers](https://discourse.julialang.org/u/stormyweathers)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 11:02pm UTC](https://discourse.julialang.org/t/error-trying-to-run-example-ode-from-blog-post/36523 "2020-03-25T23:02:33Z")

</div>

I am trying to run the reaction diffusion example in this blog post. Running the code as-is, I notice that I need to include using LinearAlgebra to use the Tridiagonal method. I still get an error UndefVarError: full n…

---

## [Julia exits when I import Plots package in Atom](https://discourse.julialang.org/t/julia-exits-when-i-import-plots-package-in-atom/36459)

<div class="topic-metadata">

**Author:** [@toluboltz](https://discourse.julialang.org/u/toluboltz)\
**Replies:** 3\
**Last updated:** [March 25, 2020, 9:27pm UTC](https://discourse.julialang.org/t/julia-exits-when-i-import-plots-package-in-atom/36459 "2020-03-25T21:27:20Z")

</div>

Hello, Julia exits in atom’s REPL when I type in “using Plots” and prints out the following error: signal (11): Segmentation fault: 11 in expression starting at no file:0 \_platform\_strcmp at /usr/lib/system/libsystem…

---

## [Map! - but it didn't map!](https://discourse.julialang.org/t/map-but-it-didnt-map/36514)

<div class="topic-metadata">

**Author:** [@Klaus](https://discourse.julialang.org/u/Klaus)\
**Replies:** 3\
**Last updated:** [March 25, 2020, 9:08pm UTC](https://discourse.julialang.org/t/map-but-it-didnt-map/36514 "2020-03-25T21:08:57Z")

</div>

I’ m still at the basics, so I wonder why line 2 works fine, but line 3 doesn’t: 1)—listofnumbers = \[23, 45, 56, 67, 89\] 2)—listofnumbers = map(x → x + 1, listofnumbers) 3)—map!(x → x + 1, listofnumbers) 4)—println(l…

---

## [My experiences using Pkg.Artifacts for test data](https://discourse.julialang.org/t/my-experiences-using-pkg-artifacts-for-test-data/36510)

<div class="topic-metadata">

**Author:** [@NicholasWMRitchie](https://discourse.julialang.org/u/NicholasWMRitchie)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 7:59pm UTC](https://discourse.julialang.org/t/my-experiences-using-pkg-artifacts-for-test-data/36510 "2020-03-25T19:59:35Z")

</div>

I really like the Pkg.Artifacts mechanism but I found it a little bit difficult to figure out how it worked from the current documentation. To help others, I’ll mention a couple of the stumbling points along the way to h…

---

## [Abstract type versus singleton struct](https://discourse.julialang.org/t/abstract-type-versus-singleton-struct/36356)

<div class="topic-metadata">

**Author:** [@Bernard\_GODARD](https://discourse.julialang.org/u/Bernard_GODARD)\
**Replies:** 6\
**Last updated:** [March 25, 2020, 7:39pm UTC](https://discourse.julialang.org/t/abstract-type-versus-singleton-struct/36356 "2020-03-25T19:39:47Z")

</div>

This question originates from a discussion in Use relative transformations by helgee · Pull Request #48 · JuliaAstro/AstroTime.jl · GitHub The AstroTime library provides a way to store and operate on Epochs in different…

---

## [Julia v1.4, @ in default environment name?](https://discourse.julialang.org/t/julia-v1-4-in-default-environment-name/36508)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 6:52pm UTC](https://discourse.julialang.org/t/julia-v1-4-in-default-environment-name/36508 "2020-03-25T18:52:20Z")

</div>

In Julia v1.4 the default environment looks like (@v1.4) pkg\> previously it looked like, (v1.3) pkg\> What’s the meaning of the @?

---

## [\[ANN\] Turing.jl 0.10.0](https://discourse.julialang.org/t/ann-turing-jl-0-10-0/36507)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 0\
**Last updated:** [March 25, 2020, 6:29pm UTC](https://discourse.julialang.org/t/ann-turing-jl-0-10-0/36507 "2020-03-25T18:29:02Z")

</div>

Hey folks. We’re happy to announce Turing version 0.10.0! We’re now maintaining a HISTORY.md file with an in-depth summary of changes, but I wanted to give an overview of the biggest features that you can use in 0.10.0. …

---

## [Strange allocations during broadcasting](https://discourse.julialang.org/t/strange-allocations-during-broadcasting/26605)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 13\
**Last updated:** [March 25, 2020, 6:20pm UTC](https://discourse.julialang.org/t/strange-allocations-during-broadcasting/26605 "2020-03-25T18:20:45Z")

</div>

Can you please explain me why in the following code the second broadcasting results in 3 allocations? using BenchmarkTools u = rand(100) k1 = similar(u) k2 = similar(u) k3 = similar(u) k4 = similar(u) @btime @. $u = $…

---

## [Calling a function breaks REPL in Juno -- ERROR: unlock from wrong thread](https://discourse.julialang.org/t/calling-a-function-breaks-repl-in-juno-error-unlock-from-wrong-thread/36165)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 4\
**Last updated:** [March 25, 2020, 5:29pm UTC](https://discourse.julialang.org/t/calling-a-function-breaks-repl-in-juno-error-unlock-from-wrong-thread/36165 "2020-03-25T17:29:53Z")

</div>

Running the code below in Juno renders the REPL broken, and by that I mean I can no longer run anything from the REPL. I’m trying to do more than just a simple wrapper function, but the code below was the minimum needed …

---

## ["ERROR: LoadError: TaskFailedException: IOError: stream is closed or unusable" with @distributed on multinode cluster](https://discourse.julialang.org/t/error-loaderror-taskfailedexception-ioerror-stream-is-closed-or-unusable-with-distributed-on-multinode-cluster/34768)

<div class="topic-metadata">

**Author:** [@teored90](https://discourse.julialang.org/u/teored90)\
**Replies:** 3\
**Last updated:** [March 19, 2020, 4:22pm UTC](https://discourse.julialang.org/t/error-loaderror-taskfailedexception-ioerror-stream-is-closed-or-unusable-with-distributed-on-multinode-cluster/34768 "2020-03-19T16:22:57Z")

</div>

I have some code that evaluates trajectories of a stochastic master equation in parallel, using a @distributed for with reduction for evaluating average quantities. The code is available here. Some jobs fail with the fo…

---

## [Two-point boundary value problem in Julia DiffEq: "control hamiltonian"](https://discourse.julialang.org/t/two-point-boundary-value-problem-in-julia-diffeq-control-hamiltonian/36477)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 10\
**Last updated:** [March 25, 2020, 4:53pm UTC](https://discourse.julialang.org/t/two-point-boundary-value-problem-in-julia-diffeq-control-hamiltonian/36477 "2020-03-25T16:53:30Z")

</div>

I’m interested in solving Hamilton’s equations of motion in DiffEq with two boundary conditions, an initial condition on the state variables and a terminal condition on the momentum variables. First I tried setting up a …

---

## [I have a list of dataframes with the same columns, how would I stack them on top of each other and make one dataframe?](https://discourse.julialang.org/t/i-have-a-list-of-dataframes-with-the-same-columns-how-would-i-stack-them-on-top-of-each-other-and-make-one-dataframe/36495)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 3\
**Last updated:** [March 25, 2020, 4:05pm UTC](https://discourse.julialang.org/t/i-have-a-list-of-dataframes-with-the-same-columns-how-would-i-stack-them-on-top-of-each-other-and-make-one-dataframe/36495 "2020-03-25T16:05:51Z")

</div>

Hi how’s it going, I tried using hcat to stack each of these dataframes on top of each other, but it’s not really working as intended. I want to combine a list of dataframes, all with the same column names, into one big…

---

## [Get source code of a loaded function?](https://discourse.julialang.org/t/get-source-code-of-a-loaded-function/36501)

<div class="topic-metadata">

**Author:** [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Replies:** 0\
**Last updated:** [March 25, 2020, 3:51pm UTC](https://discourse.julialang.org/t/get-source-code-of-a-loaded-function/36501 "2020-03-25T15:51:49Z")

</div>

I had some code written in a file, which I was loading into a Jupyter notebook using include(\<filename\>), then running the functions in the file. Somehow the file got overwritten in such a way that I cannot recover the c…

---

## [Strange comportment of @distributed](https://discourse.julialang.org/t/strange-comportment-of-distributed/36409)

<div class="topic-metadata">

**Author:** [@Geoffrey](https://discourse.julialang.org/u/Geoffrey)\
**Replies:** 4\
**Last updated:** [March 25, 2020, 3:43pm UTC](https://discourse.julialang.org/t/strange-comportment-of-distributed/36409 "2020-03-25T15:43:11Z")

</div>

Hi, I’m not use to write down question but I’ve long search on google and I can’t find answer to my problem. I trying to implement the algorithm of sugimoto et al concerning Compressive Bilateral Filter (DOI: 10.1109/TI…

---

## [Setting min and max values in a heatmap (Plots.jl)](https://discourse.julialang.org/t/setting-min-and-max-values-in-a-heatmap-plots-jl/36496)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 3:39pm UTC](https://discourse.julialang.org/t/setting-min-and-max-values-in-a-heatmap-plots-jl/36496 "2020-03-25T15:39:38Z")

</div>

I am making heatmaps of a discrete function taking values 0…5 . Plots (GR) makes automatic scaling for me: min is green, max is red (with seriescolor=RdYlGn\_r ). I want the heatmaps to have the same “color scale” - 0 is…

---

## [Shipping a wrapper along with downloaded libraries](https://discourse.julialang.org/t/shipping-a-wrapper-along-with-downloaded-libraries/36491)

<div class="topic-metadata">

**Author:** [@AlfTetzlaff](https://discourse.julialang.org/u/AlfTetzlaff)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 2:42pm UTC](https://discourse.julialang.org/t/shipping-a-wrapper-along-with-downloaded-libraries/36491 "2020-03-25T14:42:02Z")

</div>

Hey everybody, I wrote a wrapper for the ZWO ASI cameras \[1\]. I now want to package the wrapper in a way that downloads the library (MIT-License), so that the end-user can install the wrapper just by calling add LibASIC…

---

## [Vscode with ssh environment variables](https://discourse.julialang.org/t/vscode-with-ssh-environment-variables/36471)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 3\
**Last updated:** [March 25, 2020, 2:40pm UTC](https://discourse.julialang.org/t/vscode-with-ssh-environment-variables/36471 "2020-03-25T14:40:06Z")

</div>

When running vscode over ssh, loading the julia REPL loads julia-1.3, but I would like to use julia 1.4. This is presumably because ENV\["PATH"\] for the REPL only contains /julia-1.3.1/bin. But I don’t know where that PAT…

---

## [How to delete to end of line in Juno](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 3\
**Last updated:** [March 25, 2020, 2:36pm UTC](https://discourse.julialang.org/t/how-to-delete-to-end-of-line-in-juno/34372 "2020-03-25T14:36:20Z")

</div>

I would like to delete (or cut, either will do) from the cursor position to the end of the current line. In emacs this is Ctrl + k. I cannot find similar functionality in Juno: searching the keybindings for end-of-line s…

---

## [Initialising parameter values with compositional sampling in Turing.jl](https://discourse.julialang.org/t/initialising-parameter-values-with-compositional-sampling-in-turing-jl/36494)

<div class="topic-metadata">

**Author:** [@MVanta](https://discourse.julialang.org/u/MVanta)\
**Replies:** 0\
**Last updated:** [March 25, 2020, 2:02pm UTC](https://discourse.julialang.org/t/initialising-parameter-values-with-compositional-sampling-in-turing-jl/36494 "2020-03-25T14:02:29Z")

</div>

Hi all, Is there a way to set the initialisation location for samplers when using the compositional sampling method in Turing.jl? Setting the initial values when sampling from a continuous parameter space (with hamilton…

---

## [Matlab's sparse matrix function](https://discourse.julialang.org/t/matlabs-sparse-matrix-function/36473)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 4:46am UTC](https://discourse.julialang.org/t/matlabs-sparse-matrix-function/36473 "2020-03-25T04:46:01Z")

</div>

In MATLAB it’s possible to use sparse like this: \>\> full(sparse(\[2 3 4 5; 1 2 3 4; 9 8 6 7\],ones(3,1)\*(1:4),1,9,9)) ans = 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 …

---

## [LightGraphs documentation](https://discourse.julialang.org/t/lightgraphs-documentation/36490)

<div class="topic-metadata">

**Author:** [@khal](https://discourse.julialang.org/u/khal)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 1:17pm UTC](https://discourse.julialang.org/t/lightgraphs-documentation/36490 "2020-03-25T13:17:02Z")

</div>

Hi everybody ! I am quite new to Julia but have been able to learn bunch of things in the last 2 days. However, since I am working on a project that is based on graph theory, I figured out I should know more about the L…

---

## [Performance MIPstart](https://discourse.julialang.org/t/performance-mipstart/36464)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 12:59pm UTC](https://discourse.julialang.org/t/performance-mipstart/36464 "2020-03-25T12:59:21Z")

</div>

I’ll share an experience. I have a mixed linear optimization problem. When I use a feasibre solution (MIPstart), sometimes CPLEX performs worse than if I let it determine an incumbent solution automatically. Sometimes…

---

## [How to run \`sleep 1; echo "hello"\` in Shell in Julia](https://discourse.julialang.org/t/how-to-run-sleep-1-echo-hello-in-shell-in-julia/36483)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 2\
**Last updated:** [March 25, 2020, 12:20pm UTC](https://discourse.julialang.org/t/how-to-run-sleep-1-echo-hello-in-shell-in-julia/36483 "2020-03-25T12:20:05Z")

</div>

I want to run sleep 1; echo "hello" in Shell in Julia. However, run(\`sleep 1; echo "hello"\`) doesn’t work correctly due to ; but I can’t find how to change the code. Can anyone help me?

---

## [Reproducible multithreaded monte-carlo / Task local random](https://discourse.julialang.org/t/reproducible-multithreaded-monte-carlo-task-local-random/35269)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 8\
**Last updated:** [March 25, 2020, 10:52am UTC](https://discourse.julialang.org/t/reproducible-multithreaded-monte-carlo-task-local-random/35269 "2020-03-25T10:52:56Z")

</div>

This is a companion post to https://github.com/JuliaLang/julia/pull/34852 , for a more user-centric discussion. Reproducibility of randomized computations is a very nice property (when Random.seed! is used). This is goo…

---

## [Using CuArrays returns incompatibility between CUDA and LLVM](https://discourse.julialang.org/t/using-cuarrays-returns-incompatibility-between-cuda-and-llvm/36465)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 10:21am UTC](https://discourse.julialang.org/t/using-cuarrays-returns-incompatibility-between-cuda-and-llvm/36465 "2020-03-25T10:21:10Z")

</div>

I am trying to follow this example on Windows 10 and Julia 1.4 and I am getting the following warning: using CuArrays x\_d = CuArrays.fill(1.0f0, N) # a vector stored on the GPU filled with 1.0 (Float32) y\_d = CuArrays.…

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

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