# Latest

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

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

**Page:** 1021

---

## [Better determinant? det looks horrible](https://discourse.julialang.org/t/better-determinant-det-looks-horrible/82202)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 11\
**Last updated:** [June 4, 2022, 8:00am UTC](https://discourse.julialang.org/t/better-determinant-det-looks-horrible/82202 "2022-06-04T08:00:09Z")

</div>

using SymEngine using LinearAlgebra \[a\*z2 2\*z2 + a\*z1 z4 z3; 2\*z1\*z3 -6\*b\*z2^2 z1^2 0; 2\*z1 - z2 -z1 2\*z3 0; -z3 2\*z2 -z1 2\*z4\]|\>det The output is horrible (-(-(2\*a\*z2^2 + …

---

## [Array broadcasting slower than numpy?](https://discourse.julialang.org/t/array-broadcasting-slower-than-numpy/82212)

<div class="topic-metadata">

**Author:** [@chunjiw](https://discourse.julialang.org/u/chunjiw)\
**Replies:** 20\
**Last updated:** [June 4, 2022, 7:22am UTC](https://discourse.julialang.org/t/array-broadcasting-slower-than-numpy/82212 "2022-06-04T07:22:03Z")

</div>

@time let m = 10^7 + 19 v = fill(0, m) w = copy(v) for \_ in 1:100 i = mod(rand(Int), m) v\[1:i\] .+= @view w\[end-i+1:end\] v\[i+1:end\] .+= @view w\[1:end-i\] end end import time import numpy as np import random t0 …

---

## [What is the difference between copy and deepcopy?](https://discourse.julialang.org/t/what-is-the-difference-between-copy-and-deepcopy/82149)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 21\
**Last updated:** [June 4, 2022, 3:36am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-copy-and-deepcopy/82149 "2022-06-04T03:36:20Z")

</div>

Dear all, I want to know the difference between copy and deepcopy? Many thanks.

---

## [Making life easier for new users](https://discourse.julialang.org/t/making-life-easier-for-new-users/81638)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 13\
**Last updated:** [June 3, 2022, 10:22pm UTC](https://discourse.julialang.org/t/making-life-easier-for-new-users/81638 "2022-06-03T22:22:53Z")

</div>

What is already easy is to install packages. What is not so easy yet is: to create a new user project to find, copy and execute examples to create custom system image I wrote three feature requests for package manage…

---

## [Performance slowdown on AMD with Windows10 compared to Intel with Linux (arch)](https://discourse.julialang.org/t/performance-slowdown-on-amd-with-windows10-compared-to-intel-with-linux-arch/82180)

<div class="topic-metadata">

**Author:** [@Tambu](https://discourse.julialang.org/u/Tambu)\
**Replies:** 7\
**Last updated:** [June 3, 2022, 9:42pm UTC](https://discourse.julialang.org/t/performance-slowdown-on-amd-with-windows10-compared-to-intel-with-linux-arch/82180 "2022-06-03T21:42:23Z")

</div>

Update, TL;DR: the problem is the AMD processor, or the combination AMD+windows. Not Windows itself as on the same laptop, same version of julia (1.7.3), performance are similar. Hi all, I have two setups, as the title…

---

## [Choosing Colors and Legend in AlgebraOfGraphics](https://discourse.julialang.org/t/choosing-colors-and-legend-in-algebraofgraphics/82152)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 7:55pm UTC](https://discourse.julialang.org/t/choosing-colors-and-legend-in-algebraofgraphics/82152 "2022-06-03T19:55:27Z")

</div>

I’m trying to create a plot comparing two parameters I calculated in Turing.jl. I’ve kind of managed this with the following code: data(avg\_vote) \* aog.density() \* mapping( :avg\_vote=\>"House Popular Vote: Average De…

---

## [IMEX scheme using DifferentialEquations.jl](https://discourse.julialang.org/t/imex-scheme-using-differentialequations-jl/41435)

<div class="topic-metadata">

**Author:** [@Hgs](https://discourse.julialang.org/u/Hgs)\
**Replies:** 4\
**Last updated:** [June 3, 2022, 7:52pm UTC](https://discourse.julialang.org/t/imex-scheme-using-differentialequations-jl/41435 "2022-06-03T19:52:41Z")

</div>

Hello, I have a PDE model which contains a stiff viscous term and non-stiff nonlinear convection term. I was wondering if I can exploit the pre-developed solvers in DifferentialEquations.jl to solve the pde (or system o…

---

## [\[ANN\] ZigZagBoomerang.jl](https://discourse.julialang.org/t/ann-zigzagboomerang-jl/57287)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 37\
**Last updated:** [June 3, 2022, 6:53pm UTC](https://discourse.julialang.org/t/ann-zigzagboomerang-jl/57287 "2022-06-03T18:53:41Z")

</div>

Dear all! We would like to announce our package together with our new paper “Sticky PDMP samplers for sparse and local inference problems” (Arxiv link) ZigZagBoomerang.jl Sleek implementations of the ZigZag, Boomerang …

---

## [Developer's path and username is persisted in the error stack](https://discourse.julialang.org/t/developers-path-and-username-is-persisted-in-the-error-stack/30746)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 5:47pm UTC](https://discourse.julialang.org/t/developers-path-and-username-is-persisted-in-the-error-stack/30746 "2022-06-03T17:47:12Z")

</div>

I noticed in my error stack traces paths like: \[2\] top-level scope at /Users/sabae/buildbot/worker/package\_macos64/build/usr/share/julia/stdlib/v1.2/Test/src/Test.jl:1113 First, this path is not correct: it’s not a pat…

---

## [Latex strings not working with makie](https://discourse.julialang.org/t/latex-strings-not-working-with-makie/82156)

<div class="topic-metadata">

**Author:** [@moataz-sabry](https://discourse.julialang.org/u/moataz-sabry)\
**Replies:** 6\
**Last updated:** [June 3, 2022, 4:16pm UTC](https://discourse.julialang.org/t/latex-strings-not-working-with-makie/82156 "2022-06-03T16:16:52Z")

</div>

I’m trying to plot some graphs using CairoMakie.jl that contains latex strings. But it doesn’t work as intended. it renders the same string but with a $ before and after. Here is an example from Makie documentation. Any …

---

## [.! operator not filtering missings values](https://discourse.julialang.org/t/operator-not-filtering-missings-values/82198)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 3:18pm UTC](https://discourse.julialang.org/t/operator-not-filtering-missings-values/82198 "2022-06-03T15:18:22Z")

</div>

Hello, good afternonn, Why is not this code filtering off the missing values in their respective fields? All the array values are 1(true), even that Price and Grade has missing values. rowsToKeep = .!(ismissing.(data.…

---

## [Transpose dictionary](https://discourse.julialang.org/t/transpose-dictionary/82148)

<div class="topic-metadata">

**Author:** [@markub3327](https://discourse.julialang.org/u/markub3327)\
**Replies:** 15\
**Last updated:** [June 3, 2022, 2:51pm UTC](https://discourse.julialang.org/t/transpose-dictionary/82148 "2022-06-03T14:51:36Z")

</div>

Hello, I need to transpose a dictionary, but my idea is to use the temporary dictionary X and copy the elements in a transposed manner. Exist something for the critical performance section where the transposition of a d…

---

## [Double y-axes in a sub-plot](https://discourse.julialang.org/t/double-y-axes-in-a-sub-plot/82186)

<div class="topic-metadata">

**Author:** [@Vautrin](https://discourse.julialang.org/u/Vautrin)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 2:51pm UTC](https://discourse.julialang.org/t/double-y-axes-in-a-sub-plot/82186 "2022-06-03T14:51:17Z")

</div>

I would like to have dual y-axes in one of my subplots; however, it seems like I am missing something about twinx() and link = :x, but I couldn’t figure out what… Plotting double y-axis using twinx() works fine in a sta…

---

## [Generic Iterative Solvers: Krylov's methods example](https://discourse.julialang.org/t/generic-iterative-solvers-krylovs-methods-example/82086)

<div class="topic-metadata">

**Author:** [@martin.d.maas](https://discourse.julialang.org/u/martin.d.maas)\
**Replies:** 9\
**Last updated:** [June 3, 2022, 2:45pm UTC](https://discourse.julialang.org/t/generic-iterative-solvers-krylovs-methods-example/82086 "2022-06-03T14:45:49Z")

</div>

Hi, This is related to a discussion within the lengthy tread that spun off Yuri’s blog post. I don’t want to make that thread even longer with off-topic material. In that thread, when discussing Julia’s ecosystem @jul…

---

## [Drop iterator shape](https://discourse.julialang.org/t/drop-iterator-shape/82140)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [June 3, 2022, 2:17pm UTC](https://discourse.julialang.org/t/drop-iterator-shape/82140 "2022-06-03T14:17:58Z")

</div>

I am looking for the recommended way to “drop” the shape property of an iterator. Eg for itr = Iterators.product(1:5, 1:2) I want itr\_flat such that collect(itr\_flat) == vec(collect(itr)) without, of course, collecti…

---

## [Unable to extract Julia on WSL2](https://discourse.julialang.org/t/unable-to-extract-julia-on-wsl2/82153)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [June 3, 2022, 2:03pm UTC](https://discourse.julialang.org/t/unable-to-extract-julia-on-wsl2/82153 "2022-06-03T14:03:24Z")

</div>

Latest Julia. I am unable to extract the archive on WSL. Has anyone seen this?

---

## [Problem using ModellingToolkit and Galacticoptim to solve a vector/matrix optimization problem](https://discourse.julialang.org/t/problem-using-modellingtoolkit-and-galacticoptim-to-solve-a-vector-matrix-optimization-problem/62470)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 6\
**Last updated:** [June 3, 2022, 1:41pm UTC](https://discourse.julialang.org/t/problem-using-modellingtoolkit-and-galacticoptim-to-solve-a-vector-matrix-optimization-problem/62470 "2022-06-03T13:41:42Z")

</div>

Hey folks, I was trying to resolve a problem using MTK and GalacticOptim to solve a simple optimization problem. The issue is that I am no really getting an error message that tells me where the problem is. Here is the …

---

## [How to implement a conditional over an exogenous parameter in a non linear constraint in JuMP?](https://discourse.julialang.org/t/how-to-implement-a-conditional-over-an-exogenous-parameter-in-a-non-linear-constraint-in-jump/82177)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 12:14pm UTC](https://discourse.julialang.org/t/how-to-implement-a-conditional-over-an-exogenous-parameter-in-a-non-linear-constraint-in-jump/82177 "2022-06-03T12:14:00Z")

</div>

I need to add a condition over an exogenous parameter. These seems not to work: @NLconstraint(m, myConstraint\[i in 1:N\], x\[i\] == (myExogenousParameter\[i\] == 0.0 ? 0.0 : expression\[i\]) ) I found then this that see…

---

## [PINNs for integro-differential equations with noise](https://discourse.julialang.org/t/pinns-for-integro-differential-equations-with-noise/82165)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 10:34am UTC](https://discourse.julialang.org/t/pinns-for-integro-differential-equations-with-noise/82165 "2022-06-03T10:34:54Z")

</div>

Is there a way to solve an IDE with a noise term such as: \\frac{\\partial}{\\partial t} u(t) + u(t) + \\int\_{0}^{t} u(x) d x + w(t) = 0 with the help of NeuralPDE.jl, where w(t) is the noise term.

---

## [Unable to reproduce unit test outcomes from package manager's "clean environment"](https://discourse.julialang.org/t/unable-to-reproduce-unit-test-outcomes-from-package-managers-clean-environment/79772)

<div class="topic-metadata">

**Author:** [@hkraemer](https://discourse.julialang.org/u/hkraemer)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 9:52am UTC](https://discourse.julialang.org/t/unable-to-reproduce-unit-test-outcomes-from-package-managers-clean-environment/79772 "2022-06-03T09:52:42Z")

</div>

Hi everyone, I ran into a strange behaviour recently related to Julia environments. Let’s say I develop a package MyPackage with the common structure: ├── Manifest.toml ├── Project.toml ├── src └── test ├── …

---

## [Can I still register packages with only three characters?](https://discourse.julialang.org/t/can-i-still-register-packages-with-only-three-characters/82170)

<div class="topic-metadata">

**Author:** [@Chong\_Wang](https://discourse.julialang.org/u/Chong_Wang)\
**Replies:** 3\
**Last updated:** [June 3, 2022, 8:12am UTC](https://discourse.julialang.org/t/can-i-still-register-packages-with-only-three-characters/82170 "2022-06-03T08:12:13Z")

</div>

I understand new packages generally have to have names with at least five characters. However, my package has taken the name “Hop” in the registry during Julia pre-1.0 timeframe. Later, the package development became pri…

---

## [Fast/Approximate Sampling for HMMs/HDP-HMMs](https://discourse.julialang.org/t/fast-approximate-sampling-for-hmms-hdp-hmms/68591)

<div class="topic-metadata">

**Author:** [@spragud2](https://discourse.julialang.org/u/spragud2)\
**Replies:** 5\
**Last updated:** [June 3, 2022, 7:55am UTC](https://discourse.julialang.org/t/fast-approximate-sampling-for-hmms-hdp-hmms/68591 "2022-06-03T07:55:37Z")

</div>

Hi All, First post here. I’m interested in building some tools based off bayesian hidden Markov models. Indeed, what I would really like as a project for myself is a Julia equivalent to the PYHSMM library which is a fan…

---

## [How to avoid vectors of abstract types?](https://discourse.julialang.org/t/how-to-avoid-vectors-of-abstract-types/82132)

<div class="topic-metadata">

**Author:** [@BatyLeo](https://discourse.julialang.org/u/BatyLeo)\
**Replies:** 5\
**Last updated:** [June 3, 2022, 7:47am UTC](https://discourse.julialang.org/t/how-to-avoid-vectors-of-abstract-types/82132 "2022-06-03T07:47:18Z")

</div>

Hello, I started using Julia intensively a few months ago, and I keep coming across situations where I have vectors of abstract types, which should be avoided for performance reasons. I can’t seem to find satisfying sol…

---

## [Structures and DataFrames](https://discourse.julialang.org/t/structures-and-dataframes/82166)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 7:29am UTC](https://discourse.julialang.org/t/structures-and-dataframes/82166 "2022-06-03T07:29:39Z")

</div>

Learning about structures. Appreciate any comments on the below struct BASE a::Int64 b::Int64 end struct B1 base::BASE b1::Int64 end struct B2 base::BASE b2::Int64 end df = DataFrame( type …

---

## [Future directions for DataFrames.jl](https://discourse.julialang.org/t/future-directions-for-dataframes-jl/66247)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 46\
**Last updated:** [June 3, 2022, 4:23am UTC](https://discourse.julialang.org/t/future-directions-for-dataframes-jl/66247 "2022-06-03T04:23:27Z")

</div>

Hi, Currently DataFrames.jl is designed for in-memory processing of data frames using CPU. While still we are working on improvements (the coming year) in this area I would like to make a pool on which general design di…

---

## [Out of scope inside function but don't know how to fix it. tried global no luck](https://discourse.julialang.org/t/out-of-scope-inside-function-but-dont-know-how-to-fix-it-tried-global-no-luck/82083)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 6\
**Last updated:** [June 3, 2022, 2:17am UTC](https://discourse.julialang.org/t/out-of-scope-inside-function-but-dont-know-how-to-fix-it-tried-global-no-luck/82083 "2022-06-03T02:17:26Z")

</div>

I have a script that sets a variable to the number messages to be transmitted and SHOULD loop around until I have transmitted all the messages. My problem is that I can’t figure out the scope of num\_messages\_to\_be\_transm…

---

## [Modify syntax highlighting for IJulia in Jupyter lab to resemble Jupyter notebook?](https://discourse.julialang.org/t/modify-syntax-highlighting-for-ijulia-in-jupyter-lab-to-resemble-jupyter-notebook/82168)

<div class="topic-metadata">

**Author:** [@cocoa1231](https://discourse.julialang.org/u/cocoa1231)\
**Replies:** 0\
**Last updated:** [June 3, 2022, 1:33am UTC](https://discourse.julialang.org/t/modify-syntax-highlighting-for-ijulia-in-jupyter-lab-to-resemble-jupyter-notebook/82168 "2022-06-03T01:33:52Z")

</div>

Hello. Is it possible to modify the syntax highlighting scheme in Jupyter lab to resemble jupyter notebook in IJulia? I notice that the name of a function in a function call does not get highlighted in Jupyter lab like i…

---

## [Multivariate OU parameter estimation](https://discourse.julialang.org/t/multivariate-ou-parameter-estimation/82147)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 12:33am UTC](https://discourse.julialang.org/t/multivariate-ou-parameter-estimation/82147 "2022-06-03T00:33:47Z")

</div>

I am interested in estimating the parameters M,D\\in\\mathbb{R}^{n\\times n}, D\\succeq0 of an OU process dX\_t = M(X\_t-\\mu)d\_t + DdW\_t from observed data at frequency \\Delta t. Is there a generalized likelihood inference…

---

## [WGLMakie/JSServe offline export](https://discourse.julialang.org/t/wglmakie-jsserve-offline-export/59854)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 5\
**Last updated:** [June 2, 2022, 10:58pm UTC](https://discourse.julialang.org/t/wglmakie-jsserve-offline-export/59854 "2022-06-02T22:58:26Z")

</div>

Hi, I opened an issue at JSServe.jl, but I’m afraid it doesn’t catch a lot of attention and it’s not really a bug. Maybe someone else here knows?: I have trouble making an offline plot similar to the surface plot in th…

---

## [Setting the plots backend not working on M1 Mac](https://discourse.julialang.org/t/setting-the-plots-backend-not-working-on-m1-mac/82158)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 2\
**Last updated:** [June 2, 2022, 9:47pm UTC](https://discourse.julialang.org/t/setting-the-plots-backend-not-working-on-m1-mac/82158 "2022-06-02T21:47:29Z")

</div>

I am working on an M1 Mac and it has trouble with plotting. When I try it like this it works: using GR histogram(randn(10000)) But like this it does not: using Plots gr() # pyplot() # also does not work histogram(ran…

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

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