# Latest

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

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

**Page:** 1580

---

## [GtkBuilder](https://discourse.julialang.org/t/gtkbuilder/49749)

<div class="topic-metadata">

**Author:** [@trodger88](https://discourse.julialang.org/u/trodger88)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 6:53pm UTC](https://discourse.julialang.org/t/gtkbuilder/49749 "2020-11-08T18:53:36Z")

</div>

I am trying to run the GtkBuilder example from Gtk.jl ’ using Gtk using GtkBuilder f=Gtk.GtkFrame(“Adding Customer”) b = b=GtkBuilder(filename=“part1.glade”) win = b\[“part1.glade”\] showall(win) ’ I am getting the…

---

## [Nested if statements better formulation](https://discourse.julialang.org/t/nested-if-statements-better-formulation/49715)

<div class="topic-metadata">

**Author:** [@optimist](https://discourse.julialang.org/u/optimist)\
**Replies:** 12\
**Last updated:** [November 8, 2020, 6:51pm UTC](https://discourse.julialang.org/t/nested-if-statements-better-formulation/49715 "2020-11-08T18:51:09Z")

</div>

Hello, I have written a piece of code that makes use of some conditional statements, but I feel like I am using too many nested if statements. Most of these conditional statements are simply changing the bounded interval…

---

## [GeoStatsTutorials now in Pluto.jl!](https://discourse.julialang.org/t/geostatstutorials-now-in-pluto-jl/49792)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 5:29pm UTC](https://discourse.julialang.org/t/geostatstutorials-now-in-pluto-jl/49792 "2020-11-08T17:29:44Z")

</div>

I would like to publicly thank Nitish Gadangi for his work migrating the GeoStatsTutorials to Pluto.jl! :balloon: They look so much nicer and interactive now! Also, thanks to the MLH fellowship organizers for bringing a…

---

## [Julia 1.5.2 Distributed seeking workaround](https://discourse.julialang.org/t/julia-1-5-2-distributed-seeking-workaround/49757)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 2:57pm UTC](https://discourse.julialang.org/t/julia-1-5-2-distributed-seeking-workaround/49757 "2020-11-08T14:57:25Z")

</div>

On macOS Julia 1.5.2. I am trying to run addprocs where the remote machine is linux. I get the following error: sh: 1: cd: can’t cd to /Users/ Apparently, something on the remote is trying to cd to the same path as my…

---

## [How to elegantly express the same operation for permutations of x, y and z?](https://discourse.julialang.org/t/how-to-elegantly-express-the-same-operation-for-permutations-of-x-y-and-z/49728)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 9\
**Last updated:** [November 8, 2020, 1:31pm UTC](https://discourse.julialang.org/t/how-to-elegantly-express-the-same-operation-for-permutations-of-x-y-and-z/49728 "2020-11-08T13:31:38Z")

</div>

This is a situation I face very often: I have the same operation that needs to be run once for each dimension of a 3D construct. This is complicated because the order of indices differs for each variant, and I don’t kno…

---

## [Loop and argument spacing style](https://discourse.julialang.org/t/loop-and-argument-spacing-style/49689)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 12:54pm UTC](https://discourse.julialang.org/t/loop-and-argument-spacing-style/49689 "2020-11-08T12:54:04Z")

</div>

I have some stylistic preferences listed below. I am wondering which I can keep using, and which I should change to conform to the community. I used the “Format Document” option in VSCode, and it made some choices that…

---

## [ProfileView Installation = ERROR: Unsatisfiable requirements detected for package WinRPM \[c17dfb99\]:](https://discourse.julialang.org/t/profileview-installation-error-unsatisfiable-requirements-detected-for-package-winrpm-c17dfb99/49743)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 12:34pm UTC](https://discourse.julialang.org/t/profileview-installation-error-unsatisfiable-requirements-detected-for-package-winrpm-c17dfb99/49743 "2020-11-08T12:34:05Z")

</div>

This happens on both of my Macs… One using Catalina, the other Mojave. Thanks for any advice. julia\> import Pkg; Pkg.add(“ProfileView”) Resolving package versions… ERROR: Unsatisfiable requirements detected for packa…

---

## [How to write @memoize that works in both local and global scope](https://discourse.julialang.org/t/how-to-write-memoize-that-works-in-both-local-and-global-scope/49727)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 6\
**Last updated:** [November 8, 2020, 7:51am UTC](https://discourse.julialang.org/t/how-to-write-memoize-that-works-in-both-local-and-global-scope/49727 "2020-11-08T07:51:23Z")

</div>

Let’s write a @memoize f(x) = ... macro in Julia. Glossing over gensyms etc. it can just macroexpand into memo = Dict() f(x) = get(memo, x) do ... end At the global scope memo will be a slow global variable, so let’s i…

---

## [How to sum every element but one](https://discourse.julialang.org/t/how-to-sum-every-element-but-one/49771)

<div class="topic-metadata">

**Author:** [@carlos](https://discourse.julialang.org/u/carlos)\
**Replies:** 7\
**Last updated:** [November 8, 2020, 11:16am UTC](https://discourse.julialang.org/t/how-to-sum-every-element-but-one/49771 "2020-11-08T11:16:59Z")

</div>

I want to sum every element of x\[i\] except when i = j. For example: j=10 I = 1:30 sum(x\[i\] for i in I) #here I want to sum every element but j.

---

## [PyTorch DataLoader equivalent for training large models with Flux](https://discourse.julialang.org/t/pytorch-dataloader-equivalent-for-training-large-models-with-flux/30763)

<div class="topic-metadata">

**Author:** [@holylorenzo](https://discourse.julialang.org/u/holylorenzo)\
**Replies:** 16\
**Last updated:** [November 8, 2020, 8:58am UTC](https://discourse.julialang.org/t/pytorch-dataloader-equivalent-for-training-large-models-with-flux/30763 "2020-11-08T08:58:03Z")

</div>

I’m trying to train a large computer vision model I built in Flux. Unfortunately the dataset does not fit into memory. Does something similar to PyTorch’s DataLoader exist as a Julia package? Is there an ongoing effort …

---

## [First impression of DataFrames.jl](https://discourse.julialang.org/t/first-impression-of-dataframes-jl/49753)

<div class="topic-metadata">

**Author:** [@digitalpig](https://discourse.julialang.org/u/digitalpig)\
**Replies:** 4\
**Last updated:** [November 8, 2020, 7:22am UTC](https://discourse.julialang.org/t/first-impression-of-dataframes-jl/49753 "2020-11-08T07:22:05Z")

</div>

Hi, Trying to step into Julia these days, so far so good. Really excited about the multiple dispatching and type hint. Got a few questions regarding DataFrames. Currently I am using the prostate cancer dataset from her…

---

## [Parsing arrays directly from text file](https://discourse.julialang.org/t/parsing-arrays-directly-from-text-file/49766)

<div class="topic-metadata">

**Author:** [@h2ster](https://discourse.julialang.org/u/h2ster)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 3:19am UTC](https://discourse.julialang.org/t/parsing-arrays-directly-from-text-file/49766 "2020-11-08T03:19:13Z")

</div>

I’m currently working on a project where one of the functions generates a large amount of data and returns it as an vector, where each element of the vector is itself a vector with various levels of nesting. I use this d…

---

## [Issues Building RCall atom](https://discourse.julialang.org/t/issues-building-rcall-atom/49714)

<div class="topic-metadata">

**Author:** [@atparedes](https://discourse.julialang.org/u/atparedes)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 2:58am UTC](https://discourse.julialang.org/t/issues-building-rcall-atom/49714 "2020-11-08T02:58:07Z")

</div>

New to Julia: I need to use R in Julia to run several simulation studies, and I am having problems using RCall. I want to use R to sample from a skew-normal distribution. Here is the massage - which hopefully it is clear…

---

## [Install Plots: ERROR: KeyError: key "Zlib\_jll" not found](https://discourse.julialang.org/t/install-plots-error-keyerror-key-zlib-jll-not-found/45869)

<div class="topic-metadata">

**Author:** [@Obtuya7](https://discourse.julialang.org/u/Obtuya7)\
**Replies:** 10\
**Last updated:** [November 8, 2020, 1:51am UTC](https://discourse.julialang.org/t/install-plots-error-keyerror-key-zlib-jll-not-found/45869 "2020-11-08T01:51:20Z")

</div>

Fresh install and fresh active project… (Julia) pkg\> add Plots Resolving package versions… ERROR: KeyError: key “Zlib\_jll” not found Any Ideas?

---

## [Get the Nth element of all vectors inside an array of vectors](https://discourse.julialang.org/t/get-the-nth-element-of-all-vectors-inside-an-array-of-vectors/49742)

<div class="topic-metadata">

**Author:** [@GHRALIMA](https://discourse.julialang.org/u/GHRALIMA)\
**Replies:** 5\
**Last updated:** [November 7, 2020, 11:54pm UTC](https://discourse.julialang.org/t/get-the-nth-element-of-all-vectors-inside-an-array-of-vectors/49742 "2020-11-07T23:54:05Z")

</div>

I have a vector of vectors like: a = \[\[1,2,3\],\[4,5,6\],\[7,8,9\]\] When I want the first element of the first vector inside the vector, I simply use: a\[1\]\[1\] But when I try to get the first element of all the vector usin…

---

## [Declare two exceptions in an equation](https://discourse.julialang.org/t/declare-two-exceptions-in-an-equation/49755)

<div class="topic-metadata">

**Author:** [@carlos](https://discourse.julialang.org/u/carlos)\
**Replies:** 4\
**Last updated:** [November 7, 2020, 10:54pm UTC](https://discourse.julialang.org/t/declare-two-exceptions-in-an-equation/49755 "2020-11-07T22:54:40Z")

</div>

Hi, I’m trying to declare two exceptions in the following equation but it doesn’t work like this: e52\[i=1:29,k=1:29;i != L,k != L\], -lambdaVI\[i\] \<= M\*BCC\[i,k\]

---

## [How to fit a Dirichlet Distribution using MLE in Distributions.jl?](https://discourse.julialang.org/t/how-to-fit-a-dirichlet-distribution-using-mle-in-distributions-jl/49645)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 6\
**Last updated:** [November 7, 2020, 9:53pm UTC](https://discourse.julialang.org/t/how-to-fit-a-dirichlet-distribution-using-mle-in-distributions-jl/49645 "2020-11-07T21:53:35Z")

</div>

I would like to fit Dirichlet Distribution to all\_patterns using MLE in the Distributions package where alpha to Dirichlet is fill(1,k) and all\_patterns is a combination array all\_patterns = (p=(a,c)-\>c\<2 ? a : \[…

---

## [What's the accepted way to ensure same integer behavior between 32-bit and 64-bit Julia?](https://discourse.julialang.org/t/whats-the-accepted-way-to-ensure-same-integer-behavior-between-32-bit-and-64-bit-julia/49564)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 20\
**Last updated:** [November 7, 2020, 8:32pm UTC](https://discourse.julialang.org/t/whats-the-accepted-way-to-ensure-same-integer-behavior-between-32-bit-and-64-bit-julia/49564 "2020-11-07T20:32:20Z")

</div>

So far I’ve been writing things assuming 64-bit Julia. How do I ensure that integers work the same for 32-bit Julia, and is there a quick way to edit integer literals in existing code to do that? As an aside, why is the…

---

## [Effect of Column Major Storage on Multiplication](https://discourse.julialang.org/t/effect-of-column-major-storage-on-multiplication/49722)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 3\
**Last updated:** [November 7, 2020, 8:19pm UTC](https://discourse.julialang.org/t/effect-of-column-major-storage-on-multiplication/49722 "2020-11-07T20:19:43Z")

</div>

Hello, I am multiplying a square matrix with a vector. I thought A '\* x would be faster than A \* x as the former is inner-product of x with columns of A, which are stored contiguously in Julia. As opposed to the latter …

---

## [Writing only a header with CSV.jl](https://discourse.julialang.org/t/writing-only-a-header-with-csv-jl/49746)

<div class="topic-metadata">

**Author:** [@andferrari](https://discourse.julialang.org/u/andferrari)\
**Replies:** 2\
**Last updated:** [November 7, 2020, 6:26pm UTC](https://discourse.julialang.org/t/writing-only-a-header-with-csv-jl/49746 "2020-11-07T18:26:44Z")

</div>

I am writing a csv file appending arrays with CSV.write(...;append=true). How can I write the header before I start to iterate? I have tried to create an empty table without success.

---

## [Modify array of functions in a mutable struct](https://discourse.julialang.org/t/modify-array-of-functions-in-a-mutable-struct/49748)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 6\
**Last updated:** [November 7, 2020, 5:52pm UTC](https://discourse.julialang.org/t/modify-array-of-functions-in-a-mutable-struct/49748 "2020-11-07T17:52:53Z")

</div>

I am trying to create a struct that contains functions, which will be used to construct a set of differential equations. The complication is that I want to be able to modify the struct’s functions after evaluating the so…

---

## [Julia Equivalent of R's Flexdashboards - Project Idea](https://discourse.julialang.org/t/julia-equivalent-of-rs-flexdashboards-project-idea/33652)

<div class="topic-metadata">

**Author:** [@phillc](https://discourse.julialang.org/u/phillc)\
**Replies:** 6\
**Last updated:** [November 7, 2020, 5:49pm UTC](https://discourse.julialang.org/t/julia-equivalent-of-rs-flexdashboards-project-idea/33652 "2020-11-07T17:49:55Z")

</div>

I’d really like to use a product with Julia which is somewhat equivalent to R’s Flexdashboards. I’m aware of the excellent Dashboards.jl project, using Plotly’s Dash as the engine, which may ultimately suit my needs, bu…

---

## [JuMP @constraint - "begin end" block not working](https://discourse.julialang.org/t/jump-constraint-begin-end-block-not-working/49734)

<div class="topic-metadata">

**Author:** [@shashankchahar](https://discourse.julialang.org/u/shashankchahar)\
**Replies:** 2\
**Last updated:** [November 7, 2020, 5:14pm UTC](https://discourse.julialang.org/t/jump-constraint-begin-end-block-not-working/49734 "2020-11-07T17:14:54Z")

</div>

Hi, I am trying to set some constraints in JuMP within Pluto. If I specify each constraint on a separate line then I don’t get an error message but if I try to put all the constraints in a begin-end block then Pluto giv…

---

## [Voila with WebIO.jl](https://discourse.julialang.org/t/voila-with-webio-jl/49747)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 5:02pm UTC](https://discourse.julialang.org/t/voila-with-webio-jl/49747 "2020-11-07T17:02:01Z")

</div>

Has anybody gotten Voila to work with WebIO? If so, what’s the trick?

---

## [Display array as image in Pluto](https://discourse.julialang.org/t/display-array-as-image-in-pluto/48732)

<div class="topic-metadata">

**Author:** [@dahnielson](https://discourse.julialang.org/u/dahnielson)\
**Replies:** 8\
**Last updated:** [November 7, 2020, 4:33pm UTC](https://discourse.julialang.org/t/display-array-as-image-in-pluto/48732 "2020-11-07T16:33:20Z")

</div>

I’m pretty new to Julia and Pluto so this is my first stumbling block. How do I display an array as an image in Pluto? Say I have an 8x8 array of Float64 that I want to display as a gray scale image. The JuliaImages doc…

---

## [How to load custom image dataset](https://discourse.julialang.org/t/how-to-load-custom-image-dataset/49739)

<div class="topic-metadata">

**Author:** [@Pranay\_Pokala](https://discourse.julialang.org/u/Pranay_Pokala)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 3:22pm UTC](https://discourse.julialang.org/t/how-to-load-custom-image-dataset/49739 "2020-11-07T15:22:18Z")

</div>

I am trying to do image classification. I got data containing two folders train and test. In train there are two folders and test we have two folder which are classes . How to get the data and do image classification.

---

## [Julia Beginner Ask Us Anything live on YouTube Saturday November 7th at 4PM UTC](https://discourse.julialang.org/t/julia-beginner-ask-us-anything-live-on-youtube-saturday-november-7th-at-4pm-utc/49717)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 1:39am UTC](https://discourse.julialang.org/t/julia-beginner-ask-us-anything-live-on-youtube-saturday-november-7th-at-4pm-utc/49717 "2020-11-07T01:39:38Z")

</div>

Hey all, join us this Saturday for our first ever: “Julia Beginner Ask Us Anything” live on YouTube: https://youtu.be/\_JlZFy7QFuw We will have @nassarhuda, @mbesancon, and @SaschaMann answering questions! Looking forwa…

---

## [Calling C vs Embedding Julia (C code)](https://discourse.julialang.org/t/calling-c-vs-embedding-julia-c-code/49599)

<div class="topic-metadata">

**Author:** [@eduardovrs](https://discourse.julialang.org/u/eduardovrs)\
**Replies:** 4\
**Last updated:** [November 7, 2020, 1:24pm UTC](https://discourse.julialang.org/t/calling-c-vs-embedding-julia-c-code/49599 "2020-11-07T13:24:22Z")

</div>

Calling C vs Embedding Julia in C code Hello World, I am new to Julia, and at the moment I am doing some research about the possibilities of combining an existing C code with new Julia functions. At the moment I have …

---

## [Julia libdl\_find\_library in cluster](https://discourse.julialang.org/t/julia-libdl-find-library-in-cluster/49700)

<div class="topic-metadata">

**Author:** [@j\_tanu](https://discourse.julialang.org/u/j_tanu)\
**Replies:** 15\
**Last updated:** [November 7, 2020, 11:48am UTC](https://discourse.julialang.org/t/julia-libdl-find-library-in-cluster/49700 "2020-11-07T11:48:11Z")

</div>

Hi I am trying to run the Julia in my university cluster In the cluster, Julia is not installed as a module so I am running the .jl file by giving the exact location of the Julia executable. As of now, My code was singl…

---

## [Parsing of file fails in CSV.jl in Julia 1.6 but not 1.5](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 3\
**Last updated:** [November 7, 2020, 7:35am UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710 "2020-11-07T07:35:58Z")

</div>

Not sure where to put this, whether this is too early to submit and what this actually is but the following CSV file ObjectId,IdBundesland,Bundesland,Landkreis,Altersgruppe,Geschlecht,AnzahlFall,AnzahlTodesfall,Meldedat…

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

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