# Latest

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

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

**Page:** 273

---

## [LLM "Compiler"](https://discourse.julialang.org/t/llm-compiler/122850)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 3:05pm UTC](https://discourse.julialang.org/t/llm-compiler/122850 "2024-11-20T15:05:15Z")

</div>

I thought this was a fun experiment! While it’s already quite absurd, I feel like the logical extreme here is using the Julia compiler to provide Julia source code → LLVM IR examples and then replacing the entire comp…

---

## [Cannot change the init\_value of look\_at kwarg from Makie.Camera3D](https://discourse.julialang.org/t/cannot-change-the-init-value-of-look-at-kwarg-from-makie-camera3d/118250)

<div class="topic-metadata">

**Author:** [@xczphysics](https://discourse.julialang.org/u/xczphysics)\
**Replies:** 5\
**Last updated:** [November 20, 2024, 2:21pm UTC](https://discourse.julialang.org/t/cannot-change-the-init-value-of-look-at-kwarg-from-makie-camera3d/118250 "2024-11-20T14:21:18Z")

</div>

This is the code modified (only 1 line) from Cameras | Makie HAVE tried some other walkarounds, none works, either… using GeometryBasics, LinearAlgebra function frustum\_snapshot(cam) r = Rect3f(Point3f(-1, -1, -1)…

---

## [Private states in Julia modules](https://discourse.julialang.org/t/private-states-in-julia-modules/1312)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 24\
**Last updated:** [November 20, 2024, 2:03pm UTC](https://discourse.julialang.org/t/private-states-in-julia-modules/1312 "2024-11-20T14:03:57Z")

</div>

Hi, I’m new to Julia, but with long strong background in object-oriented design. What I haven’t yet got my mind around is how to design a type with private state. An example might be an object containing a Dirty flag, i…

---

## [How can I convert a CompoundPeriod type object to Period type in Julia?](https://discourse.julialang.org/t/how-can-i-convert-a-compoundperiod-type-object-to-period-type-in-julia/60930)

<div class="topic-metadata">

**Author:** [@shubh\_b](https://discourse.julialang.org/u/shubh_b)\
**Replies:** 19\
**Last updated:** [November 20, 2024, 1:08pm UTC](https://discourse.julialang.org/t/how-can-i-convert-a-compoundperiod-type-object-to-period-type-in-julia/60930 "2024-11-20T13:08:45Z")

</div>

Using Dates module in Julia I am able to transform a Period type object (Hour, Minute, Second, Day etc.) to another Period type as below: using Dates julia\> convert(Day, Hour(96)) 4 days julia\> convert(Second, Hour(20…

---

## [Getting the symbolic solution of system of equations using ModelingToolKit](https://discourse.julialang.org/t/getting-the-symbolic-solution-of-system-of-equations-using-modelingtoolkit/122786)

<div class="topic-metadata">

**Author:** [@Ricardo\_Borges](https://discourse.julialang.org/u/Ricardo_Borges)\
**Replies:** 6\
**Last updated:** [November 20, 2024, 12:06pm UTC](https://discourse.julialang.org/t/getting-the-symbolic-solution-of-system-of-equations-using-modelingtoolkit/122786 "2024-11-20T12:06:03Z")

</div>

Hi, I have the following circuit, which is used to estimate the isolation resistance of high-voltage battery packs to the chassis / low-voltage reference. The switch SW is turned on and off, so there are 2 equations, to…

---

## [Tutorial on the portfolio liquidation problem with PDE deep learning - NeuralPDEs and MTK](https://discourse.julialang.org/t/tutorial-on-the-portfolio-liquidation-problem-with-pde-deep-learning-neuralpdes-and-mtk/122583)

<div class="topic-metadata">

**Author:** [@finmod](https://discourse.julialang.org/u/finmod)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 11:07am UTC](https://discourse.julialang.org/t/tutorial-on-the-portfolio-liquidation-problem-with-pde-deep-learning-neuralpdes-and-mtk/122583 "2024-11-20T11:07:27Z")

</div>

I seek to bring to NeuralPDEs.jl and MTK as a tutorial combining the PDE system and the integro-differential demos the portfolio liquidation problem of the Mean Field Control literature. Here we consider the model propo…

---

## ["Keeping" precompilation of user defined code](https://discourse.julialang.org/t/keeping-precompilation-of-user-defined-code/122821)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 6\
**Last updated:** [November 20, 2024, 11:05am UTC](https://discourse.julialang.org/t/keeping-precompilation-of-user-defined-code/122821 "2024-11-20T11:05:10Z")

</div>

I have a tool/framework package that normally operates on “no-code” configuration files. Since users might need functionality that is not part of the core package at that time, the possibility exists to “load addons” dur…

---

## [Universal Differential Equations with Ensemble Problem](https://discourse.julialang.org/t/universal-differential-equations-with-ensemble-problem/121663)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 6\
**Last updated:** [November 20, 2024, 11:03am UTC](https://discourse.julialang.org/t/universal-differential-equations-with-ensemble-problem/121663 "2024-11-20T11:03:43Z")

</div>

I am facing issues trying to develop UDE model using the Ensemble interface Kindly help me out. Here is the sample code and error I get using CSV, DataFrames, XLSX using Optimization, OptimizationPolyalgorithms,Optimiz…

---

## [Quiver plots using Plots.jl](https://discourse.julialang.org/t/quiver-plots-using-plots-jl/122841)

<div class="topic-metadata">

**Author:** [@tduretz](https://discourse.julialang.org/u/tduretz)\
**Replies:** 0\
**Last updated:** [November 20, 2024, 10:17am UTC](https://discourse.julialang.org/t/quiver-plots-using-plots-jl/122841 "2024-11-20T10:17:48Z")

</div>

Dear all, Would anyone have an example of a quiver plot where the size of the arrowhead and length of the bar can be controlled? There are old threads about this issue and I did not want resurface them as this issue ma…

---

## [\[ANN\] NetworkDynamics.jl v0.9](https://discourse.julialang.org/t/ann-networkdynamics-jl-v0-9/122839)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 0\
**Last updated:** [November 20, 2024, 10:04am UTC](https://discourse.julialang.org/t/ann-networkdynamics-jl-v0-9/122839 "2024-11-20T10:04:54Z")

</div>

I am happy to announce a major re-release of NetworkDynamics.jl! NetworkDynamics is a package for simulating dynamical processes on networks, such as diffusion processes or oscillator networks. It allows you to build th…

---

## [Literate.jl: treat comments as comments](https://discourse.julialang.org/t/literate-jl-treat-comments-as-comments/122832)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 8:11am UTC](https://discourse.julialang.org/t/literate-jl-treat-comments-as-comments/122832 "2024-11-20T08:11:49Z")

</div>

In Literate, if I have code like function foo(vec) # print the elements for x in vec print(x) end end Literate.markdown(; flavor=Literate.DocumenterFlavor()) will treat the comment as some separator…

---

## [Reinitializing the InitializationProb of an ODEProblem](https://discourse.julialang.org/t/reinitializing-the-initializationprob-of-an-odeproblem/122778)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 6\
**Last updated:** [November 20, 2024, 7:27am UTC](https://discourse.julialang.org/t/reinitializing-the-initializationprob-of-an-odeproblem/122778 "2024-11-20T07:27:57Z")

</div>

I am trying to re-initialize an ODEProblem with a new x-position on the last point pos\[1, end\]. A bit like in the example here: Initialization of ODESystems · ModelingToolkit.jl dt = 0.05 tol = 1e-6 tspan = …

---

## [Adding slider that will show a vertical line across my plot?](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605)

<div class="topic-metadata">

**Author:** [@GeodeticR](https://discourse.julialang.org/u/GeodeticR)\
**Replies:** 2\
**Last updated:** [November 20, 2024, 4:39am UTC](https://discourse.julialang.org/t/adding-slider-that-will-show-a-vertical-line-across-my-plot/122605 "2024-11-20T04:39:11Z")

</div>

Hi all, I have a stacked plot with shared x- and y- axes, and the main goal of this is to quickly see where general trends compare over each plot – and I think having a line over each plot that I can scan over would mak…

---

## [Kernel methods inside of Flux](https://discourse.julialang.org/t/kernel-methods-inside-of-flux/122820)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 4:01am UTC](https://discourse.julialang.org/t/kernel-methods-inside-of-flux/122820 "2024-11-20T04:01:51Z")

</div>

I’m experimenting with setting up a classical RBF kernel method wtihin Flux, i.e., I want to train the model: \\sum\_{i=1}^n a\_i k(x, X\_i), where, for simplicity, take the kernel k to be a Gaussian. n is fixed, and the…

---

## [Allocations when using getfield with a tuple/vector of symbols](https://discourse.julialang.org/t/allocations-when-using-getfield-with-a-tuple-vector-of-symbols/122756)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 12\
**Last updated:** [November 20, 2024, 2:45am UTC](https://discourse.julialang.org/t/allocations-when-using-getfield-with-a-tuple-vector-of-symbols/122756 "2024-11-20T02:45:24Z")

</div>

MWE: using Parameters, BenchmarkTools @with\_kw struct Test A :: String = "A" B :: Int64 = 0 end test = Test() tup = (:A, :B) @btime getfield($test, :A) @btime getfield($test, $tup\[1\]) Is there a way to loop…

---

## [Find nearest neighbours among boundary sets](https://discourse.julialang.org/t/find-nearest-neighbours-among-boundary-sets/122342)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 33\
**Last updated:** [November 19, 2024, 7:43pm UTC](https://discourse.julialang.org/t/find-nearest-neighbours-among-boundary-sets/122342 "2024-11-19T19:43:51Z")

</div>

I have a set of boundaries defining UK electoral constituencies. I can pick one and look for its nearest neighbours like this: con\_bounds = GeoIO.load("Westminster\_Parliamentary\_Constituencies\_July\_2024\_Boundaries\_UK\_BF…

---

## [Use PrettyTables.pretty\_table for StructArray display](https://discourse.julialang.org/t/use-prettytables-pretty-table-for-structarray-display/122797)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [November 19, 2024, 7:06pm UTC](https://discourse.julialang.org/t/use-prettytables-pretty-table-for-structarray-display/122797 "2024-11-19T19:06:26Z")

</div>

In my VSCode REPL I want the normal display of StructArray instances to be PrettyTables.pretty\_table. What should I do?

---

## [Display of dictionary contents to file](https://discourse.julialang.org/t/display-of-dictionary-contents-to-file/122785)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 6:24pm UTC](https://discourse.julialang.org/t/display-of-dictionary-contents-to-file/122785 "2024-11-19T18:24:36Z")

</div>

Hi, I have a general question regarding dictionaries display. I have a dictionary that has several fields, some of which are instances of types I’ve created that conatin really large arrays of numbers. When I print its …

---

## [How do we compute the gradient and Laplacian of a neural network using GPU?](https://discourse.julialang.org/t/how-do-we-compute-the-gradient-and-laplacian-of-a-neural-network-using-gpu/122728)

<div class="topic-metadata">

**Author:** [@aligurbu](https://discourse.julialang.org/u/aligurbu)\
**Replies:** 9\
**Last updated:** [November 19, 2024, 6:00pm UTC](https://discourse.julialang.org/t/how-do-we-compute-the-gradient-and-laplacian-of-a-neural-network-using-gpu/122728 "2024-11-19T18:00:10Z")

</div>

Hello everyone, I managed to compute the gradient and Laplacian of a neural network in CPU and tried to calculate these quantities in GPU but could not figure out how to do it. The example of the code that I am working…

---

## [Read a .xlsx file](https://discourse.julialang.org/t/read-a-xlsx-file/122770)

<div class="topic-metadata">

**Author:** [@Dionysus](https://discourse.julialang.org/u/Dionysus)\
**Replies:** 15\
**Last updated:** [November 19, 2024, 4:54pm UTC](https://discourse.julialang.org/t/read-a-xlsx-file/122770 "2024-11-19T16:54:51Z")

</div>

Hello, I am encountering difficulties while trying to read a .xlsx file using Julia. Why is my code unable to find the sheet?

---

## [How to find out which files are loaded by the Julia startup process?](https://discourse.julialang.org/t/how-to-find-out-which-files-are-loaded-by-the-julia-startup-process/122811)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 4:18pm UTC](https://discourse.julialang.org/t/how-to-find-out-which-files-are-loaded-by-the-julia-startup-process/122811 "2024-11-19T16:18:26Z")

</div>

I thought this info was in the documentation, but now I don’t seem to be able to find it. Is there a way to reverse-engineer which files have been loaded by Julia at startup? Normally, a user would expect the startup.j…

---

## [Profiling BLAS-heavy code on Mac OS X: workaround for libunwind bug?](https://discourse.julialang.org/t/profiling-blas-heavy-code-on-mac-os-x-workaround-for-libunwind-bug/122813)

<div class="topic-metadata">

**Author:** [@cdwhite1](https://discourse.julialang.org/u/cdwhite1)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 4:04pm UTC](https://discourse.julialang.org/t/profiling-blas-heavy-code-on-mac-os-x-workaround-for-libunwind-bug/122813 "2024-11-19T16:04:09Z")

</div>

I’m on Mac OS X Sonoma (14.7), julia 1.10.5, trying to profile some linear-algebra-heavy code. I’m running into behavior very similar to that described in a previous thread (flamegraph-profileview-not-showing-matrix-oper…

---

## [Support for signaling NaNs?](https://discourse.julialang.org/t/support-for-signaling-nans/75571)

<div class="topic-metadata">

**Author:** [@stephancb](https://discourse.julialang.org/u/stephancb)\
**Replies:** 1\
**Last updated:** [November 19, 2024, 3:47pm UTC](https://discourse.julialang.org/t/support-for-signaling-nans/75571 "2024-11-19T15:47:08Z")

</div>

In Julia generally missing is favored over NaN, among other because NaN work only for floating point types, and because the origin of NaNs can be hard to trace once they have infected the data. However, IEEE745 has als…

---

## [Integrating parallel vs single-threaded tests into Github CI](https://discourse.julialang.org/t/integrating-parallel-vs-single-threaded-tests-into-github-ci/122666)

<div class="topic-metadata">

**Author:** [@s\_amap](https://discourse.julialang.org/u/s_amap)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 2:37pm UTC](https://discourse.julialang.org/t/integrating-parallel-vs-single-threaded-tests-into-github-ci/122666 "2024-11-19T14:37:10Z")

</div>

Hi. I’m not overly familiar with Github/CI and package management, and I’m working on a package that is performance-sensitive and likely to change a lot over time. Some changes are likely to affect performance, or multi…

---

## [Julia Logging frameworks - Several options but no consensus?](https://discourse.julialang.org/t/julia-logging-frameworks-several-options-but-no-consensus/122672)

<div class="topic-metadata">

**Author:** [@world-peace](https://discourse.julialang.org/u/world-peace)\
**Replies:** 6\
**Last updated:** [November 19, 2024, 2:08pm UTC](https://discourse.julialang.org/t/julia-logging-frameworks-several-options-but-no-consensus/122672 "2024-11-19T14:08:49Z")

</div>

There has been a dedicated page for Julia logging since 2021. https://julialogging.github.io/ I have been trying to figure out if there now an established consensus on which logging framework should be used with Julia…

---

## [Project.toml \[sources\] section not working?](https://discourse.julialang.org/t/project-toml-sources-section-not-working/122795)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 2\
**Last updated:** [November 19, 2024, 2:04pm UTC](https://discourse.julialang.org/t/project-toml-sources-section-not-working/122795 "2024-11-19T14:04:36Z")

</div>

Now that sources are enabled in Project.toml files, I expected to be able to define my package dependency source once and have that be know to all users of my package, but that does not seem to be working. I think Julia …

---

## [How to read a line character by character?](https://discourse.julialang.org/t/how-to-read-a-line-character-by-character/122734)

<div class="topic-metadata">

**Author:** [@hack3rcon](https://discourse.julialang.org/u/hack3rcon)\
**Replies:** 15\
**Last updated:** [November 19, 2024, 11:53am UTC](https://discourse.julialang.org/t/how-to-read-a-line-character-by-character/122734 "2024-11-19T11:53:02Z")

</div>

Hello, I have a file as follows: 1 2 3 4 5 6 7 8 9 10 I want to calculate the sum of the above numbers. With a command like below I read a whole line and not individual numbers: inn = open("input.txt", "r") inp = rea…

---

## [How to execute a script in the current project?](https://discourse.julialang.org/t/how-to-execute-a-script-in-the-current-project/122669)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [November 17, 2024, 4:18pm UTC](https://discourse.julialang.org/t/how-to-execute-a-script-in-the-current-project/122669 "2024-11-17T16:18:15Z")

</div>

I have many packages that include examples on how to use them in an example folder. In addition I have a terminal menu to execute the examples. If you want to try it out: git clone https://github.com/ufechner7/KiteMode…

---

## [Does CSV.read allow another process to keep writing to file?](https://discourse.julialang.org/t/does-csv-read-allow-another-process-to-keep-writing-to-file/122656)

<div class="topic-metadata">

**Author:** [@japhir](https://discourse.julialang.org/u/japhir)\
**Replies:** 6\
**Last updated:** [November 19, 2024, 10:00am UTC](https://discourse.julialang.org/t/does-csv-read-allow-another-process-to-keep-writing-to-file/122656 "2024-11-19T10:00:19Z")

</div>

I’m running a pretty expensive job on a cluster. This generates plaintext output files by appending new lines with data regularly (roughly once every second or so). I’ve written some julia code to perform quick visualiz…

---

## [Automatic saving of Pluto notebooks in a Mac](https://discourse.julialang.org/t/automatic-saving-of-pluto-notebooks-in-a-mac/122776)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 3\
**Last updated:** [November 19, 2024, 9:33am UTC](https://discourse.julialang.org/t/automatic-saving-of-pluto-notebooks-in-a-mac/122776 "2024-11-19T09:33:23Z")

</div>

I have a problem with students who drag and drop a Pluto notebook into the “Open a notebook” window, running the notebook but not giving a particular path and name to save it. Pluto saves the notebook automatically if o…

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

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