# Latest

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

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

**Page:** 1441

---

## [How can I feed sequences of different lengths though a RNN and still have it be differentiable in Flux? (Minimal example included)](https://discourse.julialang.org/t/how-can-i-feed-sequences-of-different-lengths-though-a-rnn-and-still-have-it-be-differentiable-in-flux-minimal-example-included/58340)

<div class="topic-metadata">

**Author:** [@DevJac](https://discourse.julialang.org/u/DevJac)\
**Replies:** 0\
**Last updated:** [April 1, 2021, 3:05am UTC](https://discourse.julialang.org/t/how-can-i-feed-sequences-of-different-lengths-though-a-rnn-and-still-have-it-be-differentiable-in-flux-minimal-example-included/58340 "2021-04-01T03:05:34Z")

</div>

I have several matrices of several different lengths. I want to feed these matrices though a RNN using Flux, however, I haven’t been able to do so. Everything I’ve tried either uses a lot of memory during the backward pa…

---

## [Dpylr do equivalent in query.jl standalone syntax?](https://discourse.julialang.org/t/dpylr-do-equivalent-in-query-jl-standalone-syntax/24745)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 10\
**Last updated:** [March 31, 2021, 11:34pm UTC](https://discourse.julialang.org/t/dpylr-do-equivalent-in-query-jl-standalone-syntax/24745 "2021-03-31T23:34:23Z")

</div>

I love Query.jl’s standalone syntax, but I’m having trouble with finding something comparable to dplyr’s do syntax. Essentially a lot of what I need to do is compute an average/median/whatever of a group and then normali…

---

## [DArray in Dagger vs DistributedArrays](https://discourse.julialang.org/t/darray-in-dagger-vs-distributedarrays/58330)

<div class="topic-metadata">

**Author:** [@nucklass](https://discourse.julialang.org/u/nucklass)\
**Replies:** 0\
**Last updated:** [March 31, 2021, 9:23pm UTC](https://discourse.julialang.org/t/darray-in-dagger-vs-distributedarrays/58330 "2021-03-31T21:23:50Z")

</div>

Hi all, Was looking over some options for making a project of mine run in parallel and happened to notice both Dagger and DistributedArrays export a DArray type. Anyone have any insights as to the difference between the…

---

## [How to find the arguments of a function in a package](https://discourse.julialang.org/t/how-to-find-the-arguments-of-a-function-in-a-package/58219)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 9:13pm UTC](https://discourse.julialang.org/t/how-to-find-the-arguments-of-a-function-in-a-package/58219 "2021-03-31T21:13:53Z")

</div>

I want to use the function scatter. I know that this function belongs to the package Plots or StatsPlots. I am not sure. How do I know the package where scatter is defined? How to find the arguments of scatter? Is it p…

---

## [Robust heuristic for binding SOC without exact solution](https://discourse.julialang.org/t/robust-heuristic-for-binding-soc-without-exact-solution/58321)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 8:56pm UTC](https://discourse.julialang.org/t/robust-heuristic-for-binding-soc-without-exact-solution/58321 "2021-03-31T20:56:21Z")

</div>

I’m solving a large number of LPs with a single second-order cone constraint. For each of these problems, I want to check, if the SOC is binding. To keep the run-time short, I do not want to obtain an exact solution or c…

---

## [Determine sysimage used at runtime](https://discourse.julialang.org/t/determine-sysimage-used-at-runtime/58329)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 8:42pm UTC](https://discourse.julialang.org/t/determine-sysimage-used-at-runtime/58329 "2021-03-31T20:42:42Z")

</div>

How does one determine what sysimage was used to start Julia? I know I’ve seen how to do this somewhere but can’t for the life of me find it in the docs or searching online.

---

## [Plots histogram2d not displaying correct number of bins](https://discourse.julialang.org/t/plots-histogram2d-not-displaying-correct-number-of-bins/58328)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 4\
**Last updated:** [March 31, 2021, 8:28pm UTC](https://discourse.julialang.org/t/plots-histogram2d-not-displaying-correct-number-of-bins/58328 "2021-03-31T20:28:36Z")

</div>

Hi Guys :slightly\_smiling\_face: I’m trying to plot a 2D histogram using the plots function histogram2D. \[backend: plotlyjs, environment: VSCode\] My aim is to plot the 2D histogram for different numbers of bins (\*same …

---

## [Using Plots for the first time](https://discourse.julialang.org/t/using-plots-for-the-first-time/58289)

<div class="topic-metadata">

**Author:** [@erlebach1](https://discourse.julialang.org/u/erlebach1)\
**Replies:** 7\
**Last updated:** [March 31, 2021, 8:25pm UTC](https://discourse.julialang.org/t/using-plots-for-the-first-time/58289 "2021-03-31T20:25:14Z")

</div>

I just installed Julia 1.6 and noted the much faster compile times. Thanks! When executing using Plots for the first time, Julia when through a whole series of compiling steps. Here is a small piece of what scrolled by: …

---

## [Cannot use modules in Jupyter-lab with Julia 1.6](https://discourse.julialang.org/t/cannot-use-modules-in-jupyter-lab-with-julia-1-6/58291)

<div class="topic-metadata">

**Author:** [@erlebach1](https://discourse.julialang.org/u/erlebach1)\
**Replies:** 5\
**Last updated:** [March 31, 2021, 8:24pm UTC](https://discourse.julialang.org/t/cannot-use-modules-in-jupyter-lab-with-julia-1-6/58291 "2021-03-31T20:24:26Z")

</div>

Hi, I installed Julia 1.6, and it runs perfectly with several packages. I then ran Jupyter-lab, and tried using Plots in a Julia 1.6 environment. Jupyter-lab then tried to compile Plots. Why would it do that since it …

---

## [ANN: Firestore.jl](https://discourse.julialang.org/t/ann-firestore-jl/58182)

<div class="topic-metadata">

**Author:** [@joshday](https://discourse.julialang.org/u/joshday)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 7:30pm UTC](https://discourse.julialang.org/t/ann-firestore-jl/58182 "2021-03-31T19:30:12Z")

</div>

Hi everyone! I put together a Firestore.jl for reading/writing documents from Google Firestore. Given their free quotas (https://cloud.google.com/firestore/pricing), for personal use you basically get your own lightwei…

---

## [Live docs on Jupyter notebooks](https://discourse.julialang.org/t/live-docs-on-jupyter-notebooks/58317)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 0\
**Last updated:** [March 31, 2021, 5:28pm UTC](https://discourse.julialang.org/t/live-docs-on-jupyter-notebooks/58317 "2021-03-31T17:28:29Z")

</div>

Is there something similar to Pluto Live docs on Jupyter for Julia? Or in Vscode?

---

## [Jupyter/pluto version of Processing](https://discourse.julialang.org/t/jupyter-pluto-version-of-processing/57654)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 13\
**Last updated:** [March 31, 2021, 5:21pm UTC](https://discourse.julialang.org/t/jupyter-pluto-version-of-processing/57654 "2021-03-31T17:21:53Z")

</div>

One of my favorite things about Processing is that you can interact with a simulation while it is running. Here is an example where a swarm of particles are advecting continually in a flow, and changing the shape of the …

---

## [Index rows of arbitrary dimensional array?](https://discourse.julialang.org/t/index-rows-of-arbitrary-dimensional-array/58312)

<div class="topic-metadata">

**Author:** [@Satvik](https://discourse.julialang.org/u/Satvik)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 4:39pm UTC](https://discourse.julialang.org/t/index-rows-of-arbitrary-dimensional-array/58312 "2021-03-31T16:39:14Z")

</div>

I have some code that receives vectors or matrices, and I would like to get certain rows while preserving the dimensionality of the input. E.g. arr = \[1, 2, 3\] mat = \[1 2; 3 4; 5 6\] get\_rows(arr, 2, 3) == \[2, 3\] get\_ro…

---

## [VSCode Julia - Autocompletion does not show parameter information](https://discourse.julialang.org/t/vscode-julia-autocompletion-does-not-show-parameter-information/58308)

<div class="topic-metadata">

**Author:** [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 4:03pm UTC](https://discourse.julialang.org/t/vscode-julia-autocompletion-does-not-show-parameter-information/58308 "2021-03-31T16:03:43Z")

</div>

I am new to Julia, and I transitioned from Atom to VSCode, and I have a couple of questions 1- While the autocomplete works for function names, it does not show me parameter information after I open bracket. I was expec…

---

## [New scientific computing benchmark - Network of differential equations](https://discourse.julialang.org/t/new-scientific-computing-benchmark-network-of-differential-equations/58221)

<div class="topic-metadata">

**Author:** [@lindnemi](https://discourse.julialang.org/u/lindnemi)\
**Replies:** 8\
**Last updated:** [March 31, 2021, 3:39pm UTC](https://discourse.julialang.org/t/new-scientific-computing-benchmark-network-of-differential-equations/58221 "2021-03-31T15:39:21Z")

</div>

For our recent paper on NetworkDynamics.jl, we developed a benchmark problem. The goal is to solve a Kuramoto system on a sparse random graph, i.e. \\dot \\theta\_i = \\omega\_i + \\sigma \\sum\_{j=1}^N sin(\\theta\_j - \\theta\_i…

---

## [\[Julia OpenCV Binding\] no method matching jlopencv\_core\_Mat\_mutable\_data in split function](https://discourse.julialang.org/t/julia-opencv-binding-no-method-matching-jlopencv-core-mat-mutable-data-in-split-function/58284)

<div class="topic-metadata">

**Author:** [@erwanlecarpentier](https://discourse.julialang.org/u/erwanlecarpentier)\
**Replies:** 0\
**Last updated:** [March 31, 2021, 10:25am UTC](https://discourse.julialang.org/t/julia-opencv-binding-no-method-matching-jlopencv-core-mat-mutable-data-in-split-function/58284 "2021-03-31T10:25:55Z")

</div>

Hey! I get an error while using the split function of this Julia OpenCV Binding. Here is the code: using OpenCV m = OpenCV.imread("/absolute/path/to/image.png") OpenCV.split(m) And the error: MethodError: no method …

---

## [Alternative to Netica for Bayesian Modeling](https://discourse.julialang.org/t/alternative-to-netica-for-bayesian-modeling/58265)

<div class="topic-metadata">

**Author:** [@erlebach1](https://discourse.julialang.org/u/erlebach1)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 3:04pm UTC](https://discourse.julialang.org/t/alternative-to-netica-for-bayesian-modeling/58265 "2021-03-31T15:04:47Z")

</div>

Hi, Does anybody know of a good package the duplicates or extends the functionality of Netica (commercial software) to model Bayesian networks? Would Forney.jl or Turing.jl be appropriate to this task? Thank you.

---

## [Can NamedDims.jl make use of sparse arrays?](https://discourse.julialang.org/t/can-nameddims-jl-make-use-of-sparse-arrays/55043)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 2:54pm UTC](https://discourse.julialang.org/t/can-nameddims-jl-make-use-of-sparse-arrays/55043 "2021-03-31T14:54:30Z")

</div>

Can NamedDims.jl make use of sparse arrays? Note that the original poster on Slack cannot see your response here on Discourse. Consider transcribing the appropriate answer back to Slack, or pinging the poster here on Di…

---

## [Are there any libraries for discrete probability tables in order to do these type](https://discourse.julialang.org/t/are-there-any-libraries-for-discrete-probability-tables-in-order-to-do-these-type/54990)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 2:53pm UTC](https://discourse.julialang.org/t/are-there-any-libraries-for-discrete-probability-tables-in-order-to-do-these-type/54990 "2021-03-31T14:53:44Z")

</div>

Are there any libraries for discrete probability tables in order to do these type of operations directly (see images)? I’m looking for having discrete probability tables with these operations defined on them. I also wan…

---

## [Listing names and sizes of local variables](https://discourse.julialang.org/t/listing-names-and-sizes-of-local-variables/58234)

<div class="topic-metadata">

**Author:** [@tyleransom](https://discourse.julialang.org/u/tyleransom)\
**Replies:** 4\
**Last updated:** [March 31, 2021, 2:12pm UTC](https://discourse.julialang.org/t/listing-names-and-sizes-of-local-variables/58234 "2021-03-31T14:12:28Z")

</div>

I am doing some debugging to try and find a memory leak. I would like to be able to see the size of every local variable inside of a function. InteractiveUtils.jl seemed like a promising solution, but, being “interactive…

---

## [Performance of computing the diagonal of V' \* A \*V](https://discourse.julialang.org/t/performance-of-computing-the-diagonal-of-v-a-v/58288)

<div class="topic-metadata">

**Author:** [@migarstka](https://discourse.julialang.org/u/migarstka)\
**Replies:** 10\
**Last updated:** [March 31, 2021, 1:22pm UTC](https://discourse.julialang.org/t/performance-of-computing-the-diagonal-of-v-a-v/58288 "2021-03-31T13:22:55Z")

</div>

I want to compute the diagonal elements of X = V^\\top A V where V is an orthogonal matrix A is a symmetric matrix I noticed that it is much faster to just compute X and then extract the diagonal elements than compu…

---

## [How do i make a square lattice of (2n+1) x (2n+1)?](https://discourse.julialang.org/t/how-do-i-make-a-square-lattice-of-2n-1-x-2n-1/58158)

<div class="topic-metadata">

**Author:** [@CashMoneyyyy](https://discourse.julialang.org/u/CashMoneyyyy)\
**Replies:** 11\
**Last updated:** [March 31, 2021, 1:19pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-square-lattice-of-2n-1-x-2n-1/58158 "2021-03-31T13:19:52Z")

</div>

I need to define a square lattice of size (2n+1) x (2n+1) and assign each cell as zero. Could anyone help me out on how to do this?

---

## [Unable to find compatible target in system image](https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879)

<div class="topic-metadata">

**Author:** [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)\
**Replies:** 6\
**Last updated:** [March 31, 2021, 12:38pm UTC](https://discourse.julialang.org/t/unable-to-find-compatible-target-in-system-image/52879 "2021-03-31T12:38:26Z")

</div>

I have a multi-stage centos7-based dockerfile that has Julia 1.5.3 installed to /root/julia in the image base. PackageCompiler is v1.2.4 for this. Here is the relevant part: #################### cleaned\_repo ##########…

---

## [Selectively enable debug level logging with a custom \`global\_logger\`](https://discourse.julialang.org/t/selectively-enable-debug-level-logging-with-a-custom-global-logger/58286)

<div class="topic-metadata">

**Author:** [@dm3](https://discourse.julialang.org/u/dm3)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 12:24pm UTC](https://discourse.julialang.org/t/selectively-enable-debug-level-logging-with-a-custom-global-logger/58286 "2021-03-31T12:24:24Z")

</div>

Hello! I’m at a loss on how to selectively enable debug logging when overriding a global logger. If I override the global\_logger like this: ConsoleLogger(stdout, Logging.Info) |\> global\_logger then setting ENV\["JULIA\_D…

---

## [Efficiently Loading and Processing Large Number of Images](https://discourse.julialang.org/t/efficiently-loading-and-processing-large-number-of-images/58278)

<div class="topic-metadata">

**Author:** [@Masquerain](https://discourse.julialang.org/u/Masquerain)\
**Replies:** 4\
**Last updated:** [March 31, 2021, 12:20pm UTC](https://discourse.julialang.org/t/efficiently-loading-and-processing-large-number-of-images/58278 "2021-03-31T12:20:15Z")

</div>

Hello, I’m very new to Julia and as such am still familiarizing myself with its quirks. I’m working with a dataset from Kaggle containing 40,000 images that I would like to load in and process. The data can be found here…

---

## [ForwardDiff of function with internal derivatives using CuArrays](https://discourse.julialang.org/t/forwarddiff-of-function-with-internal-derivatives-using-cuarrays/58178)

<div class="topic-metadata">

**Author:** [@RynoLaubscher](https://discourse.julialang.org/u/RynoLaubscher)\
**Replies:** 8\
**Last updated:** [March 31, 2021, 12:13pm UTC](https://discourse.julialang.org/t/forwarddiff-of-function-with-internal-derivatives-using-cuarrays/58178 "2021-03-31T12:13:06Z")

</div>

Hi All, I am struggling a bit with a ForwardDiff problem on GPU. I would like to determine the gradients of a loss function which internally uses Zygote to calculate gradients. I can get it to work perfectly on CPU but w…

---

## [Iterating through types of a Union in a type-stable manner](https://discourse.julialang.org/t/iterating-through-types-of-a-union-in-a-type-stable-manner/58285)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 12:03pm UTC](https://discourse.julialang.org/t/iterating-through-types-of-a-union-in-a-type-stable-manner/58285 "2021-03-31T12:03:29Z")

</div>

Hi, I have the following: union\_types(x::Union) = union\_types(x.a, x.b) union\_types(a::Union, b::Type) = (union\_types(a)..., b) union\_types(a::Type, b::Type) = (a, b) union\_types(x::Type) = (x,) # For completeness unio…

---

## [Dispatch on precice Union instance in place of subtyping supertype of Union](https://discourse.julialang.org/t/dispatch-on-precice-union-instance-in-place-of-subtyping-supertype-of-union/58117)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 7\
**Last updated:** [March 31, 2021, 10:02am UTC](https://discourse.julialang.org/t/dispatch-on-precice-union-instance-in-place-of-subtyping-supertype-of-union/58117 "2021-03-31T10:02:33Z")

</div>

This is a bit tricky I feel, but I didn’t really found out how to separate the two cases. I have an abstract type AbstractAgent. I have a model type which is parameterized on subtypes of my abstract type, see the follow…

---

## [Indexes and multidimensional arrays](https://discourse.julialang.org/t/indexes-and-multidimensional-arrays/58200)

<div class="topic-metadata">

**Author:** [@spirit1jkm](https://discourse.julialang.org/u/spirit1jkm)\
**Replies:** 4\
**Last updated:** [March 31, 2021, 8:28am UTC](https://discourse.julialang.org/t/indexes-and-multidimensional-arrays/58200 "2021-03-31T08:28:54Z")

</div>

New to code and to Julia. I want to return the value at a specific index in a multidimensional array. I have been watching the Julia Zero to Hero video on YouTube and reading the Julia documentation. Based on that, given…

---

## [Implementing option to profile a script as environment variable or command line argument](https://discourse.julialang.org/t/implementing-option-to-profile-a-script-as-environment-variable-or-command-line-argument/58189)

<div class="topic-metadata">

**Author:** [@luke](https://discourse.julialang.org/u/luke)\
**Replies:** 4\
**Last updated:** [March 31, 2021, 12:20am UTC](https://discourse.julialang.org/t/implementing-option-to-profile-a-script-as-environment-variable-or-command-line-argument/58189 "2021-03-31T00:20:12Z")

</div>

This is a bit of a stylistic “what’s the most elegant way to do this?” question than a functionality question. Basically, let’s say we have a script that runs some computation and saves some outputs for us, and we’re cur…

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

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