# Latest

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

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

**Page:** 357

---

## [Figure title for a faceted plot in AlgebraOfGraphics](https://discourse.julialang.org/t/figure-title-for-a-faceted-plot-in-algebraofgraphics/63329)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 10\
**Last updated:** [July 23, 2024, 5:05pm UTC](https://discourse.julialang.org/t/figure-title-for-a-faceted-plot-in-algebraofgraphics/63329 "2024-07-23T17:05:26Z")

</div>

I can’t seem to get an overall figure title for a faceted plot in AlgebraOfGraphics: using CairoMakie using AlgebraOfGraphics using DataFrames df = DataFrame( x = randn(100), y = randn(100), g = rand(\["a", …

---

## [How to highlight REPL examples in (GitHub) README.md](https://discourse.julialang.org/t/how-to-highlight-repl-examples-in-github-readme-md/112943)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 5:01pm UTC](https://discourse.julialang.org/t/how-to-highlight-repl-examples-in-github-readme-md/112943 "2024-07-23T17:01:00Z")

</div>

I’m trying to highlight REPL examples in a standalone README.md file. How do I hint to GitHub that this should be stylized as a Julia REPL session? I know that standard Julia can be highlighted using the \`\`\`julia\`\`\` tag.…

---

## [Serious issue: Julia language Keyboard Lag Typing Very Slow](https://discourse.julialang.org/t/serious-issue-julia-language-keyboard-lag-typing-very-slow/32081)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 55\
**Last updated:** [July 23, 2024, 4:01pm UTC](https://discourse.julialang.org/t/serious-issue-julia-language-keyboard-lag-typing-very-slow/32081 "2024-07-23T16:01:26Z")

</div>

PROBLEM I am writing a long Julia code: https://github.com/joseph-pollacco/SoilWaterToolbox After I run Julia code either directly from Visual Studio Code or from the Julia REPL the typing becomes incredibly slow. The…

---

## [Case study: Real time hardware control for adaptive optics with Julia](https://discourse.julialang.org/t/case-study-real-time-hardware-control-for-adaptive-optics-with-julia/117155)

<div class="topic-metadata">

**Author:** [@sefffal](https://discourse.julialang.org/u/sefffal)\
**Replies:** 9\
**Last updated:** [July 23, 2024, 3:29pm UTC](https://discourse.julialang.org/t/case-study-real-time-hardware-control-for-adaptive-optics-with-julia/117155 "2024-07-23T15:29:10Z")

</div>

\[not sure this is the best category, mods feel free to move\] Hi all, I wanted to share our recent conference proceeding on using Julia in a real time application: \[2407.07207\] Real-time adaptive optics control with a h…

---

## [What does the new "public" keyword actually do?](https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 12\
**Last updated:** [July 23, 2024, 3:18pm UTC](https://discourse.julialang.org/t/what-does-the-new-public-keyword-actually-do/108975 "2024-07-23T15:18:25Z")

</div>

Continuing from Does the new public keyword actually do anything? From the current 1.11 documentation and release notes, I don’t see that public has any effect on using/import. It seems that maybe Documenter would be…

---

## [Symbolics - build\_function and broadcasting](https://discourse.julialang.org/t/symbolics-build-function-and-broadcasting/117240)

<div class="topic-metadata">

**Author:** [@AntoineK](https://discourse.julialang.org/u/AntoineK)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 1:51pm UTC](https://discourse.julialang.org/t/symbolics-build-function-and-broadcasting/117240 "2024-07-23T13:51:01Z")

</div>

Hello, Does Symbolics.build\_function supports C-code generation of equations implying broadcasting (broadcast operation) ? I could not find this answer in the documentation. Thank you

---

## [What is the recommended way to filter rows of a Dataframe?](https://discourse.julialang.org/t/what-is-the-recommended-way-to-filter-rows-of-a-dataframe/117367)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 6\
**Last updated:** [July 23, 2024, 1:15pm UTC](https://discourse.julialang.org/t/what-is-the-recommended-way-to-filter-rows-of-a-dataframe/117367 "2024-07-23T13:15:48Z")

</div>

Hello, I am asking for recommendations/tips on how to filter rows of a dataframe. I was using filter for sometime. But it seems inefficient/slow compared to subsetting dataframe using other methods. Here are benchmarks …

---

## [Saving model with best loss in NeuralPDE](https://discourse.julialang.org/t/saving-model-with-best-loss-in-neuralpde/117087)

<div class="topic-metadata">

**Author:** [@gradureau](https://discourse.julialang.org/u/gradureau)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 1:08pm UTC](https://discourse.julialang.org/t/saving-model-with-best-loss-in-neuralpde/117087 "2024-07-23T13:08:47Z")

</div>

Hey everyone, I am trying to use NeuralPDE to solve equations and I’ve been trying to use the QuasiRandomTraining method, with Adam optimizer. Now the learning curve is quite chaotic, so I would wish to save the best mo…

---

## [(Course) Parallel Computing in Julia](https://discourse.julialang.org/t/course-parallel-computing-in-julia/117383)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 0\
**Last updated:** [July 23, 2024, 12:38pm UTC](https://discourse.julialang.org/t/course-parallel-computing-in-julia/117383 "2024-07-23T12:38:19Z")

</div>

Hello everyone After years of topics asking for help, finally I am posting something different. I have an Udemy course in Parallel Computing, and I made a real effort to showcase something different from computing Pi o…

---

## [Strange difference between running readline in REPL or VSCode](https://discourse.julialang.org/t/strange-difference-between-running-readline-in-repl-or-vscode/117381)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 11:27am UTC](https://discourse.julialang.org/t/strange-difference-between-running-readline-in-repl-or-vscode/117381 "2024-07-23T11:27:42Z")

</div>

I’m encountering a strange behavior when running Julia through VSCode, and I’m hoping someone can help me understand and resolve it. Consider the following function: function test() @show Base.stdin x = readlin…

---

## [Inject julia code as string inside julia function](https://discourse.julialang.org/t/inject-julia-code-as-string-inside-julia-function/117373)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 8:12am UTC](https://discourse.julialang.org/t/inject-julia-code-as-string-inside-julia-function/117373 "2024-07-23T08:12:15Z")

</div>

Hi all, I’m receiving a pice of julia code as a string and I need to evaluate this code inside a function and access the local scope. Is it possible to access local scope with eval(Meta.parse(....)) or is there another …

---

## [Bode plotting a damped LC filter](https://discourse.julialang.org/t/bode-plotting-a-damped-lc-filter/117324)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 5\
**Last updated:** [July 23, 2024, 7:50am UTC](https://discourse.julialang.org/t/bode-plotting-a-damped-lc-filter/117324 "2024-07-23T07:50:56Z")

</div>

I want to make a bode plot of this LC filter: plotting something like the right graph: I know how to connect resistor, inductor and capacitor using ModelingToolkitStandardLibrary.jl , and how to plot bode plots us…

---

## [How to replace 'Nothing' data type in an array](https://discourse.julialang.org/t/how-to-replace-nothing-data-type-in-an-array/117366)

<div class="topic-metadata">

**Author:** [@shrdlu](https://discourse.julialang.org/u/shrdlu)\
**Replies:** 6\
**Last updated:** [July 23, 2024, 5:50am UTC](https://discourse.julialang.org/t/how-to-replace-nothing-data-type-in-an-array/117366 "2024-07-23T05:50:35Z")

</div>

Hi everyone, I’m currently trying to untangle a pretty messy multi-nested json file by flattening them out manually and curating them into a dataframe (mostly following the method described here: https://julia.school/ju…

---

## [Pkg.project() inside a unit test](https://discourse.julialang.org/t/pkg-project-inside-a-unit-test/87337)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 2:37am UTC](https://discourse.julialang.org/t/pkg-project-inside-a-unit-test/87337 "2024-07-23T02:37:50Z")

</div>

Is any way to get the current package name while running a unit test? The issue Pkg.project().name gives nothing I’m activating the tests with \]test The reason why I need it, I want to have a template unit test that mig…

---

## [How do I Implement the SGD optimiser in Julia code](https://discourse.julialang.org/t/how-do-i-implement-the-sgd-optimiser-in-julia-code/117356)

<div class="topic-metadata">

**Author:** [@Vishav\_Rattu](https://discourse.julialang.org/u/Vishav_Rattu)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 2:37am UTC](https://discourse.julialang.org/t/how-do-i-implement-the-sgd-optimiser-in-julia-code/117356 "2024-07-23T02:37:18Z")

</div>

\############################### # Task a using DifferentialEquations, ModelingToolkit, MethodOfLines, DomainSets using Plots using Random using Statistics using ComponentArrays, Lux, DiffEqFlux, OrdinaryDiffEq, Optimi…

---

## [Jacobian of a network in the loss function with Flux](https://discourse.julialang.org/t/jacobian-of-a-network-in-the-loss-function-with-flux/117077)

<div class="topic-metadata">

**Author:** [@Baptiste\_Fabre](https://discourse.julialang.org/u/Baptiste_Fabre)\
**Replies:** 6\
**Last updated:** [July 23, 2024, 1:14am UTC](https://discourse.julialang.org/t/jacobian-of-a-network-in-the-loss-function-with-flux/117077 "2024-07-23T01:14:59Z")

</div>

Dear all, for a sciml problem in quantum mechanics (strongly inspired by what I saw during the @ChrisRackauckas talk’s in Grenoble), I need to differentiate the loss function. Here is a minimal example of the kind of pr…

---

## [Exponential of simple block triangular matrix](https://discourse.julialang.org/t/exponential-of-simple-block-triangular-matrix/117365)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [July 23, 2024, 12:33am UTC](https://discourse.julialang.org/t/exponential-of-simple-block-triangular-matrix/117365 "2024-07-23T00:33:07Z")

</div>

I have a custom struct that represents a block-matrix of the form X = \[ A B 0 A \] Where A and B are arbitrary (probably non-pathological) square matrices. A and B are small in the context I’m currently looking…

---

## [Exporting 3D Makie Plots to .stl files?](https://discourse.julialang.org/t/exporting-3d-makie-plots-to-stl-files/99308)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 7\
**Last updated:** [July 22, 2024, 11:09pm UTC](https://discourse.julialang.org/t/exporting-3d-makie-plots-to-stl-files/99308 "2024-07-22T23:09:52Z")

</div>

I did a quick search of the Makie docs and here on discourse and I didn’t see any hits discussing this. Is it possible to export 3D plots to .stl files for 3D printing?

---

## [How can i recursively search within a directory to extract h5 file headers](https://discourse.julialang.org/t/how-can-i-recursively-search-within-a-directory-to-extract-h5-file-headers/117358)

<div class="topic-metadata">

**Author:** [@Silva](https://discourse.julialang.org/u/Silva)\
**Replies:** 3\
**Last updated:** [July 22, 2024, 9:35pm UTC](https://discourse.julialang.org/t/how-can-i-recursively-search-within-a-directory-to-extract-h5-file-headers/117358 "2024-07-22T21:35:36Z")

</div>

How can I get glob to search within a complex directory structure to extract headers recursively? So far, glob seems to work only in the main directory. using HDF5 using CSV using DataFrames using Glob # Define the di…

---

## [Exporting/printing an array of dictionaries to external text file](https://discourse.julialang.org/t/exporting-printing-an-array-of-dictionaries-to-external-text-file/117340)

<div class="topic-metadata">

**Author:** [@shrdlu](https://discourse.julialang.org/u/shrdlu)\
**Replies:** 4\
**Last updated:** [July 22, 2024, 9:04pm UTC](https://discourse.julialang.org/t/exporting-printing-an-array-of-dictionaries-to-external-text-file/117340 "2024-07-22T21:04:48Z")

</div>

Hi, I’m trying to export a Julia array (of dictionaries, among some oddities) to a text file to share with a colleague. The array in question looks something like this, but about 70k entries: Dict{String, Any}("tem" …

---

## [Save/load REPL state](https://discourse.julialang.org/t/save-load-repl-state/102433)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 9\
**Last updated:** [July 22, 2024, 7:51pm UTC](https://discourse.julialang.org/t/save-load-repl-state/102433 "2024-07-22T19:51:09Z")

</div>

Julia has a strong point in being JIT-compiled language that incremental compilation works (it has to). Still, to take full advantage of that, saving state is required. Imagine you have a codebase which takes 20 minutes…

---

## [Teaching mini-course "Introduction to compilers" with Julia, good or bad idea?](https://discourse.julialang.org/t/teaching-mini-course-introduction-to-compilers-with-julia-good-or-bad-idea/117004)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 10\
**Last updated:** [July 20, 2024, 9:51am UTC](https://discourse.julialang.org/t/teaching-mini-course-introduction-to-compilers-with-julia-good-or-bad-idea/117004 "2024-07-20T09:51:05Z")

</div>

Starting in September I will be teaching a mini curse “Introduction to compilers” in small polish university. I basically have free hand, taking that I teach second year computer students compiler basics. I’m thinking ab…

---

## [Reverse mode AD for SDEs](https://discourse.julialang.org/t/reverse-mode-ad-for-sdes/117353)

<div class="topic-metadata">

**Author:** [@agelgazzar](https://discourse.julialang.org/u/agelgazzar)\
**Replies:** 0\
**Last updated:** [July 22, 2024, 5:09pm UTC](https://discourse.julialang.org/t/reverse-mode-ad-for-sdes/117353 "2024-07-22T17:09:44Z")

</div>

Training Large (e.g, Neural) SDEs on GPUs fails. The only way to obtain adjoints is via TrackerAdjoint() and this only currently works on CPU. None of the continuous adjoints methods, e.g. InterpolatingAdjoint() or Back…

---

## [Strangely small output when returning tuple](https://discourse.julialang.org/t/strangely-small-output-when-returning-tuple/117250)

<div class="topic-metadata">

**Author:** [@Joetrahedron](https://discourse.julialang.org/u/Joetrahedron)\
**Replies:** 3\
**Last updated:** [July 22, 2024, 4:58pm UTC](https://discourse.julialang.org/t/strangely-small-output-when-returning-tuple/117250 "2024-07-22T16:58:35Z")

</div>

I’ve been using QuantumOptics.jl in Jupyter to run some physics simulations, and I’ve encountered an odd behaviour with one of my functions. My function is defined as follows function lprϕ(Δ, tf, ψ0, tspan1, Δ\_11) t…

---

## [Date to float](https://discourse.julialang.org/t/date-to-float/20094)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 8\
**Last updated:** [July 22, 2024, 4:23pm UTC](https://discourse.julialang.org/t/date-to-float/20094 "2024-07-22T16:23:34Z")

</div>

Is there an easy way to convert date/datetime to a float representing year? I.e. f(2000-01-01) = 2000, f(2015-07-01) ~ 2015.5 and so on. The most obvious method is 2000 + (x - DateTime(2000, 1, 1)) / (DateTime(2001, 1, 1…

---

## [Divising a DateTime by 1 or 10 yields different floating point precision](https://discourse.julialang.org/t/divising-a-datetime-by-1-or-10-yields-different-floating-point-precision/117347)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 3\
**Last updated:** [July 22, 2024, 2:59pm UTC](https://discourse.julialang.org/t/divising-a-datetime-by-1-or-10-yields-different-floating-point-precision/117347 "2024-07-22T14:59:19Z")

</div>

I have come to an inexplicable (at least for me at the moment) behavior in Julia julia\> using Dates julia\> Dates.value(Minute(60)) / 1 \* 38.849 2330.9399999999996 julia\> Dates.value(Dates.value(Minute(60)) \* 38.849 2330…

---

## [\[ANN\] YAArguParser and GivEmXL](https://discourse.julialang.org/t/ann-yaarguparser-and-givemxl/117343)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 0\
**Last updated:** [July 22, 2024, 2:01pm UTC](https://discourse.julialang.org/t/ann-yaarguparser-and-givemxl/117343 "2024-07-22T14:01:21Z")

</div>

Shortly introducing two newly registered packages: YAArguParser.jl and GivEmXL.jl: For details see the respective docs. YAArguParser.jl is yet another parsing command-line arguments to Julia programs, the other ones be…

---

## [ModelingToolKit: Cannot \`convert\` an object of type SymbolicUtils.BasicSymbolic{Float64}](https://discourse.julialang.org/t/modelingtoolkit-cannot-convert-an-object-of-type-symbolicutils-basicsymbolic-float64/117213)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 4\
**Last updated:** [July 22, 2024, 1:50pm UTC](https://discourse.julialang.org/t/modelingtoolkit-cannot-convert-an-object-of-type-symbolicutils-basicsymbolic-float64/117213 "2024-07-22T13:50:23Z")

</div>

using ModelingToolkit using ModelingToolkit: t\_nounits as t, D\_nounits as D using DifferentialEquations: solve f(t) = t @register\_symbolic f(t) @mtkmodel FOL begin @variables begin y(t) z(t) end…

---

## [Nice fonts with Plots, GR and LaTeXStrings](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 19\
**Last updated:** [July 22, 2024, 1:43pm UTC](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037 "2024-07-22T13:43:49Z")

</div>

This not a question, just something that might be helpful to others. With Plots 1.12 and GR0.57.4 (at least), and using these options below, one can get a plot with homogeneous fonts (“Computer Modern”) in every element. …

---

## [CSV.jl bug reading .gz file in Julia 1.11-rc](https://discourse.julialang.org/t/csv-jl-bug-reading-gz-file-in-julia-1-11-rc/117341)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 0\
**Last updated:** [July 22, 2024, 1:04pm UTC](https://discourse.julialang.org/t/csv-jl-bug-reading-gz-file-in-julia-1-11-rc/117341 "2024-07-22T13:04:21Z")

</div>

Hello, I tried version 1.11.0-rc and noted a file access error reading a gzipped file with CSV.File, which does not happen in 1.10.4. julia\> data = CSV.File(raw"C:\\Users\\oscar\\Documents\\Work\\Julia\\test3.dat.gz") ERROR:…

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

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