# Latest

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

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

**Page:** 473

---

## [Extend package methods / write add-ons](https://discourse.julialang.org/t/extend-package-methods-write-add-ons/77531)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 3\
**Last updated:** [February 27, 2024, 9:06pm UTC](https://discourse.julialang.org/t/extend-package-methods-write-add-ons/77531 "2024-02-27T21:06:06Z")

</div>

Hi, I am trying to write an add-on for a package, but I am struggling with a – likely minor – issue. Suppose that some package has a function function foo(S1::Any) .... bar(S1) .... and bar(S1) is defined …

---

## [Have you ever used "the" as a function or struct name? What was it meant for?](https://discourse.julialang.org/t/have-you-ever-used-the-as-a-function-or-struct-name-what-was-it-meant-for/110859)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 6:47pm UTC](https://discourse.julialang.org/t/have-you-ever-used-the-as-a-function-or-struct-name-what-was-it-meant-for/110859 "2024-02-27T18:47:41Z")

</div>

I just wrote a function called the to extract properties from an object. So you can do object.property or the(property, object) in a partially-applied way: the(property)(object). Bad idea? Edit: It works fine, but I’m w…

---

## [How to declare N nested Vectors?](https://discourse.julialang.org/t/how-to-declare-n-nested-vectors/110813)

<div class="topic-metadata">

**Author:** [@chaojin](https://discourse.julialang.org/u/chaojin)\
**Replies:** 15\
**Last updated:** [February 27, 2024, 8:14pm UTC](https://discourse.julialang.org/t/how-to-declare-n-nested-vectors/110813 "2024-02-27T20:14:47Z")

</div>

HI, I want to declare N nested Vectors in Julia. e.g. Vector{Int} Vector{Vector{Int}} ... Vector{Vector{....Vector{Int}...} # N dimensional nested Vector In C++, it can be implemented by using recursive specializatio…

---

## [What does \`MLJ.evaluate!(mach, ...)\` to \`mach\` parameters](https://discourse.julialang.org/t/what-does-mlj-evaluate-mach-to-mach-parameters/110857)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 6:59pm UTC](https://discourse.julialang.org/t/what-does-mlj-evaluate-mach-to-mach-parameters/110857 "2024-02-27T18:59:45Z")

</div>

The documentation does not say anything about this unfortunately. I am wondering how the parameters of the given machine mach are actually changed? Is it like a respective TunedModel? Can I use the mach further for pre…

---

## [File output, binary](https://discourse.julialang.org/t/file-output-binary/110751)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 6:38pm UTC](https://discourse.julialang.org/t/file-output-binary/110751 "2024-02-27T18:38:26Z")

</div>

I’m totally new to reading and writing things in files, so even if I use words like stream or stuff like that when coding, I do not truly understand them (and still not completely interested). I found a way to write and…

---

## [Create directories, read files and create file](https://discourse.julialang.org/t/create-directories-read-files-and-create-file/110855)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 5:19pm UTC](https://discourse.julialang.org/t/create-directories-read-files-and-create-file/110855 "2024-02-27T17:19:26Z")

</div>

I have this program in C++ (but even Python) which opens or creates a directory called file\_path, scrolls each text file which goes along the Data\_xyzw.txt format, finds the bigger xyzw and creates a name which is Data\_a…

---

## [Getting the min value of two dataframes with identical cols](https://discourse.julialang.org/t/getting-the-min-value-of-two-dataframes-with-identical-cols/110778)

<div class="topic-metadata">

**Author:** [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Replies:** 5\
**Last updated:** [February 27, 2024, 5:14pm UTC](https://discourse.julialang.org/t/getting-the-min-value-of-two-dataframes-with-identical-cols/110778 "2024-02-27T17:14:04Z")

</div>

I have two almost identical df julia\> df1 = DataFrame(ID = \[1, 2, 3, 4,6\], Value = \[10, 20, 30, 40,10\]) 5×2 DataFrame Row │ ID Value │ Int64 Int64 ─────┼────────────── 1 │ 1 …

---

## [Efficient ways to implement a (distributed) matrix-matrix product?](https://discourse.julialang.org/t/efficient-ways-to-implement-a-distributed-matrix-matrix-product/79466)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 4:30pm UTC](https://discourse.julialang.org/t/efficient-ways-to-implement-a-distributed-matrix-matrix-product/79466 "2024-02-27T16:30:46Z")

</div>

There are a huge sparse matrix A and a tall-and-skinny matrix B (a set of multiple vectors). I want partition them into pieces for parallel distributed-memory matrix-matrix (matrix-vectors) multiplication. Is there any w…

---

## [Allocating OnlineStats on the stack](https://discourse.julialang.org/t/allocating-onlinestats-on-the-stack/110856)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 4:26pm UTC](https://discourse.julialang.org/t/allocating-onlinestats-on-the-stack/110856 "2024-02-27T16:26:22Z")

</div>

I’m using OnlineStats to calculate a likelihood function, so I’m creating and destroying a LogSumExp for each row. LogSumExps, like all online stats, are mutable structs, so heap-allocated in general, but I thought that …

---

## [Communication between structures](https://discourse.julialang.org/t/communication-between-structures/110848)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 4:11pm UTC](https://discourse.julialang.org/t/communication-between-structures/110848 "2024-02-27T16:11:22Z")

</div>

Suppose I have two structures A and B. When I instantiate A it creates a bunch of arrays say a, b, and c that every instance of B needs to performe it’s calculations. Let x and y be instances of B. Then to calculate x…

---

## [BenchmarkTools.jl and VScode](https://discourse.julialang.org/t/benchmarktools-jl-and-vscode/110791)

<div class="topic-metadata">

**Author:** [@Heng\_Zhang](https://discourse.julialang.org/u/Heng_Zhang)\
**Replies:** 6\
**Last updated:** [February 27, 2024, 3:57pm UTC](https://discourse.julialang.org/t/benchmarktools-jl-and-vscode/110791 "2024-02-27T15:57:59Z")

</div>

‘’‘julia using BenchmarkTools @benchmark sort(data) setup=(data=rand(10)) ‘’’ When I ran these code in Vs-code, errors as below: BenchmarkTools.Trial: 10000 samples with 1000 evaluations. ERROR: MethodError: no met…

---

## [Y-axis in CairoMakie.jl not vertical](https://discourse.julialang.org/t/y-axis-in-cairomakie-jl-not-vertical/93165)

<div class="topic-metadata">

**Author:** [@mgp](https://discourse.julialang.org/u/mgp)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 3:32pm UTC](https://discourse.julialang.org/t/y-axis-in-cairomakie-jl-not-vertical/93165 "2024-02-27T15:32:17Z")

</div>

I am making plots in CairoMakie.jl (v0.10.1) and noticed that the y-axis isn’t quite vertical. It generally looks less tidy than the x-axis. using CairoMakie CairoMakie.activate!() xs = rand(100); ys = rand(100) fig, a…

---

## [How to reuse a local python environment when starting Julia Jupyter notebook?](https://discourse.julialang.org/t/how-to-reuse-a-local-python-environment-when-starting-julia-jupyter-notebook/110847)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 2:23pm UTC](https://discourse.julialang.org/t/how-to-reuse-a-local-python-environment-when-starting-julia-jupyter-notebook/110847 "2024-02-27T14:23:10Z")

</div>

I have configured a micromamba environment plot manually with all dependencies satisfied. And I want PythonCall.jl (or CondaPkg.jl) to use this environment. In terminal and Julia REPL, I can make it as follows: PS C:\\Us…

---

## [\[ANN\] ArrayPadding.jl - periodic, symmetric, smooth or constants padding](https://discourse.julialang.org/t/ann-arraypadding-jl-periodic-symmetric-smooth-or-constants-padding/104403)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 17\
**Last updated:** [February 27, 2024, 1:57pm UTC](https://discourse.julialang.org/t/ann-arraypadding-jl-periodic-symmetric-smooth-or-constants-padding/104403 "2024-02-27T13:57:07Z")

</div>

ArrayPadding.jl Pads arrays of any dimension with various border options including constants, periodic, symmetric, mirror and smooth. Can control amount of padding applied to the left and right side of each dimension. Fu…

---

## [Error while using update\_julia()](https://discourse.julialang.org/t/error-while-using-update-julia/103182)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 9\
**Last updated:** [February 27, 2024, 1:25pm UTC](https://discourse.julialang.org/t/error-while-using-update-julia/103182 "2024-02-27T13:25:31Z")

</div>

I’m facing issue while updating julia version. I keep getting this error. Can someone explain where exactly is issue? ERROR: failed process: Process(\`ln -sf /Applications/Julia-1.9.3.app/Contents/Resources/julia/bin/jul…

---

## [Why do we need locks when a thread is waiting for an event from another thread?](https://discourse.julialang.org/t/why-do-we-need-locks-when-a-thread-is-waiting-for-an-event-from-another-thread/110846)

<div class="topic-metadata">

**Author:** [@Dandan](https://discourse.julialang.org/u/Dandan)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 1:16pm UTC](https://discourse.julialang.org/t/why-do-we-need-locks-when-a-thread-is-waiting-for-an-event-from-another-thread/110846 "2024-02-27T13:16:18Z")

</div>

This is rather a general question about low level internals of parallel computing, I guess. Suppose I have two threads and one is waiting for another to finish some job. In Julia I can program it with Threads.Condition,…

---

## [Tutorial: Deploying an Oxygen.jl app to Microsoft Azure](https://discourse.julialang.org/t/tutorial-deploying-an-oxygen-jl-app-to-microsoft-azure/107595)

<div class="topic-metadata">

**Author:** [@Snowy](https://discourse.julialang.org/u/Snowy)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 1:06pm UTC](https://discourse.julialang.org/t/tutorial-deploying-an-oxygen-jl-app-to-microsoft-azure/107595 "2024-02-27T13:06:59Z")

</div>

Hi everyone, I’ve recently been working on a web app in Julia and wanted to share what I’ve learned as it may help those in the future. In particular, deploying an API is a new skill for me and so I thought I’d help out…

---

## [Deep learning with Flux.jl and gumbel-softmax trick](https://discourse.julialang.org/t/deep-learning-with-flux-jl-and-gumbel-softmax-trick/110810)

<div class="topic-metadata">

**Author:** [@Flavio\_Barros](https://discourse.julialang.org/u/Flavio_Barros)\
**Replies:** 2\
**Last updated:** [February 27, 2024, 12:48pm UTC](https://discourse.julialang.org/t/deep-learning-with-flux-jl-and-gumbel-softmax-trick/110810 "2024-02-27T12:48:05Z")

</div>

I am new to Julia, but I’m evaluating Flux.jl as an option to implement a Variational Autoencoder (VAE). But, unfortunately, I’m not finding an example using the gumbel-softmax trick. I found on Pytorch, but I wonder how…

---

## [\[ANN\] JointSurvivalModels.jl - A Julia package for joint modeling of survival and longitudinal data](https://discourse.julialang.org/t/ann-jointsurvivalmodels-jl-a-julia-package-for-joint-modeling-of-survival-and-longitudinal-data/110841)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.julialang.org/u/Yannik)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 12:16pm UTC](https://discourse.julialang.org/t/ann-jointsurvivalmodels-jl-a-julia-package-for-joint-modeling-of-survival-and-longitudinal-data/110841 "2024-02-27T12:16:25Z")

</div>

Hi JointSurvivalModels.jl is a package for Bayesian joint modeling of survival and longitudinal data. You can define distributions based on a hazard function with links to longitudinal models (and covariates). It subty…

---

## [Is there a generic function for appending an element to an immutable collection?](https://discourse.julialang.org/t/is-there-a-generic-function-for-appending-an-element-to-an-immutable-collection/109883)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 9\
**Last updated:** [February 27, 2024, 11:34am UTC](https://discourse.julialang.org/t/is-there-a-generic-function-for-appending-an-element-to-an-immutable-collection/109883 "2024-02-27T11:34:06Z")

</div>

Suppose v::T supports getindex and length, but it is not necessarily an \<:AbstractVector and may not be mutable. Is there a generic function (possibly defined in a package, not Base) for appending one element, creating …

---

## [What is the actual difference between AvancedMH.jl's Static and RandomWalk Prposals](https://discourse.julialang.org/t/what-is-the-actual-difference-between-avancedmh-jls-static-and-randomwalk-prposals/110838)

<div class="topic-metadata">

**Author:** [@caesoma](https://discourse.julialang.org/u/caesoma)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:59am UTC](https://discourse.julialang.org/t/what-is-the-actual-difference-between-avancedmh-jls-static-and-randomwalk-prposals/110838 "2024-02-27T09:59:05Z")

</div>

I am trying to modify the proposal distributions in the Metropolis-Hastings sampler in the AdvancedMH.jl package. It is not clear to me what the Static and RandomWalk proposals do. As I understand it, the former draws a…

---

## [Adaptive proposals in AdvancedMH.jl (or other Metropolis-capable) package](https://discourse.julialang.org/t/adaptive-proposals-in-advancedmh-jl-or-other-metropolis-capable-package/110837)

<div class="topic-metadata">

**Author:** [@caesoma](https://discourse.julialang.org/u/caesoma)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:42am UTC](https://discourse.julialang.org/t/adaptive-proposals-in-advancedmh-jl-or-other-metropolis-capable-package/110837 "2024-02-27T09:42:03Z")

</div>

I am trying to run an MCMC chain with a Metropolis-Hastings sampler, but a fixed proposal distribution normally yields poor results. Apparently the AdvancedMH.jl package doesn’t have the feature for tuning the variance o…

---

## [DiffEqCallback and quadrature calculation with IntegratingCallback](https://discourse.julialang.org/t/diffeqcallback-and-quadrature-calculation-with-integratingcallback/110836)

<div class="topic-metadata">

**Author:** [@a6a3uh](https://discourse.julialang.org/u/a6a3uh)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:36am UTC](https://discourse.julialang.org/t/diffeqcallback-and-quadrature-calculation-with-integratingcallback/110836 "2024-02-27T09:36:58Z")

</div>

Hi! I’m trying to calculate some integral along the IVP for some ODE. In particular I’m calculating a running cost for my control system simulation (or value of some functional). It looks like IntegratingCallback and In…

---

## [How can I disable the event handler in a fixed time interval after an event?](https://discourse.julialang.org/t/how-can-i-disable-the-event-handler-in-a-fixed-time-interval-after-an-event/110823)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 9:29am UTC](https://discourse.julialang.org/t/how-can-i-disable-the-event-handler-in-a-fixed-time-interval-after-an-event/110823 "2024-02-27T09:29:13Z")

</div>

I have checked the document of DifferentialEquations.jl about the Event handler page. It seems that I should set repeat\_nudge in a ContinuousCallback. However, it doesn’t work. Here is an MME: using OrdinaryDiffEq, Sta…

---

## [Best method for having a single number that is mutable](https://discourse.julialang.org/t/best-method-for-having-a-single-number-that-is-mutable/110820)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 6\
**Last updated:** [February 27, 2024, 9:25am UTC](https://discourse.julialang.org/t/best-method-for-having-a-single-number-that-is-mutable/110820 "2024-02-27T09:25:06Z")

</div>

I often find myself doing the following: struct MyType x::Float64 some\_other\_fields end where I want to sometimes change the value of x. What’s the best way to deal with this? It seems a bit silly to rebuild a M…

---

## [Julia 1.10.2 testing period](https://discourse.julialang.org/t/julia-1-10-2-testing-period/110834)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 9:22am UTC](https://discourse.julialang.org/t/julia-1-10-2-testing-period/110834 "2024-02-27T09:22:44Z")

</div>

The release-1.10 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.10.2. The list of commits included since v1.10.1 is available here . As a patch release, it should be non-breaki…

---

## [Unable to install CUDA - problem with CUDA\_runtime package on HPC system](https://discourse.julialang.org/t/unable-to-install-cuda-problem-with-cuda-runtime-package-on-hpc-system/110809)

<div class="topic-metadata">

**Author:** [@JamesA](https://discourse.julialang.org/u/JamesA)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 7:05am UTC](https://discourse.julialang.org/t/unable-to-install-cuda-problem-with-cuda-runtime-package-on-hpc-system/110809 "2024-02-27T07:05:18Z")

</div>

Hi, I’m trying to install CUDA into a virtual environment on a HPC machine running Red Hat 8. I load the CUDA and Julia modules, and then I create a new virtual environment by creating a directory, cd’ing into it, start…

---

## [What is the difference between NeuralPDE and Nvidia Modulus sym in python?](https://discourse.julialang.org/t/what-is-the-difference-between-neuralpde-and-nvidia-modulus-sym-in-python/110826)

<div class="topic-metadata">

**Author:** [@Maysam\_Gholampour](https://discourse.julialang.org/u/Maysam_Gholampour)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 6:54am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-neuralpde-and-nvidia-modulus-sym-in-python/110826 "2024-02-27T06:54:48Z")

</div>

Hi, I want to know what is the difference between the default nn architecture in Julia and Nvidia Modulus Sym. I mean here we have Lux and create network for each variable. what I mean about defuault in julia is somethi…

---

## [NeuralPDE tutorial not running](https://discourse.julialang.org/t/neuralpde-tutorial-not-running/110188)

<div class="topic-metadata">

**Author:** [@Y\_Sungtaek\_JU](https://discourse.julialang.org/u/Y_Sungtaek_JU)\
**Replies:** 7\
**Last updated:** [February 27, 2024, 6:43am UTC](https://discourse.julialang.org/t/neuralpde-tutorial-not-running/110188 "2024-02-27T06:43:16Z")

</div>

I am new to NeuralPDE.jl. I tried the second tutorial for PDE PINN (defining systems of PDEs for PINNs) https://docs.sciml.ai/NeuralPDE/stable/tutorials/systems/#systems But I got the error message below for the line: …

---

## [Cross Asset Skew using Julia](https://discourse.julialang.org/t/cross-asset-skew-using-julia/110824)

<div class="topic-metadata">

**Author:** [@dm13450](https://discourse.julialang.org/u/dm13450)\
**Replies:** 0\
**Last updated:** [February 27, 2024, 6:19am UTC](https://discourse.julialang.org/t/cross-asset-skew-using-julia/110824 "2024-02-27T06:19:26Z")

</div>

Hey, I’ve written about using Skew as a trading strategy Cross Asset Skew - A Trading Strategy | Dean Markwick

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

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