# Latest

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

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

**Page:** 1562

---

## [Package/algorithm for barycentric grid interpolation](https://discourse.julialang.org/t/package-algorithm-for-barycentric-grid-interpolation/50803)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 6\
**Last updated:** [November 27, 2020, 3:16pm UTC](https://discourse.julialang.org/t/package-algorithm-for-barycentric-grid-interpolation/50803 "2020-11-27T15:16:35Z")

</div>

I am looking for a package or an algorithm (which I am happy to code into a package and make it available) that expresses a coordinate inside a simplex as a convex combination “near” of points with integer coordinates. F…

---

## [Why does multiple return not work?](https://discourse.julialang.org/t/why-does-multiple-return-not-work/50777)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 16\
**Last updated:** [November 27, 2020, 1:02pm UTC](https://discourse.julialang.org/t/why-does-multiple-return-not-work/50777 "2020-11-27T13:02:33Z")

</div>

Hi all, I am currently playing around with Julia coming from Python. So far I am really thrilled. But today I stumbled over a bug I don’t understand. Given I am very new to Julia I copied the entire code in as I am uns…

---

## [Using Weights from statsbase in Julia, and using an array](https://discourse.julialang.org/t/using-weights-from-statsbase-in-julia-and-using-an-array/50820)

<div class="topic-metadata">

**Author:** [@naturalmechanics](https://discourse.julialang.org/u/naturalmechanics)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 12:34pm UTC](https://discourse.julialang.org/t/using-weights-from-statsbase-in-julia-and-using-an-array/50820 "2020-11-27T12:34:33Z")

</div>

Hi I am new to Julia, and I am trying to play with it a bit. Consider this function: function drawValues(fromDistribution, byCount) #= inputs: fromDistribution : A 2D array Each element is an array with two e…

---

## [Problem creating violin plots](https://discourse.julialang.org/t/problem-creating-violin-plots/41298)

<div class="topic-metadata">

**Author:** [@Joao\_Guassi\_Moreira](https://discourse.julialang.org/u/Joao_Guassi_Moreira)\
**Replies:** 8\
**Last updated:** [November 27, 2020, 12:19pm UTC](https://discourse.julialang.org/t/problem-creating-violin-plots/41298 "2020-11-27T12:19:28Z")

</div>

Hi all, I’m new to Julia and I’m hoping to make some violin plots. I recently had version 1.1.1 downloaded and I found some sample code to create a violin plot using StatsPlots y = rand(100, 4) # Four series of 100 po…

---

## ['using Plots' takes 20 seconds or more](https://discourse.julialang.org/t/using-plots-takes-20-seconds-or-more/7061)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 30\
**Last updated:** [November 27, 2020, 12:17pm UTC](https://discourse.julialang.org/t/using-plots-takes-20-seconds-or-more/7061 "2020-11-27T12:17:39Z")

</div>

I’ve read that calls to using Plots can sometimes be slow but I wonder if as slow as I’m seeing is normal. On 3 trials after starting Julia from the command line I @timed this taking between 35 and 40 seconds. After som…

---

## [Printing Diagnostic Info in Parallel](https://discourse.julialang.org/t/printing-diagnostic-info-in-parallel/47787)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 12:03pm UTC](https://discourse.julialang.org/t/printing-diagnostic-info-in-parallel/47787 "2020-11-27T12:03:20Z")

</div>

If I am using Distributed, is there a way to print diagnostic information from the different workers? I’m thinking of something like this: @everywhere x = rand(); and I would like to be able to print what value of x e…

---

## [Creating package with PkgTemplate: Stuck following video tutorial](https://discourse.julialang.org/t/creating-package-with-pkgtemplate-stuck-following-video-tutorial/41572)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.julialang.org/u/DavidA)\
**Replies:** 3\
**Last updated:** [November 27, 2020, 11:22am UTC](https://discourse.julialang.org/t/creating-package-with-pkgtemplate-stuck-following-video-tutorial/41572 "2020-11-27T11:22:57Z")

</div>

I’m following this video (Developing Julia Packages) and I’m getting stuck when doing using MyExample in my runtests.jl file in the test folder (around 8m30s onwards in the video). I’m using Mac so the file structure is…

---

## [Workflow for local package testing](https://discourse.julialang.org/t/workflow-for-local-package-testing/50854)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 10\
**Last updated:** [November 27, 2020, 11:18am UTC](https://discourse.julialang.org/t/workflow-for-local-package-testing/50854 "2020-11-27T11:18:52Z")

</div>

Hi, I am currently developping a package, and in the same time making tests with it on a separate juno project (so I have two atom windows open : one for the package and hte other one the the projects where i test the f…

---

## [Reading Parquet file into Apache Arrow?](https://discourse.julialang.org/t/reading-parquet-file-into-apache-arrow/50851)

<div class="topic-metadata">

**Author:** [@s-kap](https://discourse.julialang.org/u/s-kap)\
**Replies:** 5\
**Last updated:** [November 27, 2020, 11:17am UTC](https://discourse.julialang.org/t/reading-parquet-file-into-apache-arrow/50851 "2020-11-27T11:17:18Z")

</div>

Hey hey, what’s the easiest way to read a parquet file into an apache arrow dataset? In python one can simply do pyarrow.parquet.read\_table(..). I know Parquet.jl and Arrow.jl exist, but I haven’t found a way to make the…

---

## [Problems overloading setindex!()](https://discourse.julialang.org/t/problems-overloading-setindex/50852)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 11:15am UTC](https://discourse.julialang.org/t/problems-overloading-setindex/50852 "2020-11-27T11:15:49Z")

</div>

Hi, I’m running into obstacles trying to overload setindex!() for a dict wrapper type. I’m probably missing something obvious here but I can’t figure out what exactly. I’m getting an error when adding a Consumable whic…

---

## [How to replace multiple values in an large array with the occurrence of the value?](https://discourse.julialang.org/t/how-to-replace-multiple-values-in-an-large-array-with-the-occurrence-of-the-value/50741)

<div class="topic-metadata">

**Author:** [@Bjorn\_De](https://discourse.julialang.org/u/Bjorn_De)\
**Replies:** 10\
**Last updated:** [November 27, 2020, 11:07am UTC](https://discourse.julialang.org/t/how-to-replace-multiple-values-in-an-large-array-with-the-occurrence-of-the-value/50741 "2020-11-27T11:07:27Z")

</div>

Hi! I have an array and I want to create a new array (or replace the values) with the occurrences of the values from the input array. For example: using StatsBase blobs 10×10 Array{Int64,2}: 1 1 0 2 0 2 0 2 0…

---

## [IterativeSolvers and Positive Definite Matrices](https://discourse.julialang.org/t/iterativesolvers-and-positive-definite-matrices/50292)

<div class="topic-metadata">

**Author:** [@Jonas](https://discourse.julialang.org/u/Jonas)\
**Replies:** 18\
**Last updated:** [November 27, 2020, 9:36am UTC](https://discourse.julialang.org/t/iterativesolvers-and-positive-definite-matrices/50292 "2020-11-27T09:36:24Z")

</div>

Hello dear Julia Users, In order to calculate eigenvalues and vectors I am currently using the package IterativeSolvers, but I often get the error that my input matrices are not positive definite. My code is like this: …

---

## [Convert Array{UInt32, 2} to ARGB image with Images.jl](https://discourse.julialang.org/t/convert-array-uint32-2-to-argb-image-with-images-jl/50822)

<div class="topic-metadata">

**Author:** [@wrgr](https://discourse.julialang.org/u/wrgr)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 7:53am UTC](https://discourse.julialang.org/t/convert-array-uint32-2-to-argb-image-with-images-jl/50822 "2020-11-27T07:53:05Z")

</div>

How to convert Array{UInt32, 2} to ARGB image with Images.jl?

---

## [How to make a particular NTuple based Type concrete](https://discourse.julialang.org/t/how-to-make-a-particular-ntuple-based-type-concrete/50846)

<div class="topic-metadata">

**Author:** [@malacroi](https://discourse.julialang.org/u/malacroi)\
**Replies:** 3\
**Last updated:** [November 27, 2020, 6:27am UTC](https://discourse.julialang.org/t/how-to-make-a-particular-ntuple-based-type-concrete/50846 "2020-11-27T06:27:47Z")

</div>

I have a struct representing the remainders of an integer with respect to several moduli. All of the moduli fit into Int64 except for 2^64, so every modulus is either an Int64 or Type{Int64}. struct LooseGoose{N} …

---

## [Unable to Download Jupyter Notebook](https://discourse.julialang.org/t/unable-to-download-jupyter-notebook/50845)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 3:22am UTC](https://discourse.julialang.org/t/unable-to-download-jupyter-notebook/50845 "2020-11-27T03:22:03Z")

</div>

I posted before about not being able to export a Jupyter notebook, to another format, such as pdf, and getting an error about nbconvert not working right. Apparently, when I try to download a notebook from Jupyter noteb…

---

## [All workers not have access to a sharedarray](https://discourse.julialang.org/t/all-workers-not-have-access-to-a-sharedarray/50834)

<div class="topic-metadata">

**Author:** [@ankit13](https://discourse.julialang.org/u/ankit13)\
**Replies:** 3\
**Last updated:** [November 26, 2020, 10:24pm UTC](https://discourse.julialang.org/t/all-workers-not-have-access-to-a-sharedarray/50834 "2020-11-26T22:24:26Z")

</div>

Hi, I get an error that x is not defined on worker 2/others when I run this. using Distributed addprocs(4) @everywhere using SharedArrays x = zero( SharedArray{Float64}( 10 ) ); @everywhere println( x\[2\] ) What is …

---

## [Redefining structs without restart?](https://discourse.julialang.org/t/redefining-structs-without-restart/50826)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 53\
**Last updated:** [November 26, 2020, 9:14pm UTC](https://discourse.julialang.org/t/redefining-structs-without-restart/50826 "2020-11-26T21:14:11Z")

</div>

One reason is that we don’t keep backedges to type constructors, and consequently Julia doesn’t know what code it needs to invalidate if you change a type definition. There’s good reason to avoid backedges for type cons…

---

## [Generate package code: string processing or metaprogramming?](https://discourse.julialang.org/t/generate-package-code-string-processing-or-metaprogramming/50778)

<div class="topic-metadata">

**Author:** [@serenity4](https://discourse.julialang.org/u/serenity4)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 8:08pm UTC](https://discourse.julialang.org/t/generate-package-code-string-processing-or-metaprogramming/50778 "2020-11-26T20:08:17Z")

</div>

Hi, I am wrapping a low-level API generated with Clang.jl, and generate source code (with some string processing) to programmatically create the wrapper code (around 30k lines of Julia code, it’s a big library). I am wo…

---

## [Fft() function does not return the correct analytic result](https://discourse.julialang.org/t/fft-function-does-not-return-the-correct-analytic-result/50644)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 5\
**Last updated:** [November 26, 2020, 7:21pm UTC](https://discourse.julialang.org/t/fft-function-does-not-return-the-correct-analytic-result/50644 "2020-11-26T19:21:58Z")

</div>

Hello, currently I’m having issues understanding how to perform with success a Fourier Transformation using the fft() function of the fftw.jl package. Let’s pick the step function: using FFTW, Plots x = range(-5,stop=5…

---

## [Should I still be using JSON.jl?](https://discourse.julialang.org/t/should-i-still-be-using-json-jl/50809)

<div class="topic-metadata">

**Author:** [@DataPsycho](https://discourse.julialang.org/u/DataPsycho)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 2:38pm UTC](https://discourse.julialang.org/t/should-i-still-be-using-json-jl/50809 "2020-11-26T14:38:49Z")

</div>

Hi, I was exploring the HTTP.jl example docs (Section: Interfacing with RESTful JSON APIs) and and can see for JSON data example everything is written with JSON.jl or JSON2.jl. But from one of the webinar by Julia Compu…

---

## [Command line parser](https://discourse.julialang.org/t/command-line-parser/50814)

<div class="topic-metadata">

**Author:** [@mmpagani](https://discourse.julialang.org/u/mmpagani)\
**Replies:** 0\
**Last updated:** [November 26, 2020, 1:15pm UTC](https://discourse.julialang.org/t/command-line-parser/50814 "2020-11-26T13:15:12Z")

</div>

Hi Everyone, Based on your experience, could you pls suggest the best command line parser package for Julia? Thanks for sharing. Marco

---

## [Loop slows things down drastically](https://discourse.julialang.org/t/loop-slows-things-down-drastically/50761)

<div class="topic-metadata">

**Author:** [@mlhetland](https://discourse.julialang.org/u/mlhetland)\
**Replies:** 5\
**Last updated:** [November 26, 2020, 1:14pm UTC](https://discourse.julialang.org/t/loop-slows-things-down-drastically/50761 "2020-11-26T13:14:39Z")

</div>

OK, this’ll be a bit vague, as I’m working on some unpublished code, but maybe someone can still spot what’s going on… I have a testset that looks something like thus: @testset begin x = Something() # various f…

---

## [Using gradients from struct with Zygote](https://discourse.julialang.org/t/using-gradients-from-struct-with-zygote/50766)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 12:35pm UTC](https://discourse.julialang.org/t/using-gradients-from-struct-with-zygote/50766 "2020-11-26T12:35:15Z")

</div>

Hi! Let’s say I have some nested struct (in my case the nesting is arbitrarily complicated) struct Foo a::Vector end struct Bar b::Foo c::Float64 end c = Bar(Foo(\[2.0\]), 1.0) When using g = Zygote.gradient(c) do x …

---

## [I can't get to the "end of inflation" with DifferentialEquations.jl](https://discourse.julialang.org/t/i-cant-get-to-the-end-of-inflation-with-differentialequations-jl/50697)

<div class="topic-metadata">

**Author:** [@MrSantiagoPrado](https://discourse.julialang.org/u/MrSantiagoPrado)\
**Replies:** 20\
**Last updated:** [November 26, 2020, 12:19pm UTC](https://discourse.julialang.org/t/i-cant-get-to-the-end-of-inflation-with-differentialequations-jl/50697 "2020-11-26T12:19:00Z")

</div>

Hello all, I’ve been struggling to get the full solution to a set of ODE’s that describe an inflationary cosmology, where the equations, the value of the constants and the initial values are given below on the code. In t…

---

## [Biostructures.jl and md trajectory files](https://discourse.julialang.org/t/biostructures-jl-and-md-trajectory-files/50789)

<div class="topic-metadata">

**Author:** [@bharland](https://discourse.julialang.org/u/bharland)\
**Replies:** 3\
**Last updated:** [November 26, 2020, 11:59am UTC](https://discourse.julialang.org/t/biostructures-jl-and-md-trajectory-files/50789 "2020-11-26T11:59:01Z")

</div>

I’m wondering how horrendous it would be to include parsing of popular trajectory files, so I had a look at how MDTraj did it with (e.g.) the xtc format. A layer of python, then cython and then a set of c files adapted …

---

## [Can I overload \[\]?](https://discourse.julialang.org/t/can-i-overload/50632)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 10:58am UTC](https://discourse.julialang.org/t/can-i-overload/50632 "2020-11-26T10:58:02Z")

</div>

Hi, I’m wondering whether I can overload . I’m wrapping a Dict{type::UUID, Vector{Element}} in another type (MyType) in order to make sure all elements are stored under the correct key via a put(mt::MyType, e::Element) …

---

## [Julia DifferentialEquations for state-to-state binary mixture kinetics](https://discourse.julialang.org/t/julia-differentialequations-for-state-to-state-binary-mixture-kinetics/50807)

<div class="topic-metadata">

**Author:** [@lkampoli](https://discourse.julialang.org/u/lkampoli)\
**Replies:** 1\
**Last updated:** [November 26, 2020, 10:41am UTC](https://discourse.julialang.org/t/julia-differentialequations-for-state-to-state-binary-mixture-kinetics/50807 "2020-11-26T10:41:29Z")

</div>

Hello, I’m quite new to Julia and I’m considering the following problem. I’d like to solve the (possible stiff) ODE system which describes the relaxation of a flow behind a shock wave according to a state-to-state approa…

---

## [Have no idea how to train neural networks using sampled data from distributions](https://discourse.julialang.org/t/have-no-idea-how-to-train-neural-networks-using-sampled-data-from-distributions/50799)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 10:15am UTC](https://discourse.julialang.org/t/have-no-idea-how-to-train-neural-networks-using-sampled-data-from-distributions/50799 "2020-11-26T10:15:24Z")

</div>

Hi, I’m struggling with the use of Flux.jl with sampled data from distributions. For example, I’m trying to train my model as the following steps: step 1) construct an NN model module Agents using Flux export MLPAge…

---

## [CUDA.jl : Is the Surface Object available?](https://discourse.julialang.org/t/cuda-jl-is-the-surface-object-available/50796)

<div class="topic-metadata">

**Author:** [@kemu](https://discourse.julialang.org/u/kemu)\
**Replies:** 3\
**Last updated:** [November 26, 2020, 9:26am UTC](https://discourse.julialang.org/t/cuda-jl-is-the-surface-object-available/50796 "2020-11-26T09:26:53Z")

</div>

I’m investigating porting from python/pycuda to julia/CUDA.jl. Pycuda supports Texture / Surface Reference API, so we can read the data with interpolation through a texture reference, and write data through a surface re…

---

## [Annotating Types: Best practice for beginners](https://discourse.julialang.org/t/annotating-types-best-practice-for-beginners/50521)

<div class="topic-metadata">

**Author:** [@s0916314](https://discourse.julialang.org/u/s0916314)\
**Replies:** 10\
**Last updated:** [November 26, 2020, 9:16am UTC](https://discourse.julialang.org/t/annotating-types-best-practice-for-beginners/50521 "2020-11-26T09:16:33Z")

</div>

As a beginner I’m slightly unsure of when I should be annotating my code with types. I’ve read the section on types in the Julia manual and I’m happy with the basics (type hierarchy, parametric types, avoiding abstract t…

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

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