# Latest

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

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

**Page:** 598

---

## [Temporarily inject development dependencies into package](https://discourse.julialang.org/t/temporarily-inject-development-dependencies-into-package/103838)

<div class="topic-metadata">

**Author:** [@frankier](https://discourse.julialang.org/u/frankier)\
**Replies:** 10\
**Last updated:** [September 15, 2023, 11:27am UTC](https://discourse.julialang.org/t/temporarily-inject-development-dependencies-into-package/103838 "2023-09-15T11:27:39Z")

</div>

Typically for development packages, including the defaults such as InteractiveUtils, we install them into the global environment, and are able to access them from the REPL, no matter what project we are in. Sometimes rat…

---

## [Solve bilevel optimization the stupid way](https://discourse.julialang.org/t/solve-bilevel-optimization-the-stupid-way/103024)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 6\
**Last updated:** [September 15, 2023, 9:27am UTC](https://discourse.julialang.org/t/solve-bilevel-optimization-the-stupid-way/103024 "2023-09-15T09:27:38Z")

</div>

I would like to solve a bilevel optimization problem in a dumb way. Consider the following (as an example) \\min\_{x,y}\\quad x^4 - \\sin(y)\\\\ \\text{s.t.}\\quad x \\geq 2, x^3+y^3 \\leq 1\\\\ y(x) \\in \\arg\\min\_{y} y^2 + x\\\\ 3…

---

## [Infiltrator based debugger](https://discourse.julialang.org/t/infiltrator-based-debugger/103817)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 2\
**Last updated:** [September 15, 2023, 9:21am UTC](https://discourse.julialang.org/t/infiltrator-based-debugger/103817 "2023-09-15T09:21:12Z")

</div>

See the following code, I have added @infiltrate after every statement in the function such that I can debug everything. But then I was thinking this might be an excellent UI debugger alternative: having @infiltrate happ…

---

## [ANN: JuMP v1.15 is released](https://discourse.julialang.org/t/ann-jump-v1-15-is-released/103875)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 0\
**Last updated:** [September 15, 2023, 3:10am UTC](https://discourse.julialang.org/t/ann-jump-v1-15-is-released/103875 "2023-09-15T03:10:53Z")

</div>

Dear all, I am very pleased to announce the release of JuMP v1.15. This is a very large minor release because it introduces an entirely new API for nonlinear programs. To summarize, there is now a first-class nonlinea…

---

## [How to halt Julia mid execution?](https://discourse.julialang.org/t/how-to-halt-julia-mid-execution/103874)

<div class="topic-metadata">

**Author:** [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Replies:** 0\
**Last updated:** [September 15, 2023, 3:09am UTC](https://discourse.julialang.org/t/how-to-halt-julia-mid-execution/103874 "2023-09-15T03:09:47Z")

</div>

I’m running Julia in Jupyter Notebook. My program was recording a large amount of data that I wanted to keep in a large array final\_ans. It was about 60% done and I just wanted to give up and save what I had so far. I wa…

---

## [Get presolved model from Gurobi](https://discourse.julialang.org/t/get-presolved-model-from-gurobi/103827)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 5\
**Last updated:** [September 15, 2023, 1:11am UTC](https://discourse.julialang.org/t/get-presolved-model-from-gurobi/103827 "2023-09-15T01:11:14Z")

</div>

Hi, in Julia is it possible to get the model after Gurobi finishes “presolve”? That is the model after being simplified by Gurobi (less variables, constraints,…). The method Model.presolve() in the Gurobi Python interfa…

---

## [LazyArtifacts and offline environments](https://discourse.julialang.org/t/lazyartifacts-and-offline-environments/103866)

<div class="topic-metadata">

**Author:** [@miguelbiron](https://discourse.julialang.org/u/miguelbiron)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 11:37pm UTC](https://discourse.julialang.org/t/lazyartifacts-and-offline-environments/103866 "2023-09-14T23:37:51Z")

</div>

I’m running Julia on my uni’s cluster, where – except for the login node – there is no internet access. I have a script that sets up a Julia environment with all the necessary deps, and calls Pkg.instantiate() and Pkg.pr…

---

## [AutoForwardDiff() Error no method matching](https://discourse.julialang.org/t/autoforwarddiff-error-no-method-matching/103854)

<div class="topic-metadata">

**Author:** [@Francesco\_C](https://discourse.julialang.org/u/Francesco_C)\
**Replies:** 10\
**Last updated:** [September 14, 2023, 10:00pm UTC](https://discourse.julialang.org/t/autoforwarddiff-error-no-method-matching/103854 "2023-09-14T22:00:01Z")

</div>

Hi, I am trying to replicate the main examples for the Optimization package https://docs.sciml.ai/Optimization/stable/getting\_started/ However, when I try using the automatic differentiation Optimization.AutoForwardDif…

---

## [Julia Packages for meta-analysis?](https://discourse.julialang.org/t/julia-packages-for-meta-analysis/22451)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 3\
**Last updated:** [September 14, 2023, 7:52pm UTC](https://discourse.julialang.org/t/julia-packages-for-meta-analysis/22451 "2023-09-14T19:52:31Z")

</div>

Hello. What Julia package can I use to easily do meta-analysis? Till now I’ve been using some R packages such as metafor or metagen. http://www.metafor-project.org/doku.php

---

## [Print variable value in plot title with custom precision after decimal point (Plots.jl)](https://discourse.julialang.org/t/print-variable-value-in-plot-title-with-custom-precision-after-decimal-point-plots-jl/103861)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 6:50pm UTC](https://discourse.julialang.org/t/print-variable-value-in-plot-title-with-custom-precision-after-decimal-point-plots-jl/103861 "2023-09-14T18:50:21Z")

</div>

Hi all! I’m trying to print variable values in the title of a plot using: title = L"\\eta\_1 = %$(mean(df\_b.η))" But the result shows many numbers after the decimal point which takes the whole line of the title. How can…

---

## [Examples for port-Hamiltonian modelling and control of physical systems?](https://discourse.julialang.org/t/examples-for-port-hamiltonian-modelling-and-control-of-physical-systems/103787)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [September 14, 2023, 5:52pm UTC](https://discourse.julialang.org/t/examples-for-port-hamiltonian-modelling-and-control-of-physical-systems/103787 "2023-09-14T17:52:47Z")

</div>

Are there any examples in Julia how to model and control port-Hamiltonian systems? See: https://www.math.rug.nl/arjan/DownloadLectures/Benelux08.pdf Can it be done with ModelingToolkit, or are there better ways?

---

## [JSServe Slider to Vary Number of Points](https://discourse.julialang.org/t/jsserve-slider-to-vary-number-of-points/103859)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 4:57pm UTC](https://discourse.julialang.org/t/jsserve-slider-to-vary-number-of-points/103859 "2023-09-14T16:57:49Z")

</div>

Hi. I’m working with Makie and Pluto. To demonstrate how a plot varies as a parameter is changed, I originally used Pluto’s Slider to modify the parameter. This was fine but wasn’t snappy as Pluto generated each plot fro…

---

## [Optimization of parameters of a dynamic problem with ModelingToolkit](https://discourse.julialang.org/t/optimization-of-parameters-of-a-dynamic-problem-with-modelingtoolkit/103784)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [September 14, 2023, 2:17pm UTC](https://discourse.julialang.org/t/optimization-of-parameters-of-a-dynamic-problem-with-modelingtoolkit/103784 "2023-09-14T14:17:42Z")

</div>

Hello all ! I have a nonlinear ODE problem that I set up with ModelingToolkit (great job with this awesome package !), for which I can compute some steady-state (with SteadyStateProblem) or transient solutions (with ODE…

---

## [@register\_symbolic with vector variables](https://discourse.julialang.org/t/register-symbolic-with-vector-variables/103419)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 10\
**Last updated:** [September 14, 2023, 4:00pm UTC](https://discourse.julialang.org/t/register-symbolic-with-vector-variables/103419 "2023-09-14T16:00:31Z")

</div>

It seems that @register\_symbolic will successfully stop tracing on scalar variables, but continues to trace with vector variables. Anyway currently to get register\_symbolic to stop tracing on vector variables? julia\> f(…

---

## [Adding and updating a scalar to the Integerator Cache in DifferentialEquations.jl](https://discourse.julialang.org/t/adding-and-updating-a-scalar-to-the-integerator-cache-in-differentialequations-jl/103805)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 12\
**Last updated:** [September 14, 2023, 3:28pm UTC](https://discourse.julialang.org/t/adding-and-updating-a-scalar-to-the-integerator-cache-in-differentialequations-jl/103805 "2023-09-14T15:28:02Z")

</div>

Background. I have a nice stochastic jump-piecewise-ODE behaving as it should. Thanks @ChrisRackauckas and team! Basically this would have been completely impossible in any other language/package! Now I want to calculat…

---

## [Does bumping a dependency's compat lower bound require a breaking release?](https://discourse.julialang.org/t/does-bumping-a-dependencys-compat-lower-bound-require-a-breaking-release/103804)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 2:30pm UTC](https://discourse.julialang.org/t/does-bumping-a-dependencys-compat-lower-bound-require-a-breaking-release/103804 "2023-09-14T14:30:03Z")

</div>

That’s it. That’s the question.

---

## [2D wave equation with open boundary conditions](https://discourse.julialang.org/t/2d-wave-equation-with-open-boundary-conditions/103290)

<div class="topic-metadata">

**Author:** [@thoth291](https://discourse.julialang.org/u/thoth291)\
**Replies:** 32\
**Last updated:** [September 14, 2023, 1:57pm UTC](https://discourse.julialang.org/t/2d-wave-equation-with-open-boundary-conditions/103290 "2023-09-14T13:57:38Z")

</div>

Here is the equation I’m trying to solve and I’m surely doing something wrong - but I don’t know what exactly. Could you please help me to understand where I’m thinking wrong about it? using NeuralPDE, Lux, LuxCUDA, Ra…

---

## [Symbolic ODE/PDE in Vector form with Symbolics/ModelingToolkit](https://discourse.julialang.org/t/symbolic-ode-pde-in-vector-form-with-symbolics-modelingtoolkit/103793)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 6\
**Last updated:** [September 14, 2023, 1:52pm UTC](https://discourse.julialang.org/t/symbolic-ode-pde-in-vector-form-with-symbolics-modelingtoolkit/103793 "2023-09-14T13:52:06Z")

</div>

I’ve been having a hard time trying to use vector-valued equations (as opposed to vectors of equations) in Symbolics/ModelingToolkit. I remember reading somewhere in either docs that his feature was somewhat experimental…

---

## [ImpedanceFitter](https://discourse.julialang.org/t/impedancefitter/90103)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 1:42pm UTC](https://discourse.julialang.org/t/impedancefitter/90103 "2023-09-14T13:42:07Z")

</div>

I have the impression that currently only one Julia package exists for the purpose of equivalent-circuit fitting, which is: EquivalentCircuits And there some around in the Python world. One of them is impedancefitter. …

---

## [Tuple vs vector (article)](https://discourse.julialang.org/t/tuple-vs-vector-article/103824)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 4\
**Last updated:** [September 14, 2023, 1:40pm UTC](https://discourse.julialang.org/t/tuple-vs-vector-article/103824 "2023-09-14T13:40:19Z")

</div>

Greetings! I am reading Julius Krumbriegel’s (is he here?) informative article about the difference between tuples and vectors: jkrumbiegel.com - Tuples and Vectors, Allocations and Performance for Beginners Example fr…

---

## [Julia just... vanished in the middle of the night during a large task. Help troubleshooting/optimising would be appreciated](https://discourse.julialang.org/t/julia-just-vanished-in-the-middle-of-the-night-during-a-large-task-help-troubleshooting-optimising-would-be-appreciated/103834)

<div class="topic-metadata">

**Author:** [@MaxM](https://discourse.julialang.org/u/MaxM)\
**Replies:** 15\
**Last updated:** [September 14, 2023, 1:07pm UTC](https://discourse.julialang.org/t/julia-just-vanished-in-the-middle-of-the-night-during-a-large-task-help-troubleshooting-optimising-would-be-appreciated/103834 "2023-09-14T13:07:21Z")

</div>

I have quite a large task to run and in doing so I’ve encountered unfortunate issues. Below there are two blocks of code, one with a bunch of for loops (attempt 1), the other using functions (attempt 2). I’m running thes…

---

## [Check whether a variable is defined](https://discourse.julialang.org/t/check-whether-a-variable-is-defined/1018)

<div class="topic-metadata">

**Author:** [@Diger](https://discourse.julialang.org/u/Diger)\
**Replies:** 7\
**Last updated:** [September 14, 2023, 12:57pm UTC](https://discourse.julialang.org/t/check-whether-a-variable-is-defined/1018 "2023-09-14T12:57:45Z")

</div>

is there a simple check to see whether a variable is defined?

---

## [Bounds are not contracting using 'ReversePropagation.jl'](https://discourse.julialang.org/t/bounds-are-not-contracting-using-reversepropagation-jl/103846)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 0\
**Last updated:** [September 14, 2023, 11:29am UTC](https://discourse.julialang.org/t/bounds-are-not-contracting-using-reversepropagation-jl/103846 "2023-09-14T11:29:40Z")

</div>

Hello, I am trying to run an example code given for illustrating the working of ReversePropagation.jl. But it is neither working in Pluto.jl notebook nor in VSCode. Could anyone please check if I am making any mistakes?…

---

## [Obtaining Odesystem equations in code format from SBML file](https://discourse.julialang.org/t/obtaining-odesystem-equations-in-code-format-from-sbml-file/103844)

<div class="topic-metadata">

**Author:** [@Mies2027](https://discourse.julialang.org/u/Mies2027)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 11:29am UTC](https://discourse.julialang.org/t/obtaining-odesystem-equations-in-code-format-from-sbml-file/103844 "2023-09-14T11:29:33Z")

</div>

Hi, I am new to Julia and have a question regarding ModelingToolkit and SBML. I imported an SBML file and converted the model into an ODESystem: mdl = readSBML("Kok2020.xml", doc -\> begin set\_level\_and\_version(3, …

---

## [Creating app with PackageCompiler.jl --\> how to include R dependency?](https://discourse.julialang.org/t/creating-app-with-packagecompiler-jl-how-to-include-r-dependency/103167)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 7\
**Last updated:** [September 14, 2023, 10:32am UTC](https://discourse.julialang.org/t/creating-app-with-packagecompiler-jl-how-to-include-r-dependency/103167 "2023-09-14T10:32:00Z")

</div>

I’m trying to create an app using PackageCompiler.jl, but my app depends on an R package, where I pass variables between Julia and R using RCall.jl. To create this app, I tried a minimal example that just puts some stri…

---

## [How to Make Tuple of Tuple generation Type Stable](https://discourse.julialang.org/t/how-to-make-tuple-of-tuple-generation-type-stable/103842)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 10:33am UTC](https://discourse.julialang.org/t/how-to-make-tuple-of-tuple-generation-type-stable/103842 "2023-09-14T10:33:24Z")

</div>

I have code that needs to generate lists of indices. Cutting away all the fuzz, it boils down to using JET function foobar(K::Int, t::NTuple{N,T}) where {N,T} return \[t\[1:K\]\] end function foo(::Val{N}, k::Int) whe…

---

## [Reduce GC time](https://discourse.julialang.org/t/reduce-gc-time/103736)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 7\
**Last updated:** [September 14, 2023, 10:28am UTC](https://discourse.julialang.org/t/reduce-gc-time/103736 "2023-09-14T10:28:23Z")

</div>

Hello :grin:, I tried to optimize my code to reduce GC time. Among other things, I tried to implement “in place” operations, in particular with a long GC function “is\_intersect!”, which checks whether a given interval i…

---

## [Implementing Maple water hammer example (PDE's)](https://discourse.julialang.org/t/implementing-maple-water-hammer-example-pdes/103501)

<div class="topic-metadata">

**Author:** [@victor](https://discourse.julialang.org/u/victor)\
**Replies:** 3\
**Last updated:** [September 14, 2023, 10:00am UTC](https://discourse.julialang.org/t/implementing-maple-water-hammer-example-pdes/103501 "2023-09-14T10:00:08Z")

</div>

Hi I’m trying to recreate this Maple water hammer example in Julia. Link to Maple example below. I’m not able to get anything close to stable results. Some help here would be greatly appreciated. (I know I’ve made some …

---

## [Makie.jl Fixed Perspective when Dragging Mesh](https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 7:43am UTC](https://discourse.julialang.org/t/makie-jl-fixed-perspective-when-dragging-mesh/103835 "2023-09-14T07:43:00Z")

</div>

I’m using Makie.jl to generate a simple sphere. By default, the plot looks good but I would prefer if it did not resize as the user rotates the axis around. See the figure below for what I currently have. f = Figure() a…

---

## [Why is static compilation difficult](https://discourse.julialang.org/t/why-is-static-compilation-difficult/103796)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 7\
**Last updated:** [September 14, 2023, 7:12am UTC](https://discourse.julialang.org/t/why-is-static-compilation-difficult/103796 "2023-09-14T07:12:35Z")

</div>

I’d like to understand the static compilation problem better. I know that a lot of folks crave static compilation because they have constraints (embedded etc.), and that it would help to build adoption as a replacement …

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

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