# Latest

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

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

**Page:** 540

---

## [How do I get a list of functions defined in a module?](https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266)

<div class="topic-metadata">

**Author:** [@Elmer\_Cusipuma](https://discourse.julialang.org/u/Elmer_Cusipuma)\
**Replies:** 9\
**Last updated:** [December 4, 2023, 3:18pm UTC](https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266 "2023-12-04T15:18:09Z")

</div>

Is there a command in Julia 1.1 that lists all the methods that are available in a module? e.g. module MyMod test1() = 1 test2() = 2 test3() = 3 end Which would return: \[test1,test2,test3\]

---

## [Distributed parallel loops](https://discourse.julialang.org/t/distributed-parallel-loops/107047)

<div class="topic-metadata">

**Author:** [@sam\_ttp](https://discourse.julialang.org/u/sam_ttp)\
**Replies:** 0\
**Last updated:** [December 2, 2023, 3:58pm UTC](https://discourse.julialang.org/t/distributed-parallel-loops/107047 "2023-12-02T15:58:55Z")

</div>

I have been trying to learn how to perform distributed parallel programming in Julia and would like to clarify some (beginner) doubts. using Distributed addprocs(4) @everywhere function foo(n) sleep(0.001) re…

---

## [Dataframes](https://discourse.julialang.org/t/dataframes/107112)

<div class="topic-metadata">

**Author:** [@Kearney](https://discourse.julialang.org/u/Kearney)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 1:12pm UTC](https://discourse.julialang.org/t/dataframes/107112 "2023-12-04T13:12:09Z")

</div>

i need to generate two plots of two datasets and save them, as .png files, respectively, wind-gen.png and system-demand.png. The first plot should be of the wind data, showing both actual power generated and what was fo…

---

## [Saving a figure with given dimensions from a Pluto notebook using PlotlyJS](https://discourse.julialang.org/t/saving-a-figure-with-given-dimensions-from-a-pluto-notebook-using-plotlyjs/107107)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 0\
**Last updated:** [December 4, 2023, 11:24am UTC](https://discourse.julialang.org/t/saving-a-figure-with-given-dimensions-from-a-pluto-notebook-using-plotlyjs/107107 "2023-12-04T11:24:15Z")

</div>

I’m trying to save a figure as a png file from a Pluto notebook. The figure, a simple scatter plot, is rendered using the PlotlyJS backend, plotlyjs(), with a given size of, say, 800x300 px. The figure is saved automati…

---

## [Matrix multiplication and type stability](https://discourse.julialang.org/t/matrix-multiplication-and-type-stability/107020)

<div class="topic-metadata">

**Author:** [@denshd](https://discourse.julialang.org/u/denshd)\
**Replies:** 1\
**Last updated:** [December 4, 2023, 9:32am UTC](https://discourse.julialang.org/t/matrix-multiplication-and-type-stability/107020 "2023-12-04T09:32:06Z")

</div>

Hello! Let’s consider MVE: using LinearAlgebra using AlgebraicNumbers M = AlgebraicNumber.(\[ 1 2 3 4 \]) b = AlgebraicNumber.(\[5; 6\]) println(typeof(M)) println(typeof(b)) x = M \* b println(typeof(x)) Expe…

---

## [\[ANN\] SIRUS.jl v1.2: Interpretable Machine Learning via Rule Extraction](https://discourse.julialang.org/t/ann-sirus-jl-v1-2-interpretable-machine-learning-via-rule-extraction/100932)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 6\
**Last updated:** [December 3, 2023, 9:43am UTC](https://discourse.julialang.org/t/ann-sirus-jl-v1-2-interpretable-machine-learning-via-rule-extraction/100932 "2023-12-03T09:43:19Z")

</div>

Version 1.2 of the SIRUS.jl package has just been registered. Since version 1.2, the package can be used for both classification and regression. The problem with modern day machine learning is that we appear to get furt…

---

## [Light shading for 'inverted' surface plot in GLMakie](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 8:28am UTC](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064 "2023-12-04T08:28:27Z")

</div>

If I want to plot an ‘inverted’ surface, like the cupcake mold in the top figure below. I set the light directions to be lights = \[ AmbientLight(RGBf(1, 1, 1)), SpotLight(0.4\*RGBf(1, 1, 1), Point3f(10, …

---

## [Symbolic regression fails this exponential pattern](https://discourse.julialang.org/t/symbolic-regression-fails-this-exponential-pattern/107095)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 7:48am UTC](https://discourse.julialang.org/t/symbolic-regression-fails-this-exponential-pattern/107095 "2023-12-04T07:48:58Z")

</div>

MWE: import SymbolicRegression: SRRegressor import MLJ: machine, fit!, predict, report X = (a=\[(10.0-x)^x for x in 1:5\],) Y = \[1.0,2.0,3.0,4.0,5.0\] model = SRRegressor( niterations=50, binary\_operators=\[+, -…

---

## [Should function-like objects be subtypes of Function?](https://discourse.julialang.org/t/should-function-like-objects-be-subtypes-of-function/107081)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [December 3, 2023, 7:58pm UTC](https://discourse.julialang.org/t/should-function-like-objects-be-subtypes-of-function/107081 "2023-12-03T19:58:23Z")

</div>

For a function-like object, aka callable/functor, is there any problem with making it a subtype of Function? As in, struct Polynomial{R} \<: Function # XXX coeffs::Vector{R} end (p::Polynomial)(t) = evaluate\_polyn…

---

## [How can I redirect the output from a function that calls \`ProgressMeter\` to an \`Observable\` variable?](https://discourse.julialang.org/t/how-can-i-redirect-the-output-from-a-function-that-calls-progressmeter-to-an-observable-variable/107092)

<div class="topic-metadata">

**Author:** [@zapiano](https://discourse.julialang.org/u/zapiano)\
**Replies:** 1\
**Last updated:** [December 4, 2023, 3:22am UTC](https://discourse.julialang.org/t/how-can-i-redirect-the-output-from-a-function-that-calls-progressmeter-to-an-observable-variable/107092 "2023-12-04T03:22:10Z")

</div>

I have a function that uses ProgressMeter. I need the output from @showprogress that is called inside that function to be redirected to an Observable. Something like the following (except that the following code doesn’t …

---

## [Julia v1.10.0-rc2 is now available](https://discourse.julialang.org/t/julia-v1-10-0-rc2-is-now-available/107089)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [December 4, 2023, 12:10am UTC](https://discourse.julialang.org/t/julia-v1-10-0-rc2-is-now-available/107089 "2023-12-04T00:10:10Z")

</div>

The Julia developers are pleased to announce that the second release candidate for Julia v1.10.0 is now available. You can download binaries for v1.10.0-rc2 at https://julialang.org/downloads/ in the “upcoming release” s…

---

## [What is 'Val'](https://discourse.julialang.org/t/what-is-val/107088)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 4\
**Last updated:** [December 3, 2023, 11:43pm UTC](https://discourse.julialang.org/t/what-is-val/107088 "2023-12-03T23:43:52Z")

</div>

What does ‘Val’ mean here: function num\_chunks(::Val{B}) where {B} if B ≤ 0 throw(ArgumentError("\`B\` must be positive!")) elseif B ≤ 8 return 1, UInt8 elseif B ≤ 16 return 1, UInt16 …

---

## [How to check out the details of a suspected struct?](https://discourse.julialang.org/t/how-to-check-out-the-details-of-a-suspected-struct/107087)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [December 3, 2023, 11:42pm UTC](https://discourse.julialang.org/t/how-to-check-out-the-details-of-a-suspected-struct/107087 "2023-12-03T23:42:51Z")

</div>

I suspect a variable is a struct. How can I get the details of it? Its fields and values.

---

## [Precompiling error for unknown reason](https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073)

<div class="topic-metadata">

**Author:** [@Wooheon](https://discourse.julialang.org/u/Wooheon)\
**Replies:** 10\
**Last updated:** [December 3, 2023, 11:09pm UTC](https://discourse.julialang.org/t/precompiling-error-for-unknown-reason/107073 "2023-12-03T23:09:32Z")

</div>

I tried to precompile CSV into julia v1.84 but failed showing error message about call. I thought maybe the version update is the problem so I downloaded v1.94 and again have the problem. From import Pkg; Pkg.precompil…

---

## [How can I test for v"0.4.x"?](https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 1\
**Last updated:** [December 3, 2023, 9:25pm UTC](https://discourse.julialang.org/t/how-can-i-test-for-v-0-4-x/107084 "2023-12-03T21:25:30Z")

</div>

I would like to test if a VersionNumber is 0.4.x or less. v"0.4.1" \<= v"0.4" returns false Is x \< v"0.5.0-DEV" the best way to do this, (and would it be guaranteed to work)?

---

## [Zygote error when using Nonconvex.jl: Mutating arrays is not supported](https://discourse.julialang.org/t/zygote-error-when-using-nonconvex-jl-mutating-arrays-is-not-supported/107067)

<div class="topic-metadata">

**Author:** [@AP\_profile](https://discourse.julialang.org/u/AP_profile)\
**Replies:** 2\
**Last updated:** [December 3, 2023, 1:59pm UTC](https://discourse.julialang.org/t/zygote-error-when-using-nonconvex-jl-mutating-arrays-is-not-supported/107067 "2023-12-03T13:59:18Z")

</div>

Hi all, I am new to Julia and trying to use SLSQP Nonconvex. The optimization code is as follows: using Nonconvex Nonconvex.@load NLopt start\_vec = zeros(11) gamma\_vec = range(start=-7, stop=7, length=40) rho = 0.58 t…

---

## [Removing type instability causes the code slower](https://discourse.julialang.org/t/removing-type-instability-causes-the-code-slower/107074)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 8\
**Last updated:** [December 3, 2023, 6:10pm UTC](https://discourse.julialang.org/t/removing-type-instability-causes-the-code-slower/107074 "2023-12-03T18:10:26Z")

</div>

I have to typed code: @code\_warntype get\_magnetic\_symmetry\_from\_database(1242, 434); MethodInstance for Spglib.get\_magnetic\_symmetry\_from\_database(::Int64, ::Int64) from get\_magnetic\_symmetry\_from\_database(uni\_number,…

---

## [Plotting graphs side by side VegaLite](https://discourse.julialang.org/t/plotting-graphs-side-by-side-vegalite/106361)

<div class="topic-metadata">

**Author:** [@rajmac](https://discourse.julialang.org/u/rajmac)\
**Replies:** 5\
**Last updated:** [December 3, 2023, 4:08pm UTC](https://discourse.julialang.org/t/plotting-graphs-side-by-side-vegalite/106361 "2023-12-03T16:08:26Z")

</div>

I have been plotting data from local traffic flows in VagaLite,jl in Pluto. Most of this involves simple line or scatter plots of numerical data stored in dataframes. When I want to show plots side by side I plot data fr…

---

## [Coding challenge, smallest Julia code (and/or fastest)](https://discourse.julialang.org/t/coding-challenge-smallest-julia-code-and-or-fastest/107078)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [December 3, 2023, 3:32pm UTC](https://discourse.julialang.org/t/coding-challenge-smallest-julia-code-and-or-fastest/107078 "2023-12-03T15:32:38Z")

</div>

At the Debian Banechmark game, Julia is almost always fastest already, if best optimized (and precompiled) would be allowed, but the rules disallow, at least most often close. But there’s also another way to win, on the…

---

## [Why tuples are immutable?](https://discourse.julialang.org/t/why-tuples-are-immutable/107071)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [December 3, 2023, 3:11pm UTC](https://discourse.julialang.org/t/why-tuples-are-immutable/107071 "2023-12-03T15:11:30Z")

</div>

What is the fundamental reason behind? Is it because the elements can be of any datatype, so modification incurs a lot of memory relocation?

---

## [Check out the functions in a module](https://discourse.julialang.org/t/check-out-the-functions-in-a-module/107075)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 2\
**Last updated:** [December 3, 2023, 2:33pm UTC](https://discourse.julialang.org/t/check-out-the-functions-in-a-module/107075 "2023-12-03T14:33:51Z")

</div>

In the console, after using some\_peoples\_package How can I obtain a list of all the functions imported?

---

## [Coding style - upper or lower case for enum elements?](https://discourse.julialang.org/t/coding-style-upper-or-lower-case-for-enum-elements/107077)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [December 3, 2023, 2:25pm UTC](https://discourse.julialang.org/t/coding-style-upper-or-lower-case-for-enum-elements/107077 "2023-12-03T14:25:43Z")

</div>

The Julia manual for enum has the example @enum Fruit apple=1 orange=2 kiwi=3 According to some style guides for Julia, global constants should be UPPER\_CASE, so should I write @enum Fruit APPLE=1 ORANGE=2 KIWI=3 ins…

---

## [Debugging an anonymous function passed to DynamicalSystems](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 8\
**Last updated:** [December 3, 2023, 11:14am UTC](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890 "2023-12-03T11:14:58Z")

</div>

HI. This question is a continuation of a previous topic here, on constructing anonymous functions dynamically. In my case, these functions are intended to form the dynamical rule used for initialising CoupledODEs from a …

---

## [How to read a textfile directly as \`Matrix{Char}\`](https://discourse.julialang.org/t/how-to-read-a-textfile-directly-as-matrix-char/107070)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 3\
**Last updated:** [December 3, 2023, 9:44am UTC](https://discourse.julialang.org/t/how-to-read-a-textfile-directly-as-matrix-char/107070 "2023-12-03T09:44:20Z")

</div>

it’s that time of the year again, say we have: 467..114.. ...\*...... ..35..633. ......#... 617\*...... .....+.58. ..592..... ......755. ...$.\*.... .664.598.. in a file, and we want: julia\> mapreduce(permutedims∘collect…

---

## [\[ANN\] SIRUS.jl v2: Interpretable Machine Learning via Rule Extraction](https://discourse.julialang.org/t/ann-sirus-jl-v2-interpretable-machine-learning-via-rule-extraction/107012)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 5\
**Last updated:** [December 3, 2023, 9:43am UTC](https://discourse.julialang.org/t/ann-sirus-jl-v2-interpretable-machine-learning-via-rule-extraction/107012 "2023-12-03T09:43:44Z")

</div>

Version 2 of the SIRUS.jl package has been registered. Since version 1, some outward facing data structures have changed to be more intuitive. More importantly, the implementation has gotten simpler because a unnecess…

---

## [No more 'isprime' function in Julia 1.9.3？](https://discourse.julialang.org/t/no-more-isprime-function-in-julia-1-9-3/107069)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [December 3, 2023, 7:21am UTC](https://discourse.julialang.org/t/no-more-isprime-function-in-julia-1-9-3/107069 "2023-12-03T07:21:39Z")

</div>

I typed ?, then isprime, and got the message Couldn’t find isprime But I saw this function in the video Is the function deleted?

---

## [Why does eltype not return upper type bound?](https://discourse.julialang.org/t/why-does-eltype-not-return-upper-type-bound/107054)

<div class="topic-metadata">

**Author:** [@tscode](https://discourse.julialang.org/u/tscode)\
**Replies:** 7\
**Last updated:** [December 3, 2023, 6:22am UTC](https://discourse.julialang.org/t/why-does-eltype-not-return-upper-type-bound/107054 "2023-12-03T06:22:35Z")

</div>

My code just stumbled over eltype(Array{F} where {F \<: Integer}) returning Any instead of Integer. Has this just not been implemented yet (i.e., should I open an issue?), or are there good reasons for this behavior that …

---

## [Column alignment and spacing in BrowseTables.HTMLTable](https://discourse.julialang.org/t/column-alignment-and-spacing-in-browsetables-htmltable/107068)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 0\
**Last updated:** [December 3, 2023, 4:49am UTC](https://discourse.julialang.org/t/column-alignment-and-spacing-in-browsetables-htmltable/107068 "2023-12-03T04:49:57Z")

</div>

There are 2 formatting options I would like to have and I don’t know if they are available. 1.Can HTMLTable take arguments that define alignment? If so, can someone provide a simple example to demonstrate the syntax? …

---

## [How to read large matrices in Julia?](https://discourse.julialang.org/t/how-to-read-large-matrices-in-julia/107062)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 9\
**Last updated:** [December 3, 2023, 3:37am UTC](https://discourse.julialang.org/t/how-to-read-large-matrices-in-julia/107062 "2023-12-03T03:37:51Z")

</div>

I’m trying to read text files defining matrices of the form q = Int\[1 0 0 1; 0 1 1 1; 1 0 1 0; 0 0 1 1\] via julia matrix.jl or julia -L matrix.jl. It breaks down for matrices slightly larger than 1000x1000. For example…

---

## [Perplexing behavior when computing the matmul smoke test on GPU in Julia](https://discourse.julialang.org/t/perplexing-behavior-when-computing-the-matmul-smoke-test-on-gpu-in-julia/106994)

<div class="topic-metadata">

**Author:** [@Aakhash\_Sundaresan](https://discourse.julialang.org/u/Aakhash_Sundaresan)\
**Replies:** 5\
**Last updated:** [December 3, 2023, 3:33am UTC](https://discourse.julialang.org/t/perplexing-behavior-when-computing-the-matmul-smoke-test-on-gpu-in-julia/106994 "2023-12-03T03:33:51Z")

</div>

@avikpal , @ChrisRackauckas Why is that when I compute the matmul smoke test for the first time and time it, it takes long time than the CPU computation, and also the allocations are huge. When I again try to compute …

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

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