# Latest

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

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

**Page:** 216

---

## [Reinstall All Parts of a Julia Project](https://discourse.julialang.org/t/reinstall-all-parts-of-a-julia-project/126169)

<div class="topic-metadata">

**Author:** [@andrewkhardy](https://discourse.julialang.org/u/andrewkhardy)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 11:23pm UTC](https://discourse.julialang.org/t/reinstall-all-parts-of-a-julia-project/126169 "2025-02-21T23:23:54Z")

</div>

I am attempting to run Julia on a HPCC. The most up to date version they have is v.1.10. I have somehow broken a project, so that whenever I try to load Julia v.1.10, not limited to this specific project I get an error …

---

## [How can I make this correlation plot?](https://discourse.julialang.org/t/how-can-i-make-this-correlation-plot/100434)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 13\
**Last updated:** [February 21, 2025, 10:24pm UTC](https://discourse.julialang.org/t/how-can-i-make-this-correlation-plot/100434 "2025-02-21T22:24:58Z")

</div>

how can I make a plot like this in Julia? Which package should i use? I have used corrplot but I don’t think we can get plot like this with that.

---

## [@everywhere inside a module](https://discourse.julialang.org/t/everywhere-inside-a-module/126135)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 11\
**Last updated:** [February 21, 2025, 10:01pm UTC](https://discourse.julialang.org/t/everywhere-inside-a-module/126135 "2025-02-21T22:01:24Z")

</div>

I am trying to parallelize solve\_alpha from Xfoil.jl. The problem is: Xfoil.jl has global variables inside the package, so I cannot use @threads to run multiple solve\_alphas at the same time. I have to use Distributed.jl…

---

## [New syntax suggestion: catch with type specs](https://discourse.julialang.org/t/new-syntax-suggestion-catch-with-type-specs/101840)

<div class="topic-metadata">

**Author:** [@HanD](https://discourse.julialang.org/u/HanD)\
**Replies:** 42\
**Last updated:** [February 21, 2025, 8:58pm UTC](https://discourse.julialang.org/t/new-syntax-suggestion-catch-with-type-specs/101840 "2025-02-21T20:58:47Z")

</div>

Hello! When using exceptions and try-catch blocks, it’s very common to handle some specific types of exceptions, and propagate everything else. Here’s how this is usually done: try # body with potential exceptions …

---

## [Slow decrease of loss and an error during fitting an ODE to data](https://discourse.julialang.org/t/slow-decrease-of-loss-and-an-error-during-fitting-an-ode-to-data/126050)

<div class="topic-metadata">

**Author:** [@Ashima\_Kalathingal](https://discourse.julialang.org/u/Ashima_Kalathingal)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 6:14pm UTC](https://discourse.julialang.org/t/slow-decrease-of-loss-and-an-error-during-fitting-an-ode-to-data/126050 "2025-02-21T18:14:21Z")

</div>

Hello, I have been trying to fit one parameter of a an ODE using the experimental data. I used the following example to write the code The problem is that the MSE loss is decreasing really really slowly even though …

---

## [Using ApproxFun.jl to solve a Volterra equation of the second kind](https://discourse.julialang.org/t/using-approxfun-jl-to-solve-a-volterra-equation-of-the-second-kind/40203)

<div class="topic-metadata">

**Author:** [@chisquared](https://discourse.julialang.org/u/chisquared)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 5:35pm UTC](https://discourse.julialang.org/t/using-approxfun-jl-to-solve-a-volterra-equation-of-the-second-kind/40203 "2025-02-21T17:35:00Z")

</div>

I’m trying to learn how to solve Volterra equations of the second kind using ApproxFun.jl. For example, consider the following equation, where u is an unknown function on \[0,1/2\]. The closest similar example I could …

---

## [Building mass and stiffness matrix for time dependent PDE with Gridap](https://discourse.julialang.org/t/building-mass-and-stiffness-matrix-for-time-dependent-pde-with-gridap/126164)

<div class="topic-metadata">

**Author:** [@Cirdans-Home](https://discourse.julialang.org/u/Cirdans-Home)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 5:29pm UTC](https://discourse.julialang.org/t/building-mass-and-stiffness-matrix-for-time-dependent-pde-with-gridap/126164 "2025-02-21T17:29:58Z")

</div>

Hi, I have implemented an algorithm for the solution of system of ODEs that I want to test against a method of line discretization of a PDE. My routine needs to take as input the mass matrix (assumed to be time-indepen…

---

## [Testing for correct handling of (missing) globals](https://discourse.julialang.org/t/testing-for-correct-handling-of-missing-globals/126158)

<div class="topic-metadata">

**Author:** [@Rbthn](https://discourse.julialang.org/u/Rbthn)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 4:30pm UTC](https://discourse.julialang.org/t/testing-for-correct-handling-of-missing-globals/126158 "2025-02-21T16:30:57Z")

</div>

When writing a script to e.g. solve an ODE, I often find myself using global (const) variables and using them in my right-hand-side function. This all works well, until I want to solve this ODE on another worker. This wo…

---

## [Title below plot](https://discourse.julialang.org/t/title-below-plot/126152)

<div class="topic-metadata">

**Author:** [@Breizhen](https://discourse.julialang.org/u/Breizhen)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 3:46pm UTC](https://discourse.julialang.org/t/title-below-plot/126152 "2025-02-21T15:46:11Z")

</div>

Is there any way to place the title(s) below a plot or subplots using Plots.jl, without getting around the problem and using the ‘annotate’ function?

---

## [Using julia in a Development Container](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143)

<div class="topic-metadata">

**Author:** [@alessio](https://discourse.julialang.org/u/alessio)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 2:48pm UTC](https://discourse.julialang.org/t/using-julia-in-a-development-container/126143 "2025-02-21T14:48:58Z")

</div>

I’m on Windows 11 with docker running in WSL2. On Windows I’m using Visual Studio Code with Dev Container extension. I have created a folder julia with a .devcontainer subfolder containining a devcontainer.json like th…

---

## [Any plans to support cplex 22.1.2?](https://discourse.julialang.org/t/any-plans-to-support-cplex-22-1-2/126151)

<div class="topic-metadata">

**Author:** [@jpedro1992](https://discourse.julialang.org/u/jpedro1992)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 1:59pm UTC](https://discourse.julialang.org/t/any-plans-to-support-cplex-22-1-2/126151 "2025-02-21T13:59:30Z")

</div>

Hi! Any plans regarding the support for cplex 22.1.2? I am having issues accessing IBM academic program to download a supported version by CPLEX.jl… Thanks!

---

## [\`objectid\` and reproducibility](https://discourse.julialang.org/t/objectid-and-reproducibility/126119)

<div class="topic-metadata">

**Author:** [@mhinsch](https://discourse.julialang.org/u/mhinsch)\
**Replies:** 9\
**Last updated:** [February 21, 2025, 1:58pm UTC](https://discourse.julialang.org/t/objectid-and-reproducibility/126119 "2025-02-21T13:58:16Z")

</div>

I just spent half a day debugging very weird non-deterministic behaviour in my simulation. The culprit as it turns out was one little piece of code where I used sorting an array of objects by objectid as a way to make ge…

---

## [Problems Compiling MKLSparse](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 3\
**Last updated:** [February 21, 2025, 1:48pm UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131 "2025-02-21T13:48:29Z")

</div>

I’m having some difficulty with MKLSparse. When the package is precompiling, it throws the following error: \`\`\`ERROR: The following 1 direct dependency failed to precompile: MKLSparse Failed to precompile MKLSparse …

---

## [\[Ann\] Julia Quick Syntax Reference 2nd Edition (Springer)](https://discourse.julialang.org/t/ann-julia-quick-syntax-reference-2nd-edition-springer/125002)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 1:25pm UTC](https://discourse.julialang.org/t/ann-julia-quick-syntax-reference-2nd-edition-springer/125002 "2025-02-21T13:25:04Z")

</div>

Dear all, I am pleased to announce the availability of the 2nd edition of my Apress book “Julia Quick Syntax Reference” \[Springer\]. \[Amazon\] Yes, it’s not that quick (361 pages, over 50% more than the 1st edition) and i…

---

## [How to programmatically open Pluto in a VS Code new tab from the Julia Terminal?](https://discourse.julialang.org/t/how-to-programmatically-open-pluto-in-a-vs-code-new-tab-from-the-julia-terminal/126086)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 1:01pm UTC](https://discourse.julialang.org/t/how-to-programmatically-open-pluto-in-a-vs-code-new-tab-from-the-julia-terminal/126086 "2025-02-21T13:01:58Z")

</div>

I am trying to capture the Pluto URL programmatically ’ pluto\_url = some code’ without auto-open and afterwards opening it inside VS Code. Is it possible? using Pluto # Start Pluto @async Pluto.run(; autoopen=false) …

---

## [Hinting (autocomplete) in 1.11 REPL as opt-in instead of opt-out](https://discourse.julialang.org/t/hinting-autocomplete-in-1-11-repl-as-opt-in-instead-of-opt-out/126142)

<div class="topic-metadata">

**Author:** [@leios](https://discourse.julialang.org/u/leios)\
**Replies:** 1\
**Last updated:** [February 21, 2025, 11:54am UTC](https://discourse.julialang.org/t/hinting-autocomplete-in-1-11-repl-as-opt-in-instead-of-opt-out/126142 "2025-02-21T11:54:23Z")

</div>

Ok, 1.11 added hinting to the Julia REPL: Julia 1.11 Highlights. I think most users will find this useful, but I feel like this feature might be better in a separate package like OhMyREPL.jl or something: GitHub - Krist…

---

## [Symbolics substitute - what has changed?](https://discourse.julialang.org/t/symbolics-substitute-what-has-changed/116826)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [February 21, 2025, 11:11am UTC](https://discourse.julialang.org/t/symbolics-substitute-what-has-changed/116826 "2025-02-21T11:11:51Z")

</div>

What has changed with Symbolics substitute? In the past, I could compose two substitutions, but that doesn’t seem to work any more. Concretely, I consider: Asn = substitute(As, Dict(name\_s .=\> s\_ss)) |\> x -\> substitute…

---

## [Feasible Region using PowerModels.jl](https://discourse.julialang.org/t/feasible-region-using-powermodels-jl/126137)

<div class="topic-metadata">

**Author:** [@Glon](https://discourse.julialang.org/u/Glon)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 7:05am UTC](https://discourse.julialang.org/t/feasible-region-using-powermodels-jl/126137 "2025-02-21T07:05:21Z")

</div>

Hello all, Is it possible to plot the feasible region for the optimization problem in PowerModels. I understand that we can use HiGHs, Juniper, Ipopt etc. to get the optimal point, but is it possible to plot the feasibl…

---

## [Can't get the expected resolution using Rasters.resample](https://discourse.julialang.org/t/cant-get-the-expected-resolution-using-rasters-resample/126118)

<div class="topic-metadata">

**Author:** [@MJulia](https://discourse.julialang.org/u/MJulia)\
**Replies:** 2\
**Last updated:** [February 21, 2025, 2:25am UTC](https://discourse.julialang.org/t/cant-get-the-expected-resolution-using-rasters-resample/126118 "2025-02-21T02:25:04Z")

</div>

I tried the following code snippet to resample high-resolution data to a lower resolution. The first method works, but the second one doesn’t. It seems I missed some parameters for the “to” keyword in the resample functi…

---

## [Agents.jl and using a network model](https://discourse.julialang.org/t/agents-jl-and-using-a-network-model/126134)

<div class="topic-metadata">

**Author:** [@zoek](https://discourse.julialang.org/u/zoek)\
**Replies:** 0\
**Last updated:** [February 21, 2025, 1:46am UTC](https://discourse.julialang.org/t/agents-jl-and-using-a-network-model/126134 "2025-02-21T01:46:58Z")

</div>

Hi, I’m trying to use agents.jl for an SEIR network model, where each agent is a node and nodes are connected by edges. I want to run the model so that for each agent, ‘neighbours’ are identified through edges, and if a …

---

## [How do I properly close a DuckDb database?](https://discourse.julialang.org/t/how-do-i-properly-close-a-duckdb-database/100598)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 20\
**Last updated:** [February 21, 2025, 1:44am UTC](https://discourse.julialang.org/t/how-do-i-properly-close-a-duckdb-database/100598 "2025-02-21T01:44:28Z")

</div>

I cannot run the following code twice in one julia session: using DuckDB using DBInterface db = DuckDB.DB("C:\\\\Temp\\\\test.duckdb") t = DBInterface.execute(db, "SELECT 1") DuckDB.close\_database(db) On the second run …

---

## [Display docstring for extension method in documentation](https://discourse.julialang.org/t/display-docstring-for-extension-method-in-documentation/99720)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 5\
**Last updated:** [February 20, 2025, 2:26pm UTC](https://discourse.julialang.org/t/display-docstring-for-extension-method-in-documentation/99720 "2025-02-20T14:26:49Z")

</div>

What should I do I want to document a method defined in an extension? Of course I wrote a docstring but said docstring isn’t displayed in the Documenter.jl build, even when I load the conditional dependencies before load…

---

## [How do I convert to using the package tarball format?](https://discourse.julialang.org/t/how-do-i-convert-to-using-the-package-tarball-format/126100)

<div class="topic-metadata">

**Author:** [@magister-ludi](https://discourse.julialang.org/u/magister-ludi)\
**Replies:** 5\
**Last updated:** [February 20, 2025, 10:15pm UTC](https://discourse.julialang.org/t/how-do-i-convert-to-using-the-package-tarball-format/126100 "2025-02-20T22:15:25Z")

</div>

I can’t remember when this started (I think it was when I started using the 11.x series, it definitely happens for 11.2 and 11.3). When I do a Pkg.add(...) or a Pkg.update(), if it’s time for the repository data to be re…

---

## [\[ANN\] BloodFlowTrixi.jl: 1D and 2D Blood Flow Models for Arterial Circulation using Trixi.jl](https://discourse.julialang.org/t/ann-bloodflowtrixi-jl-1d-and-2d-blood-flow-models-for-arterial-circulation-using-trixi-jl/124707)

<div class="topic-metadata">

**Author:** [@yolhan\_mannes](https://discourse.julialang.org/u/yolhan_mannes)\
**Replies:** 7\
**Last updated:** [February 20, 2025, 7:43pm UTC](https://discourse.julialang.org/t/ann-bloodflowtrixi-jl-1d-and-2d-blood-flow-models-for-arterial-circulation-using-trixi-jl/124707 "2025-02-20T19:43:16Z")

</div>

\[ANN\] BloodFlowTrixi.jl: 1D and 2D Blood Flow Models for Arterial Circulation using Trixi.jl I’m excited to announce the registration of BloodFlowTrixi.jl, a Julia package implementing 1D and 2D blood flow models for art…

---

## [TestItemRunner doesn't reload changed test case](https://discourse.julialang.org/t/testitemrunner-doesnt-reload-changed-test-case/126099)

<div class="topic-metadata">

**Author:** [@bdforbes](https://discourse.julialang.org/u/bdforbes)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 7:32pm UTC](https://discourse.julialang.org/t/testitemrunner-doesnt-reload-changed-test-case/126099 "2025-02-20T19:32:27Z")

</div>

I am using Julia in VS Code and running individual tests with TestItemRunner and the @testitem macro. I am finding that if a @test case line is changed just a bit, e.g. changing a number by a single digit, the change doe…

---

## [Memory usage discrepancy](https://discourse.julialang.org/t/memory-usage-discrepancy/126085)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 8\
**Last updated:** [February 20, 2025, 5:06pm UTC](https://discourse.julialang.org/t/memory-usage-discrepancy/126085 "2025-02-20T17:06:58Z")

</div>

I have an application running in Julia. Using htop I can see that the process consumes 2 GB of memory, but if I use summarysize of all symbols in Main I just get around 150 MB in total. How can this be? I’m using Julia…

---

## [Correct using of Reexport](https://discourse.julialang.org/t/correct-using-of-reexport/125835)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 12\
**Last updated:** [February 20, 2025, 4:58pm UTC](https://discourse.julialang.org/t/correct-using-of-reexport/125835 "2025-02-20T16:58:35Z")

</div>

Hello, I’m developing the QuantumToolbox.jl package, to simulate quantum systems in Julia. This package mainly uses linear algebra operations on sparse and dense arrays. Thus, I have those two packages as dependencies. …

---

## [\[ANN\] MetopDatasets.jl: A package to read native data from the METOP satellites](https://discourse.julialang.org/t/ann-metopdatasets-jl-a-package-to-read-native-data-from-the-metop-satellites/126117)

<div class="topic-metadata">

**Author:** [@lupemba](https://discourse.julialang.org/u/lupemba)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 2:45pm UTC](https://discourse.julialang.org/t/ann-metopdatasets-jl-a-package-to-read-native-data-from-the-metop-satellites/126117 "2025-02-20T14:45:35Z")

</div>

MetopDataset v0.1 is now registered MetopDatasets.jl is a package for reading products from the METOP satellites using the native binary format specified for each product. The METOP satellites are part of the EUMETSAT-PO…

---

## [Is it OK to re-export something from a different package?](https://discourse.julialang.org/t/is-it-ok-to-re-export-something-from-a-different-package/76922)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 11\
**Last updated:** [February 20, 2025, 1:11pm UTC](https://discourse.julialang.org/t/is-it-ok-to-re-export-something-from-a-different-package/76922 "2025-02-20T13:11:30Z")

</div>

As the title say, i am wandering if it is OK to reexport a method from a different package. I currently have : module MyPackage using OtherPackage struct mytype end OtherPackage.function(x::mytype) = 1 end The fact …

---

## [How to construct a categorical colormap with one specific value corresponding to a specific color?](https://discourse.julialang.org/t/how-to-construct-a-categorical-colormap-with-one-specific-value-corresponding-to-a-specific-color/126114)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 0\
**Last updated:** [February 20, 2025, 1:32pm UTC](https://discourse.julialang.org/t/how-to-construct-a-categorical-colormap-with-one-specific-value-corresponding-to-a-specific-color/126114 "2025-02-20T13:32:11Z")

</div>

What I want to do: I have an array of intergers that ranges over -3:2, which I want to plot with heatmap. The difficult part is that I want the 0 to be ploted by some “neutral” color, say grey in the colormap :coolwarm. …

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

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