# Latest

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

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

**Page:** 364

---

## [Metaprogramming: substitute the name of the argument](https://discourse.julialang.org/t/metaprogramming-substitute-the-name-of-the-argument/116867)

<div class="topic-metadata">

**Author:** [@dmi3kno](https://discourse.julialang.org/u/dmi3kno)\
**Replies:** 20\
**Last updated:** [July 14, 2024, 8:08am UTC](https://discourse.julialang.org/t/metaprogramming-substitute-the-name-of-the-argument/116867 "2024-07-14T08:08:53Z")

</div>

I am writing a function factory that takes two functions and weighs them by some \_wt \\in (0,1). function fun\_mix(fun1::Function, fun2::Function; \_nm\_wt="\_wt") f = function (u::AbstractFloat, args...; \_wt=0.5) …

---

## [Fullscreen doesn't work in GLMakie](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 6:23am UTC](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014 "2024-07-14T06:23:11Z")

</div>

I’m trying to display a fullscreen image in GLMakie, but it isn’t working. I’m running the following code: using GLMakie GLMakie.activate!(decorated=false, fullscreen=true) w, h = 2560, 1080 # my monitor's resolution i…

---

## [Rust and Julia BoF at JuliaCon 2024](https://discourse.julialang.org/t/rust-and-julia-bof-at-juliacon-2024/116993)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 4:20am UTC](https://discourse.julialang.org/t/rust-and-julia-bof-at-juliacon-2024/116993 "2024-07-14T04:20:18Z")

</div>

Welcome Julia and Rust friends! Our BoF was a friendly discussion mostly around what Rust can offer to Julia devs. Most of the attendees didn’t know Rust yet but were keen to learn what it offers. For those interested …

---

## [Learning Orbital Dynamics](https://discourse.julialang.org/t/learning-orbital-dynamics/116607)

<div class="topic-metadata">

**Author:** [@Jose\_P](https://discourse.julialang.org/u/Jose_P)\
**Replies:** 16\
**Last updated:** [July 13, 2024, 9:28pm UTC](https://discourse.julialang.org/t/learning-orbital-dynamics/116607 "2024-07-13T21:28:37Z")

</div>

Hi everyone, I am currently learning Julia by working on a project based on the paper “Learning orbital dynamics of binary black hole systems from gravitational wave measurements.” The idea is to reconstruct the original…

---

## [Is ClusterManagers.jl maintained? Or, how to do multi-node calculations in Julia?](https://discourse.julialang.org/t/is-clustermanagers-jl-maintained-or-how-to-do-multi-node-calculations-in-julia/110050)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 44\
**Last updated:** [July 13, 2024, 8:53pm UTC](https://discourse.julialang.org/t/is-clustermanagers-jl-maintained-or-how-to-do-multi-node-calculations-in-julia/110050 "2024-07-13T20:53:34Z")

</div>

Just wondering if anybody is maintaining ClusterManagers.jl? Major components of it have been broken for over two years now… (example). Now it seems that even the previously well-supported cluster managers are a bit ske…

---

## [Create custom shapes in Makie.jl](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 4:49pm UTC](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000 "2024-07-13T16:49:30Z")

</div>

Hello, I would like to create a custom shape using Makie.jl. Something like the figure below This is basically a rectangle with one curved side instead of strainght. I have no clue if it is possible to create such a…

---

## [Weird behaviour of steadystate.eigenvector function returns any while it should return the type operator](https://discourse.julialang.org/t/weird-behaviour-of-steadystate-eigenvector-function-returns-any-while-it-should-return-the-type-operator/117002)

<div class="topic-metadata">

**Author:** [@Arpan\_Chatterjee1](https://discourse.julialang.org/u/Arpan_Chatterjee1)\
**Replies:** 0\
**Last updated:** [July 13, 2024, 3:36pm UTC](https://discourse.julialang.org/t/weird-behaviour-of-steadystate-eigenvector-function-returns-any-while-it-should-return-the-type-operator/117002 "2024-07-13T15:36:40Z")

</div>

I was doing a simulation of calculating the population of a 3-state system interacting with a cavity mode. Part of the code is given as follows function pop(g, Ω23, Ω12, Δ23\_list, Δ12\_list, Δ, Γ31, Γ32, κ, a,…

---

## [Can I restrict access to module functions?](https://discourse.julialang.org/t/can-i-restrict-access-to-module-functions/115830)

<div class="topic-metadata">

**Author:** [@martin\_sanchez](https://discourse.julialang.org/u/martin_sanchez)\
**Replies:** 6\
**Last updated:** [July 13, 2024, 4:17pm UTC](https://discourse.julialang.org/t/can-i-restrict-access-to-module-functions/115830 "2024-07-13T16:17:27Z")

</div>

Hi, I am trying to develop a set of automated workshops for students to follow (similar to the ones you access in Coursera or similar). I was wondering if I can (by design, something similar to oop) mask or restrict acce…

---

## [Brute force bifurcation diagram - need help with stiff solver](https://discourse.julialang.org/t/brute-force-bifurcation-diagram-need-help-with-stiff-solver/94387)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 15\
**Last updated:** [July 13, 2024, 1:33pm UTC](https://discourse.julialang.org/t/brute-force-bifurcation-diagram-need-help-with-stiff-solver/94387 "2024-07-13T13:33:46Z")

</div>

Hi All, I’m trying to reproduce a bifurcation diagram (brute force) computed using XPP-AUT. My code is here and the original XPP code from Krylova and Earn (2013) is here. The XPP code seems to give a nice bifurcation …

---

## [Time-varying parameter specification in DiscreteProblem?](https://discourse.julialang.org/t/time-varying-parameter-specification-in-discreteproblem/116975)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 3\
**Last updated:** [July 13, 2024, 1:33pm UTC](https://discourse.julialang.org/t/time-varying-parameter-specification-in-discreteproblem/116975 "2024-07-13T13:33:41Z")

</div>

I have a simple DiscreteProblem, based on the SIR epidemic model. I’d like to pass a time-varying parameter to the model, to reduce \\beta by a factor v(t). As this is a discrete-time map, I’d like to define v as a vector…

---

## [Shell Command to make environmental variables](https://discourse.julialang.org/t/shell-command-to-make-environmental-variables/116997)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 1:20pm UTC](https://discourse.julialang.org/t/shell-command-to-make-environmental-variables/116997 "2024-07-13T13:20:19Z")

</div>

I am on linux and trying to execute the following in a Julia REPL: run(export JULIA\_NUM\_THREADS=4) I get the error ERROR: IOError: could not spawn export JULIA\_NUM\_THREADS=4: no such file or directory (ENOENT) I can…

---

## [Vec vs Point what to use?](https://discourse.julialang.org/t/vec-vs-point-what-to-use/116972)

<div class="topic-metadata">

**Author:** [@Maddy](https://discourse.julialang.org/u/Maddy)\
**Replies:** 15\
**Last updated:** [July 13, 2024, 12:57pm UTC](https://discourse.julialang.org/t/vec-vs-point-what-to-use/116972 "2024-07-13T12:57:38Z")

</div>

All this time I had been using Point(…). I recently realised there is a Vec(…) function in the GeometryBasics.jl package. Is there a particular one that I should Use? julia\> Point(1,2) == Vec(1,2) == \[1,2\] true All Mak…

---

## [Looking to parallelize (not parametrize) the solution to a large and highly stiff ODE system](https://discourse.julialang.org/t/looking-to-parallelize-not-parametrize-the-solution-to-a-large-and-highly-stiff-ode-system/116727)

<div class="topic-metadata">

**Author:** [@balaji\_sriram](https://discourse.julialang.org/u/balaji_sriram)\
**Replies:** 7\
**Last updated:** [July 13, 2024, 12:41pm UTC](https://discourse.julialang.org/t/looking-to-parallelize-not-parametrize-the-solution-to-a-large-and-highly-stiff-ode-system/116727 "2024-07-13T12:41:42Z")

</div>

I am solving a system of linear differential equations (of type \[dx/dt\]= \[Jacobian\]\*\[ x \] ) with about 1 million simultaneous differential equations. The system is highly stiff and the jacobian is sparse and banded. I us…

---

## [JuliaCon: Thanks to](https://discourse.julialang.org/t/juliacon-thanks-to/116990)

<div class="topic-metadata">

**Author:** [@Schumi](https://discourse.julialang.org/u/Schumi)\
**Replies:** 1\
**Last updated:** [July 13, 2024, 11:00am UTC](https://discourse.julialang.org/t/juliacon-thanks-to/116990 "2024-07-13T11:00:57Z")

</div>

… the community I had the pleasure to meet at JuliaCon. … the organisers, who put a lot of energy into this event. … the speakers, for all the topics they presented. … the volunteers, without whose support JuliaCon co…

---

## [How to integrate Julia with a HTML web page?](https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019)

<div class="topic-metadata">

**Author:** [@yasser\_rajwani](https://discourse.julialang.org/u/yasser_rajwani)\
**Replies:** 13\
**Last updated:** [July 13, 2024, 10:15am UTC](https://discourse.julialang.org/t/how-to-integrate-julia-with-a-html-web-page/48019 "2024-07-13T10:15:16Z")

</div>

How to call a Julia function from an application running in a web browser

---

## [Using xor with JuMP and MiniZinc](https://discourse.julialang.org/t/using-xor-with-jump-and-minizinc/116519)

<div class="topic-metadata">

**Author:** [@remi-garcia](https://discourse.julialang.org/u/remi-garcia)\
**Replies:** 6\
**Last updated:** [July 13, 2024, 8:48am UTC](https://discourse.julialang.org/t/using-xor-with-jump-and-minizinc/116519 "2024-07-13T08:48:14Z")

</div>

Hi, With JuMP, I can create constraints with && and ||. I am trying to use xor and not. Is there a way to do this? I can do the following: using JuMP using MiniZinc model = Model(() -\> MiniZinc.Optimizer{Float64}("c…

---

## [Hackathon Projects for JuliaCon 2024](https://discourse.julialang.org/t/hackathon-projects-for-juliacon-2024/116422)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 19\
**Last updated:** [July 13, 2024, 8:12am UTC](https://discourse.julialang.org/t/hackathon-projects-for-juliacon-2024/116422 "2024-07-13T08:12:43Z")

</div>

This year the hackathon will take place in the iconic Grand Cafe De Lichttoren on Saturday, July 13th. Here you can chat with the friends you made during the previous days of JuliaCon, while in the meantime solving probl…

---

## [Why would a sysimage be faster than a package (JuliaScript.jl)?](https://discourse.julialang.org/t/why-would-a-sysimage-be-faster-than-a-package-juliascript-jl/116984)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [July 13, 2024, 7:45am UTC](https://discourse.julialang.org/t/why-would-a-sysimage-be-faster-than-a-package-juliascript-jl/116984 "2024-07-13T07:45:02Z")

</div>

As stated in the README, JuliaScript.jl can “create a corresponding julia module and track all precompile statements from the actual run” then “from the second time onwards, it will then run as fast as julia’s precompila…

---

## [Type of array index?](https://discourse.julialang.org/t/type-of-array-index/76065)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 26\
**Last updated:** [July 13, 2024, 6:26am UTC](https://discourse.julialang.org/t/type-of-array-index/76065 "2024-07-13T06:26:16Z")

</div>

I wonder what the type of indices is for standard arrays? Int, Int64, or . . . ? I have this use in mind at present: # Collect indices for which v\[i\] \< thresh function partition\_vec(v, thresh) idx = Vector{Int??????…

---

## [It seems that MadNLP does not support general NLP problem](https://discourse.julialang.org/t/it-seems-that-madnlp-does-not-support-general-nlp-problem/116864)

<div class="topic-metadata">

**Author:** [@JackaChou](https://discourse.julialang.org/u/JackaChou)\
**Replies:** 7\
**Last updated:** [July 13, 2024, 5:50am UTC](https://discourse.julialang.org/t/it-seems-that-madnlp-does-not-support-general-nlp-problem/116864 "2024-07-13T05:50:05Z")

</div>

I recently used the solver MadNLP to solve the following NLP problem, but the terminal reported that it didn’t support this problem. Isn’t MadNLP a general NLP solver? using MadNLP, JuMP m = Model(() → MadNLP.Optimize…

---

## [Indicator constraints in IQP?](https://discourse.julialang.org/t/indicator-constraints-in-iqp/107587)

<div class="topic-metadata">

**Author:** [@Jeff\_Emanuel](https://discourse.julialang.org/u/Jeff_Emanuel)\
**Replies:** 6\
**Last updated:** [July 13, 2024, 3:32am UTC](https://discourse.julialang.org/t/indicator-constraints-in-iqp/107587 "2024-07-13T03:32:58Z")

</div>

The problem I’m trying to solve has grown to the point where it requires quadratic constraints and/or objective. When the problem was linear, I had used indicator constraints successfully. After switching to Juniper or…

---

## [Testing error thrown by a macro](https://discourse.julialang.org/t/testing-error-thrown-by-a-macro/116983)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 2:14am UTC](https://discourse.julialang.org/t/testing-error-thrown-by-a-macro/116983 "2024-07-13T02:14:47Z")

</div>

Is there a standard way to test that a macro throws an error for certain inputs? Consider the following example: macro foo(x) x == :a || throw(ArgumentError("oops.")) 1 end If I use @test\_throws normally, it do…

---

## [Automatically load extension if available](https://discourse.julialang.org/t/automatically-load-extension-if-available/116980)

<div class="topic-metadata">

**Author:** [@bclyons12](https://discourse.julialang.org/u/bclyons12)\
**Replies:** 6\
**Last updated:** [July 13, 2024, 12:26am UTC](https://discourse.julialang.org/t/automatically-load-extension-if-available/116980 "2024-07-13T00:26:40Z")

</div>

Suppose I have MyPkg which has as an extension MyExt. I basically always want MyPkg to use MyExt if that package is available in the environment. Is there a way to automate it so that import MyPkg always does import MyPk…

---

## [Bio - Phylogenies](https://discourse.julialang.org/t/bio-phylogenies/116978)

<div class="topic-metadata">

**Author:** [@msarrias](https://discourse.julialang.org/u/msarrias)\
**Replies:** 2\
**Last updated:** [July 12, 2024, 9:46pm UTC](https://discourse.julialang.org/t/bio-phylogenies/116978 "2024-07-12T21:46:21Z")

</div>

Hi! I’m new to Julia so apologies for the possibly dumb question. How can I install the Phylogenies package? I am aware that this used to be part of the BioJulia package which is now deprecated and per this post split …

---

## [Cyclic policy graph with fix number of cycles - SDDP.jl](https://discourse.julialang.org/t/cyclic-policy-graph-with-fix-number-of-cycles-sddp-jl/116546)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 1\
**Last updated:** [July 13, 2024, 12:50am UTC](https://discourse.julialang.org/t/cyclic-policy-graph-with-fix-number-of-cycles-sddp-jl/116546 "2024-07-13T00:50:05Z")

</div>

Hi everyone, Can we design a cyclic linear policy graph in SDDP.jl with a fixed number of cycles? Let’s assume there are 4 nodes, where node 4 transitions to node 1 with a probability of 1. However, this cycle should re…

---

## [MOA-HiGHS Unsupported Objective Function](https://discourse.julialang.org/t/moa-highs-unsupported-objective-function/116672)

<div class="topic-metadata">

**Author:** [@jhannyj](https://discourse.julialang.org/u/jhannyj)\
**Replies:** 4\
**Last updated:** [July 13, 2024, 12:46am UTC](https://discourse.julialang.org/t/moa-highs-unsupported-objective-function/116672 "2024-07-13T00:46:39Z")

</div>

Hi all. I’m pretty new to Julia optimization. I have this problem: model = Model(HiGHS.Optimizer) @variable(model, x\[1:n\] \>= 0) @constraint(model, A' \* x .\>= f) @objective(model, Min, b' \* x) which works perfectly when…

---

## [How to use @expression macro with non-numeric indexes](https://discourse.julialang.org/t/how-to-use-expression-macro-with-non-numeric-indexes/116782)

<div class="topic-metadata">

**Author:** [@asuski](https://discourse.julialang.org/u/asuski)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 12:41am UTC](https://discourse.julialang.org/t/how-to-use-expression-macro-with-non-numeric-indexes/116782 "2024-07-13T00:41:27Z")

</div>

Hi, I am building an optimization model where I would like to use JuMP expressions to smoothly add elements of constraints across different parts of the model. However, the sets I am working with and over which I am ini…

---

## [Jump/Ipopt: is it possibe to retrieve the numerical Jacobian at the optimal point?](https://discourse.julialang.org/t/jump-ipopt-is-it-possibe-to-retrieve-the-numerical-jacobian-at-the-optimal-point/116896)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 12:16am UTC](https://discourse.julialang.org/t/jump-ipopt-is-it-possibe-to-retrieve-the-numerical-jacobian-at-the-optimal-point/116896 "2024-07-13T00:16:45Z")

</div>

Hello, on a nonlinear solved optimization problem (JuMP/Ipopt) is it possible to retrieve the values of the Jacobian matrix at the returned optimal point ?

---

## [Is GLPK still maintained/relevant?](https://discourse.julialang.org/t/is-glpk-still-maintained-relevant/116950)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [July 13, 2024, 12:13am UTC](https://discourse.julialang.org/t/is-glpk-still-maintained-relevant/116950 "2024-07-13T00:13:13Z")

</div>

Is GLPK (the lib itself, not the Julia wrapper) still maintained and relevant ? I can’t find any activity after 2020 Also wonder if it it still relevant or newer packages as HiGHS are the way to go nowadays…

---

## [Alternative to Any\[ \] ? or efficient usage idea?](https://discourse.julialang.org/t/alternative-to-any-or-efficient-usage-idea/116969)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 9\
**Last updated:** [July 12, 2024, 9:19pm UTC](https://discourse.julialang.org/t/alternative-to-any-or-efficient-usage-idea/116969 "2024-07-12T21:19:53Z")

</div>

Hello everyone, Im trying to avoid use of any\[\] in my code but at the moment situation is such that I need to save results for unknown number of interactions (stochastic in nature). So, I’m using any\[\] and pushing resul…

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

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