# Latest

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

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

**Page:** 490

---

## [How to properly implement logging in Julia package?](https://discourse.julialang.org/t/how-to-properly-implement-logging-in-julia-package/109863)

<div class="topic-metadata">

**Author:** [@p-gw](https://discourse.julialang.org/u/p-gw)\
**Replies:** 5\
**Last updated:** [February 8, 2024, 9:34am UTC](https://discourse.julialang.org/t/how-to-properly-implement-logging-in-julia-package/109863 "2024-02-08T09:34:49Z")

</div>

Hi everyone, I was wondering how to properly implement logging for a function in a julia package. My problem looks something like this: I have an algorithm with iter iterations and I want to provide the user with infor…

---

## [PSA: new version of codecov-action requires additional setup](https://discourse.julialang.org/t/psa-new-version-of-codecov-action-requires-additional-setup/109857)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 12\
**Last updated:** [February 8, 2024, 7:55am UTC](https://discourse.julialang.org/t/psa-new-version-of-codecov-action-requires-additional-setup/109857 "2024-02-08T07:55:06Z")

</div>

What’s going on Codecov is a very useful tool to assess code coverage, that is, how much of the package source code is hit by the test suite. In GitHub continuous integration workflows, this happens through the codecov-a…

---

## [Math not displaying properly in static HTML Pluto Notebook](https://discourse.julialang.org/t/math-not-displaying-properly-in-static-html-pluto-notebook/109790)

<div class="topic-metadata">

**Author:** [@rgouveiamendes](https://discourse.julialang.org/u/rgouveiamendes)\
**Replies:** 12\
**Last updated:** [February 8, 2024, 7:57am UTC](https://discourse.julialang.org/t/math-not-displaying-properly-in-static-html-pluto-notebook/109790 "2024-02-08T07:57:11Z")

</div>

When I export a Pluto Notebook to HTML the math is not rendered. I am wondering why. Anyone with the same problem? An example: https://rgouveiamendes.org/teaching/iscte-iul/econometrics-i/notebooks/capitulo01

---

## [Different behaviour of the identical code](https://discourse.julialang.org/t/different-behaviour-of-the-identical-code/109910)

<div class="topic-metadata">

**Author:** [@ttx002000](https://discourse.julialang.org/u/ttx002000)\
**Replies:** 1\
**Last updated:** [February 8, 2024, 7:52am UTC](https://discourse.julialang.org/t/different-behaviour-of-the-identical-code/109910 "2024-02-08T07:52:45Z")

</div>

Dear all, I am using VS code to compile my Julia code. I have the following code, which is “test.jl”. I also have another file that hosts my\_function, which is called “test\_test.jl”. Basically, my\_function takes into k a…

---

## [Physics Enhanced Deep Surrogate](https://discourse.julialang.org/t/physics-enhanced-deep-surrogate/109911)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 7:50am UTC](https://discourse.julialang.org/t/physics-enhanced-deep-surrogate/109911 "2024-02-08T07:50:55Z")

</div>

I recognise @ChrisRackauckas https://www.nature.com/articles/s42256-023-00761-y Seen in a tweet by HPCGuru

---

## [Makie - reliably updating plots from another thread](https://discourse.julialang.org/t/makie-reliably-updating-plots-from-another-thread/109905)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 2:53am UTC](https://discourse.julialang.org/t/makie-reliably-updating-plots-from-another-thread/109905 "2024-02-08T02:53:05Z")

</div>

Why does the following code not reliably update the plot and sometimes fail with a bounds access error? using GLMakie fig = Figure() # Heatmap cm = rand(500, 500) const obc = Observable(cm) ax = Axis(fig\[3, 1\]) heat…

---

## [@kwdef kwargs](https://discourse.julialang.org/t/kwdef-kwargs/109853)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [February 8, 2024, 12:45am UTC](https://discourse.julialang.org/t/kwdef-kwargs/109853 "2024-02-08T00:45:25Z")

</div>

Could there be a flag added to @kwdef (say @kwargs) that adds a kwargs... to the constructor inputs so that @kwdef @kwargs struct X a b end X(; a=1, b=2, c=3 ) Would work the same as X(; a=1, b=2 ) i.e. a…

---

## [Represent multidimensional array at higher dimension](https://discourse.julialang.org/t/represent-multidimensional-array-at-higher-dimension/109889)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 9\
**Last updated:** [February 7, 2024, 11:30pm UTC](https://discourse.julialang.org/t/represent-multidimensional-array-at-higher-dimension/109889 "2024-02-07T23:30:15Z")

</div>

suppose I have a 2x3 array called mat1. I would like to pretend that this 2x3 array is actually a 2x3x4 array called mat1\_3d\_representation, such that mat1\_3d\_representation\[i, j, k\] == mat1\[i, j\] for all valid scala…

---

## [Memory aliasing rules and reinterpret](https://discourse.julialang.org/t/memory-aliasing-rules-and-reinterpret/109875)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 8\
**Last updated:** [February 7, 2024, 9:22pm UTC](https://discourse.julialang.org/t/memory-aliasing-rules-and-reinterpret/109875 "2024-02-07T21:22:14Z")

</div>

I wanted to ask about the julia aliasing rules for memory accesses. Unfortunately, the docs are not super clear about that, e.g. Julia currently uses LLVM’s Type Based Alias Analysis. To find the comments that documen…

---

## [Left and right division for strings](https://discourse.julialang.org/t/left-and-right-division-for-strings/109839)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 25\
**Last updated:** [February 7, 2024, 8:32pm UTC](https://discourse.julialang.org/t/left-and-right-division-for-strings/109839 "2024-02-07T20:32:03Z")

</div>

For numbers and matrices, we have x \* y / y == x and x \\ (x \* y) == y. Since we have \* for strings, we could implement / and \\ for strings too: "abcd" / "cd" == "ab" "ab" \\ "abcd" == "cd" AFAICT, it would be algebraic…

---

## [Streamplots with continuous lines in Makie](https://discourse.julialang.org/t/streamplots-with-continuous-lines-in-makie/109832)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 2\
**Last updated:** [February 7, 2024, 7:57pm UTC](https://discourse.julialang.org/t/streamplots-with-continuous-lines-in-makie/109832 "2024-02-07T19:57:28Z")

</div>

Hey. I’m trying to draw some streamplots (following this guide) but the orbits look somewhat broken and randomly put together. I’d like to have some more control over where the orbits begin and for how long they go, but t…

---

## [A Julia port of \`Deep Learning With Python\`](https://discourse.julialang.org/t/a-julia-port-of-deep-learning-with-python/109884)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 4:22pm UTC](https://discourse.julialang.org/t/a-julia-port-of-deep-learning-with-python/109884 "2024-02-07T16:22:23Z")

</div>

Hey gang. Does anyone know of a Julia port of the Francoi Chollet’s materials? I’ve asked in Slack already so I wanted to check here.

---

## [How can we maintain easy generics in the face of demand for a “safe” language?](https://discourse.julialang.org/t/how-can-we-maintain-easy-generics-in-the-face-of-demand-for-a-safe-language/109734)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 25\
**Last updated:** [February 7, 2024, 6:01pm UTC](https://discourse.julialang.org/t/how-can-we-maintain-easy-generics-in-the-face-of-demand-for-a-safe-language/109734 "2024-02-07T18:01:05Z")

</div>

Julia is moving in the direction of having a static sub-language and even things like enforceable interface/etc. However, if we are not VERY careful, we can lose one big advantage that Julia has, easy generic. Duck typi…

---

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

<div class="topic-metadata">

**Author:** [@emily](https://discourse.julialang.org/u/emily)\
**Replies:** 3\
**Last updated:** [February 7, 2024, 5:14pm UTC](https://discourse.julialang.org/t/memory-usage/109873 "2024-02-07T17:14:05Z")

</div>

Hi! I am trying to understand when memory allocations are cleared. When I run a problem requiring large memory use, I have discovered that it is not freed until I use the garbage collector (GC.gc()), or shut down the RE…

---

## [Playing audio files from Julia](https://discourse.julialang.org/t/playing-audio-files-from-julia/109829)

<div class="topic-metadata">

**Author:** [@theogf](https://discourse.julialang.org/u/theogf)\
**Replies:** 13\
**Last updated:** [February 7, 2024, 5:08pm UTC](https://discourse.julialang.org/t/playing-audio-files-from-julia/109829 "2024-02-07T17:08:01Z")

</div>

What would be the recommended way to (just) play a MP3 file from Julia? Most related posts was Audio processing in Julia but I wonder if there is anything new, and also if you would know of some cross-platform binaries…

---

## [IOError: connect: no such file or directory (ENOENT) at VSCode startup](https://discourse.julialang.org/t/ioerror-connect-no-such-file-or-directory-enoent-at-vscode-startup/109288)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 4:29pm UTC](https://discourse.julialang.org/t/ioerror-connect-no-such-file-or-directory-enoent-at-vscode-startup/109288 "2024-02-07T16:29:24Z")

</div>

I use VSCode on Win10. Every time I start up VSCode from scratch, before I do anything, I get the following error. I’ve had it for a few days but I have no idea what I did to trigger it. How can I make it go away? \* H…

---

## [How not to commit type piracy when handling automatic conversion for field with Union type](https://discourse.julialang.org/t/how-not-to-commit-type-piracy-when-handling-automatic-conversion-for-field-with-union-type/109877)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 10\
**Last updated:** [February 7, 2024, 4:07pm UTC](https://discourse.julialang.org/t/how-not-to-commit-type-piracy-when-handling-automatic-conversion-for-field-with-union-type/109877 "2024-02-07T16:07:32Z")

</div>

I’d like to handle the conversion in structs just like when you have a concrete type for a field, but when a field as a Union type like below: struct A end struct B x::Union{A, Int} end I’d like this to work: B(t…

---

## [YAXArrays: do not save chunk that is all fill\_value](https://discourse.julialang.org/t/yaxarrays-do-not-save-chunk-that-is-all-fill-value/109880)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 3:36pm UTC](https://discourse.julialang.org/t/yaxarrays-do-not-save-chunk-that-is-all-fill-value/109880 "2024-02-07T15:36:06Z")

</div>

Zarr.jl won’t save chunks whose elements are all fill\_value. Is that possible with YAXArrays.jl as well when using the zarr backend? i ask here because i don’t see a way to specify a fill value in the YAXArray document…

---

## [Remove spacing between subplots in PlotlyJS](https://discourse.julialang.org/t/remove-spacing-between-subplots-in-plotlyjs/109878)

<div class="topic-metadata">

**Author:** [@jabru](https://discourse.julialang.org/u/jabru)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 2:45pm UTC](https://discourse.julialang.org/t/remove-spacing-between-subplots-in-plotlyjs/109878 "2024-02-07T14:45:56Z")

</div>

Hi there, So I am currently trying to use PlotlyJS for my plots. I am running the following code using PlotlyJS np = pyimport("numpy") function main() trace1 = scatter(; x = rand(100), y = rand(100), …

---

## [Error from example '33D Mixed-Agent Ecosystem with Pathfinding'](https://discourse.julialang.org/t/error-from-example-33d-mixed-agent-ecosystem-with-pathfinding/109868)

<div class="topic-metadata">

**Author:** [@nadeen1507](https://discourse.julialang.org/u/nadeen1507)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 1:13pm UTC](https://discourse.julialang.org/t/error-from-example-33d-mixed-agent-ecosystem-with-pathfinding/109868 "2024-02-07T13:13:27Z")

</div>

I have copied an example form the ‘Julia Library’ line by line and I am constantly receiving this error when running the last visualization step. Please tell me how to fix it. ERROR: MethodError: no method matching abmv…

---

## [Reinterpreting vectors into vector of SVectors?](https://discourse.julialang.org/t/reinterpreting-vectors-into-vector-of-svectors/109864)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [February 7, 2024, 1:04pm UTC](https://discourse.julialang.org/t/reinterpreting-vectors-into-vector-of-svectors/109864 "2024-02-07T13:04:59Z")

</div>

Hello! Suppose I have three vectors: N = 100 x = rand(N) y = rand(N) z = rand(N) Is there any way in which I can reinterpret this into a vector of svector without having to perform allocations? Kind regards

---

## [How to find the linearly independent columns (rows) of a matrix](https://discourse.julialang.org/t/how-to-find-the-linearly-independent-columns-rows-of-a-matrix/109772)

<div class="topic-metadata">

**Author:** [@qua4tre](https://discourse.julialang.org/u/qua4tre)\
**Replies:** 24\
**Last updated:** [February 7, 2024, 11:40am UTC](https://discourse.julialang.org/t/how-to-find-the-linearly-independent-columns-rows-of-a-matrix/109772 "2024-02-07T11:40:10Z")

</div>

Say I have a matrix A. How would I go about finding the linearly independent columns (or rows) of A? I.e., I’m looking for a set of steps I can use to get either the indices which correspond to the linearly independent…

---

## [HTTP.jl query fails based on context: IOError: stream is closed or unusable](https://discourse.julialang.org/t/http-jl-query-fails-based-on-context-ioerror-stream-is-closed-or-unusable/109808)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 11:38am UTC](https://discourse.julialang.org/t/http-jl-query-fails-based-on-context-ioerror-stream-is-closed-or-unusable/109808 "2024-02-07T11:38:27Z")

</div>

I’ve struggled to pin down an mwe for this. The problem is that an HTTP query to the ONS Open Geography sparql endpoint fails intermittently - about one time in two or three - so very often. I don’t think the query is a…

---

## [\[ANN\] pyjuliacall and pyjuliapkg packaged on conda-forge](https://discourse.julialang.org/t/ann-pyjuliacall-and-pyjuliapkg-packaged-on-conda-forge/109849)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 9:22am UTC](https://discourse.julialang.org/t/ann-pyjuliacall-and-pyjuliapkg-packaged-on-conda-forge/109849 "2024-02-07T09:22:19Z")

</div>

juliacall and juliapkg on conda-forge I am happy to announce that the Python packages juliacall and juliapkg by @cjdoris have been packaged for conda-forge as pyjuliacall and pyjuliapkg. Why add the “py” prefix? In prin…

---

## [Why are empty ranges normalized?](https://discourse.julialang.org/t/why-are-empty-ranges-normalized/109836)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [February 7, 2024, 8:55am UTC](https://discourse.julialang.org/t/why-are-empty-ranges-normalized/109836 "2024-02-07T08:55:16Z")

</div>

What the motivation for this normalization? julia\> 5:1 5:4

---

## [How to do readuntil(io, ::Regex)?](https://discourse.julialang.org/t/how-to-do-readuntil-io-regex/109855)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 7:31am UTC](https://discourse.julialang.org/t/how-to-do-readuntil-io-regex/109855 "2024-02-07T07:31:18Z")

</div>

I have a TCP connection over which I can send a command and then the remote end responds with some output followed by either OK or ERROR. For example: \>\> GETSTATE \<\< 0002 # Some status code \<\< OK To make it easier to…

---

## [ERROR using JumpProcesses and Catalyst](https://discourse.julialang.org/t/error-using-jumpprocesses-and-catalyst/109753)

<div class="topic-metadata">

**Author:** [@martacunial](https://discourse.julialang.org/u/martacunial)\
**Replies:** 6\
**Last updated:** [February 7, 2024, 7:43am UTC](https://discourse.julialang.org/t/error-using-jumpprocesses-and-catalyst/109753 "2024-02-07T07:43:38Z")

</div>

I’m trying to run this code (julia version 1.9.2) found on Continuous-Time Jump Processes and Gillespie Methods · JumpProcesses.jl and I get the error "JumpSystem equations must contain MassActionJumps, ConstantRateJumps…

---

## [Section for 'tutorial' style posts?](https://discourse.julialang.org/t/section-for-tutorial-style-posts/109856)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 0\
**Last updated:** [February 7, 2024, 7:41am UTC](https://discourse.julialang.org/t/section-for-tutorial-style-posts/109856 "2024-02-07T07:41:43Z")

</div>

Could it make sense to have a section in this discourse where we collect posts that not only show how certain things are done in Julia but also explain a bit more of the concepts around them, as well as posts that answer…

---

## [DOS and LDOS using Quantica](https://discourse.julialang.org/t/dos-and-ldos-using-quantica/109822)

<div class="topic-metadata">

**Author:** [@alex123](https://discourse.julialang.org/u/alex123)\
**Replies:** 1\
**Last updated:** [February 7, 2024, 7:37am UTC](https://discourse.julialang.org/t/dos-and-ldos-using-quantica/109822 "2024-02-07T07:37:32Z")

</div>

Hello @pablosanjose , looking through the Quantica documentation, I could only see how to find the LDOS at a fixed energy at all sites in the lattice. Is there a way to get the LDOS at a fixed position for a range of en…

---

## [Makie Label](https://discourse.julialang.org/t/makie-label/109721)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [February 7, 2024, 7:23am UTC](https://discourse.julialang.org/t/makie-label/109721 "2024-02-07T07:23:57Z")

</div>

Is this supposed to work? julia\> let f = Figure() ax = Axis(f\[1,1\]) Label(ax, "hello") f end ERROR: MethodError: no method matching \_block(::Type{Label}, ::Axis; text::String) Cl…

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

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