# Latest

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

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

**Page:** 420

---

## [Problem install DifferentialEquations](https://discourse.julialang.org/t/problem-install-differentialequations/113726)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 11\
**Last updated:** [May 3, 2024, 2:17pm UTC](https://discourse.julialang.org/t/problem-install-differentialequations/113726 "2024-05-03T14:17:17Z")

</div>

I have a problem with all the packages related to integrate differential equations. The error is with AdaptStaticArrayExt: ┌ Error: Error during loading of extension AdaptStaticArraysExt of Adapt, use \`Base.retry\_load\_…

---

## [Comparison between Loops and Vectorization in Julia](https://discourse.julialang.org/t/comparison-between-loops-and-vectorization-in-julia/113724)

<div class="topic-metadata">

**Author:** [@jackmarry](https://discourse.julialang.org/u/jackmarry)\
**Replies:** 3\
**Last updated:** [May 3, 2024, 1:00pm UTC](https://discourse.julialang.org/t/comparison-between-loops-and-vectorization-in-julia/113724 "2024-05-03T13:00:06Z")

</div>

Is Julia’s loop as fast as the code written in vectorized form?

---

## [Type-stable alternatives to Iterators.product?](https://discourse.julialang.org/t/type-stable-alternatives-to-iterators-product/113790)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [May 3, 2024, 12:50pm UTC](https://discourse.julialang.org/t/type-stable-alternatives-to-iterators-product/113790 "2024-05-03T12:50:19Z")

</div>

I’m dealing with a combinatorial problem. Given N vectors of integers of varied lengths, I want to find all possible ways to select one integer from each vector. Here’s my code, which is unfortunately not type-stable: j…

---

## [Sample without replacement.. and without StatsBase or shuffle](https://discourse.julialang.org/t/sample-without-replacement-and-without-statsbase-or-shuffle/113725)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 12\
**Last updated:** [May 3, 2024, 7:58am UTC](https://discourse.julialang.org/t/sample-without-replacement-and-without-statsbase-or-shuffle/113725 "2024-05-03T07:58:08Z")

</div>

Hi, is there a way to sample 3 ids from 1:10 without replacement but also without using StatsBase (or any other package) or shuffling/randperm the whole array (in my case it could be relatively big) ?

---

## [How to check value of exit\_on\_sigint programmatically?](https://discourse.julialang.org/t/how-to-check-value-of-exit-on-sigint-programmatically/113776)

<div class="topic-metadata">

**Author:** [@vettert](https://discourse.julialang.org/u/vettert)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 7:30am UTC](https://discourse.julialang.org/t/how-to-check-value-of-exit-on-sigint-programmatically/113776 "2024-05-03T07:30:38Z")

</div>

The Base.exit\_on\_sigint(bool) function allows to set whether Julia terminates upon receiving a sigint signal. Now, I am wondering whether I can get the value somehow programmatically? Is there a way? The docstring doesn’…

---

## [Different test dependencies for different Julia versions?](https://discourse.julialang.org/t/different-test-dependencies-for-different-julia-versions/113767)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 6:52am UTC](https://discourse.julialang.org/t/different-test-dependencies-for-different-julia-versions/113767 "2024-05-03T06:52:19Z")

</div>

I want to make a package compatible with Julia 1.6, but some of my test dependencies are only compatible with Julia 1.10. How can I avoid requiring them when testing on 1.6? The associated tests can be put inside an if …

---

## [Off topic: Does anyone has affiliation with HSBC?](https://discourse.julialang.org/t/off-topic-does-anyone-has-affiliation-with-hsbc/113775)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [May 3, 2024, 6:51am UTC](https://discourse.julialang.org/t/off-topic-does-anyone-has-affiliation-with-hsbc/113775 "2024-05-03T06:51:52Z")

</div>

Hello All, my colleague is discussing some funding from HSBC. The requirement is that on the publications, there will be a person affiliated with HSBC. I am in talks with my colleagues offering Explainable AI (here, I a…

---

## [Some problem when optimizing the ODEProblem parameters](https://discourse.julialang.org/t/some-problem-when-optimizing-the-odeproblem-parameters/113746)

<div class="topic-metadata">

**Author:** [@chooron](https://discourse.julialang.org/u/chooron)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 4:06am UTC](https://discourse.julialang.org/t/some-problem-when-optimizing-the-odeproblem-parameters/113746 "2024-05-03T04:06:03Z")

</div>

Use ModelingToolkit.jl to build ODEproblem and Optimization respectively to optimize the parameters of ODEproblem with the following code: using ModelingToolkit, Optimization, ComponentArrays using ModelingToolkit: t\_no…

---

## [Mutating values in immutable struct (specifically of type ODESolution)](https://discourse.julialang.org/t/mutating-values-in-immutable-struct-specifically-of-type-odesolution/113760)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 4\
**Last updated:** [May 3, 2024, 2:49am UTC](https://discourse.julialang.org/t/mutating-values-in-immutable-struct-specifically-of-type-odesolution/113760 "2024-05-03T02:49:31Z")

</div>

I’m solving a differential equation that has been nondimensionalized, so I’d like to change the scaling of the dependent variable for plotting. Here is my example. using DifferentialEquations using Plots using Accessors…

---

## [Non-linear optimization with Ipopt](https://discourse.julialang.org/t/non-linear-optimization-with-ipopt/113772)

<div class="topic-metadata">

**Author:** [@bada5150](https://discourse.julialang.org/u/bada5150)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 2:44am UTC](https://discourse.julialang.org/t/non-linear-optimization-with-ipopt/113772 "2024-05-03T02:44:38Z")

</div>

Hi everyone I am new to Juila and working on non-linear optimization problem with Ipopt solver. Here are my code and my third constraint is 0.0653 \* (2 \* x\[2\])^-2 \<= 30. However, I am getting \[0, 0\] and it seems like I…

---

## [SQUAREM fixed point acceleration](https://discourse.julialang.org/t/squarem-fixed-point-acceleration/113761)

<div class="topic-metadata">

**Author:** [@leima0521](https://discourse.julialang.org/u/leima0521)\
**Replies:** 1\
**Last updated:** [May 3, 2024, 1:18am UTC](https://discourse.julialang.org/t/squarem-fixed-point-acceleration/113761 "2024-05-03T01:18:17Z")

</div>

Hello, Is there a package that implements SQUAREM in fixed point iteration? Thanks!

---

## [Faster way to find all bit arrays of weight n](https://discourse.julialang.org/t/faster-way-to-find-all-bit-arrays-of-weight-n/113658)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 14\
**Last updated:** [May 2, 2024, 11:46pm UTC](https://discourse.julialang.org/t/faster-way-to-find-all-bit-arrays-of-weight-n/113658 "2024-05-02T23:46:04Z")

</div>

The obvious way to generate these bit arrays is something like: function findbcn2s(b,n) bitstrs = digits.(2^n-1:2^b-1, base=2, pad=b) .|\> BitVector filter(x-\>sum(x)==n, bitstrs) end I feel like this is horribly…

---

## [PrecompileTools put workload stuff data in image cache](https://discourse.julialang.org/t/precompiletools-put-workload-stuff-data-in-image-cache/113751)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [May 2, 2024, 11:36pm UTC](https://discourse.julialang.org/t/precompiletools-put-workload-stuff-data-in-image-cache/113751 "2024-05-02T23:36:42Z")

</div>

During a VSC debug session, while seeking for a mysterious global variable origin, I found that variables used in the @setup\_workload begin of the PrecompileTools precompilation are present in compiled cache and visible …

---

## [How to test package with different sets of test dependencies](https://discourse.julialang.org/t/how-to-test-package-with-different-sets-of-test-dependencies/113478)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 3\
**Last updated:** [May 2, 2024, 11:22pm UTC](https://discourse.julialang.org/t/how-to-test-package-with-different-sets-of-test-dependencies/113478 "2024-05-02T23:22:23Z")

</div>

Suppose for various reasons I want to test a package with two different test/Project.toml’s. These will have different packages / compat bounds and my single runtests.jl is conditional on which dependencies are loaded. I…

---

## [JuMP constraint coefficients](https://discourse.julialang.org/t/jump-constraint-coefficients/113754)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 11:09pm UTC](https://discourse.julialang.org/t/jump-constraint-coefficients/113754 "2024-05-02T23:09:36Z")

</div>

What am I doing wrong here? model = JuMP.Model() JuMP.@variable(model, x\[1:length(s)\]) JuMP.@constraint(model, c, s .\* x ∈ JuMP.MOI.Nonnegatives(10)) JuMP.normalized\_coefficient(c, x\[1\]) ERROR: MethodError: no method ma…

---

## [Making PyCall and PythonCall work in the same project environment](https://discourse.julialang.org/t/making-pycall-and-pythoncall-work-in-the-same-project-environment/113733)

<div class="topic-metadata">

**Author:** [@Joh11](https://discourse.julialang.org/u/Joh11)\
**Replies:** 3\
**Last updated:** [May 2, 2024, 7:52pm UTC](https://discourse.julialang.org/t/making-pycall-and-pythoncall-work-in-the-same-project-environment/113733 "2024-05-02T19:52:44Z")

</div>

Hi all, I need to make PyCall and PythonCall work in the same script, because I am using both PyPlot, and AtomsIOPython which depend on PyCall and PythonCall, respectively. I followed the tips on the PythonCall page to…

---

## [Visualize FEM results in julia](https://discourse.julialang.org/t/visualize-fem-results-in-julia/113759)

<div class="topic-metadata">

**Author:** [@trasor](https://discourse.julialang.org/u/trasor)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 7:50pm UTC](https://discourse.julialang.org/t/visualize-fem-results-in-julia/113759 "2024-05-02T19:50:06Z")

</div>

Hello everyone. I wrote a spectral element solver in julia, but cant visualize my results for unstructured domains. I have x,y coordinates from a classical finite element mesh with corresponding values. I would like to …

---

## [Reinterpret returns wrong values](https://discourse.julialang.org/t/reinterpret-returns-wrong-values/101759)

<div class="topic-metadata">

**Author:** [@Kadii](https://discourse.julialang.org/u/Kadii)\
**Replies:** 23\
**Last updated:** [May 2, 2024, 7:33pm UTC](https://discourse.julialang.org/t/reinterpret-returns-wrong-values/101759 "2024-05-02T19:33:13Z")

</div>

I’m working on the parsing a binary file header. The structure looks like Adummy. First, I tried to use the reinterpret but some values (p9 and p10) were incorrect. If I sequentially read the data one by one, I got cor…

---

## [Savitzky Golay filter](https://discourse.julialang.org/t/savitzky-golay-filter/113543)

<div class="topic-metadata">

**Author:** [@kamilmroz12](https://discourse.julialang.org/u/kamilmroz12)\
**Replies:** 12\
**Last updated:** [May 2, 2024, 2:36pm UTC](https://discourse.julialang.org/t/savitzky-golay-filter/113543 "2024-05-02T14:36:06Z")

</div>

Hey, I’m new to Julia, transitioning from the Python community. I attempted to implement a Savitzky-Golay filter in Julia, aiming to precompute certain parts of the code akin to Python’s class with \_\_init\_\_() method. Whi…

---

## [Prevent the REPL from changing the terminal title](https://discourse.julialang.org/t/prevent-the-repl-from-changing-the-terminal-title/113729)

<div class="topic-metadata">

**Author:** [@cbrnr](https://discourse.julialang.org/u/cbrnr)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 5:19pm UTC](https://discourse.julialang.org/t/prevent-the-repl-from-changing-the-terminal-title/113729 "2024-05-02T17:19:08Z")

</div>

I just noticed that the Julia REPL is changing the terminal title to “Julia”. Is there any way to prevent it from doing that? I’d rather keep my custom terminal window titles…

---

## [\[ANN\] SteamWebAPIs.jl - Steam Web API wrapper for Julia](https://discourse.julialang.org/t/ann-steamwebapis-jl-steam-web-api-wrapper-for-julia/113752)

<div class="topic-metadata">

**Author:** [@NeroBlackstone](https://discourse.julialang.org/u/NeroBlackstone)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 4:57pm UTC](https://discourse.julialang.org/t/ann-steamwebapis-jl-steam-web-api-wrapper-for-julia/113752 "2024-05-02T16:57:20Z")

</div>

Quick Intro SteamWebAPIs.jl is the first julia package I wrote! It is a type-robust Julia wrapper for the SteamWebAPI, which means that all function parameters and returns have documented types. Github Link Easy Start P…

---

## [Turing: Non informative improper prior](https://discourse.julialang.org/t/turing-non-informative-improper-prior/88069)

<div class="topic-metadata">

**Author:** [@Sourish](https://discourse.julialang.org/u/Sourish)\
**Replies:** 14\
**Last updated:** [May 2, 2024, 5:10pm UTC](https://discourse.julialang.org/t/turing-non-informative-improper-prior/88069 "2024-05-02T17:10:15Z")

</div>

Hi I am looking for an example of how to assign non-informative improper prior using Turing.jl? So far all example that I have seen uses proper prior. Thanks and regards, Sourish

---

## [Can someone help me interpret this error: Dimension mismatch with BFGS](https://discourse.julialang.org/t/can-someone-help-me-interpret-this-error-dimension-mismatch-with-bfgs/113749)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 4:27pm UTC](https://discourse.julialang.org/t/can-someone-help-me-interpret-this-error-dimension-mismatch-with-bfgs/113749 "2024-05-02T16:27:30Z")

</div>

When running the example given here ML Estimation it works fine. When using my own log-likelihood, I can get it to work with LBFGS() and Newton() but plain BFGS() throws the following error pasted below. My code is nearl…

---

## [Find out which state(s) cause convergence problems](https://discourse.julialang.org/t/find-out-which-state-s-cause-convergence-problems/113738)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 3\
**Last updated:** [May 2, 2024, 3:55pm UTC](https://discourse.julialang.org/t/find-out-which-state-s-cause-convergence-problems/113738 "2024-05-02T15:55:19Z")

</div>

I am solving various non-linear graph flow problems with OrdinaryDiffEq, with the states representing storages on the nodes. As the number of states can be quite large, it would be nice to have tooling to find out which …

---

## [Spectrum of open hamiltonian in Quantica](https://discourse.julialang.org/t/spectrum-of-open-hamiltonian-in-quantica/113731)

<div class="topic-metadata">

**Author:** [@Milt](https://discourse.julialang.org/u/Milt)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 3:51pm UTC](https://discourse.julialang.org/t/spectrum-of-open-hamiltonian-in-quantica/113731 "2024-05-02T15:51:42Z")

</div>

Hi @pablosanjose , I am trying to evaluate the spectrum for a graphene ribbon of varying widths. I am trying to do this by attaching leads to graphene resulting in an open hamiltonian but this is not compatible with the…

---

## [\`using Plots\` errors (\`ERROR: LoadError: InitError: UndefVarError: \`GR\_jll\` not defined\`)](https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 3:43pm UTC](https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742 "2024-05-02T15:43:16Z")

</div>

Yesterday I was helping a friend instal Julia. It was a mac computer, and we installed Julia from scratch using juliaup. We added a like 4 packages, including Plots. When we tried using Plots we got an error (see end). …

---

## [BenchmarkTools needs a maintainer](https://discourse.julialang.org/t/benchmarktools-needs-a-maintainer/111178)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 10\
**Last updated:** [May 2, 2024, 3:42pm UTC](https://discourse.julialang.org/t/benchmarktools-needs-a-maintainer/111178 "2024-05-02T15:42:16Z")

</div>

Hi everyone, I have been maintaining BenchmarkTools.jl for about a year. I didn’t particularly want to do it, nor did the person in charge before me, but we did our best to keep it afloat. Now I am stepping down, and lo…

---

## [Neural ODEs: Fitting a cosine curve](https://discourse.julialang.org/t/neural-odes-fitting-a-cosine-curve/113702)

<div class="topic-metadata">

**Author:** [@bhaveshshrimali](https://discourse.julialang.org/u/bhaveshshrimali)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 3:39pm UTC](https://discourse.julialang.org/t/neural-odes-fitting-a-cosine-curve/113702 "2024-05-02T15:39:51Z")

</div>

Hi everyone, I am trying to experiment with NeuralODEs and wanted to fit a simple cosine curve as an implementation exercise. I have tried experimenting the same with the solvers in torchdiffeq and diffrax but both seem…

---

## [ReinforcementLearning.jl](https://discourse.julialang.org/t/reinforcementlearning-jl/113745)

<div class="topic-metadata">

**Author:** [@ttidrick](https://discourse.julialang.org/u/ttidrick)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 2:27pm UTC](https://discourse.julialang.org/t/reinforcementlearning-jl/113745 "2024-05-02T14:27:56Z")

</div>

Hi All, I’m considering using RL.jl for a project. I would like to know this discussion group’s opinion about the safety and the usefulness of this tool. Thanks, Ty Tidrick

---

## [Problem while installing DifferentialEquations](https://discourse.julialang.org/t/problem-while-installing-differentialequations/113504)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 2:18pm UTC](https://discourse.julialang.org/t/problem-while-installing-differentialequations/113504 "2024-05-02T14:18:58Z")

</div>

I am using the DifferentialEquations package I am inside an environment, yesterday it work perfectly today it does not. Which is very weird. When I run the using DifferentialEquations it gives me this error : Different…

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

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