# Latest

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

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

**Page:** 1771

---

## [Error installing CUDAdrv](https://discourse.julialang.org/t/error-installing-cudadrv/37830)

<div class="topic-metadata">

**Author:** [@Mehrdad\_Esfahani](https://discourse.julialang.org/u/Mehrdad_Esfahani)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 1:18pm UTC](https://discourse.julialang.org/t/error-installing-cudadrv/37830 "2020-04-20T13:18:58Z")

</div>

I am very new to CUDA in Julia. When I want to use “CUDAdrv” package I get the following error: using CUDAdrv; ┌ Info: Precompiling CUDAdrv \[c5f51814-7f29-56b8-a69c-e4d8f6be1fde\] └ @ Base loading.jl:1242 ERROR: LoadE…

---

## [Reading and writing to file simultaneously](https://discourse.julialang.org/t/reading-and-writing-to-file-simultaneously/37761)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 10:54am UTC](https://discourse.julialang.org/t/reading-and-writing-to-file-simultaneously/37761 "2020-04-20T10:54:37Z")

</div>

I’m streaming data from the web and writing to file in a random fashion every second or two, and opening and closing on each write. If I want to sometimes read everything in the file up to this point, is that a problem? …

---

## [Plots annotate](https://discourse.julialang.org/t/plots-annotate/37784)

<div class="topic-metadata">

**Author:** [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Replies:** 11\
**Last updated:** [April 20, 2020, 10:49am UTC](https://discourse.julialang.org/t/plots-annotate/37784 "2020-04-20T10:49:20Z")

</div>

With recent version of Plots (1.0.11) and GR backend: annotate!(x,y,t) doesn’t work anymore, I must use: annotate!((x,y,t))

---

## [Iterate over the integer gridpoints in a simplex](https://discourse.julialang.org/t/iterate-over-the-integer-gridpoints-in-a-simplex/37886)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 10:36am UTC](https://discourse.julialang.org/t/iterate-over-the-integer-gridpoints-in-a-simplex/37886 "2020-04-20T10:36:08Z")

</div>

I would like to iterate over all x::NTuple{N,Int} such that all(x .\>= 0) && sum(x) == K (ie integer gridpoints in a simplex). For small problems a brute force approach function simplex\_integer\_grid(::Val{N}, K) where N …

---

## [Comparing with nothing](https://discourse.julialang.org/t/comparing-with-nothing/37888)

<div class="topic-metadata">

**Author:** [@hmemy](https://discourse.julialang.org/u/hmemy)\
**Replies:** 9\
**Last updated:** [April 20, 2020, 10:20am UTC](https://discourse.julialang.org/t/comparing-with-nothing/37888 "2020-04-20T10:20:55Z")

</div>

How to compare with the value nothing? I came up with this small piece of lines but it is not working. A = \[1,2,3\] if indexin(USER\_INPUT,A) !== nothing do\_someething() end Thank you

---

## [Installing Julia on ubuntu, julia not found?](https://discourse.julialang.org/t/installing-julia-on-ubuntu-julia-not-found/34020)

<div class="topic-metadata">

**Author:** [@samantp](https://discourse.julialang.org/u/samantp)\
**Replies:** 15\
**Last updated:** [April 20, 2020, 10:02am UTC](https://discourse.julialang.org/t/installing-julia-on-ubuntu-julia-not-found/34020 "2020-04-20T10:02:36Z")

</div>

I have downloaded the tar.gz and extracted it in downloads. Just to try running Julia in terminal, I navigated to the bin folder and typed in ‘julia’, but no such command was found. I tried clicking the julia file, and n…

---

## [Allocation of distributed arrays to workers](https://discourse.julialang.org/t/allocation-of-distributed-arrays-to-workers/37721)

<div class="topic-metadata">

**Author:** [@Diego](https://discourse.julialang.org/u/Diego)\
**Replies:** 5\
**Last updated:** [April 20, 2020, 9:34am UTC](https://discourse.julialang.org/t/allocation-of-distributed-arrays-to-workers/37721 "2020-04-20T09:34:52Z")

</div>

By default when creating a distributed array each worker is assigned consecutive fields. So for a 10 element array, worker 1 would control 1:5 and worker 2 6:10. ¿Is there a way of defining the DArrays in a way that wo…

---

## [Including raw HTML in Julia Markdown](https://discourse.julialang.org/t/including-raw-html-in-julia-markdown/26165)

<div class="topic-metadata">

**Author:** [@Rajesh\_Talluri](https://discourse.julialang.org/u/Rajesh_Talluri)\
**Replies:** 12\
**Last updated:** [April 20, 2020, 9:01am UTC](https://discourse.julialang.org/t/including-raw-html-in-julia-markdown/26165 "2020-04-20T09:01:54Z")

</div>

Hi, I am trying to create a report in Julia markdown using the Weave.jl Package. However, I got stuck when using raw HTML or JavaScript in the document as it does not get rendered correctly. Using pandoc to convert the …

---

## [\[ANN\] LightGBM.jl -- With MLJ support](https://discourse.julialang.org/t/ann-lightgbm-jl-with-mlj-support/37883)

<div class="topic-metadata">

**Author:** [@yalwan-iqvia](https://discourse.julialang.org/u/yalwan-iqvia)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 8:13am UTC](https://discourse.julialang.org/t/ann-lightgbm-jl-with-mlj-support/37883 "2020-04-20T08:13:57Z")

</div>

We are pleased to announce that we are publishing a fork of LightGBM.jl, a package originally authored by allardvm and modified for compatibility with Julia \> 1 by wakakausa. As of writing, the package is registered in …

---

## [Alternative to SharedArrays for multi-node cluster?](https://discourse.julialang.org/t/alternative-to-sharedarrays-for-multi-node-cluster/37794)

<div class="topic-metadata">

**Author:** [@Nadou407](https://discourse.julialang.org/u/Nadou407)\
**Replies:** 9\
**Last updated:** [April 20, 2020, 8:02am UTC](https://discourse.julialang.org/t/alternative-to-sharedarrays-for-multi-node-cluster/37794 "2020-04-20T08:02:55Z")

</div>

Hello! I’m moving my codes from my own computer to a multi-node cluster and realized SharedArrays won’t work on multiple nodes without shared memory. The old code using SharedArrays looks like below: using Distributed…

---

## [Pkg, instantiate error](https://discourse.julialang.org/t/pkg-instantiate-error/37878)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 5\
**Last updated:** [April 20, 2020, 7:31am UTC](https://discourse.julialang.org/t/pkg-instantiate-error/37878 "2020-04-20T07:31:20Z")

</div>

I found the command instantiate encountered errors in Julia1.3, which works quite well before. I have developed a package, hotspot, I run the following commands. (v1.3) pkg\> activate . Activating environment at \`~/juli…

---

## [Does Markdown support comments?](https://discourse.julialang.org/t/does-markdown-support-comments/37607)

<div class="topic-metadata">

**Author:** [@KDr2](https://discourse.julialang.org/u/KDr2)\
**Replies:** 11\
**Last updated:** [April 20, 2020, 6:49am UTC](https://discourse.julialang.org/t/does-markdown-support-comments/37607 "2020-04-20T06:49:11Z")

</div>

I am writing docs for a package, using Emacs, and I want to put some file local variables in the markdown files, I tried: \[//\]: # -\*- mode: auto-fill -\*- \<!-- -\*- mode: auto-fill -\*- --\> But these lines are not recogni…

---

## [Priority of environments](https://discourse.julialang.org/t/priority-of-environments/37873)

<div class="topic-metadata">

**Author:** [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 1:40am UTC](https://discourse.julialang.org/t/priority-of-environments/37873 "2020-04-20T01:40:05Z")

</div>

Summary: How can I install a package locally and on a server, where both locations are in DEPOT\_PATH &/or LOAD\_PATH, but local version takes priority? I have a setup with multiple machines, and for ease of management, …

---

## [Float -\> Rational numbers?](https://discourse.julialang.org/t/float-rational-numbers/37856)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 15\
**Last updated:** [April 19, 2020, 8:32pm UTC](https://discourse.julialang.org/t/float-rational-numbers/37856 "2020-04-19T20:32:09Z")

</div>

I’m curious about the possibility to convert Float64 numbers to Rational numbers for exact computations. I’m a little puzzled by the following: julia\> x = 2.64 2.64 julia\> y = Rational(x) 5944751508129055//225179981368…

---

## [Use GPU subfunction in a bigger-function?](https://discourse.julialang.org/t/use-gpu-subfunction-in-a-bigger-function/37768)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [April 19, 2020, 6:18pm UTC](https://discourse.julialang.org/t/use-gpu-subfunction-in-a-bigger-function/37768 "2020-04-19T18:18:59Z")

</div>

Hello! My question title is properly worded poorly, but here goes. I have made a “subfunction”, called gpu\_ParticlePackStep! which calculates properties for one particle. If I call this function as such in Julia: gpu\_P…

---

## [Communicating with external C threads](https://discourse.julialang.org/t/communicating-with-external-c-threads/37696)

<div class="topic-metadata">

**Author:** [@OliverEvans96](https://discourse.julialang.org/u/OliverEvans96)\
**Replies:** 8\
**Last updated:** [April 19, 2020, 6:13pm UTC](https://discourse.julialang.org/t/communicating-with-external-c-threads/37696 "2020-04-19T18:13:32Z")

</div>

Hi all, According to this section of the docs as well as numerous discussions on discourse and the email list, it’s apparently not allowed to call julia functions from external C threads other than the one that spawned …

---

## [IJulia and magic command](https://discourse.julialang.org/t/ijulia-and-magic-command/37860)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 5:28pm UTC](https://discourse.julialang.org/t/ijulia-and-magic-command/37860 "2020-04-19T17:28:15Z")

</div>

I would like to use Jupyter interactive widgets framework, ipympl with IJulia and PyPlot. I installed ipympl using pip3 install ipympl and then I tested it in the Jupyter notebook with python kernel using this simple e…

---

## [\[ANN\] DataConvenience v0.1.2](https://discourse.julialang.org/t/ann-dataconvenience-v0-1-2/37854)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 4:05pm UTC](https://discourse.julialang.org/t/ann-dataconvenience-v0-1-2/37854 "2020-04-19T16:05:39Z")

</div>

A number of posts have been asking for a CSV chunk reader and the new major feature for DataConvenience is reasonably fast chunk reader based on CSV.jl. See GitHub - xiaodaigh/DataConvenience.jl: Convenience functions m…

---

## [Construction Overhead for MvNormal](https://discourse.julialang.org/t/construction-overhead-for-mvnormal/37732)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 4\
**Last updated:** [April 19, 2020, 3:32pm UTC](https://discourse.julialang.org/t/construction-overhead-for-mvnormal/37732 "2020-04-19T15:32:19Z")

</div>

MvNormal distributions in the Distributions package have a large construction overhead because the underlaying PDMats package performs a full Cholesky decomposition of the covariance matrix. In theory, I think this can b…

---

## [Shutting down Julia Observer… \[posted 4/1/20\]](https://discourse.julialang.org/t/shutting-down-julia-observer-posted-4-1-20/36870)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 19\
**Last updated:** [April 19, 2020, 3:16pm UTC](https://discourse.julialang.org/t/shutting-down-julia-observer-posted-4-1-20/36870 "2020-04-19T15:16:59Z")

</div>

…slowly. And switching over to: Hope you enjoy it! // the julia backbone of the project can be found here

---

## [\[ANN\] PSID.jl: Quickly assemble data from the Panel Study of Income Dynamics (PSID)](https://discourse.julialang.org/t/ann-psid-jl-quickly-assemble-data-from-the-panel-study-of-income-dynamics-psid/31113)

<div class="topic-metadata">

**Author:** [@aaowens](https://discourse.julialang.org/u/aaowens)\
**Replies:** 3\
**Last updated:** [April 19, 2020, 3:03pm UTC](https://discourse.julialang.org/t/ann-psid-jl-quickly-assemble-data-from-the-panel-study-of-income-dynamics-psid/31113 "2020-04-19T15:03:03Z")

</div>

I’ve created a package to help people put together data from the Panel Study of Income Dynamics (PSID). Given a simple JSON file describing the variables you want, PSID.jl will look up all the years that variable is avai…

---

## [Julia-emacs tutorial or documentation](https://discourse.julialang.org/t/julia-emacs-tutorial-or-documentation/37847)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 2:14pm UTC](https://discourse.julialang.org/t/julia-emacs-tutorial-or-documentation/37847 "2020-04-19T14:14:36Z")

</div>

Is there any basic tutorial or documentation for using julia-emacs? I couldn’t find it. I can only run blocks of code using C-c C-c on julia-mode.

---

## [Speech-based Emotion Recognition](https://discourse.julialang.org/t/speech-based-emotion-recognition/37846)

<div class="topic-metadata">

**Author:** [@themadprogramer](https://discourse.julialang.org/u/themadprogramer)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 1:32pm UTC](https://discourse.julialang.org/t/speech-based-emotion-recognition/37846 "2020-04-19T13:32:51Z")

</div>

Hello, I wasn’t able to find any package for Speech-based Mood/Emotion recognition to use in a project I’m working on, so I need some help setting up something myself. I know that LSTM’s are in use for this, I’ve seen …

---

## [Some added modules fail on not loading \`lib/julia/sys.so\`](https://discourse.julialang.org/t/some-added-modules-fail-on-not-loading-lib-julia-sys-so/37772)

<div class="topic-metadata">

**Author:** [@Kunz-David](https://discourse.julialang.org/u/Kunz-David)\
**Replies:** 9\
**Last updated:** [April 19, 2020, 12:48pm UTC](https://discourse.julialang.org/t/some-added-modules-fail-on-not-loading-lib-julia-sys-so/37772 "2020-04-19T12:48:16Z")

</div>

Hello, I wanted to try out a module I’m working on a fresh installed linux with julia and ran into an error. I first tried to do a simple add module and test, but that failed, so I tried the Example module, which worked…

---

## [Is there a \`recur\` syntax to call the current function?](https://discourse.julialang.org/t/is-there-a-recur-syntax-to-call-the-current-function/37816)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 3\
**Last updated:** [April 19, 2020, 10:03am UTC](https://discourse.julialang.org/t/is-there-a-recur-syntax-to-call-the-current-function/37816 "2020-04-19T10:03:11Z")

</div>

Some functional languages have this convenience. They also usually implement tail call optimizations (convert functions to while loops). This is a helpful feature to have, since it allows easier renaming of functions and…

---

## [Adding columns based on unique values](https://discourse.julialang.org/t/adding-columns-based-on-unique-values/37835)

<div class="topic-metadata">

**Author:** [@hmemy](https://discourse.julialang.org/u/hmemy)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 10:00am UTC](https://discourse.julialang.org/t/adding-columns-based-on-unique-values/37835 "2020-04-19T10:00:11Z")

</div>

Hi, I have a table A and would like to obtain the unique values in the first column and add the corresponding values in the 2nd and 3rd columns. I have already implemented it in matlab using this line: res = \[unique(A(…

---

## [Weird overwriting/extension of an operator based on whether it was ran beforehand](https://discourse.julialang.org/t/weird-overwriting-extension-of-an-operator-based-on-whether-it-was-ran-beforehand/37819)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 9\
**Last updated:** [April 19, 2020, 7:54am UTC](https://discourse.julialang.org/t/weird-overwriting-extension-of-an-operator-based-on-whether-it-was-ran-beforehand/37819 "2020-04-19T07:54:56Z")

</div>

I was reading up on automatic differentiation, and I noticed something weird about extending operators. I opened up the REPL and ran a couple of copied lines: julia\> struct Dual{T\<:Real} \<: Real x::T ϵ::T end julia\>…

---

## [BlackBoxOptim -- SearchRange problem?](https://discourse.julialang.org/t/blackboxoptim-searchrange-problem/29860)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [April 19, 2020, 7:24am UTC](https://discourse.julialang.org/t/blackboxoptim-searchrange-problem/29860 "2020-04-19T07:24:25Z")

</div>

I have used BlackBoxOptim with success in the past. Now, I try to solve an optimization problem L(p) with length(p) = 9 parameters. I then create a search range: p\_range = \[(-1.e4,1e4),(-1.e4,1e4),(-1.e4,1e4),(1.5,5),(1…

---

## [Distributed.RemoteException key error](https://discourse.julialang.org/t/distributed-remoteexception-key-error/37580)

<div class="topic-metadata">

**Author:** [@sundarnpanch](https://discourse.julialang.org/u/sundarnpanch)\
**Replies:** 1\
**Last updated:** [April 19, 2020, 7:22am UTC](https://discourse.julialang.org/t/distributed-remoteexception-key-error/37580 "2020-04-19T07:22:06Z")

</div>

Hi, I am new to Julia and this forum too. I am using the distributed computing facility in JuliaBox and I seem to encounter the following error while using the fetch() function. Can someone guide me with the issue here? …

---

## [Is anyone taking mitmath 6.S083 / 18.S190?](https://discourse.julialang.org/t/is-anyone-taking-mitmath-6-s083-18-s190/37834)

<div class="topic-metadata">

**Author:** [@akshu3398](https://discourse.julialang.org/u/akshu3398)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 6:46am UTC](https://discourse.julialang.org/t/is-anyone-taking-mitmath-6-s083-18-s190/37834 "2020-04-19T06:46:09Z")

</div>

hi, I am new to julia ecosystem. I started using julia as a matlab alternative and because of it’s similarity to python(in syntax and practical application). I am following mit’s 6.S083 / 18.S190 to learn julia and ge…

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

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