# Latest

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

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

**Page:** 907

---

## [Adding list of tuples](https://discourse.julialang.org/t/adding-list-of-tuples/88111)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 11\
**Last updated:** [October 3, 2022, 7:29am UTC](https://discourse.julialang.org/t/adding-list-of-tuples/88111 "2022-10-03T07:29:56Z")

</div>

I have two long lists of tuples: For instance, A1 = \[(2,3),(4,5)…\] and A2 = \[(4,6),(2,8)…\]. The first element of each tuple is common to both lists. Now I want to produce a new list, A3, such that whenever the first elem…

---

## [Translate sum and long variables to Julia (VS Code)](https://discourse.julialang.org/t/translate-sum-and-long-variables-to-julia-vs-code/88145)

<div class="topic-metadata">

**Author:** [@tryjulia](https://discourse.julialang.org/u/tryjulia)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 7:28am UTC](https://discourse.julialang.org/t/translate-sum-and-long-variables-to-julia-vs-code/88145 "2022-10-03T07:28:42Z")

</div>

Hi, I want to write code to transform the mathematical expression of: y=sum from k=0 to k=infinite of x^k/k! where x and y are long real var. I try to write the code such this: function taylor(k) k = (0:Inf) x = l…

---

## [Mergewith(dicts...)](https://discourse.julialang.org/t/mergewith-dicts/88136)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 7\
**Last updated:** [October 3, 2022, 4:44am UTC](https://discourse.julialang.org/t/mergewith-dicts/88136 "2022-10-03T04:44:34Z")

</div>

Why does this discard the first dict instead of merging? This signature is undocumented. julia\> mergewith(Dict(1=\>10), Dict(2=\>20)) Dict{Int64, Int64} with 1 entry: 2 =\> 20

---

## [Error in training Deep Equilibrium Models (DEQ)](https://discourse.julialang.org/t/error-in-training-deep-equilibrium-models-deq/87958)

<div class="topic-metadata">

**Author:** [@Molox](https://discourse.julialang.org/u/Molox)\
**Replies:** 4\
**Last updated:** [October 3, 2022, 4:04am UTC](https://discourse.julialang.org/t/error-in-training-deep-equilibrium-models-deq/87958 "2022-10-03T04:04:02Z")

</div>

I read the Blog about “Composability in Julia: Implementing Deep Equilibrium Models via Neural ODEs”. I tried to reproduce the code to train the MNIST dataset, but it returns an error during training: ERROR: MethodErro…

---

## [Why get 0 for 2^(3^4)?](https://discourse.julialang.org/t/why-get-0-for-2-3-4/88114)

<div class="topic-metadata">

**Author:** [@pppoe5](https://discourse.julialang.org/u/pppoe5)\
**Replies:** 7\
**Last updated:** [October 3, 2022, 3:54am UTC](https://discourse.julialang.org/t/why-get-0-for-2-3-4/88114 "2022-10-03T03:54:49Z")

</div>

In Julia REPL, I input 2^(3^4) or big(2^(3^4)), still give me 0. So, how to get the right answer?

---

## [By= argument for maximum, minimum, findmax, findmin](https://discourse.julialang.org/t/by-argument-for-maximum-minimum-findmax-findmin/88135)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [October 3, 2022, 12:01am UTC](https://discourse.julialang.org/t/by-argument-for-maximum-minimum-findmax-findmin/88135 "2022-10-03T00:01:18Z")

</div>

What do you think about having a by= argument for maximum, minimum, findmax, findmin? The difference from the f argument is that the return value of the f form is in the codomain of f while for by it would be in the doma…

---

## [How to avoid recompiling when using job array on a cluster](https://discourse.julialang.org/t/how-to-avoid-recompiling-when-using-job-array-on-a-cluster/88126)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 8\
**Last updated:** [October 2, 2022, 11:09pm UTC](https://discourse.julialang.org/t/how-to-avoid-recompiling-when-using-job-array-on-a-cluster/88126 "2022-10-02T23:09:34Z")

</div>

Hi all, I am trying to run MCMC sampling for a model built with Turing.jl. Since different chains can be sampled in parallel using multiple processes, I want to use the following line: # some lines in my code, model\_si…

---

## [Minimally promoting division](https://discourse.julialang.org/t/minimally-promoting-division/88127)

<div class="topic-metadata">

**Author:** [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Replies:** 4\
**Last updated:** [October 2, 2022, 9:05pm UTC](https://discourse.julialang.org/t/minimally-promoting-division/88127 "2022-10-02T21:05:00Z")

</div>

I could use a division function or operator that did minimal type promotion. E.g. a divide(x,y) function and associated operator that would return a Rational for rational or integer x,y and a floating-point number if ei…

---

## [Improve a plot done with AoG and Makie](https://discourse.julialang.org/t/improve-a-plot-done-with-aog-and-makie/88133)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 0\
**Last updated:** [October 2, 2022, 8:25pm UTC](https://discourse.julialang.org/t/improve-a-plot-done-with-aog-and-makie/88133 "2022-10-02T20:25:24Z")

</div>

Hello, I have used the following function to make the plot below: """Plot splus stars in the streams footprints""" function plot\_splus\_streams(df::DataFrame, file::String) df.anotta = df.track unicos = unique(d…

---

## [New to Julia -- EAGO Nonlinear model works when finding Min but not Max?](https://discourse.julialang.org/t/new-to-julia-eago-nonlinear-model-works-when-finding-min-but-not-max/87757)

<div class="topic-metadata">

**Author:** [@lying\_syrup](https://discourse.julialang.org/u/lying_syrup)\
**Replies:** 8\
**Last updated:** [October 2, 2022, 7:31pm UTC](https://discourse.julialang.org/t/new-to-julia-eago-nonlinear-model-works-when-finding-min-but-not-max/87757 "2022-10-02T19:31:03Z")

</div>

I’m not sure if a question like this fits more here or on the EAGO GitHub. I’m very new to Julia (started using it three days ago), and I’m also not sure if this is EAGO specific. In short, I’m trying to learn to use th…

---

## [Savefig not defined using, only able to save as .svg file](https://discourse.julialang.org/t/savefig-not-defined-using-only-able-to-save-as-svg-file/88129)

<div class="topic-metadata">

**Author:** [@Max\_Beez](https://discourse.julialang.org/u/Max_Beez)\
**Replies:** 3\
**Last updated:** [October 2, 2022, 7:23pm UTC](https://discourse.julialang.org/t/savefig-not-defined-using-only-able-to-save-as-svg-file/88129 "2022-10-02T19:23:35Z")

</div>

I am trying to save plots of simulations I am running. Here is the code: p1 = plot(sim, layout=(1,3), linealpha=0.9,color=\[:blue :red :green\], size = \[1200,400\]) p2 = plot!(sol, layout=(1,3), linealpha=1,lw=3.0,color=…

---

## [Canonical way to get a list of all stdibs](https://discourse.julialang.org/t/canonical-way-to-get-a-list-of-all-stdibs/88115)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 5\
**Last updated:** [October 2, 2022, 7:22pm UTC](https://discourse.julialang.org/t/canonical-way-to-get-a-list-of-all-stdibs/88115 "2022-10-02T19:22:33Z")

</div>

What is the best way to get this vector? stdlibs = \[ :ArgTools, :Artifacts, :Base64, :CRC32c, :CompilerSupportLibraries\_jll, :Dates, :Distributed, :Downloads, :FileWatching, :Futu…

---

## [Julia 1.8.\* & VSCode & Ryzen CPU & Windows 10 64bit --\> crash](https://discourse.julialang.org/t/julia-1-8-vscode-ryzen-cpu-windows-10-64bit-crash/87283)

<div class="topic-metadata">

**Author:** [@rryi](https://discourse.julialang.org/u/rryi)\
**Replies:** 5\
**Last updated:** [October 2, 2022, 6:59pm UTC](https://discourse.julialang.org/t/julia-1-8-vscode-ryzen-cpu-windows-10-64bit-crash/87283 "2022-10-02T18:59:12Z")

</div>

I used julia and VSCode with many julia versions without problems, but since julia 1.8.0, I get severe crashes when installing and starting the VSCode julia extension on windows PCs with an AMD Ryzen CPU… I verified it w…

---

## [Scale is not defined](https://discourse.julialang.org/t/scale-is-not-defined/88102)

<div class="topic-metadata">

**Author:** [@m\_shah2](https://discourse.julialang.org/u/m_shah2)\
**Replies:** 9\
**Last updated:** [October 2, 2022, 6:40pm UTC](https://discourse.julialang.org/t/scale-is-not-defined/88102 "2022-10-02T18:40:01Z")

</div>

UndefVarError: scale not defined Stacktrace: \[1\] spectral\_embedding(W::SparseMatrixCSC{Float64, Int64}, nev::Int64) @ Main .\\In\[45\]:10 \[2\] top-level scope @ In\[48\]:1 \[3\] eval @ .\\boot.jl:368 \[inlined\] \[4\] include…

---

## [How to Plot Direction Field with 4 places of decimal for the y-axis](https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [October 2, 2022, 3:39pm UTC](https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109 "2022-10-02T15:39:21Z")

</div>

Hi all, I wonder is Julia plotting can’t plot the tickers for y-axis for number with lots of decimals 0.0001 etc. It is only plotting 0.2 0.4 … For the simple differential equation: \\frac{dq}{dt} = 300 ( 0.01 - 10^{…

---

## [Install julia chromebook](https://discourse.julialang.org/t/install-julia-chromebook/33522)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 9\
**Last updated:** [October 2, 2022, 3:24pm UTC](https://discourse.julialang.org/t/install-julia-chromebook/33522 "2022-10-02T15:24:38Z")

</div>

Hello, is it possible to install Julia on an acer chromebook? shall I simply copy all on a folder a create a link on /usr/local/bin? Thanks

---

## [Question about the width argument for Gadfly violin plots](https://discourse.julialang.org/t/question-about-the-width-argument-for-gadfly-violin-plots/87339)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 5\
**Last updated:** [October 2, 2022, 3:07pm UTC](https://discourse.julialang.org/t/question-about-the-width-argument-for-gadfly-violin-plots/87339 "2022-10-02T15:07:04Z")

</div>

Hi all, I am trying to adjust the scaling of violin plots from Gadfly. I am trying to play around with the “width” argument but I always get the following message Warning: The following aesthetics are mapped, but not u…

---

## [Would you accept a compressed number format to replace Float64 and integers if you had to opt into a package?](https://discourse.julialang.org/t/would-you-accept-a-compressed-number-format-to-replace-float64-and-integers-if-you-had-to-opt-into-a-package/88122)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [October 2, 2022, 2:01pm UTC](https://discourse.julialang.org/t/would-you-accept-a-compressed-number-format-to-replace-float64-and-integers-if-you-had-to-opt-into-a-package/88122 "2022-10-02T14:01:02Z")

</div>

\[Please don’t move to numerics, at least yet, I would like to know if regular users would use such a package.\] First I want to tell new users like @pppoe5 that Julia already supports checked overflow of integers in a pa…

---

## [Default value of \*some\* fields in a mutable struct](https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 24\
**Last updated:** [October 2, 2022, 1:35pm UTC](https://discourse.julialang.org/t/default-value-of-some-fields-in-a-mutable-struct/33408 "2022-10-02T13:35:54Z")

</div>

Hi guys, just a specific question here: I would like to create a data type with several fields, and give a default value to some of them, but not all. But more specifically, I would like to have only this value appear i…

---

## [Waterfall Plot Makie.jl](https://discourse.julialang.org/t/waterfall-plot-makie-jl/79988)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 1\
**Last updated:** [October 2, 2022, 11:37am UTC](https://discourse.julialang.org/t/waterfall-plot-makie-jl/79988 "2022-10-02T11:37:33Z")

</div>

Is it possible to make waterfall plots in Makie.jl, similar to this plotly graph. I am not looking for an interactive graph to start with. Thank you!

---

## [Local modules](https://discourse.julialang.org/t/local-modules/88117)

<div class="topic-metadata">

**Author:** [@ZuiDet](https://discourse.julialang.org/u/ZuiDet)\
**Replies:** 1\
**Last updated:** [October 2, 2022, 10:22am UTC](https://discourse.julialang.org/t/local-modules/88117 "2022-10-02T10:22:38Z")

</div>

How to work with multiple local linked modules? I have read through the similar topics in discourse but didn’t find a suitable solution. I have one main module which uses 2 modules: ModA and helper. Module modA also us…

---

## [Automating juliaup installation](https://discourse.julialang.org/t/automating-juliaup-installation/81440)

<div class="topic-metadata">

**Author:** [@chart](https://discourse.julialang.org/u/chart)\
**Replies:** 4\
**Last updated:** [October 2, 2022, 8:27am UTC](https://discourse.julialang.org/t/automating-juliaup-installation/81440 "2022-10-02T08:27:02Z")

</div>

I trying to automate juliaup installation using a shell script. Juliaup help shows the -y flag can be passed to disable the confirmation prompt. However when I use it, I’m still presented with the interactive installer…

---

## [Confused by unique! example in Base Collections docs](https://discourse.julialang.org/t/confused-by-unique-example-in-base-collections-docs/88096)

<div class="topic-metadata">

**Author:** [@stinkymatt](https://discourse.julialang.org/u/stinkymatt)\
**Replies:** 5\
**Last updated:** [October 2, 2022, 8:02am UTC](https://discourse.julialang.org/t/confused-by-unique-example-in-base-collections-docs/88096 "2022-10-02T08:02:36Z")

</div>

I’m confused by one of the examples for Base.unique!: julia\> unique!(iseven, \[2, 3, 5, 7, 9\]) 2-element Vector{Int64}: 2 3 The way I read this code makes me think that the elements \[2, 3\] are both even. To sanity che…

---

## [Scrambled Halton Draws Package?](https://discourse.julialang.org/t/scrambled-halton-draws-package/36846)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 2\
**Last updated:** [October 2, 2022, 2:04am UTC](https://discourse.julialang.org/t/scrambled-halton-draws-package/36846 "2022-10-02T02:04:06Z")

</div>

Hello, Is there any package that allows me to draw shuffled Halton draws for simulation of high-dimension integrals? I found and but these don’t seem to provide a shuffling implementation.

---

## [How to make dict lookups work with an overloaded == and hash function](https://discourse.julialang.org/t/how-to-make-dict-lookups-work-with-an-overloaded-and-hash-function/88098)

<div class="topic-metadata">

**Author:** [@ivoytov](https://discourse.julialang.org/u/ivoytov)\
**Replies:** 3\
**Last updated:** [October 2, 2022, 12:51am UTC](https://discourse.julialang.org/t/how-to-make-dict-lookups-work-with-an-overloaded-and-hash-function/88098 "2022-10-02T00:51:37Z")

</div>

I have a custom type that includes a string as it’s unique ID. I would like to simplify operations by permitting lookups of this object by just the String. I proceed with the basic construction and of course it doesn’t w…

---

## [Best input/output format for Julia ML packages](https://discourse.julialang.org/t/best-input-output-format-for-julia-ml-packages/88078)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 8\
**Last updated:** [October 1, 2022, 10:19pm UTC](https://discourse.julialang.org/t/best-input-output-format-for-julia-ml-packages/88078 "2022-10-01T22:19:15Z")

</div>

Following a recent discussion on slack, I’d like to raise this point here on discourse for arguments not to disappear. Also, the slack format with many short messages isn’t the most convenient for longer discussions. Cu…

---

## [CAS Common Chemistry](https://discourse.julialang.org/t/cas-common-chemistry/76429)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 3\
**Last updated:** [October 1, 2022, 9:14pm UTC](https://discourse.julialang.org/t/cas-common-chemistry/76429 "2022-10-01T21:14:33Z")

</div>

Is there a Julia package for accessing the CAS Common Chemistry database?

---

## [Can you call Julia methods with LLVM call?](https://discourse.julialang.org/t/can-you-call-julia-methods-with-llvm-call/31082)

<div class="topic-metadata">

**Author:** [@Elrod](https://discourse.julialang.org/u/Elrod)\
**Replies:** 15\
**Last updated:** [October 1, 2022, 9:13pm UTC](https://discourse.julialang.org/t/can-you-call-julia-methods-with-llvm-call/31082 "2022-10-01T21:13:26Z")

</div>

Is there a way to call Julia methods with llvmcall in a way transparent to the optimizer, so that these methods can be inlined, etc? Defining julia\> foo(a,b,c) = sin(a \* b + c) foo (generic function with 1 method) Each…

---

## [Unsure what this error message means](https://discourse.julialang.org/t/unsure-what-this-error-message-means/88092)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 2\
**Last updated:** [October 1, 2022, 7:29pm UTC](https://discourse.julialang.org/t/unsure-what-this-error-message-means/88092 "2022-10-01T19:29:58Z")

</div>

Exception ‘MethodError: no method matching +(::Base.RefValue{Any}, ::NamedTuple{(:contents,), Tuple{Matrix{Float64}}}) Closest candidates are: +(::Any, ::Any, !Matched::Any, !Matched::Any…) at operators.jl:560 +(!Matc…

---

## [Static variable in a templated function or struct](https://discourse.julialang.org/t/static-variable-in-a-templated-function-or-struct/88093)

<div class="topic-metadata">

**Author:** [@DerongXu](https://discourse.julialang.org/u/DerongXu)\
**Replies:** 1\
**Last updated:** [October 1, 2022, 6:15pm UTC](https://discourse.julialang.org/t/static-variable-in-a-templated-function-or-struct/88093 "2022-10-01T18:15:39Z")

</div>

There are a lot of discussions to emulate local static variable in Julia. One is to use let block, let a = 0 global function f() a += 1 end end However, it is not work…

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

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