# Latest

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

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

**Page:** 774

---

## [Slurm Manager not working](https://discourse.julialang.org/t/slurm-manager-not-working/94975)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 6:37pm UTC](https://discourse.julialang.org/t/slurm-manager-not-working/94975 "2023-02-22T18:37:41Z")

</div>

I am trying to use the ClusterManagers package for parallel computing, but I am getting an error message that I don’t understand. I am writing my code in a Jupyter notebook in VS Code, and this is the part of the initial…

---

## [Dropout in UDEs using SciML and Lux](https://discourse.julialang.org/t/dropout-in-udes-using-sciml-and-lux/94960)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.julialang.org/u/nina)\
**Replies:** 6\
**Last updated:** [February 22, 2023, 5:32pm UTC](https://discourse.julialang.org/t/dropout-in-udes-using-sciml-and-lux/94960 "2023-02-22T17:32:49Z")

</div>

Dear all, I am trying to use a Dropout layer in the NN component of a UDE for parameter estimation. It does work if I use a setup based on Flux. However, if I switch to Lux I get an error message too long to be displaye…

---

## ["LoadError: Evaluation into the closed module" with Macro that generates new types and methods](https://discourse.julialang.org/t/loaderror-evaluation-into-the-closed-module-with-macro-that-generates-new-types-and-methods/94994)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 5\
**Last updated:** [February 22, 2023, 4:08pm UTC](https://discourse.julialang.org/t/loaderror-evaluation-into-the-closed-module-with-macro-that-generates-new-types-and-methods/94994 "2023-02-22T16:08:14Z")

</div>

I’m working on a package that allows users to define pipeline tasks in an ergonomic way and then schedules jobs and their dependencies with Dagger.jl. I have a macro that takes a user input like this: @Job begin na…

---

## [MPI and println inside imported modules](https://discourse.julialang.org/t/mpi-and-println-inside-imported-modules/95026)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 3:57pm UTC](https://discourse.julialang.org/t/mpi-and-println-inside-imported-modules/95026 "2023-02-22T15:57:48Z")

</div>

Dear Juliawers, I’m using optimizing a function in julia which is parallelized using MPI. Each time I have to print something, I check if the rank is zero to avoid printing the text as many times as the number of proce…

---

## [Proper way to create sysimage with all dependencies of a given package](https://discourse.julialang.org/t/proper-way-to-create-sysimage-with-all-dependencies-of-a-given-package/91460)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 9\
**Last updated:** [February 22, 2023, 3:06pm UTC](https://discourse.julialang.org/t/proper-way-to-create-sysimage-with-all-dependencies-of-a-given-package/91460 "2023-02-22T15:06:37Z")

</div>

What’s the proper way to create a custom sysimage for the following situation: I am developing a package with at least a moderately large set of dependencies (Trixi.jl) and I would like to speed up startup latency by co…

---

## [Custom printing of struct getting printed before string](https://discourse.julialang.org/t/custom-printing-of-struct-getting-printed-before-string/95024)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 2:57pm UTC](https://discourse.julialang.org/t/custom-printing-of-struct-getting-printed-before-string/95024 "2023-02-22T14:57:53Z")

</div>

I have a struct that I would like to define a custom way of printing it. This is done by overloading the Base.show function: struct customType a::Int b::Int end function Base.show(io::IO, state::customType) …

---

## [How to create a multigraph with weights?](https://discourse.julialang.org/t/how-to-create-a-multigraph-with-weights/77020)

<div class="topic-metadata">

**Author:** [@MILAJO](https://discourse.julialang.org/u/MILAJO)\
**Replies:** 5\
**Last updated:** [February 22, 2023, 2:40pm UTC](https://discourse.julialang.org/t/how-to-create-a-multigraph-with-weights/77020 "2023-02-22T14:40:00Z")

</div>

Hi. I have now been searching through multiple source codes within the different Julia graphs packages ( Graphs, MetaGraphs, SimpleWeightedGraphs) and also found the package called Multigraphs. However, I cannot seem to…

---

## [How to submit small changes to julia](https://discourse.julialang.org/t/how-to-submit-small-changes-to-julia/95005)

<div class="topic-metadata">

**Author:** [@birl](https://discourse.julialang.org/u/birl)\
**Replies:** 7\
**Last updated:** [February 22, 2023, 2:33pm UTC](https://discourse.julialang.org/t/how-to-submit-small-changes-to-julia/95005 "2023-02-22T14:33:50Z")

</div>

While going through the code of Pkg.jl, I realized that UPLEVEL\_MAJOR is exported twice. Pkg.jl/src/Pkg.jl:17 export UpgradeLevel, UPLEVEL\_MAJOR, UPLEVEL\_MAJOR, UPLEVEL\_MINOR, UPLEVEL\_PATCH My first instinct was to cr…

---

## [Problem with multi-armed bandit problem: explore vs. exploit dilemmas](https://discourse.julialang.org/t/problem-with-multi-armed-bandit-problem-explore-vs-exploit-dilemmas/95002)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 1:56pm UTC](https://discourse.julialang.org/t/problem-with-multi-armed-bandit-problem-explore-vs-exploit-dilemmas/95002 "2023-02-22T13:56:22Z")

</div>

A methodology which is called Thompson sampling per multi-armed bandit problem is illustrated here § 3.8 Example: Bayesian Bandits In the description of this simulated experiment I cannot understand this instruction …

---

## [Splitpath on UNC shares](https://discourse.julialang.org/t/splitpath-on-unc-shares/95015)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 1:11pm UTC](https://discourse.julialang.org/t/splitpath-on-unc-shares/95015 "2023-02-22T13:11:58Z")

</div>

Is there a way to get also the server name split from the path? julia\> splitpath("\\\\\\\\svfae01-solid01\\\\SED\\\\SE") 2-element Vector{String}: "\\\\\\\\svfae01-solid01\\\\SED\\\\" "SE" I would like to get "\\\\\\\\svfae01-solid01\\…

---

## [Is static scheduling available in Julia multi-threading?](https://discourse.julialang.org/t/is-static-scheduling-available-in-julia-multi-threading/94970)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 4:28pm UTC](https://discourse.julialang.org/t/is-static-scheduling-available-in-julia-multi-threading/94970 "2023-02-21T16:28:05Z")

</div>

I want to use multi-threading (with @spawn/@thread) in a static scheduling to prevent threads jumping during the time-loop in this MWE, nthreads()=2 here: using .Threads function f\_spawn() thrs = \[Threads.@spawn begi…

---

## [No model matching using MLJ, how should I prepare my data?](https://discourse.julialang.org/t/no-model-matching-using-mlj-how-should-i-prepare-my-data/94955)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 12:33pm UTC](https://discourse.julialang.org/t/no-model-matching-using-mlj-how-should-i-prepare-my-data/94955 "2023-02-22T12:33:12Z")

</div>

Hi, I’m taking one of my first steps into MLJ by writing a simple script that can predict diverse fields for my research. I know what I want to do can be achieved using simpler interpolation methods or Flux.jl, but I wa…

---

## [VSCode and Julia 1.9.0-Beta4](https://discourse.julialang.org/t/vscode-and-julia-1-9-0-beta4/94977)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 12:21pm UTC](https://discourse.julialang.org/t/vscode-and-julia-1-9-0-beta4/94977 "2023-02-22T12:21:04Z")

</div>

Any help appreciated in resolving the following problem. I have been using VSCode with Julia 1.8.5 and all has been well. Now I am trying 1.9.0-Beta4 and coming up with error messages. These are both in pop up window…

---

## [Filter julia testsets by keyword](https://discourse.julialang.org/t/filter-julia-testsets-by-keyword/94983)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 8:55am UTC](https://discourse.julialang.org/t/filter-julia-testsets-by-keyword/94983 "2023-02-22T08:55:44Z")

</div>

Is there some functionality to filter which julia tests actually get run? For example, maybe a convenient way to pass a string via the command line, and then Julia only runs the testsets with a name that contains said st…

---

## [\[ANN\] ManoptExamples.jl – Optimization Tasks on Manifolds](https://discourse.julialang.org/t/ann-manoptexamples-jl-optimization-tasks-on-manifolds/95001)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 8:13am UTC](https://discourse.julialang.org/t/ann-manoptexamples-jl-optimization-tasks-on-manifolds/95001 "2023-02-22T08:13:10Z")

</div>

With both Manifolds.jl and Manopt.jl being relatively stable by now, we decided to start a package that focuses on providing easy access to example problems. ManoptExamples.jl is a (for now early stage, young) package t…

---

## [Design / impl / internals of Revise.jl?](https://discourse.julialang.org/t/design-impl-internals-of-revise-jl/95000)

<div class="topic-metadata">

**Author:** [@zeroexcuses](https://discourse.julialang.org/u/zeroexcuses)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 8:22am UTC](https://discourse.julialang.org/t/design-impl-internals-of-revise-jl/95000 "2023-02-22T08:22:08Z")

</div>

Is there a resource describing the internal data structures of Revise.jl ? My current suspicions are: somewhere inside Revise.jl there is a directed acyclic graph there is some inotify-like watcher that tags nodes…

---

## [Mutable vs immutable struct: modifying an array field](https://discourse.julialang.org/t/mutable-vs-immutable-struct-modifying-an-array-field/94976)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 4\
**Last updated:** [February 22, 2023, 8:15am UTC](https://discourse.julialang.org/t/mutable-vs-immutable-struct-modifying-an-array-field/94976 "2023-02-22T08:15:32Z")

</div>

I am confused about the mutable vs immutable struct documentation. For composite types, this means that the identity of the values of its fields will never change. When the fields are bits types, that means their bits …

---

## [Usage of arrays of static arrays](https://discourse.julialang.org/t/usage-of-arrays-of-static-arrays/94945)

<div class="topic-metadata">

**Author:** [@Ender\_L](https://discourse.julialang.org/u/Ender_L)\
**Replies:** 16\
**Last updated:** [February 22, 2023, 8:03am UTC](https://discourse.julialang.org/t/usage-of-arrays-of-static-arrays/94945 "2023-02-22T08:03:33Z")

</div>

I was tempted to use arrays of static 3-element vectors for x,y,z coordinates that will be used for many geometrical calculations. To test performance, I wrote some codes that basically calculates unit vectors along a cu…

---

## [How get the values of pdf function Beta](https://discourse.julialang.org/t/how-get-the-values-of-pdf-function-beta/94962)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 12\
**Last updated:** [February 22, 2023, 7:53am UTC](https://discourse.julialang.org/t/how-get-the-values-of-pdf-function-beta/94962 "2023-02-22T07:53:51Z")

</div>

using Distributions using StatsPlots plot(Beta(1, 1), ylim=(0, 5), size=(400, 300), label=false, xlabel="x", ylabel="P(x)", title="Beta distribution shapes") How does plot get the values of the Beta pdfunction …

---

## [Does integral function related optimization supported in Julia?](https://discourse.julialang.org/t/does-integral-function-related-optimization-supported-in-julia/94836)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 12\
**Last updated:** [February 22, 2023, 7:22am UTC](https://discourse.julialang.org/t/does-integral-function-related-optimization-supported-in-julia/94836 "2023-02-22T07:22:11Z")

</div>

Hi all, I have a nonlinear optimization problem that involves integral functions, for instance: F(x, a) = $$\\int\_0^x a\*(x - 4y^3)dy + \\int\_0^x\\int\_0^3y (7s^2)dsdy$$ How can I define this objective (involves single a…

---

## [How to average column values in a dataframe based on multiple other matching columns?](https://discourse.julialang.org/t/how-to-average-column-values-in-a-dataframe-based-on-multiple-other-matching-columns/94998)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 6:32am UTC](https://discourse.julialang.org/t/how-to-average-column-values-in-a-dataframe-based-on-multiple-other-matching-columns/94998 "2023-02-22T06:32:18Z")

</div>

Hi all, I’ve created a DataFrame as seen below: using DataFrames # package dependency original\_df = DataFrame(; Year=Int\[\], Name=String\[\], Surname=String\[\], Rating=Int\[\], ValueOne=Float64\[\], ValueTwo=Float64\[\]) pus…

---

## [Adjusting scales for size automatically in GLMakie](https://discourse.julialang.org/t/adjusting-scales-for-size-automatically-in-glmakie/94997)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 6:17am UTC](https://discourse.julialang.org/t/adjusting-scales-for-size-automatically-in-glmakie/94997 "2023-02-22T06:17:42Z")

</div>

I have my own custom theme for figures used in publication, and usually I set all the default sizes (e.g. fontsize, linewidth, etc) assuming the figure has a specific figure width since that is usually the fixed by the j…

---

## [Is there any way to solve a containg Binvary variables Nonconvex problem?](https://discourse.julialang.org/t/is-there-any-way-to-solve-a-containg-binvary-variables-nonconvex-problem/94992)

<div class="topic-metadata">

**Author:** [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)\
**Replies:** 6\
**Last updated:** [February 22, 2023, 5:27am UTC](https://discourse.julialang.org/t/is-there-any-way-to-solve-a-containg-binvary-variables-nonconvex-problem/94992 "2023-02-22T05:27:45Z")

</div>

Hi there, I’m solving a Nonconvex problem, and the nonconvex terms are: @constraint(gNet, gasPipeFlow\[pipeline, time\]^2 == ETA\*(gasNodePres\[AheadNode, time\]^2 - gasNodePres\[TailNode, time\]^2)) gasPipeFlow and gasNodeP…

---

## [A way to define legends for Makie recipes?](https://discourse.julialang.org/t/a-way-to-define-legends-for-makie-recipes/88449)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [October 19, 2022, 4:13pm UTC](https://discourse.julialang.org/t/a-way-to-define-legends-for-makie-recipes/88449 "2022-10-19T16:13:59Z")

</div>

After successfully converting all of my plotting functions to actual Makie recipes, I am now wondering if there is an official way to provide legends for custom plots. I know that at the moment, recipes cannot modify th…

---

## [How to include bitmap images in CairoMakie?](https://discourse.julialang.org/t/how-to-include-bitmap-images-in-cairomakie/94988)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 1:54am UTC](https://discourse.julialang.org/t/how-to-include-bitmap-images-in-cairomakie/94988 "2023-02-22T01:54:52Z")

</div>

I have a big figure panel which consists many smaller 2D/3D figures. As I would like vector graphics for the 2D parts (and if possible the axes labels, titles, etc for the 3D parts) I use CairoMakie. However, I find that…

---

## [How to (if possible) re-write this simple censored Poisson model without Turing.@addlogprob!](https://discourse.julialang.org/t/how-to-if-possible-re-write-this-simple-censored-poisson-model-without-turing-addlogprob/94902)

<div class="topic-metadata">

**Author:** [@AdamR](https://discourse.julialang.org/u/AdamR)\
**Replies:** 13\
**Last updated:** [February 22, 2023, 12:19am UTC](https://discourse.julialang.org/t/how-to-if-possible-re-write-this-simple-censored-poisson-model-without-turing-addlogprob/94902 "2023-02-22T00:19:10Z")

</div>

I want to estimate the Poisson distribution parameter λ (usually λ \< 1). I am given N observations, however they are censored: I can only see if the value was 0 or greater than zero, i.e. Instead of observing the vector…

---

## [Minibatch ADVI?](https://discourse.julialang.org/t/minibatch-advi/94985)

<div class="topic-metadata">

**Author:** [@spragud2](https://discourse.julialang.org/u/spragud2)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 11:40pm UTC](https://discourse.julialang.org/t/minibatch-advi/94985 "2023-02-21T23:40:33Z")

</div>

Hey! I am trying to train a last-layer bayesian approximation for a neural network. The issue I am running in to is that ADVI tries to take the gradient of the entire dataset… obviously not going to work. Can the ADVI …

---

## [Convenience type for assembling sparse matrices](https://discourse.julialang.org/t/convenience-type-for-assembling-sparse-matrices/15262)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 11:36pm UTC](https://discourse.julialang.org/t/convenience-type-for-assembling-sparse-matrices/15262 "2023-02-21T23:36:00Z")

</div>

I find the IJV-approach to assembling sparse matrices quite cumbersome as it forces me to write three lines to set a single entry A\[i,j\] = v: push!(I,i) push!(J,j) push!(V,v) The situation becomes even worse if instead…

---

## [Libopenblas error for sysimage with Makie.jl](https://discourse.julialang.org/t/libopenblas-error-for-sysimage-with-makie-jl/94952)

<div class="topic-metadata">

**Author:** [@ForestRaven](https://discourse.julialang.org/u/ForestRaven)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 10:46pm UTC](https://discourse.julialang.org/t/libopenblas-error-for-sysimage-with-makie-jl/94952 "2023-02-21T22:46:34Z")

</div>

Hi, I’ve tried to create a sysimage for both GLMakie and CairoMakie with: pkg\> activate . Activating project at \`~/test/julia\` julia\> using PackageCompiler julia\> create\_sysimage(\["GLMakie", "CairoMakie"\]; sysimage\_p…

---

## [Pluto notebooks: HTML version with responsive sliders](https://discourse.julialang.org/t/pluto-notebooks-html-version-with-responsive-sliders/94982)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 10:26pm UTC](https://discourse.julialang.org/t/pluto-notebooks-html-version-with-responsive-sliders/94982 "2023-02-21T22:26:53Z")

</div>

Hi, I have seen some cases where the static versions of Pluto notebooks are responsive to slider changes, even though they are static HTML files. An example is the course given by @jbrea here. I wonder how that functi…

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

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