# Latest

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

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

**Page:** 704

---

## [MWE of a segmentation fault when trying to use a dev local package that contains a function that calls a Python function/structure](https://discourse.julialang.org/t/mwe-of-a-segmentation-fault-when-trying-to-use-a-dev-local-package-that-contains-a-function-that-calls-a-python-function-structure/98575)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 3\
**Last updated:** [May 10, 2023, 9:16pm UTC](https://discourse.julialang.org/t/mwe-of-a-segmentation-fault-when-trying-to-use-a-dev-local-package-that-contains-a-function-that-calls-a-python-function-structure/98575 "2023-05-10T21:16:22Z")

</div>

Hello, For coherence I leave the original formulation in this cell but I have made a MWE in the second cell below. Thanks I am building a package that has some dependencies including PythonCall. The module is like this…

---

## [Failed to Precompile Direct Dependencies](https://discourse.julialang.org/t/failed-to-precompile-direct-dependencies/98665)

<div class="topic-metadata">

**Author:** [@eivindaf](https://discourse.julialang.org/u/eivindaf)\
**Replies:** 2\
**Last updated:** [May 11, 2023, 9:52am UTC](https://discourse.julialang.org/t/failed-to-precompile-direct-dependencies/98665 "2023-05-11T09:52:31Z")

</div>

Hi! I am working in a Github project for my thesis. I have imported all relevant packages, however, when importing “KernelEstimator.jl”, Julia fails to precompile certain direct dependencies. The error log suggests that …

---

## [How to disable smart brackets in Jupyter Notebook?](https://discourse.julialang.org/t/how-to-disable-smart-brackets-in-jupyter-notebook/98669)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 9:40am UTC](https://discourse.julialang.org/t/how-to-disable-smart-brackets-in-jupyter-notebook/98669 "2023-05-11T09:40:51Z")

</div>

How can I disable smart brackets and quotes in Jupyter Notebook? The advice here is to create a file ~/.jupyter/nbconfig/notebook.json with the content { "CodeCell": { "cm\_config": { "autoCloseBr…

---

## [ANN: WhyNotEqual.jl](https://discourse.julialang.org/t/ann-whynotequal-jl/98539)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 10\
**Last updated:** [May 11, 2023, 9:00am UTC](https://discourse.julialang.org/t/ann-whynotequal-jl/98539 "2023-05-11T09:00:31Z")

</div>

Ever encountered a situation like this: @test expected == result Test Failed at /home/jan/.julia/dev/WhyNotEqual/doit.jl:21 Expression: expected == result Evaluated: (v = (hello = :world, language = :julia), w = 42…

---

## [Informal interfaces and abstract types](https://discourse.julialang.org/t/informal-interfaces-and-abstract-types/95993)

<div class="topic-metadata">

**Author:** [@nolb](https://discourse.julialang.org/u/nolb)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 8:57am UTC](https://discourse.julialang.org/t/informal-interfaces-and-abstract-types/95993 "2023-05-11T08:57:06Z")

</div>

Hi everyone, I have a question regarding best practices for the design of informal interfaces. Let’s say that I want to implement a service that continuously reads in data from a source, processes the data, and publish…

---

## [Bayesian Neural Network example in Turing](https://discourse.julialang.org/t/bayesian-neural-network-example-in-turing/98667)

<div class="topic-metadata">

**Author:** [@Patrik\_Waldmann](https://discourse.julialang.org/u/Patrik_Waldmann)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 8:55am UTC](https://discourse.julialang.org/t/bayesian-neural-network-example-in-turing/98667 "2023-05-11T08:55:47Z")

</div>

I have run the Bayesian Neural Networks example in the Turing Tutorials and it works fine except for that the network weights (parameters variable) run into identifiability/convergence issues, i.e. most of them wanders a…

---

## [Error "type DiffEqArray has no field indepsym"](https://discourse.julialang.org/t/error-type-diffeqarray-has-no-field-indepsym/97618)

<div class="topic-metadata">

**Author:** [@Random\_0826](https://discourse.julialang.org/u/Random_0826)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 8:55am UTC](https://discourse.julialang.org/t/error-type-diffeqarray-has-no-field-indepsym/97618 "2023-05-11T08:55:41Z")

</div>

Hello. I am using Julia for my research, and here’s what I am using. I am trying to run exactly same code in the website above. Everything goes well except the last one. When I run a code, I got : using DiffEqBase.En…

---

## [Julia wrapper for hiredis](https://discourse.julialang.org/t/julia-wrapper-for-hiredis/98559)

<div class="topic-metadata">

**Author:** [@nolb](https://discourse.julialang.org/u/nolb)\
**Replies:** 2\
**Last updated:** [May 11, 2023, 8:54am UTC](https://discourse.julialang.org/t/julia-wrapper-for-hiredis/98559 "2023-05-11T08:54:36Z")

</div>

Hi everyone, I am currently trying to write a Julia wrapper for the C library hiredis, so that I can write data to and read data from a Redis Cache with Julia. There are already two Julia libraries for this, namely Red…

---

## [Is it possible to solve problem for subset of parameters?](https://discourse.julialang.org/t/is-it-possible-to-solve-problem-for-subset-of-parameters/98645)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 8:53am UTC](https://discourse.julialang.org/t/is-it-possible-to-solve-problem-for-subset-of-parameters/98645 "2023-05-11T08:53:26Z")

</div>

I have a dataset which is big and I already have written the model whith the following format: @constraint(model, f in F\], sum(x\[(i,j,k)\] for (i,j,k) in families\[f\] if i == pref\[f\]) == 1) # families\[f\] is a diction…

---

## [Trouble using SciMLSensitivity with observed states: "no method matching fast\_materialize"](https://discourse.julialang.org/t/trouble-using-scimlsensitivity-with-observed-states-no-method-matching-fast-materialize/98526)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 8:22am UTC](https://discourse.julialang.org/t/trouble-using-scimlsensitivity-with-observed-states-no-method-matching-fast-materialize/98526 "2023-05-11T08:22:52Z")

</div>

I am trying to fit some data to a model created with ModelingToolkit using the example here. This script reproduces the error I get with my model. Is this worth an issue or is there an easier fix? using DifferentialEqu…

---

## [Quiver colors in Plots.jl](https://discourse.julialang.org/t/quiver-colors-in-plots-jl/34981)

<div class="topic-metadata">

**Author:** [@alvrg](https://discourse.julialang.org/u/alvrg)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 7:04am UTC](https://discourse.julialang.org/t/quiver-colors-in-plots-jl/34981 "2023-05-11T07:04:18Z")

</div>

Hi all, I made this simple example where I plot a bunch of arrows using Plots # Arrow position. x = collect(0:10) y = fill(0., 10) # Arrow direction. u = fill(1., 10) v = fill(1., 10) # Arrow color. c = collect(1:10) …

---

## [CalculusWithJulia' Euler Method for certain step size $h$ returns NaN](https://discourse.julialang.org/t/calculuswithjulia-euler-method-for-certain-step-size-h-returns-nan/98659)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 6:46am UTC](https://discourse.julialang.org/t/calculuswithjulia-euler-method-for-certain-step-size-h-returns-nan/98659 "2023-05-11T06:46:46Z")

</div>

Good day all, For simple y'=y Why is the Euler computation returns NaN for h=0.1 , and several other h values? Take a look at the Pretty Tables below. This is my code: using SymPy, CalculusWithJulia, LaTeXStrings,…

---

## [Surprising behavior when function contains variable with same name](https://discourse.julialang.org/t/surprising-behavior-when-function-contains-variable-with-same-name/98511)

<div class="topic-metadata">

**Author:** [@anodos](https://discourse.julialang.org/u/anodos)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 6:37am UTC](https://discourse.julialang.org/t/surprising-behavior-when-function-contains-variable-with-same-name/98511 "2023-05-11T06:37:40Z")

</div>

I have been running into issues with Julia functions whose name matches the name of an internal variable. For example, the following function seems pretty harmless to me: function speed(distance,time) speed = distan…

---

## [How to limit scope of evaluated variable assignment?](https://discourse.julialang.org/t/how-to-limit-scope-of-evaluated-variable-assignment/98506)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 4:58am UTC](https://discourse.julialang.org/t/how-to-limit-scope-of-evaluated-variable-assignment/98506 "2023-05-11T04:58:06Z")

</div>

As described in this early draft essay, I’m developing a somewhat terse text specification of 3D meshes as an attempt to make 3D modeling more accessible to the blind. The code is probably working good enough for now but…

---

## [Difference between datashader and scatter/heatmap?](https://discourse.julialang.org/t/difference-between-datashader-and-scatter-heatmap/98646)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 3:22am UTC](https://discourse.julialang.org/t/difference-between-datashader-and-scatter-heatmap/98646 "2023-05-11T03:22:24Z")

</div>

What is the difference between datashader and scatter plots or heatmap?

---

## [Performance penalty of \`\>(1)\` vs \`x -\> x \>1\`?](https://discourse.julialang.org/t/performance-penalty-of-1-vs-x-x-1/98547)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 36\
**Last updated:** [May 11, 2023, 12:47am UTC](https://discourse.julialang.org/t/performance-penalty-of-1-vs-x-x-1/98547 "2023-05-11T00:47:30Z")

</div>

Why is there this performance penalty in using \>(1) vs x -\> x \> 1 in these examples? (happens in 1.8.5 and 1.9-rc3): julia\> using BenchmarkTools julia\> mat = randn(1000, 1000); julia\> @btime sum(\>(1), $mat) 557.740 …

---

## [\`dualize()\` cannot take \`ignore\_objective\` argument](https://discourse.julialang.org/t/dualize-cannot-take-ignore-objective-argument/98650)

<div class="topic-metadata">

**Author:** [@g001234](https://discourse.julialang.org/u/g001234)\
**Replies:** 5\
**Last updated:** [May 10, 2023, 11:35pm UTC](https://discourse.julialang.org/t/dualize-cannot-take-ignore-objective-argument/98650 "2023-05-10T23:35:23Z")

</div>

When using Dualization.jl to dualize an LP, I used the ignore\_objective argument to turn off the objective. However, I received the following error: ERROR: MethodError: no method matching dualize(::Model, ::Nothing; dua…

---

## [Eigen values and vectors sorting](https://discourse.julialang.org/t/eigen-values-and-vectors-sorting/98637)

<div class="topic-metadata">

**Author:** [@papar](https://discourse.julialang.org/u/papar)\
**Replies:** 7\
**Last updated:** [May 10, 2023, 11:33pm UTC](https://discourse.julialang.org/t/eigen-values-and-vectors-sorting/98637 "2023-05-10T23:33:41Z")

</div>

I am trying to work out how to sort eigen values and eigen vectors that are consistent with other languages. I use the following code on a covariance matrix: eigen\_vals, eigen\_vector = eigen(covariance\_matrix) This gi…

---

## [ERROR: The provided \`optimizer\_constructor\` is invalid](https://discourse.julialang.org/t/error-the-provided-optimizer-constructor-is-invalid/98607)

<div class="topic-metadata">

**Author:** [@Gianmarco\_Montillo](https://discourse.julialang.org/u/Gianmarco_Montillo)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 11:12pm UTC](https://discourse.julialang.org/t/error-the-provided-optimizer-constructor-is-invalid/98607 "2023-05-10T23:12:13Z")

</div>

Hello everyone, I am trying to solve a math model using Alpine.jl. Given n arrays of different dimension, n constraint of strict equalities (one for each sum of the whole array i.e. sum(x)==X, sum(y)==Y, sum(z)==Z), one …

---

## [Phase portrait with vector field](https://discourse.julialang.org/t/phase-portrait-with-vector-field/98587)

<div class="topic-metadata">

**Author:** [@moxeeeem](https://discourse.julialang.org/u/moxeeeem)\
**Replies:** 3\
**Last updated:** [May 10, 2023, 11:04pm UTC](https://discourse.julialang.org/t/phase-portrait-with-vector-field/98587 "2023-05-10T23:04:45Z")

</div>

I’m trying to reformat a python code that plots a phase portrait with vector field. It seems that I did everything right, but the error is in the quiver () function. What did I write wrong? Python code (working correctl…

---

## [StackOverflowError related to \`SizedMatrix\`](https://discourse.julialang.org/t/stackoverflowerror-related-to-sizedmatrix/98647)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 10:09pm UTC](https://discourse.julialang.org/t/stackoverflowerror-related-to-sizedmatrix/98647 "2023-05-10T22:09:39Z")

</div>

I have a complex code and received a StackOverflowError associated with \`StaticArrays’. More precisely, I received the message: ERROR: StackOverflowError: Stacktrace: \[1\] SizedMatrix{3, 3, Float32, 2, Matrix{Float32}}(…

---

## [AoG Attributes and/or Post-Plot Environment Stacking?](https://discourse.julialang.org/t/aog-attributes-and-or-post-plot-environment-stacking/98640)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 0\
**Last updated:** [May 10, 2023, 8:20pm UTC](https://discourse.julialang.org/t/aog-attributes-and-or-post-plot-environment-stacking/98640 "2023-05-10T20:20:18Z")

</div>

I have an AlgebraOfGraphics.Layers object drawn in my package environment which has CairoMakie as a dependency. I now find myself needing to zoom in. I assume there is an axis option I can use to set xlimits and ylimits…

---

## [Where are those 3 sec TTFP hiding?](https://discourse.julialang.org/t/where-are-those-3-sec-ttfp-hiding/98615)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 14\
**Last updated:** [May 10, 2023, 8:35pm UTC](https://discourse.julialang.org/t/where-are-those-3-sec-ttfp-hiding/98615 "2023-05-10T20:35:36Z")

</div>

In my PrecompileTools workload I have this line plot(rand(5,2)) But when I run it again on a fresh session, I see julia\> @time @eval plot(rand(5,2)) 3.232747 seconds (7.55 M allocations: 479.328 MiB, 5.31% gc time, …

---

## [Concatenating DataFrames in parallel](https://discourse.julialang.org/t/concatenating-dataframes-in-parallel/98630)

<div class="topic-metadata">

**Author:** [@gaspardelanuit](https://discourse.julialang.org/u/gaspardelanuit)\
**Replies:** 4\
**Last updated:** [May 10, 2023, 5:42pm UTC](https://discourse.julialang.org/t/concatenating-dataframes-in-parallel/98630 "2023-05-10T17:42:16Z")

</div>

I am trying to run multiple simulations in parallel. The output of these simulations is a DataFrame. My goal is to return a concatenated DataFrame with all of the simulations. The simple code would be using DataFrames…

---

## [How to take union of interval elements in Interval Vector?](https://discourse.julialang.org/t/how-to-take-union-of-interval-elements-in-interval-vector/98422)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 18\
**Last updated:** [May 10, 2023, 2:26pm UTC](https://discourse.julialang.org/t/how-to-take-union-of-interval-elements-in-interval-vector/98422 "2023-05-10T14:26:57Z")

</div>

Hello, I have an interval vector of the form as X = \[ \[0,0.1\], \[1,2\], \[0.1,0.2\], \[9,10\], \[2,3\], \[0.2,0.3\], \[10,11\], \[2,3\], \[9,10\] \] I wish to get it in the form as Y = \[ \[0,0.3\], \[1,3\], \[9,11\] \] I am using the “Int…

---

## [Pkg.gc() deletion failure warnings](https://discourse.julialang.org/t/pkg-gc-deletion-failure-warnings/98631)

<div class="topic-metadata">

**Author:** [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Replies:** 0\
**Last updated:** [May 10, 2023, 4:35pm UTC](https://discourse.julialang.org/t/pkg-gc-deletion-failure-warnings/98631 "2023-05-10T16:35:05Z")

</div>

I’m getting a bunch of these warnings: ┌ Warning: Failed to delete C:\\...\\.julia\\packages\\ZipFile\\oD4uG │ exception = IOError: chmod("C:\\\\....\\\\.julia\\\\packages\\\\ZipFile\\\\oD4uG\\\\.appveyor.yml", 0o777): invalid argumen…

---

## [PSA: The right dependency to reduce from DifferentialEquations.jl](https://discourse.julialang.org/t/psa-the-right-dependency-to-reduce-from-differentialequations-jl/72757)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 3\
**Last updated:** [May 10, 2023, 4:24pm UTC](https://discourse.julialang.org/t/psa-the-right-dependency-to-reduce-from-differentialequations-jl/72757 "2023-05-10T16:24:39Z")

</div>

It’s no secret that DifferentialEquations.jl is a big package, so sometimes you will not want to depend on it directly downstream. That’s not only okay but a good idea, only depend on what you need! However, I have seen …

---

## [Juliaup and VS Code](https://discourse.julialang.org/t/juliaup-and-vs-code/98614)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [May 10, 2023, 3:28pm UTC](https://discourse.julialang.org/t/juliaup-and-vs-code/98614 "2023-05-10T15:28:24Z")

</div>

I have the juliaup package to manage my Julia version (and update Julia). With 1.9 arriving, I did a juliaup update command to get the latest version. Unfortunately, I ran into the following trouble when I tried to ope…

---

## [Updated julia via juliaup, packages are no longer avaiable](https://discourse.julialang.org/t/updated-julia-via-juliaup-packages-are-no-longer-avaiable/98612)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [May 10, 2023, 3:27pm UTC](https://discourse.julialang.org/t/updated-julia-via-juliaup-packages-are-no-longer-avaiable/98612 "2023-05-10T15:27:20Z")

</div>

With Julia 1.9.0 being released, I ran juliaup update in my (ubuntu 22.04) terminal to get the latest version. when I then start julia I got a ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path.…

---

## [\[ANN\] BlockEnums another enums package](https://discourse.julialang.org/t/ann-blockenums-another-enums-package/98591)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 1\
**Last updated:** [May 10, 2023, 3:25pm UTC](https://discourse.julialang.org/t/ann-blockenums-another-enums-package/98591 "2023-05-10T15:25:31Z")

</div>

BlockEnums.jl is in the general registry. I started this before I knew about EnumsX.jl, which has some overlap in features. A couple of useful features of BlockEnums are You can define additional instances of an enum …

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

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