# Latest

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

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

**Page:** 1427

---

## [GPU and Thread-Parallel Support for Turing.jl](https://discourse.julialang.org/t/gpu-and-thread-parallel-support-for-turing-jl/58958)

<div class="topic-metadata">

**Author:** [@Koshroy](https://discourse.julialang.org/u/Koshroy)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 10:03pm UTC](https://discourse.julialang.org/t/gpu-and-thread-parallel-support-for-turing-jl/58958 "2021-04-13T22:03:20Z")

</div>

Hey all, I’m a bit new to the Julia ecosystem and had a couple questions that some searching around didn’t answer: Is there a way to use the GPU to sample for Turing.jl models? And if there isn’t, is there a way to tr…

---

## [Dreaded PyCall build error](https://discourse.julialang.org/t/dreaded-pycall-build-error/56761)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 7\
**Last updated:** [April 13, 2021, 8:54pm UTC](https://discourse.julialang.org/t/dreaded-pycall-build-error/56761 "2021-04-13T20:54:20Z")

</div>

this has come up several times in the forum. i have experienced it several times, and yet completely unsure why it happens. It definitely only happens on package upgrades (not necessarily julia version upgrades) and it…

---

## [Performance difference when accessing square matrix rows-first or cols-first](https://discourse.julialang.org/t/performance-difference-when-accessing-square-matrix-rows-first-or-cols-first/59188)

<div class="topic-metadata">

**Author:** [@danilo-bc](https://discourse.julialang.org/u/danilo-bc)\
**Replies:** 14\
**Last updated:** [April 13, 2021, 8:32pm UTC](https://discourse.julialang.org/t/performance-difference-when-accessing-square-matrix-rows-first-or-cols-first/59188 "2021-04-13T20:32:19Z")

</div>

I’m trying to expose a few Julia basics for friends, specially performance results, so I’m creating code snippets for visualization. In this example, I have two functions creating matrices of zeros and I’m simply settin…

---

## [NLopt default arguments for objective function](https://discourse.julialang.org/t/nlopt-default-arguments-for-objective-function/7877)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 2\
**Last updated:** [December 20, 2017, 3:45pm UTC](https://discourse.julialang.org/t/nlopt-default-arguments-for-objective-function/7877 "2017-12-20T15:45:34Z")

</div>

The second question within two days which shows how rusty I’ve become not having used Julia on a daily basis for over a year… I’m trying to optimize a simple objective function using NLopt, which requires multiplying a m…

---

## [Generating function from existing function body + custom return statement](https://discourse.julialang.org/t/generating-function-from-existing-function-body-custom-return-statement/59212)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 3\
**Last updated:** [April 13, 2021, 8:18pm UTC](https://discourse.julialang.org/t/generating-function-from-existing-function-body-custom-return-statement/59212 "2021-04-13T20:18:34Z")

</div>

Hello, I’m exploring an idea which may look funny. Please tell me if you thinks it’s impossible or useless. My goal I’d like to generate automatically (with metaprogramming I guess) functions which body and signature c…

---

## ["Names" packages?](https://discourse.julialang.org/t/names-packages/58981)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 31\
**Last updated:** [April 13, 2021, 7:25pm UTC](https://discourse.julialang.org/t/names-packages/58981 "2021-04-13T19:25:03Z")

</div>

The issue in this post has come up a few times in different contexts: Julia’s multiple dispatch is very convenient for users, but the “who owns this name” issue can be awkward for package developers. This is common en…

---

## [Project.toml in test directory vs extras](https://discourse.julialang.org/t/project-toml-in-test-directory-vs-extras/59199)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 7:28pm UTC](https://discourse.julialang.org/t/project-toml-in-test-directory-vs-extras/59199 "2021-04-13T19:28:25Z")

</div>

I’m working on a package now which has a separate Poject.toml in the test directory. But DataFrames and others have all their test dependencies listed in extra in the main Project.toml. Is there anything I can read for w…

---

## [Seeking Consultant on a Julia Project](https://discourse.julialang.org/t/seeking-consultant-on-a-julia-project/59079)

<div class="topic-metadata">

**Author:** [@Luigi\_Bottecchia](https://discourse.julialang.org/u/Luigi_Bottecchia)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 6:57pm UTC](https://discourse.julialang.org/t/seeking-consultant-on-a-julia-project/59079 "2021-04-13T18:57:22Z")

</div>

Dear all, I’m Luigi and together with some colleagues we are developing a tool written in Julia. We are all pretty new to Julia but we really believe in it. For this reason we are looking for someone that can help us o…

---

## [Problem installing Julia 1.6](https://discourse.julialang.org/t/problem-installing-julia-1-6/59151)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 6:30pm UTC](https://discourse.julialang.org/t/problem-installing-julia-1-6/59151 "2021-04-13T18:30:31Z")

</div>

Hi! I’m trying to install Julia 1.6 on a linux server, but am encountering issues with detection of, and cloning from, the registries. Something to do with git issues or an SSL error somewhere? Is this related to an i…

---

## [Confused about versionning in post v1.0 world](https://discourse.julialang.org/t/confused-about-versionning-in-post-v1-0-world/59118)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 6:28pm UTC](https://discourse.julialang.org/t/confused-about-versionning-in-post-v1-0-world/59118 "2021-04-13T18:28:14Z")

</div>

Thanks to @StefanKarpinski having pinned @dilumaluthge’s excellent post, I must say I am a bit confused now: I was still using the pre-1.0 system where I would only bump the minor version number for breaking changes. T…

---

## [LoadError: UndefVarError: active\_repl not defined with ReplMaker](https://discourse.julialang.org/t/loaderror-undefvarerror-active-repl-not-defined-with-replmaker/59221)

<div class="topic-metadata">

**Author:** [@emmettgb](https://discourse.julialang.org/u/emmettgb)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 6:13pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-active-repl-not-defined-with-replmaker/59221 "2021-04-13T18:13:12Z")

</div>

Hello all! I am having some trouble with ReplMaker.jl, and getting this error in return: LoadError: UndefVarError: active\_repl not defined I wrote a little module I was intending to put " using UnixRepl" into my startu…

---

## [Simple multi-thread loop with array](https://discourse.julialang.org/t/simple-multi-thread-loop-with-array/59117)

<div class="topic-metadata">

**Author:** [@shce](https://discourse.julialang.org/u/shce)\
**Replies:** 11\
**Last updated:** [April 13, 2021, 6:09pm UTC](https://discourse.julialang.org/t/simple-multi-thread-loop-with-array/59117 "2021-04-13T18:09:01Z")

</div>

Hello! I am struggling with how @threads works. I believe I understand what it does but I don’t get the expected result in the following MWE: struct MyStr arr::Array{Int,1} end function MyStr(N::Int) return MyS…

---

## [Problems using @png inside of a loop in Luxor](https://discourse.julialang.org/t/problems-using-png-inside-of-a-loop-in-luxor/59198)

<div class="topic-metadata">

**Author:** [@AndresCasillas](https://discourse.julialang.org/u/AndresCasillas)\
**Replies:** 4\
**Last updated:** [April 13, 2021, 5:37pm UTC](https://discourse.julialang.org/t/problems-using-png-inside-of-a-loop-in-luxor/59198 "2021-04-13T17:37:56Z")

</div>

Hi, I´m quite new to Julia and I´ve been stuck on a problem for quite a while now. I´m currently working on a Jupyter file and with Julia version 1.5.3 on a Windows computer, using Luxor. I have an array of arrays and a…

---

## [GR build problems: "installation is incomplete"](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 44\
**Last updated:** [April 13, 2021, 5:26pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764 "2021-04-13T17:26:02Z")

</div>

My students are still getting the error reported here: But since this was over 6 months ago and not adequately resolved I am raising it again. This semester, I took a chance and decided to be the first in my Universi…

---

## [Zygote adjoint for custom array type](https://discourse.julialang.org/t/zygote-adjoint-for-custom-array-type/59215)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 4:18pm UTC](https://discourse.julialang.org/t/zygote-adjoint-for-custom-array-type/59215 "2021-04-13T16:18:42Z")

</div>

Hello Friends of Zygote, while trying to create the adjoint for a custom array type, I was not really successful. struct Example{T,N,F} \<: AbstractArray{T,N} where F sz::NTuple{N, Int} f::F end Base.getindex(a…

---

## [How do you make subtype fields consistent and mandatory?](https://discourse.julialang.org/t/how-do-you-make-subtype-fields-consistent-and-mandatory/59208)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 4:02pm UTC](https://discourse.julialang.org/t/how-do-you-make-subtype-fields-consistent-and-mandatory/59208 "2021-04-13T16:02:45Z")

</div>

Consider the following code: abstract type AbstractTransport end mutable struct Car \<: AbstractTransport name::String engine\_type::String number\_of\_people::Int32 function Car(name::String, engine\_type…

---

## [How to export data in arrays form?](https://discourse.julialang.org/t/how-to-export-data-in-arrays-form/57564)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 11\
**Last updated:** [April 13, 2021, 4:00pm UTC](https://discourse.julialang.org/t/how-to-export-data-in-arrays-form/57564 "2021-04-13T16:00:03Z")

</div>

Hello in the database I have this data: 16×3 Array{Any,2}: "P1\_BloEco\_m" 1 0.01 "P1\_BloEco\_s" 2 0.06 "P1\_R" 3 0.22 "P1\_R" 4 0.242 "P2\_R" 5 0.015 "P2\_R" 6 0.06 "P3\_A"…

---

## [Markers with ribbon](https://discourse.julialang.org/t/markers-with-ribbon/59207)

<div class="topic-metadata">

**Author:** [@eschoute](https://discourse.julialang.org/u/eschoute)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 3:15pm UTC](https://discourse.julialang.org/t/markers-with-ribbon/59207 "2021-04-13T15:15:03Z")

</div>

I want to have a plot with only markers on the mean and not on the ribbon. Example using Plots pgfplotsx() plot( 1:10, rand(10), ribbon = 0.1 \* rand(1:10), markers = :auto ) savefig("pgfplot.png") gr()…

---

## [Use Dictionary value in objective function](https://discourse.julialang.org/t/use-dictionary-value-in-objective-function/59119)

<div class="topic-metadata">

**Author:** [@rox](https://discourse.julialang.org/u/rox)\
**Replies:** 8\
**Last updated:** [April 13, 2021, 2:46pm UTC](https://discourse.julialang.org/t/use-dictionary-value-in-objective-function/59119 "2021-04-13T14:46:29Z")

</div>

Hello, I’m trying to be able to use values put in a Dictionary to weight the variables that are going to be minimized in a JuMP objective function. The dictionnary is implemented as follow : Dicopond = Dict(0=\> 1, 1 …

---

## [Join the ML Ecosystem Community Team!](https://discourse.julialang.org/t/join-the-ml-ecosystem-community-team/55562)

<div class="topic-metadata">

**Author:** [@darsnack](https://discourse.julialang.org/u/darsnack)\
**Replies:** 0\
**Last updated:** [February 18, 2021, 5:19pm UTC](https://discourse.julialang.org/t/join-the-ml-ecosystem-community-team/55562 "2021-02-18T17:19:56Z")

</div>

As some of you may already know, there is a “ML community team” working to improve the FluxML ecosystem and establish best practices for ML in Julia. We have already worked on several packages to this end (see a summary h…

---

## [Error: Reducing over an empty collection is not allowed](https://discourse.julialang.org/t/error-reducing-over-an-empty-collection-is-not-allowed/47410)

<div class="topic-metadata">

**Author:** [@pewehweh](https://discourse.julialang.org/u/pewehweh)\
**Replies:** 7\
**Last updated:** [April 13, 2021, 2:20pm UTC](https://discourse.julialang.org/t/error-reducing-over-an-empty-collection-is-not-allowed/47410 "2021-04-13T14:20:53Z")

</div>

Hi everyone, I am trying to sort and sum data based off of the first column of ‘DNVGL\_total’ into a new array. However, when trying to do this, I get the error ‘Reducing over an empty collection is not allowed’ I am ne…

---

## [RMS (Richard Stallman) feelings](https://discourse.julialang.org/t/rms-richard-stallman-feelings/59178)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 6\
**Last updated:** [April 13, 2021, 2:02pm UTC](https://discourse.julialang.org/t/rms-richard-stallman-feelings/59178 "2021-04-13T14:02:47Z")

</div>

Has anybody an opinion about the come back of RMS to the FSF board? Why I am asking here? I am thinking about signing https://rms-support-letter.github.io/ and currently doing my research to untangle facts from claims. …

---

## [Difference between sum over indexed array or equivalent view on the array](https://discourse.julialang.org/t/difference-between-sum-over-indexed-array-or-equivalent-view-on-the-array/59197)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 1:43pm UTC](https://discourse.julialang.org/t/difference-between-sum-over-indexed-array-or-equivalent-view-on-the-array/59197 "2021-04-13T13:43:25Z")

</div>

The difference is small, but I can’t figure out, why there is any difference and where this uncertainty comes from. The following code creates a Vector of random Float64 and puts randomly NaN into it. It calculates the …

---

## [Change number of workers in make](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177)

<div class="topic-metadata">

**Author:** [@puerco-errante](https://discourse.julialang.org/u/puerco-errante)\
**Replies:** 3\
**Last updated:** [April 13, 2021, 1:40pm UTC](https://discourse.julialang.org/t/change-number-of-workers-in-make/59177 "2021-04-13T13:40:52Z")

</div>

Hi! I’m sorry if this is a very noob question, but I’m not very experienced with make files and I couldn’t find anything in google to help me out. I want to make test but the makefile launches all 8 workers and it ends…

---

## [CompatHelper just one pull request](https://discourse.julialang.org/t/compathelper-just-one-pull-request/59180)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 1:23pm UTC](https://discourse.julialang.org/t/compathelper-just-one-pull-request/59180 "2021-04-13T13:23:31Z")

</div>

Is there a way of having CompatHelper make one pull request for all the packages instead of one for each package. Like this I have to manually resolve merge conflicts for each package? Am I doing something wrong?

---

## [Deploying docs in README.md](https://discourse.julialang.org/t/deploying-docs-in-readme-md/59189)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [April 13, 2021, 1:19pm UTC](https://discourse.julialang.org/t/deploying-docs-in-readme-md/59189 "2021-04-13T13:19:53Z")

</div>

Has anyone experimented with deploying docs using Documenter.jl to a repository’s README.md? While Documenter.makedocs(...) should be able to generate the Markdown from a template, I am wondering how to make this automa…

---

## [Redirect output and error to a file](https://discourse.julialang.org/t/redirect-output-and-error-to-a-file/58908)

<div class="topic-metadata">

**Author:** [@fsantos](https://discourse.julialang.org/u/fsantos)\
**Replies:** 7\
**Last updated:** [April 13, 2021, 12:58pm UTC](https://discourse.julialang.org/t/redirect-output-and-error-to-a-file/58908 "2021-04-13T12:58:08Z")

</div>

Hi, \[Warning: Julia noob here.\] I would like to know how to redirect any output of a given call to a file. I know that the package Suppressor.jl is an interesting entry point and does almost what I need, but for instan…

---

## [LaTeX Autocompletion](https://discourse.julialang.org/t/latex-autocompletion/58300)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 1\
**Last updated:** [April 13, 2021, 12:26pm UTC](https://discourse.julialang.org/t/latex-autocompletion/58300 "2021-04-13T12:26:11Z")

</div>

Hey everyone! I really like the LaTeX autocompletion for Julia. Using unicode symbols helps a lot for readability. However, I also edit .tex files in VSCode and there I would like \\beta to remain \\beta instead of its un…

---

## [\[HELP\] PrettyTables.jl design change](https://discourse.julialang.org/t/help-prettytables-jl-design-change/59065)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 13\
**Last updated:** [April 13, 2021, 12:13pm UTC](https://discourse.julialang.org/t/help-prettytables-jl-design-change/59065 "2021-04-13T12:13:32Z")

</div>

Hi! I am doing some optimization in PrettyTables.jl to reduce the time to print first table (TPFT). The results are very interesting. I will also use this new release to break some things (sorry :smiley:) and I want he…

---

## [How to create convenient single-parametric types with multiple fields](https://discourse.julialang.org/t/how-to-create-convenient-single-parametric-types-with-multiple-fields/59166)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 3\
**Last updated:** [April 13, 2021, 12:02pm UTC](https://discourse.julialang.org/t/how-to-create-convenient-single-parametric-types-with-multiple-fields/59166 "2021-04-13T12:02:42Z")

</div>

Hello everyone! MWE I have a parametric type as follows: struct Foster\_Π{T \<: Number} zero\_zero::Bool H::T ω\_z::Vector{T} ω\_p::Vector{T} end I tried at first having a non-parametric type with everythin…

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

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