# Latest

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

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

**Page:** 578

---

## [Order of methods docstrings inside function block when using Documenter](https://discourse.julialang.org/t/order-of-methods-docstrings-inside-function-block-when-using-documenter/104922)

<div class="topic-metadata">

**Author:** [@Alexey\_Bogdanov](https://discourse.julialang.org/u/Alexey_Bogdanov)\
**Replies:** 0\
**Last updated:** [October 13, 2023, 9:16am UTC](https://discourse.julialang.org/t/order-of-methods-docstrings-inside-function-block-when-using-documenter/104922 "2023-10-13T09:16:46Z")

</div>

Hi everyone! I’m having trouble with order of appearance of methods docstrings inside a function block using Documenter.jl macro @docs. This order seems to be random. That is everytime I build the docs the order of meth…

---

## [Static HMC mass matrix/metric parameter](https://discourse.julialang.org/t/static-hmc-mass-matrix-metric-parameter/104926)

<div class="topic-metadata">

**Author:** [@caesoma](https://discourse.julialang.org/u/caesoma)\
**Replies:** 0\
**Last updated:** [October 13, 2023, 10:13am UTC](https://discourse.julialang.org/t/static-hmc-mass-matrix-metric-parameter/104926 "2023-10-13T10:13:46Z")

</div>

I am running inference of a nonlinear model as described here it will run (albeit poorly) even with Metropolis-Hastings, and with acceptable results with NUTS and HMC with Dual averaging tuning of path length: With va…

---

## [JuliaUserGroupMunich: Jinguo Liu, Quantum Computing with Yao.jl](https://discourse.julialang.org/t/juliausergroupmunich-jinguo-liu-quantum-computing-with-yao-jl/104248)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 4\
**Last updated:** [October 13, 2023, 9:09am UTC](https://discourse.julialang.org/t/juliausergroupmunich-jinguo-liu-quantum-computing-with-yao-jl/104248 "2023-10-13T09:09:19Z")

</div>

Join us online :spiral\_calendar: Monday 9. October 2023 :clock630: 18:30 CEST organized via meetup Quantum Computing with Yao.jl ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ I am glad to welcome Jinguo Liu as our speaker. He is one…

---

## [Function in module is not visible even though it's listed in the module and exported](https://discourse.julialang.org/t/function-in-module-is-not-visible-even-though-its-listed-in-the-module-and-exported/104915)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 1\
**Last updated:** [October 13, 2023, 4:23am UTC](https://discourse.julialang.org/t/function-in-module-is-not-visible-even-though-its-listed-in-the-module-and-exported/104915 "2023-10-13T04:23:42Z")

</div>

I made a package, which is in the julia registry, called Spacey.jl. I added a function to the module and exported it. When I try to using the package/module, the new function pointGroup is not found, but names shows that…

---

## [Single folder shared by different machines](https://discourse.julialang.org/t/single-folder-shared-by-different-machines/104910)

<div class="topic-metadata">

**Author:** [@Farcitoast](https://discourse.julialang.org/u/Farcitoast)\
**Replies:** 3\
**Last updated:** [October 13, 2023, 4:29am UTC](https://discourse.julialang.org/t/single-folder-shared-by-different-machines/104910 "2023-10-13T04:29:37Z")

</div>

Hi everyone, I’m quite new to Julia, and I’m having trouble finding the best way to have a shared folder between several machines that might run some Julia scripts in parallel. My typical workflow is the following: I …

---

## [\[ANN\] Package Conditions.jl](https://discourse.julialang.org/t/ann-package-conditions-jl/104863)

<div class="topic-metadata">

**Author:** [@bertschi](https://discourse.julialang.org/u/bertschi)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 9:17pm UTC](https://discourse.julialang.org/t/ann-package-conditions-jl/104863 "2023-10-12T21:17:58Z")

</div>

Conditions.jl is a proof-of-principle implementation of a Common Lisp like condition system. In contrast to throwing an exception, signalling a condition does not unwind the stack. This allows a condition handler to res…

---

## [Eachslice(ones(3),dims=2)](https://discourse.julialang.org/t/eachslice-ones-3-dims-2/104907)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 8:30pm UTC](https://discourse.julialang.org/t/eachslice-ones-3-dims-2/104907 "2023-10-12T20:30:17Z")

</div>

fails, while eachslice(ones(3,1),dims=2) works well. (Similar for other dimensions and higher order dims). This is somewhat inconsistent with the fact that ones(3)\[:,1\] does its job, and it is also inconvenient. EDIT: …

---

## [Makie line plots using colormaps?](https://discourse.julialang.org/t/makie-line-plots-using-colormaps/104908)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 8:23pm UTC](https://discourse.julialang.org/t/makie-line-plots-using-colormaps/104908 "2023-10-12T20:23:34Z")

</div>

Hi, I would like to produce a line plot where the color of each line is taken from a colormap, like batlow , see Colors · Makie I’ve tried lines(1:20, color=:batlow10\[3\]) and variations thereof but couldn’t get it to…

---

## [How to use BigFloats with ccall?](https://discourse.julialang.org/t/how-to-use-bigfloats-with-ccall/104895)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 7:35pm UTC](https://discourse.julialang.org/t/how-to-use-bigfloats-with-ccall/104895 "2023-10-12T19:35:05Z")

</div>

I want to call a C library that uses MPFR in my Julia code. The issue is, I can’t make it work: if I manipulate a BigFloat declared in Julia within the C code, it becomes NaN. Here is an example: #include \<gmp.h\> #inclu…

---

## [Meshes.Vec is ambiguous](https://discourse.julialang.org/t/meshes-vec-is-ambiguous/104836)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 22\
**Last updated:** [October 12, 2023, 5:55pm UTC](https://discourse.julialang.org/t/meshes-vec-is-ambiguous/104836 "2023-10-12T17:55:11Z")

</div>

Hello, When I run the code above, I get: ERROR: LoadError: MethodError: Meshes.Vec(::Vector{Float64}) is ambiguous. However I only import (not using) Meshes, and there’s no Meshes.Vec in my code. What should I do? us…

---

## [\[ANN\] Exodus.jl - A wrapper for the exodusII file format for finite elements](https://discourse.julialang.org/t/ann-exodus-jl-a-wrapper-for-the-exodusii-file-format-for-finite-elements/104896)

<div class="topic-metadata">

**Author:** [@Craig\_Hamel](https://discourse.julialang.org/u/Craig_Hamel)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 4:28pm UTC](https://discourse.julialang.org/t/ann-exodus-jl-a-wrapper-for-the-exodusii-file-format-for-finite-elements/104896 "2023-10-12T16:28:46Z")

</div>

I’m pleased to finally announce a package I’ve been working on for the last year or more, Exodus.jl which can be found here Exodus.jl. What is it? Exodus.jl wraps a jll build of the exodusII library which is part of th…

---

## [From PyCall to PythonCall](https://discourse.julialang.org/t/from-pycall-to-pythoncall/104874)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [October 12, 2023, 3:42pm UTC](https://discourse.julialang.org/t/from-pycall-to-pythoncall/104874 "2023-10-12T15:42:27Z")

</div>

I am trying to convert SymbolicControlSystems.jl from using PyCall to PythonCall. How can I translate the following line: const sp = SymPy.PyCall.PyNULL() I tried, but this does not work: const sp = SymPyPythonCall.P…

---

## [Plots.jl colormap transparency](https://discourse.julialang.org/t/plots-jl-colormap-transparency/104876)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 6\
**Last updated:** [October 12, 2023, 3:28pm UTC](https://discourse.julialang.org/t/plots-jl-colormap-transparency/104876 "2023-10-12T15:28:21Z")

</div>

Using the GR backend, I am trying to recreate the following plot style: Note that the lower end of the colormap is transparent. There are some ideas for colormap transparency that however make the whole colorpalette t…

---

## [How to use a quaternion in Makie.rotate?](https://discourse.julialang.org/t/how-to-use-a-quaternion-in-makie-rotate/104899)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 3:28pm UTC](https://discourse.julialang.org/t/how-to-use-a-quaternion-in-makie-rotate/104899 "2023-10-12T15:28:16Z")

</div>

Hello, Extracted from the doc of Makie: rotate!(t::Transformable, axis\_rot::Quaternion) rotate!(t::Transformable, axis\_rot::AbstractFloat) rotate!(t::Transformable, axis\_rot...) Not very clear to me. How do we specif…

---

## [What is the most idiomatic way to allocate a (reusable) buffer for a function?](https://discourse.julialang.org/t/what-is-the-most-idiomatic-way-to-allocate-a-reusable-buffer-for-a-function/104892)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 10\
**Last updated:** [October 12, 2023, 2:42pm UTC](https://discourse.julialang.org/t/what-is-the-most-idiomatic-way-to-allocate-a-reusable-buffer-for-a-function/104892 "2023-10-12T14:42:55Z")

</div>

Suppose I have a function f that allocates, for instance the following function sum\_of\_fractions(a) v = map(x -\> 1/(x+a), 1:10) return sum(v) end Assume for the sake of this discussion that I cannot get rid of …

---

## [DifferentialEquations - vector or one by one on rhs](https://discourse.julialang.org/t/differentialequations-vector-or-one-by-one-on-rhs/104886)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 1:00pm UTC](https://discourse.julialang.org/t/differentialequations-vector-or-one-by-one-on-rhs/104886 "2023-10-12T13:00:51Z")

</div>

I wonder what the difference is between function lorenz!(du, u, p, t) du = \[10.0 \* (u\[2\] - u\[1\]), u\[1\] \* (28.0 - u\[3\]) - u\[2\], u\[1\] \* u\[2\] - (8 / 3) \* u\[3\]\] end and function lorenz!(du, u, p, t) du\[1\] = 10.0 \*…

---

## [Stray Julia processes in the background on VSCode](https://discourse.julialang.org/t/stray-julia-processes-in-the-background-on-vscode/104770)

<div class="topic-metadata">

**Author:** [@Undercover](https://discourse.julialang.org/u/Undercover)\
**Replies:** 9\
**Last updated:** [October 12, 2023, 12:43pm UTC](https://discourse.julialang.org/t/stray-julia-processes-in-the-background-on-vscode/104770 "2023-10-12T12:43:30Z")

</div>

Hi there, I am facing some issues when using Julia in VSCode, using Jupyter notebooks, where stray processes are left running in the background consuming a lot of CPU and RAM. I’ve tried to work out a MWE Jupyter notebo…

---

## [\[ANN\] Imbalance.jl - A well-documented, multi-interface and comprehensive Julia toolbox for addressing class imbalance](https://discourse.julialang.org/t/ann-imbalance-jl-a-well-documented-multi-interface-and-comprehensive-julia-toolbox-for-addressing-class-imbalance/104825)

<div class="topic-metadata">

**Author:** [@EssamWisam](https://discourse.julialang.org/u/EssamWisam)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 11:20am UTC](https://discourse.julialang.org/t/ann-imbalance-jl-a-well-documented-multi-interface-and-comprehensive-julia-toolbox-for-addressing-class-imbalance/104825 "2023-10-12T11:20:03Z")

</div>

Pleased to announce the Imbalance.jl package, a Julia-based toolkit featuring a wide range of established oversampling and undersampling techniques designed to tackle the class imbalance issue to improve classification m…

---

## [Save animation with Luxor.jl](https://discourse.julialang.org/t/save-animation-with-luxor-jl/104861)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 12\
**Last updated:** [October 12, 2023, 10:22am UTC](https://discourse.julialang.org/t/save-animation-with-luxor-jl/104861 "2023-10-12T10:22:03Z")

</div>

Hello :blush:, I have just learned how to produce drawings and animation with Luxor.jl (Introduction to Luxor · Luxor) using Luxor.animate, Movie and frame function. However, I cannot find a way to save my animation in …

---

## [Call function on vectors of mixed type (using \`FunctionWrapper\` and \`Union\`s)](https://discourse.julialang.org/t/call-function-on-vectors-of-mixed-type-using-functionwrapper-and-union-s/92750)

<div class="topic-metadata">

**Author:** [@GoodDayToYouAll](https://discourse.julialang.org/u/GoodDayToYouAll)\
**Replies:** 2\
**Last updated:** [October 12, 2023, 9:52am UTC](https://discourse.julialang.org/t/call-function-on-vectors-of-mixed-type-using-functionwrapper-and-union-s/92750 "2023-10-12T09:52:30Z")

</div>

Hi everyone and a happy new year! In one part of my code I have a vector v whose elements have different types. Additionally, I have a function f with different methods for all the involved types and want to call this …

---

## [Training a NeuralODE with an ODE depending on exogenous time-dependent input](https://discourse.julialang.org/t/training-a-neuralode-with-an-ode-depending-on-exogenous-time-dependent-input/101304)

<div class="topic-metadata">

**Author:** [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 8:08am UTC](https://discourse.julialang.org/t/training-a-neuralode-with-an-ode-depending-on-exogenous-time-dependent-input/101304 "2023-10-12T08:08:23Z")

</div>

Hi everyone. I’m working on developing a NeuralODE trained on ad ODE which describes a building’s thermal behaviour through an RC equation. I tried both with the definition of a NeuralODE from a multilayer NN and by tr…

---

## [MTK & Standard Library & independent variable, etc](https://discourse.julialang.org/t/mtk-standard-library-independent-variable-etc/104885)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 8:06am UTC](https://discourse.julialang.org/t/mtk-standard-library-independent-variable-etc/104885 "2023-10-12T08:06:27Z")

</div>

Thanks for all help with MTK so far – I’m learning quite a bit just by posing the questions… In Modelica, the independent variable has to be denoted time, and time differentiation is der(). In MTK, the choice of indepe…

---

## [Filtering variables on model copy](https://discourse.julialang.org/t/filtering-variables-on-model-copy/104843)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 5\
**Last updated:** [October 12, 2023, 7:44am UTC](https://discourse.julialang.org/t/filtering-variables-on-model-copy/104843 "2023-10-12T07:44:57Z")

</div>

I am looking to take a model model\_1 and “duplicate” it into model\_2 (using copy\_model) while only keeping a specific part of the original model. I know that I can use filter\_constraints to mask out constraints that I …

---

## [Update par after every time step](https://discourse.julialang.org/t/update-par-after-every-time-step/104884)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 6:28am UTC](https://discourse.julialang.org/t/update-par-after-every-time-step/104884 "2023-10-12T06:28:48Z")

</div>

When I use DifferentialEquations.jl to solve a set of stiff coupled ODEs, my function is something like function f!(du, u, par, t) V = g(u, par) # calculate V based on u and some other parameters du .= ??? # some…

---

## [Running consecutive cells in REPL serially?](https://discourse.julialang.org/t/running-consecutive-cells-in-repl-serially/104880)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 6:23am UTC](https://discourse.julialang.org/t/running-consecutive-cells-in-repl-serially/104880 "2023-10-12T06:23:12Z")

</div>

Since a recent update, when I run a code cell from a script using Alt+Shift+Enter, it shows each expression being executed in the cell. While that’s running, if I run another cell, it will try to run it in parallel while…

---

## [MTK & Standard Library & Analysis points](https://discourse.julialang.org/t/mtk-standard-library-analysis-points/104853)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 8\
**Last updated:** [October 12, 2023, 6:15am UTC](https://discourse.julialang.org/t/mtk-standard-library-analysis-points/104853 "2023-10-12T06:15:28Z")

</div>

I’m trying to figure out how to define “analysis points” in my MTK models, and how to use such to linearize the model. Initial questions: Is the “analysis points” facility part of the standard library, or of MTK? It s…

---

## [Merge Python and Julia, i.e. an (unofficial) integration proposal, sort of like the Mojo language](https://discourse.julialang.org/t/merge-python-and-julia-i-e-an-unofficial-integration-proposal-sort-of-like-the-mojo-language/101844)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 24\
**Last updated:** [October 12, 2023, 3:25am UTC](https://discourse.julialang.org/t/merge-python-and-julia-i-e-an-unofficial-integration-proposal-sort-of-like-the-mojo-language/101844 "2023-10-12T03:25:50Z")

</div>

@cjdoris has an excellent package PythonCall.jl, and it means you can call to or from Python. I just don’t think that most Python users know of it (or the alternative pyjulia/PyCall.jl). I know we have excellent integra…

---

## [Happy Ada Lovelace day!](https://discourse.julialang.org/t/happy-ada-lovelace-day/104819)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [October 12, 2023, 12:03am UTC](https://discourse.julialang.org/t/happy-ada-lovelace-day/104819 "2023-10-12T00:03:59Z")

</div>

I am sure she would have loved Julia!

---

## [How do I interpret Dagger.jl benchmark results?](https://discourse.julialang.org/t/how-do-i-interpret-dagger-jl-benchmark-results/104877)

<div class="topic-metadata">

**Author:** [@schnetter](https://discourse.julialang.org/u/schnetter)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 9:38pm UTC](https://discourse.julialang.org/t/how-do-i-interpret-dagger-jl-benchmark-results/104877 "2023-10-11T21:38:28Z")

</div>

I wanted to understand the performance of Dagger.jl on my laptop and ran its benchmarks there, as described in the documentation. I ran with 1 process and 8 threads (on 8 cores). This produced this output: benchmark res…

---

## [Failure of Zygote.jl on function with integration by HCubature.jl](https://discourse.julialang.org/t/failure-of-zygote-jl-on-function-with-integration-by-hcubature-jl/104856)

<div class="topic-metadata">

**Author:** [@swish47](https://discourse.julialang.org/u/swish47)\
**Replies:** 5\
**Last updated:** [October 11, 2023, 8:58pm UTC](https://discourse.julialang.org/t/failure-of-zygote-jl-on-function-with-integration-by-hcubature-jl/104856 "2023-10-11T20:58:11Z")

</div>

I need to perform automatic differentiation on a function constructed by numerical integration. I choose HCubature.jl on integral and Zygote.jl on AD. However, there is an error as following: using HCubature,Zygote con…

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

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