# Latest

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

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

**Page:** 1011

---

## [ODE solver algorithms that exploit massive parallelism (eg GPU)?](https://discourse.julialang.org/t/ode-solver-algorithms-that-exploit-massive-parallelism-eg-gpu/82726)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 6:00am UTC](https://discourse.julialang.org/t/ode-solver-algorithms-that-exploit-massive-parallelism-eg-gpu/82726 "2022-06-15T06:00:03Z")

</div>

My scenario is that I’m solving some stiff ODE of O(100) variables with an ensemble of O(200) parameters. KenCarp4 or Rodas5 work the best that we’ve found. The problem is mildly sparse, but not super disconnected, and o…

---

## [Custom arrays for dispatch](https://discourse.julialang.org/t/custom-arrays-for-dispatch/80100)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 6\
**Last updated:** [June 15, 2022, 4:42am UTC](https://discourse.julialang.org/t/custom-arrays-for-dispatch/80100 "2022-06-15T04:42:04Z")

</div>

I have a situation where I am working with several qualitatively different types of arrays (arrays of phases, arrays of complex field amplitudes, arrays of intensities…). Although the data for each such array is the sam…

---

## [Question for PrettyTables.jl users: Can we remove filters?](https://discourse.julialang.org/t/question-for-prettytables-jl-users-can-we-remove-filters/82609)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 11\
**Last updated:** [June 15, 2022, 4:31am UTC](https://discourse.julialang.org/t/question-for-prettytables-jl-users-can-we-remove-filters/82609 "2022-06-15T04:31:56Z")

</div>

Hi everyone! I am building a new version of PrettyTables.jl with the features necessary to replace the LaTeX and HTML backend in DataFrames.jl. However, I am facing some problems. Most of them is related to a feature i…

---

## [Re-using layers in Flux.jl: how to train a multi-layer model sharing a common LSTM layer and separate dense layers?](https://discourse.julialang.org/t/re-using-layers-in-flux-jl-how-to-train-a-multi-layer-model-sharing-a-common-lstm-layer-and-separate-dense-layers/82705)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [June 15, 2022, 2:16am UTC](https://discourse.julialang.org/t/re-using-layers-in-flux-jl-how-to-train-a-multi-layer-model-sharing-a-common-lstm-layer-and-separate-dense-layers/82705 "2022-06-15T02:16:19Z")

</div>

I would like to train a model that consists of two “submodels”, say model1 and model2. The two models share a common LSTM layer and are followed by two separate dense layers. The final output is the average of the two mo…

---

## [Makie "attributes" for figure, axis, and plot](https://discourse.julialang.org/t/makie-attributes-for-figure-axis-and-plot/82697)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 2:00am UTC](https://discourse.julialang.org/t/makie-attributes-for-figure-axis-and-plot/82697 "2022-06-15T02:00:37Z")

</div>

I am confused by what exactly are “attributes” in Makie and how to figure out which ones exist and can be modified. for plot objects, this seems relatively straightforward (especially coming from a Matlab background). T…

---

## [Surface plot](https://discourse.julialang.org/t/surface-plot/82544)

<div class="topic-metadata">

**Author:** [@SDA](https://discourse.julialang.org/u/SDA)\
**Replies:** 10\
**Last updated:** [June 15, 2022, 12:59am UTC](https://discourse.julialang.org/t/surface-plot/82544 "2022-06-15T00:59:49Z")

</div>

There is no doubt a very simple answer to this that I’ve overlooked. How would one plot a surface x=y, where z is any real number?

---

## [Is it optimal this way of doing a panel of plots with PlotlyJS.jl?](https://discourse.julialang.org/t/is-it-optimal-this-way-of-doing-a-panel-of-plots-with-plotlyjs-jl/82051)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 11:39pm UTC](https://discourse.julialang.org/t/is-it-optimal-this-way-of-doing-a-panel-of-plots-with-plotlyjs-jl/82051 "2022-06-14T23:39:02Z")

</div>

I am new in Julia and coming from R. In R I somehow master plotting with {ggplot2} and I am very used to work with tidy data frames. Now that I am starting the PhD thesis I am considering moving to Julia. I must say I …

---

## [Does Julia have any utility to "split" RNGs for later use in parallel?](https://discourse.julialang.org/t/does-julia-have-any-utility-to-split-rngs-for-later-use-in-parallel/82775)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 4\
**Last updated:** [June 14, 2022, 11:03pm UTC](https://discourse.julialang.org/t/does-julia-have-any-utility-to-split-rngs-for-later-use-in-parallel/82775 "2022-06-14T23:03:45Z")

</div>

I want to generate some random numbers across a series of parallel processes, with a single input RNG provided by the user. Schematically I want something like: using Random rng = Xoshiro(1) # provided by user # gener…

---

## [VSCode Julia Environment Installation Issue \`Find Definition\` Fails](https://discourse.julialang.org/t/vscode-julia-environment-installation-issue-find-definition-fails/82703)

<div class="topic-metadata">

**Author:** [@juliafriend](https://discourse.julialang.org/u/juliafriend)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 9:56pm UTC](https://discourse.julialang.org/t/vscode-julia-environment-installation-issue-find-definition-fails/82703 "2022-06-14T21:56:26Z")

</div>

I have a question about VSCode/Julia. I’ve already downloaded a repo from github and, in VSCode, I’ve selected the Julia environment to be the directory of the repo containing the Manifest.toml. If I am developing with…

---

## [How to efficiently sort subarrays of 2 large arrays in parallel?](https://discourse.julialang.org/t/how-to-efficiently-sort-subarrays-of-2-large-arrays-in-parallel/82771)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 5:40pm UTC](https://discourse.julialang.org/t/how-to-efficiently-sort-subarrays-of-2-large-arrays-in-parallel/82771 "2022-06-14T17:40:28Z")

</div>

I have large 1D arrays x and y, and pointers I that separate them into subarrays. My x and y barely fit into RAM and are of different dtypes (one contains UInt32’s, the other Rational{Int64}'s), so I don’t want to join t…

---

## [Name of version to use for julia v1.8.0-rc1 in github CI](https://discourse.julialang.org/t/name-of-version-to-use-for-julia-v1-8-0-rc1-in-github-ci/82770)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 1\
**Last updated:** [June 14, 2022, 8:36pm UTC](https://discourse.julialang.org/t/name-of-version-to-use-for-julia-v1-8-0-rc1-in-github-ci/82770 "2022-06-14T20:36:31Z")

</div>

What name do I use instead of '1.8' in this segment of CI.yml to get v1.8.0-rc1? matrix: version: - '1.8' - 'nightly' os: - ubuntu-latest arch: - x64…

---

## [Makie contourf behaviour depends on levels type](https://discourse.julialang.org/t/makie-contourf-behaviour-depends-on-levels-type/82769)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 7:10pm UTC](https://discourse.julialang.org/t/makie-contourf-behaviour-depends-on-levels-type/82769 "2022-06-14T19:10:02Z")

</div>

Hi, The look of Makie contourf changes when I pass an Int level (levels=10) or a range (levels= levels = -0.75:0.25:0.5) as one can see on the documentation. https://makie.juliaplots.org/stable/examples/plotting\_funct…

---

## [Why does Base.findmin assume that Combinatorics.Permutations has a \`keys\` method?](https://discourse.julialang.org/t/why-does-base-findmin-assume-that-combinatorics-permutations-has-a-keys-method/82774)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 7:03pm UTC](https://discourse.julialang.org/t/why-does-base-findmin-assume-that-combinatorics-permutations-has-a-keys-method/82774 "2022-06-14T19:03:29Z")

</div>

With Julia 1.8.0-rc1: julia\> using Combinatorics julia\> findmin(collect(permutations(1:3, 1))) # Works fine. (\[1\], 1) julia\> findmin(permutations(1:3, 1)) # Fails. ERROR: MethodError: no method matching keys(::Combi…

---

## [Annotate Points in Plot](https://discourse.julialang.org/t/annotate-points-in-plot/82764)

<div class="topic-metadata">

**Author:** [@gjh](https://discourse.julialang.org/u/gjh)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 5:56pm UTC](https://discourse.julialang.org/t/annotate-points-in-plot/82764 "2022-06-14T17:56:45Z")

</div>

Is there a way to annotate each point with its id number? I know it seems odd, but that is what we are hoping to display. Thank you using DataFrames, Gadfly df = DataFrame((id = 1:20), value\_x=rand(20)\*100, value\_y = r…

---

## [Some inconsistencies in an ensemble of stochastic differential equations](https://discourse.julialang.org/t/some-inconsistencies-in-an-ensemble-of-stochastic-differential-equations/82639)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 14\
**Last updated:** [June 14, 2022, 6:40pm UTC](https://discourse.julialang.org/t/some-inconsistencies-in-an-ensemble-of-stochastic-differential-equations/82639 "2022-06-14T18:40:21Z")

</div>

I am solving a stochastic differential equation using EnsembleProblem. When I then simply plot a summary of the solution, I get a reasonable result. However, when I calculate the mean myself using timeseries\_point\_mean…

---

## [Master versions in a Project.toml?](https://discourse.julialang.org/t/master-versions-in-a-project-toml/82766)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 5:44pm UTC](https://discourse.julialang.org/t/master-versions-in-a-project-toml/82766 "2022-06-14T17:44:46Z")

</div>

Is there a way to specify a package master version in a Project.toml file? The problem for me is that I’m working in a Franklin site and need fixes that I have to apply to GMT.jl but at same time I can’t (automatically)…

---

## [Dispatch of round()](https://discourse.julialang.org/t/dispatch-of-round/82756)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 4:40pm UTC](https://discourse.julialang.org/t/dispatch-of-round/82756 "2022-06-14T16:40:18Z")

</div>

hi here, I have a problem regarding the dispatching of round(): julia\> @enter round(2.2) \[ Info: tracking Base In round(x, r) at float.jl:380 \>380 round(x::Float64, r::RoundingMode{:Nearest}) = rint\_llvm(x) julia\> @en…

---

## [Having trouble importing hypernetx with PyCall](https://discourse.julialang.org/t/having-trouble-importing-hypernetx-with-pycall/82395)

<div class="topic-metadata">

**Author:** [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 4:00pm UTC](https://discourse.julialang.org/t/having-trouble-importing-hypernetx-with-pycall/82395 "2022-06-14T16:00:19Z")

</div>

While trying to use SimpleHypergraphs.jl visualization tools which require hypernetx (a python library), I encountered an error while running the following (which comes from the README of SimpleHypergraphs.jl ): usi…

---

## [Gridded Interpolation using Interpolation.jl not working in VSCode (but working in regular Julia repl)](https://discourse.julialang.org/t/gridded-interpolation-using-interpolation-jl-not-working-in-vscode-but-working-in-regular-julia-repl/82716)

<div class="topic-metadata">

**Author:** [@jpro](https://discourse.julialang.org/u/jpro)\
**Replies:** 7\
**Last updated:** [June 14, 2022, 3:28pm UTC](https://discourse.julialang.org/t/gridded-interpolation-using-interpolation-jl-not-working-in-vscode-but-working-in-regular-julia-repl/82716 "2022-06-14T15:28:41Z")

</div>

Hi, I’d like to interpolate data from a 2d array in which the spacing is nonuniform. A is an 11x13 array that is imported from a .csv file, so below I just made it a random array of values (should be good enough while I’…

---

## [Generic way to dispatch on type of Union type](https://discourse.julialang.org/t/generic-way-to-dispatch-on-type-of-union-type/82745)

<div class="topic-metadata">

**Author:** [@manuelbb-upb](https://discourse.julialang.org/u/manuelbb-upb)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 3:01pm UTC](https://discourse.julialang.org/t/generic-way-to-dispatch-on-type-of-union-type/82745 "2022-06-14T15:01:12Z")

</div>

Hi, I tried to write methods for a function (taking types as arguments) that should dispatch only if one argument supertypes the other, e.g., a\_supertypes\_b( a::Type, b::Type ) = "no" a\_supertypes\_b( ::Type{SUP}, ::Typ…

---

## [Is there a "correct" way to check if I am running a nightly build of Julia?](https://discourse.julialang.org/t/is-there-a-correct-way-to-check-if-i-am-running-a-nightly-build-of-julia/82754)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 2:59pm UTC](https://discourse.julialang.org/t/is-there-a-correct-way-to-check-if-i-am-running-a-nightly-build-of-julia/82754 "2022-06-14T14:59:51Z")

</div>

Is there an official way to check if I am running a non-release version of Julia? Any footguns to be aware of if I just do occursin("DEV",string(VERSION))? The reason for this question is that I want to permit certain t…

---

## [Defining a parameter out of pairs and values](https://discourse.julialang.org/t/defining-a-parameter-out-of-pairs-and-values/82701)

<div class="topic-metadata">

**Author:** [@noja](https://discourse.julialang.org/u/noja)\
**Replies:** 18\
**Last updated:** [June 14, 2022, 1:11pm UTC](https://discourse.julialang.org/t/defining-a-parameter-out-of-pairs-and-values/82701 "2022-06-14T13:11:48Z")

</div>

I have a set of pair like the following, and each pair comes with a value attached to it. For isntance the value of a pair (1,2) will be 2.5. There are another set of persons. Each person also connected to the subset of …

---

## [Fixing a parameter with Optimization.jl](https://discourse.julialang.org/t/fixing-a-parameter-with-optimization-jl/82663)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 9\
**Last updated:** [June 14, 2022, 1:11pm UTC](https://discourse.julialang.org/t/fixing-a-parameter-with-optimization-jl/82663 "2022-06-14T13:11:02Z")

</div>

Suppose I define the following problem which computes the maximum likelihood estimates (MLEs) for a regression problem using Optimization.jl: using Optimization, OptimizationOptimJL, Random, Distributions β₀, β₁, β₂, β₃…

---

## [Non-affine transformations in Makie](https://discourse.julialang.org/t/non-affine-transformations-in-makie/81951)

<div class="topic-metadata">

**Author:** [@adigitoleo](https://discourse.julialang.org/u/adigitoleo)\
**Replies:** 8\
**Last updated:** [June 14, 2022, 1:10pm UTC](https://discourse.julialang.org/t/non-affine-transformations-in-makie/81951 "2022-06-14T13:10:25Z")

</div>

I would like to help with adding non-affine transformations to Makie. However, I haven’t used Makie very much yet and also I am aware that this is a fairly ambitious thing to do. I’m also not a graphics expert, just some…

---

## [Type of real part (of complex array element)](https://discourse.julialang.org/t/type-of-real-part-of-complex-array-element/82723)

<div class="topic-metadata">

**Author:** [@nicolas](https://discourse.julialang.org/u/nicolas)\
**Replies:** 8\
**Last updated:** [June 14, 2022, 1:00pm UTC](https://discourse.julialang.org/t/type-of-real-part-of-complex-array-element/82723 "2022-06-14T13:00:43Z")

</div>

I’m wondering whether there is a nice way of knowing the concrete type of the real part of a complex number, particularly something like eltype() for array elements. Right now, for an abstract array x, I’m using typeof(r…

---

## [How to remove quotation marks from an array of strings](https://discourse.julialang.org/t/how-to-remove-quotation-marks-from-an-array-of-strings/82740)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 2\
**Last updated:** [June 14, 2022, 12:48pm UTC](https://discourse.julialang.org/t/how-to-remove-quotation-marks-from-an-array-of-strings/82740 "2022-06-14T12:48:06Z")

</div>

Given the following array of strings: a = \["Chile", "Colombia"\] How is it possible to get a string like "Chile, Colombia", with or without quotation marks?

---

## [Code coverage in jll artifacts](https://discourse.julialang.org/t/code-coverage-in-jll-artifacts/82743)

<div class="topic-metadata">

**Author:** [@Craig\_Hamel](https://discourse.julialang.org/u/Craig_Hamel)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 12:19pm UTC](https://discourse.julialang.org/t/code-coverage-in-jll-artifacts/82743 "2022-06-14T12:19:26Z")

</div>

Are there any tools out there to look at code coverage of a jll artifact? Even something as simple as looking through the header file for the C library and comparing it to the methods calls in a package that uses the jl…

---

## [Run Command without Single Quote](https://discourse.julialang.org/t/run-command-without-single-quote/23068)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 14\
**Last updated:** [June 14, 2022, 11:58am UTC](https://discourse.julialang.org/t/run-command-without-single-quote/23068 "2022-06-14T11:58:45Z")

</div>

Windows: I want Julia to run a command to 7-zip a file, i.e. following works in my terminal: 7z a c:\\test\\f1.zip c:\\test\\f1.txt I have to use Double Quote or No Quote for the file name, otherwise, If I use Single Q…

---

## [PlotlyJS: customizing subplot figure titles from facet categories](https://discourse.julialang.org/t/plotlyjs-customizing-subplot-figure-titles-from-facet-categories/82713)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 10\
**Last updated:** [June 14, 2022, 11:53am UTC](https://discourse.julialang.org/t/plotlyjs-customizing-subplot-figure-titles-from-facet-categories/82713 "2022-06-14T11:53:55Z")

</div>

Hi everyone, I am trying to adapt a piece of code from Plotly into PlotlyJS. This code allows editing the titles of individual subplots produced with facet\_row and facet\_col by changing the default format. I have tried …

---

## [Xubuntu 20.04 Plot install failure](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722)

<div class="topic-metadata">

**Author:** [@David\_Annetts](https://discourse.julialang.org/u/David_Annetts)\
**Replies:** 7\
**Last updated:** [June 14, 2022, 10:59am UTC](https://discourse.julialang.org/t/xubuntu-20-04-plot-install-failure/82722 "2022-06-14T10:59:11Z")

</div>

Hi, I’m looking at the possibility of using Julia as a data-processing environment. While the program (1.7.3) installs without issue, I have consistently (since (1.5.?) hit errors when attempting to install packages so…

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

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