# Latest

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

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

**Page:** 348

---

## [Recursive use of DifferentialEquations.jl solutions](https://discourse.julialang.org/t/recursive-use-of-differentialequations-jl-solutions/117596)

<div class="topic-metadata">

**Author:** [@lieskjur](https://discourse.julialang.org/u/lieskjur)\
**Replies:** 4\
**Last updated:** [August 8, 2024, 12:57am UTC](https://discourse.julialang.org/t/recursive-use-of-differentialequations-jl-solutions/117596 "2024-08-08T00:57:37Z")

</div>

Hi, I am currently in the process of implementing a two pass trajectory optimization algorithm where the solution (sol) of one IVP problem produced in the first pass is a parameter (part of p) in the IVP problem of the s…

---

## [Space in html output in pluto notebook](https://discourse.julialang.org/t/space-in-html-output-in-pluto-notebook/82338)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 5:42pm UTC](https://discourse.julialang.org/t/space-in-html-output-in-pluto-notebook/82338 "2024-08-07T17:42:10Z")

</div>

I am able to create whitespace when using the string macro for markdown. However, Markdown.parse acts differently, and does not include the whitespace. But I have to use Markdown.parse to assemble strings to a table,…

---

## [Run IJulia notebook in REPL?](https://discourse.julialang.org/t/run-ijulia-notebook-in-repl/117923)

<div class="topic-metadata">

**Author:** [@depasquale](https://discourse.julialang.org/u/depasquale)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 4:24pm UTC](https://discourse.julialang.org/t/run-ijulia-notebook-in-repl/117923 "2024-08-07T16:24:48Z")

</div>

I have some IJulia notebooks I’d like to run from the julia REPL. (I know this isn’t standard usage). Is there a way to do this? Thanks.

---

## [Is this type-piracy, and is the resulting crash expected?](https://discourse.julialang.org/t/is-this-type-piracy-and-is-the-resulting-crash-expected/117914)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 2\
**Last updated:** [August 7, 2024, 3:03pm UTC](https://discourse.julialang.org/t/is-this-type-piracy-and-is-the-resulting-crash-expected/117914 "2024-08-07T15:03:05Z")

</div>

Hello, In a temp session, if I import Base.∈ and extend it with ∈(A,Interval) = (minimum(Interval) \<= A \<= maximum(Interval)) attempting to tab-complete the line -1.0 \\in causes the session to crash (versioninfo() and…

---

## [How to run external programs without GC allocations?](https://discourse.julialang.org/t/how-to-run-external-programs-without-gc-allocations/117918)

<div class="topic-metadata">

**Author:** [@Thomas008](https://discourse.julialang.org/u/Thomas008)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 2:23pm UTC](https://discourse.julialang.org/t/how-to-run-external-programs-without-gc-allocations/117918 "2024-08-07T14:23:59Z")

</div>

I’d like to run an external program in a code, that can be compiled with StaticCompiler. There are e.g. Base.run(cmd /c dir) (I work in Windows) and Shell.run("dir"). However these commands need GC allocations. So they …

---

## [Set a minimum level in contour plots](https://discourse.julialang.org/t/set-a-minimum-level-in-contour-plots/117907)

<div class="topic-metadata">

**Author:** [@Sh\_166](https://discourse.julialang.org/u/Sh_166)\
**Replies:** 9\
**Last updated:** [August 7, 2024, 11:42am UTC](https://discourse.julialang.org/t/set-a-minimum-level-in-contour-plots/117907 "2024-08-07T11:42:15Z")

</div>

I want to make a contour plot but I only want specific contours - or levels above a certain range. MWE: Pkg.add("Symbolics") Pkg.add("Plots") Pkg.add("LaTeXStrings") Pkg.add("Measures") Pkg.add("PlotThemes") using Sym…

---

## [Which attribute to use to adjust margin between subplot title and subplot placed above?](https://discourse.julialang.org/t/which-attribute-to-use-to-adjust-margin-between-subplot-title-and-subplot-placed-above/117902)

<div class="topic-metadata">

**Author:** [@lisapisa](https://discourse.julialang.org/u/lisapisa)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 7:21am UTC](https://discourse.julialang.org/t/which-attribute-to-use-to-adjust-margin-between-subplot-title-and-subplot-placed-above/117902 "2024-08-07T07:21:37Z")

</div>

Heyy Julia community!! As always, thanks in advance for answering my noob questions. Love this community a lot and appreciate all of you helping out :slight\_smile: I am trying to plot two subplots in one plot, see exam…

---

## [\[crosspost\] JuliaDynamics meetings (poll closing soon!)](https://discourse.julialang.org/t/crosspost-juliadynamics-meetings-poll-closing-soon/117909)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 7:09am UTC](https://discourse.julialang.org/t/crosspost-juliadynamics-meetings-poll-closing-soon/117909 "2024-08-07T07:09:34Z")

</div>

Hi all, cross-posting here Monthly meetups kickstart: JuliaDynamics (and beyond!) in case someone is subscribed to this particular category, which where all related discussion actually happens. I’ll close the poll at t…

---

## [Spending a lot of time in \`materialize\` called by \`findall\`](https://discourse.julialang.org/t/spending-a-lot-of-time-in-materialize-called-by-findall/117859)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 14\
**Last updated:** [August 7, 2024, 6:01am UTC](https://discourse.julialang.org/t/spending-a-lot-of-time-in-materialize-called-by-findall/117859 "2024-08-07T06:01:08Z")

</div>

Hello all, I’m new to Julia and as an exercise I’ve ported a medium-complex Python code to Julia. Even without particular optimizations, the Julia code is 4 to 5 times faster than Python (nice!), but I’ve decided to try…

---

## [How to list names of functions in a script file using Pluto?](https://discourse.julialang.org/t/how-to-list-names-of-functions-in-a-script-file-using-pluto/117809)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 4\
**Last updated:** [August 7, 2024, 5:00am UTC](https://discourse.julialang.org/t/how-to-list-names-of-functions-in-a-script-file-using-pluto/117809 "2024-08-07T05:00:35Z")

</div>

Hi all, I have a file named functions.jl which I import into a Pluto notebook using include("scripts/functions.jl"). I want to list all the function names in the functions file, what is the best practice to do it? Th…

---

## [Variable interpolation](https://discourse.julialang.org/t/variable-interpolation/117769)

<div class="topic-metadata">

**Author:** [@geoffD](https://discourse.julialang.org/u/geoffD)\
**Replies:** 5\
**Last updated:** [August 7, 2024, 2:30am UTC](https://discourse.julialang.org/t/variable-interpolation/117769 "2024-08-07T02:30:45Z")

</div>

Hi, everyone. New to Julia and trying to do something like the following: v1 = "m" function mat() return "I am a mat" end I would like to be able to issue the following command: ($v1)at and get back “I am a …

---

## [Historical data - SDDP.jl](https://discourse.julialang.org/t/historical-data-sddp-jl/117207)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 11:42pm UTC](https://discourse.julialang.org/t/historical-data-sddp-jl/117207 "2024-08-06T23:42:24Z")

</div>

Hi everyone, I trained a big model using SDDP.jl. Then, I used historical data to simulate the policy multiple times. However, when I examine the results of different simulations with the same historical data, I notice …

---

## [Expensive Code Generation for Functions for Reuse](https://discourse.julialang.org/t/expensive-code-generation-for-functions-for-reuse/117899)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 3\
**Last updated:** [August 6, 2024, 10:37pm UTC](https://discourse.julialang.org/t/expensive-code-generation-for-functions-for-reuse/117899 "2024-08-06T22:37:08Z")

</div>

Hello. I’m looking for some guidance on a design decision to make. I have an algorithm which makes use of 10 to 20 specialized function that are called repeatedly, however, none of the functions are known until the neces…

---

## [Solution indexing is very slow](https://discourse.julialang.org/t/solution-indexing-is-very-slow/117896)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 8\
**Last updated:** [August 6, 2024, 9:23pm UTC](https://discourse.julialang.org/t/solution-indexing-is-very-slow/117896 "2024-08-06T21:23:05Z")

</div>

When running the following code, the last two lines do the same thing: they get decay2.f at the last point in time. sol\[decay2.f\]\[end\] is the modelingtoolkit preferred way, while sol.u\[end\]\[2\] is using normal array index…

---

## [Julia's Broadcast vs Jax's vmap](https://discourse.julialang.org/t/julias-broadcast-vs-jaxs-vmap/38990)

<div class="topic-metadata">

**Author:** [@jessebett](https://discourse.julialang.org/u/jessebett)\
**Replies:** 42\
**Last updated:** [August 6, 2024, 8:17pm UTC](https://discourse.julialang.org/t/julias-broadcast-vs-jaxs-vmap/38990 "2024-08-06T20:17:15Z")

</div>

My (high-level) understanding of jax.vmap is that it automatically vectorizes vectorizes a function along a specified axis of its input by introducing an “abstract” axis and compiling the code as though the inputs were s…

---

## [Speed up Optim.Optimize calls in a for-loop](https://discourse.julialang.org/t/speed-up-optim-optimize-calls-in-a-for-loop/117895)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 8:04pm UTC](https://discourse.julialang.org/t/speed-up-optim-optimize-calls-in-a-for-loop/117895 "2024-08-06T20:04:48Z")

</div>

Hi, in my code, I have a for-loop carrying out an ‘Optim.Optimize’ on each iteration. I don’t care about the order and know that individual optimizations will not bite each-other. What are some general methods to speed u…

---

## [Different results with different macros for profiling](https://discourse.julialang.org/t/different-results-with-different-macros-for-profiling/117592)

<div class="topic-metadata">

**Author:** [@HAP40HTT](https://discourse.julialang.org/u/HAP40HTT)\
**Replies:** 3\
**Last updated:** [August 6, 2024, 7:53pm UTC](https://discourse.julialang.org/t/different-results-with-different-macros-for-profiling/117592 "2024-08-06T19:53:09Z")

</div>

Hi everyone, I’m relatively new to kernel programming with CUDA.jl and am currently implementing a kernel to compute attention using a sliding-window attention mechanism. While profiling the code, I observed that the r…

---

## [@nloops with lower triangular indices](https://discourse.julialang.org/t/nloops-with-lower-triangular-indices/117903)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 4\
**Last updated:** [August 6, 2024, 6:54pm UTC](https://discourse.julialang.org/t/nloops-with-lower-triangular-indices/117903 "2024-08-06T18:54:16Z")

</div>

I am trying to create N nested loops that create indices, up to and including the previous index. I am clearly bad at Symbols and macros and struggling to make up the index expression that @nloops. My attempt here clearl…

---

## [Multithreaded broadcast on a grouped DimensionalData array](https://discourse.julialang.org/t/multithreaded-broadcast-on-a-grouped-dimensionaldata-array/117607)

<div class="topic-metadata">

**Author:** [@aasdelat](https://discourse.julialang.org/u/aasdelat)\
**Replies:** 33\
**Last updated:** [August 6, 2024, 4:04pm UTC](https://discourse.julialang.org/t/multithreaded-broadcast-on-a-grouped-dimensionaldata-array/117607 "2024-08-06T16:04:30Z")

</div>

Hello: I am using the Rasters.jl package to read and work with data on a spatial and a time dimension (two dimensions). So it is a Raster with two dimensions. I have gropued the raster by means of the groupby() functio…

---

## [JulianCon 2024 Dagger Workshop Information](https://discourse.julialang.org/t/juliancon-2024-dagger-workshop-information/116488)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 5\
**Last updated:** [August 6, 2024, 4:03pm UTC](https://discourse.julialang.org/t/juliancon-2024-dagger-workshop-information/116488 "2024-08-06T16:03:12Z")

</div>

Hey all! I wanted to send out a bit of important information relating to the Dagger Workshop this year, to make sure anyone who plans to attend has a maximally enjoyable session :smile: Primarily, please have an up-to-…

---

## [Genetic Epidemiology tools](https://discourse.julialang.org/t/genetic-epidemiology-tools/117764)

<div class="topic-metadata">

**Author:** [@jromanowska](https://discourse.julialang.org/u/jromanowska)\
**Replies:** 7\
**Last updated:** [August 6, 2024, 3:59pm UTC](https://discourse.julialang.org/t/genetic-epidemiology-tools/117764 "2024-08-06T15:59:24Z")

</div>

Hi, I am working with genotyping data (PLINK format) and DNA methylation data (large matrices of numbers in range 0-1). Are there any recommended packages, workflows, or tutorials for working with these data in Julia? …

---

## [Read and use .gpkg file](https://discourse.julialang.org/t/read-and-use-gpkg-file/117847)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 1:07pm UTC](https://discourse.julialang.org/t/read-and-use-gpkg-file/117847 "2024-08-06T13:07:30Z")

</div>

Hi, Here’s my latest challenge: I’m looking to get the 5km tiles out of this file: os\_bng\_grids.7z. I extracted the content, a 200MB gpgk file of the same name as the 7z file, and can load this effortlessly using GeoI…

---

## [In Operator not working as expected for struct](https://discourse.julialang.org/t/in-operator-not-working-as-expected-for-struct/117874)

<div class="topic-metadata">

**Author:** [@sven](https://discourse.julialang.org/u/sven)\
**Replies:** 5\
**Last updated:** [August 6, 2024, 12:26pm UTC](https://discourse.julialang.org/t/in-operator-not-working-as-expected-for-struct/117874 "2024-08-06T12:26:03Z")

</div>

Hello. I have a struct “parts” and a different struct (“collection”) which contains a Set of parts. I want to check if a part is contained in the Set of parts. I tried to overload the isequal function. Because in the D…

---

## [Vscode + Julia, slow](https://discourse.julialang.org/t/vscode-julia-slow/117867)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 12:03pm UTC](https://discourse.julialang.org/t/vscode-julia-slow/117867 "2024-08-06T12:03:36Z")

</div>

Hi, anyone using vscode 1.92.0 + Julia 1.10.4? Recently, I found that code suggestions are very slow (3 sec lagging), and execution of code line just finished written has to wait seconds to act. My extensions installed a…

---

## [Drawing stripped dodged bar charts in Makie](https://discourse.julialang.org/t/drawing-stripped-dodged-bar-charts-in-makie/114208)

<div class="topic-metadata">

**Author:** [@harrysw](https://discourse.julialang.org/u/harrysw)\
**Replies:** 4\
**Last updated:** [August 6, 2024, 11:40am UTC](https://discourse.julialang.org/t/drawing-stripped-dodged-bar-charts-in-makie/114208 "2024-08-06T11:40:48Z")

</div>

I tried to create a dodged stripped barplot where bars from each plot have different strip directions. After consulting the documentation about dodged bars and stripped bars, I came up with the following short example: …

---

## [TUM MSc Mathematics in Sci. and Eng. student looking for a Working Student position in Germany](https://discourse.julialang.org/t/tum-msc-mathematics-in-sci-and-eng-student-looking-for-a-working-student-position-in-germany/117882)

<div class="topic-metadata">

**Author:** [@Maxesit](https://discourse.julialang.org/u/Maxesit)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 10:57am UTC](https://discourse.julialang.org/t/tum-msc-mathematics-in-sci-and-eng-student-looking-for-a-working-student-position-in-germany/117882 "2024-08-06T10:57:33Z")

</div>

Greetings, I am a MSc Mathematics in Science and Engineering student at the Technical University of Munich. I am absolutely in love with mechanics, finite element method, and optimal control, especially when related to …

---

## [Foldable section with Documenter?](https://discourse.julialang.org/t/foldable-section-with-documenter/117879)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 10:52am UTC](https://discourse.julialang.org/t/foldable-section-with-documenter/117879 "2024-08-06T10:52:53Z")

</div>

I would like to have foldable sections in my documentation. If I use a markdown file on GitHub it works: quickstart.md But after this file is processed with Documenter it does not work any more: Quickstart · KiteModel…

---

## [The graphs ecosystem](https://discourse.julialang.org/t/the-graphs-ecosystem/99463)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 35\
**Last updated:** [August 6, 2024, 10:01am UTC](https://discourse.julialang.org/t/the-graphs-ecosystem/99463 "2024-08-06T10:01:22Z")

</div>

Hey everyone, The very fruitful discussion on fixing package fragmentation started from a remark I made on Slack about graphs, which is why I’m asking the community for ideas and support. In my opinion, the most import…

---

## [Memory allocation during assignment and modification of Float64 variables](https://discourse.julialang.org/t/memory-allocation-during-assignment-and-modification-of-float64-variables/117856)

<div class="topic-metadata">

**Author:** [@Adam\_Mendl](https://discourse.julialang.org/u/Adam_Mendl)\
**Replies:** 3\
**Last updated:** [August 6, 2024, 9:47am UTC](https://discourse.julialang.org/t/memory-allocation-during-assignment-and-modification-of-float64-variables/117856 "2024-08-06T09:47:04Z")

</div>

Hello, I have come across really puzzling (at least for me) output of julia --track-allocation=user. After playing with my code and outputs of benchmarking tools, I have ended up with the following snippet of \*.mem file,…

---

## [MTK -- how to set initial unknowns introduced by MTK?](https://discourse.julialang.org/t/mtk-how-to-set-initial-unknowns-introduced-by-mtk/117832)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 9:36am UTC](https://discourse.julialang.org/t/mtk-how-to-set-initial-unknowns-introduced-by-mtk/117832 "2024-08-06T09:36:17Z")

</div>

I’m converting a model from Modelica to ModelingToolkit in Julia. Modelica is somewhat more flexible wrt. specifying initial values for unknowns, so I have to change which initial unknowns I specify. Here is the model pr…

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

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