# Latest

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

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

**Page:** 712

---

## [AbidesMarkets.jl](https://discourse.julialang.org/t/abidesmarkets-jl/98269)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 0\
**Last updated:** [May 3, 2023, 6:33pm UTC](https://discourse.julialang.org/t/abidesmarkets-jl/98269 "2023-05-03T18:33:27Z")

</div>

Hi, I am pleased to announce that I have released a wrapper for ABIDES-Markets: a J.P. Morgan Chase’s multi-agent discrete event simulator specialised for financial markets. This is part of a project I am working on wit…

---

## [Early exit from Threads.@threads](https://discourse.julialang.org/t/early-exit-from-threads-threads/98267)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 0\
**Last updated:** [May 3, 2023, 6:08pm UTC](https://discourse.julialang.org/t/early-exit-from-threads-threads/98267 "2023-05-03T18:08:22Z")

</div>

So I think I follow how Threads.@threads works in typical cases. I.e. this pattern: Threads.@threads for i = 1:N something(i) end where the something(i) will be called N times with concurrency by being scheduled to, …

---

## [Julia Language Server initialization performance issue](https://discourse.julialang.org/t/julia-language-server-initialization-performance-issue/78446)

<div class="topic-metadata">

**Author:** [@arc](https://discourse.julialang.org/u/arc)\
**Replies:** 18\
**Last updated:** [March 29, 2022, 8:12am UTC](https://discourse.julialang.org/t/julia-language-server-initialization-performance-issue/78446 "2022-03-29T08:12:08Z")

</div>

Hello, I am new to Julia and using neovim in combination with julia-vim (syntax highlighting) and coc-julia (language server). Having pasted just this small snippet in main.jl and started with nvim main.jl # wait for …

---

## [How to deal with Vector{Function} for type inference?](https://discourse.julialang.org/t/how-to-deal-with-vector-function-for-type-inference/98248)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 5:43pm UTC](https://discourse.julialang.org/t/how-to-deal-with-vector-function-for-type-inference/98248 "2023-05-03T17:43:52Z")

</div>

I have the following two functions: function foo1!(v::Vector{Float64}, b::Vector{Float64}) for i in eachindex(v) v\[i\] = 2 \* v\[i\] + 3 \* b\[i\] end end function foo2!(v::Vector{Float64}, b::Vector{Float64})…

---

## [Creating Fixed Width Output Files](https://discourse.julialang.org/t/creating-fixed-width-output-files/98260)

<div class="topic-metadata">

**Author:** [@andrewkhardy](https://discourse.julialang.org/u/andrewkhardy)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 5:43pm UTC](https://discourse.julialang.org/t/creating-fixed-width-output-files/98260 "2023-05-03T17:43:27Z")

</div>

I am unsatisfied with the discussion here, so am opening a new thread to find a solution to this. In Python, it is quite simple to save a data frame or dictionary with fixed width columns as a .dat file. This usability …

---

## [Request to upgrade to LossFunctions.jl](https://discourse.julialang.org/t/request-to-upgrade-to-lossfunctions-jl/97738)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 36\
**Last updated:** [May 3, 2023, 5:21pm UTC](https://discourse.julialang.org/t/request-to-upgrade-to-lossfunctions-jl/97738 "2023-05-03T17:21:55Z")

</div>

Dear ML community, we released LossFunctions.jl v0.9 with a few important breaking changes: Reversed order of arguments to match other ecosystems, loss(yhat, y) is now the order. Removed the ObsDim business to support …

---

## [Extend distributed pmap to mutliple nodes using SLURM](https://discourse.julialang.org/t/extend-distributed-pmap-to-mutliple-nodes-using-slurm/98263)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 5:07pm UTC](https://discourse.julialang.org/t/extend-distributed-pmap-to-mutliple-nodes-using-slurm/98263 "2023-05-03T17:07:48Z")

</div>

I have a program that makes use of the parallelism offered by the Distributed’s pmap() function. I can run this on a cluster using one node and multiple cores. Now I would like to extend this to using multiple cores. Th…

---

## [Which matrix types are defined?](https://discourse.julialang.org/t/which-matrix-types-are-defined/98224)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [May 3, 2023, 5:03pm UTC](https://discourse.julialang.org/t/which-matrix-types-are-defined/98224 "2023-05-03T17:03:42Z")

</div>

Base Julia knows at least three types of vectors: julia\> x=rand(3) 3-element Vector{Float64}: 0.9378913600546382 0.04174077280647481 0.7608954281716017 julia\> x' 1×3 adjoint(::Vector{Float64}) with eltype Float64: …

---

## [What to do about models not loading in Flux? Critical breakage](https://discourse.julialang.org/t/what-to-do-about-models-not-loading-in-flux-critical-breakage/97881)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 3\
**Last updated:** [May 3, 2023, 4:48pm UTC](https://discourse.julialang.org/t/what-to-do-about-models-not-loading-in-flux-critical-breakage/97881 "2023-05-03T16:48:26Z")

</div>

I use Flux to make ML models as part of my graduate studies. I read some time ago that you couldn’t trust model’s saved in bson-format, so I made a solution where I would recreate the model by dynamic loading (facing eno…

---

## [Cannot load Plot package in Julia](https://discourse.julialang.org/t/cannot-load-plot-package-in-julia/98244)

<div class="topic-metadata">

**Author:** [@Yining\_Wang](https://discourse.julialang.org/u/Yining_Wang)\
**Replies:** 8\
**Last updated:** [May 3, 2023, 4:04pm UTC](https://discourse.julialang.org/t/cannot-load-plot-package-in-julia/98244 "2023-05-03T16:04:19Z")

</div>

I am using Julia on a Mac laptop. Everything worked fine until yesterday when I want to do some plots I can no longer import the Plots package. When I try to do Using Plots, I receive the following error message: \[ Info…

---

## [Inviscid and incompressible Navier-Stokes equations in 2D implemented in Julia and compiled to WASM](https://discourse.julialang.org/t/inviscid-and-incompressible-navier-stokes-equations-in-2d-implemented-in-julia-and-compiled-to-wasm/97474)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 10\
**Last updated:** [May 3, 2023, 4:02pm UTC](https://discourse.julialang.org/t/inviscid-and-incompressible-navier-stokes-equations-in-2d-implemented-in-julia-and-compiled-to-wasm/97474 "2023-05-03T16:02:20Z")

</div>

I recently made an online demo of the 2D Navier-Stokes equation running in a web-browser. https://alexander-barth.github.io/FluidSimDemo-WebAssembly/ My kids like to play with it to build dams and other obstacles in th…

---

## [Write fixed-width table](https://discourse.julialang.org/t/write-fixed-width-table/23689)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 7\
**Last updated:** [May 3, 2023, 3:09pm UTC](https://discourse.julialang.org/t/write-fixed-width-table/23689 "2023-05-03T15:09:29Z")

</div>

Hi! I cannot find a simple way to write a dataframe/array of tuples/… to file with fixed-width columns. CSV package does not support fixed width or formatting in general; manually looping over rows and calling @sprintf m…

---

## [Rodas4 using dual number for time with autodiff=false](https://discourse.julialang.org/t/rodas4-using-dual-number-for-time-with-autodiff-false/98256)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 2:52pm UTC](https://discourse.julialang.org/t/rodas4-using-dual-number-for-time-with-autodiff-false/98256 "2023-05-03T14:52:12Z")

</div>

When the right hand side function has a time dependence, Rodas4 gives dual number method errors, when other solvers (e.g. QBDF) do not. I thought that autodiff was the use-case for dual numbers, but Rodas4 uses dual numb…

---

## [Sensitivity fail on DAEs](https://discourse.julialang.org/t/sensitivity-fail-on-daes/98205)

<div class="topic-metadata">

**Author:** [@Guido\_Ballabio](https://discourse.julialang.org/u/Guido_Ballabio)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 1:49pm UTC](https://discourse.julialang.org/t/sensitivity-fail-on-daes/98205 "2023-05-03T13:49:44Z")

</div>

I am trying to use DiffEq and SciML sensitivity to build NN controllers for physical systems. Usually everything works, however when i explicitly call adjoint\_sensitivities from SciML-sensitivity to get the gradient of …

---

## [Coefficients of combination of matrices](https://discourse.julialang.org/t/coefficients-of-combination-of-matrices/98241)

<div class="topic-metadata">

**Author:** [@microlifecc](https://discourse.julialang.org/u/microlifecc)\
**Replies:** 6\
**Last updated:** [May 3, 2023, 2:27pm UTC](https://discourse.julialang.org/t/coefficients-of-combination-of-matrices/98241 "2023-05-03T14:27:09Z")

</div>

We have four tensors A, B, C, D of the same dimension (m \* n \* p, e.g. 1800 \* 25 \* 25). We need to find coefficients x1, x2, x3 such that: x1 \* A - x2 \* B - x3 \* C ≈ D given that x1 + x2 + x3 = 1 and 0\<= x1,x2,x3 \<=1 …

---

## [PkgTemplates does not execute my plugin](https://discourse.julialang.org/t/pkgtemplates-does-not-execute-my-plugin/58812)

<div class="topic-metadata">

**Author:** [@Mrion](https://discourse.julialang.org/u/Mrion)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 2:17pm UTC](https://discourse.julialang.org/t/pkgtemplates-does-not-execute-my-plugin/58812 "2023-05-03T14:17:22Z")

</div>

Hi! I create my own plugin: struct Dependencies \<: Plugin deps::Vector{AbstractString} = \[\] end dependencies(d::Dependencies) = d.deps function posthook(d::Dependencies, t::Template, pkg\_dir::AbstractString) Pk…

---

## [Question on @inbounds](https://discourse.julialang.org/t/question-on-inbounds/98023)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 7\
**Last updated:** [May 3, 2023, 2:07pm UTC](https://discourse.julialang.org/t/question-on-inbounds/98023 "2023-05-03T14:07:40Z")

</div>

Hi, Is there an automatic way to find out where to add @inbounds in order to improve performance? I am testing a very long module and would like to know where it would benefit to insert @inbounds. Alternatively is the…

---

## [\[ANN\] Matte.jl - interactive dashboards written in Julia](https://discourse.julialang.org/t/ann-matte-jl-interactive-dashboards-written-in-julia/35920)

<div class="topic-metadata">

**Author:** [@angusmoore](https://discourse.julialang.org/u/angusmoore)\
**Replies:** 20\
**Last updated:** [May 3, 2023, 1:53pm UTC](https://discourse.julialang.org/t/ann-matte-jl-interactive-dashboards-written-in-julia/35920 "2023-05-03T13:53:49Z")

</div>

Hi julians, I’m really pleased to announce the release of my first julia package: Matte.jl Matte is a package for creating interactive dashboards in julia, inspired/based on material design. This simple example of i…

---

## [Vector equations LHS/RHS missing with MTK and MethodOfLines](https://discourse.julialang.org/t/vector-equations-lhs-rhs-missing-with-mtk-and-methodoflines/97230)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 14\
**Last updated:** [April 12, 2023, 3:21am UTC](https://discourse.julialang.org/t/vector-equations-lhs-rhs-missing-with-mtk-and-methodoflines/97230 "2023-04-12T03:21:50Z")

</div>

I’ve been trying to generate a system of equations in vector format using MTK and MOL, and I keep getting errors related to broadcast-created equations missing LHS/RHS. I’ve adapted a tutorial problem to show the issue. …

---

## [Constraints not respected properly](https://discourse.julialang.org/t/constraints-not-respected-properly/98249)

<div class="topic-metadata">

**Author:** [@Gianmarco\_Montillo](https://discourse.julialang.org/u/Gianmarco_Montillo)\
**Replies:** 0\
**Last updated:** [May 3, 2023, 12:34pm UTC](https://discourse.julialang.org/t/constraints-not-respected-properly/98249 "2023-05-03T12:34:55Z")

</div>

Hello! I am quite new to this world so I hope someone here can help me understand my problem. I want to pass a mathematical model formed by 3 arrays of different dimensions (e.g. X, Y, Z), I want these arrays to respect…

---

## [Using multiple packages in extensions for Julia 1.9](https://discourse.julialang.org/t/using-multiple-packages-in-extensions-for-julia-1-9/98237)

<div class="topic-metadata">

**Author:** [@April-Hannah-Lena](https://discourse.julialang.org/u/April-Hannah-Lena)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 12:25pm UTC](https://discourse.julialang.org/t/using-multiple-packages-in-extensions-for-julia-1-9/98237 "2023-05-03T12:25:54Z")

</div>

I’m very excited to see the new features in Julia 1.9. I’m interested in how it is decided which packages are required for loading extensions. Specifically, consider an example: A package “MyPackage” has an optional dep…

---

## [\[ANN\] GeoTables.jl](https://discourse.julialang.org/t/ann-geotables-jl/82984)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 1\
**Last updated:** [May 3, 2023, 11:58am UTC](https://discourse.julialang.org/t/ann-geotables-jl/82984 "2023-05-03T11:58:51Z")

</div>

Load geospatial tables from known file formats and convert the geometries to Meshes.jl geometries that are compatible with the GeoStats.jl ecosystem: Geometries are loaded from disk in pure Julia whenever possible usi…

---

## [Segment Anything Model for Julia?](https://discourse.julialang.org/t/segment-anything-model-for-julia/97257)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 7\
**Last updated:** [May 3, 2023, 11:06am UTC](https://discourse.julialang.org/t/segment-anything-model-for-julia/97257 "2023-05-03T11:06:30Z")

</div>

Watching Meta’s Segment Anything Model (SAM) exploding online and wondering anyone is working on a port of the Python version to Julia or if a similar model could be trained using the Julia ecosystem as the training da…

---

## [Makie: Make only part of a violin plot transparent with correct width](https://discourse.julialang.org/t/makie-make-only-part-of-a-violin-plot-transparent-with-correct-width/98196)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 8:49am UTC](https://discourse.julialang.org/t/makie-make-only-part-of-a-violin-plot-transparent-with-correct-width/98196 "2023-05-03T08:49:47Z")

</div>

Let’s take the following MWE: using CairoMakie, Statistics fig = Figure() ax = Axis(fig\[1,1\]) Dloc = randn(1000) # Full pdf violin!(ax, fill(1, length(Dloc)), Dloc) # Pdf plotted so that it is transparent after some…

---

## [Show neural net weights (Flux)](https://discourse.julialang.org/t/show-neural-net-weights-flux/98219)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 2\
**Last updated:** [May 3, 2023, 8:05am UTC](https://discourse.julialang.org/t/show-neural-net-weights-flux/98219 "2023-05-03T08:05:38Z")

</div>

Hello, folks. I built a simple classification neural net in Flux (6 inputs in a Dense layer, a BatchNorm hidden layer with 13 neurons, another Dense 13 neuron output layer) and I was looking for some way to correlate th…

---

## [Error saving MCMC Chain](https://discourse.julialang.org/t/error-saving-mcmc-chain/98225)

<div class="topic-metadata">

**Author:** [@ALIAN\_LI\_MARTIN](https://discourse.julialang.org/u/ALIAN_LI_MARTIN)\
**Replies:** 0\
**Last updated:** [May 3, 2023, 1:04am UTC](https://discourse.julialang.org/t/error-saving-mcmc-chain/98225 "2023-05-03T01:04:03Z")

</div>

Hello, I have an error when saving the MCMC strings. Could someone help me with this problem. Thank you so much. MethodError: no method matching write(::IOStream, ::Chains{Float64, AxisArrays.AxisArray{Float64, 3, Array…

---

## [Compiler Can't Optimize Away Unnecessary Memory Allocs with Convenience Variables](https://discourse.julialang.org/t/compiler-cant-optimize-away-unnecessary-memory-allocs-with-convenience-variables/98045)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 14\
**Last updated:** [May 3, 2023, 12:09am UTC](https://discourse.julialang.org/t/compiler-cant-optimize-away-unnecessary-memory-allocs-with-convenience-variables/98045 "2023-05-03T00:09:58Z")

</div>

I have code doing some broadcasted operations and it takes ~2 microseconds which is great ΔU2 += sum((Δuᵢ .\* u .\* @view F2\[:,i\]) .+ (Δuⱼ .\* u .\* @view F2\[:,j\]) .+ (Δuₖ .\* u .\* @view F2\[:,k\])) However, this is entirely …

---

## [Error changing the order of levels in a dataframe column](https://discourse.julialang.org/t/error-changing-the-order-of-levels-in-a-dataframe-column/98221)

<div class="topic-metadata">

**Author:** [@mgutig](https://discourse.julialang.org/u/mgutig)\
**Replies:** 1\
**Last updated:** [May 2, 2023, 9:28pm UTC](https://discourse.julialang.org/t/error-changing-the-order-of-levels-in-a-dataframe-column/98221 "2023-05-02T21:28:01Z")

</div>

I have imported an excel spreadsheet to julia as a dataframe. After converting one of its columns into a categorical variable, I am trying to change the levels’ order but I can’t. using DataFrames using DataFramesMeta u…

---

## [A problem with the run/open function](https://discourse.julialang.org/t/a-problem-with-the-run-open-function/98213)

<div class="topic-metadata">

**Author:** [@Charles\_Brauer](https://discourse.julialang.org/u/Charles_Brauer)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 8:51pm UTC](https://discourse.julialang.org/t/a-problem-with-the-run-open-function/98213 "2023-05-02T20:51:22Z")

</div>

My Environment Windows 11 Pro, version 10.0.22621 Julia 1.8.5 Visual Studio Code, version 1.77.3 Background I am trying to convert a program that is very important to our organization. The program runs on Window 11, a…

---

## [Variable in JuMP with arc index](https://discourse.julialang.org/t/variable-in-jump-with-arc-index/98179)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 7:54pm UTC](https://discourse.julialang.org/t/variable-in-jump-with-arc-index/98179 "2023-05-02T19:54:29Z")

</div>

Dear all I have defined the following variable: @variable(modelo, x\[(i,j) ∈ A, t ∈ T\] \>= 0) where A = \[ (1, 5) (1, 6) (1, 7) (2, 5) (2, 6) (2, 7) (3, 5) (3, 6) (3, 7) (4, 5) (4, 6) (4, 7) \]; T=1:12 Howev…

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

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