# Latest

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

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

**Page:** 601

---

## [Julia VegaLite and ElectronDisplay - controlling sandboxing?](https://discourse.julialang.org/t/julia-vegalite-and-electrondisplay-controlling-sandboxing/103649)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 12:36am UTC](https://discourse.julialang.org/t/julia-vegalite-and-electrondisplay-controlling-sandboxing/103649 "2023-09-12T00:36:43Z")

</div>

I’m using Julia 1.9.3 on WSL2 Ubuntu Linux, working through the REPL (actually through Emacs Julia-Snail, but the plotting commands are sent to the REPL). So wanted to try out ElectronDisplay for VegaLite. using DataFra…

---

## [How do I append row vectors into an array when I don't know the exact dimension of the array before calculations end?](https://discourse.julialang.org/t/how-do-i-append-row-vectors-into-an-array-when-i-dont-know-the-exact-dimension-of-the-array-before-calculations-end/103762)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 4\
**Last updated:** [September 11, 2023, 11:27pm UTC](https://discourse.julialang.org/t/how-do-i-append-row-vectors-into-an-array-when-i-dont-know-the-exact-dimension-of-the-array-before-calculations-end/103762 "2023-09-11T23:27:24Z")

</div>

I’m using a while statement to carry out calculations for as long as a condition holds. At every iteration, I calculate a vector v. I want to append every new v vector as a row vector to the previous v vector. The probl…

---

## [Makie: Multiple lines in a loop](https://discourse.julialang.org/t/makie-multiple-lines-in-a-loop/103738)

<div class="topic-metadata">

**Author:** [@Matthias\_Delescluse](https://discourse.julialang.org/u/Matthias_Delescluse)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 9:36pm UTC](https://discourse.julialang.org/t/makie-multiple-lines-in-a-loop/103738 "2023-09-11T21:36:30Z")

</div>

Hello! I am plotting several lines in a Makie Figure this way: p1=lines!(positions1) p2=lines!(positions2) … I need to access p$i after that, and I may have to display ten of them. I’d like to have these lines! in a…

---

## [Makie Basic Overloads for Composite Type](https://discourse.julialang.org/t/makie-basic-overloads-for-composite-type/103757)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [September 11, 2023, 9:25pm UTC](https://discourse.julialang.org/t/makie-basic-overloads-for-composite-type/103757 "2023-09-11T21:25:26Z")

</div>

I have a simple composite type I use to keep track of a 3D vector that looks like this. abstract type AbstractVec{T\<:Number} end " xyzVecT is the object definition to contain the cartesian information " struct xyzVecT{…

---

## [Semantics of \`@error\`](https://discourse.julialang.org/t/semantics-of-error/103760)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 9:00pm UTC](https://discourse.julialang.org/t/semantics-of-error/103760 "2023-09-11T21:00:05Z")

</div>

In doctest and CitationBibliography · Issue #34 · JuliaDocs/DocumenterCitations.jl · GitHub, the question came up what the semantics of the @error macro should be. Specifically, whether execution should continue after an…

---

## [Is there a way to display DataFrame with horizontal line for every row?](https://discourse.julialang.org/t/is-there-a-way-to-display-dataframe-with-horizontal-line-for-every-row/103719)

<div class="topic-metadata">

**Author:** [@huang\_min](https://discourse.julialang.org/u/huang_min)\
**Replies:** 7\
**Last updated:** [September 11, 2023, 8:25pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-display-dataframe-with-horizontal-line-for-every-row/103719 "2023-09-11T20:25:10Z")

</div>

I am doing some exploration on the screen for my dataframe with about 10 columns. Is there a way to print the table on the screen with horizontal line for every row just like a latex table? I could not find this option i…

---

## [Type instability for broadcast with abstract type](https://discourse.julialang.org/t/type-instability-for-broadcast-with-abstract-type/103727)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 4\
**Last updated:** [September 11, 2023, 7:20pm UTC](https://discourse.julialang.org/t/type-instability-for-broadcast-with-abstract-type/103727 "2023-09-11T19:20:04Z")

</div>

I have encountered a type instability when defining broadcasting for an abstract type. Consider the following (silly) example: import Base.Broadcast: Broadcasted, BroadcastStyle, broadcastable, broadcasted, instantiate …

---

## ["Under the hood" difference between import and using](https://discourse.julialang.org/t/under-the-hood-difference-between-import-and-using/103741)

<div class="topic-metadata">

**Author:** [@deaminase](https://discourse.julialang.org/u/deaminase)\
**Replies:** 9\
**Last updated:** [September 11, 2023, 5:27pm UTC](https://discourse.julialang.org/t/under-the-hood-difference-between-import-and-using/103741 "2023-09-11T17:27:36Z")

</div>

So, based on the docs I know that eg. import doesn’t bring in any exported identifiers to your namespace when importing a module, and if you want to add a method to a function without using its fully qualified name, you …

---

## [Plots.jl custom cycler for color, linestyle, markershape... etc?](https://discourse.julialang.org/t/plots-jl-custom-cycler-for-color-linestyle-markershape-etc/103743)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 0\
**Last updated:** [September 11, 2023, 3:38pm UTC](https://discourse.julialang.org/t/plots-jl-custom-cycler-for-color-linestyle-markershape-etc/103743 "2023-09-11T15:38:59Z")

</div>

In matplotlib for example, I have a line in my my\_style.rc file that reads axes.prop\_cycle: (cycler('color', \["5f4b8bff","009874ff","9b2335ff","0f4c81ff","dd4124ff","efc050ff","c3447aff"\]) + cycler("ls", \["-", "--", "-.…

---

## [Trying to understand macro scope (Tidier package)](https://discourse.julialang.org/t/trying-to-understand-macro-scope-tidier-package/103635)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 20\
**Last updated:** [September 11, 2023, 1:26pm UTC](https://discourse.julialang.org/t/trying-to-understand-macro-scope-tidier-package/103635 "2023-09-11T13:26:40Z")

</div>

Very excited about the direction of the Tidier package as I am coming from R. However, I’m not understanding some of the errors I’m getting and I believe it has to do with the scope of some macros and variables/functions…

---

## [Fixed distribution in Turing](https://discourse.julialang.org/t/fixed-distribution-in-turing/103540)

<div class="topic-metadata">

**Author:** [@99dB](https://discourse.julialang.org/u/99dB)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 1:07pm UTC](https://discourse.julialang.org/t/fixed-distribution-in-turing/103540 "2023-09-11T13:07:29Z")

</div>

Hi all, Is it possible to sample a distribution in Turing without updating it? For example from this tutorial: https://turing.ml/dev/tutorials/10-bayesian-differential-equations/ @model function fitlv(data, prob) …

---

## [Julia compatibility requirement error](https://discourse.julialang.org/t/julia-compatibility-requirement-error/103724)

<div class="topic-metadata">

**Author:** [@ShouvikGhosh2048](https://discourse.julialang.org/u/ShouvikGhosh2048)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 10:00am UTC](https://discourse.julialang.org/t/julia-compatibility-requirement-error/103724 "2023-09-11T10:00:50Z")

</div>

Hi, We’re working on updating a dependency in one of our projects and got the following error. ERROR: Unsatisfiable requirements detected for package DynamicPPL \[366bfd00\]: DynamicPPL \[366bfd00\] log: ├─possible versi…

---

## [Simplify expression with symbolics.jl](https://discourse.julialang.org/t/simplify-expression-with-symbolics-jl/103733)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 9:40am UTC](https://discourse.julialang.org/t/simplify-expression-with-symbolics-jl/103733 "2023-09-11T09:40:35Z")

</div>

Why is the following expression not getting simplified? julia\> using Symbolics julia\> @variables a, b julia\> expr=2.25e-7(2.701832006722774e6a - 1.0131921447234855e6(b + 7.999959398007795a)) julia\> simplify(expr) 2.25e…

---

## [Debugger does not step over quoted macro code in VS Code](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657)

<div class="topic-metadata">

**Author:** [@quert](https://discourse.julialang.org/u/quert)\
**Replies:** 3\
**Last updated:** [September 11, 2023, 9:02am UTC](https://discourse.julialang.org/t/debugger-does-not-step-over-quoted-macro-code-in-vs-code/103657 "2023-09-11T09:02:36Z")

</div>

I would like to know how other people use the debugger with code that uses the logging macros. For me it is almost unusable, since the debugger steps into every logging call, e.g. @debug, @info, .... Every time I have to…

---

## [A simple, full-GPU implementation of AlphaZero](https://discourse.julialang.org/t/a-simple-full-gpu-implementation-of-alphazero/103726)

<div class="topic-metadata">

**Author:** [@AndrewSpano](https://discourse.julialang.org/u/AndrewSpano)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 8:51am UTC](https://discourse.julialang.org/t/a-simple-full-gpu-implementation-of-alphazero/103726 "2023-09-11T08:51:42Z")

</div>

Hello Julia Community! My name is Andreas Spanopoulos, and I am one of the JSoC-funded students. This past summer, I worked on implementing a simple, hackable, fully documented and full-GPU implementation of AlphaZero i…

---

## [Functions with independent (global) scopes](https://discourse.julialang.org/t/functions-with-independent-global-scopes/103703)

<div class="topic-metadata">

**Author:** [@lieskjur](https://discourse.julialang.org/u/lieskjur)\
**Replies:** 12\
**Last updated:** [September 11, 2023, 7:22am UTC](https://discourse.julialang.org/t/functions-with-independent-global-scopes/103703 "2023-09-11T07:22:17Z")

</div>

Hi, recently I was working on a project for which I had to learn a bit of C and one thing I came to value quite a bit was that main() itself is a function and therefore its variables are not visible inside an arbitrary f…

---

## [Exported functions do not update](https://discourse.julialang.org/t/exported-functions-do-not-update/103725)

<div class="topic-metadata">

**Author:** [@A\_C](https://discourse.julialang.org/u/A_C)\
**Replies:** 6\
**Last updated:** [September 11, 2023, 4:58am UTC](https://discourse.julialang.org/t/exported-functions-do-not-update/103725 "2023-09-11T04:58:20Z")

</div>

I am using the REPL workflow described in REPL Workflow. Suppose the contents of Tmp.jl are as follows: module Tmp export say\_hello say\_hello() = println("Hello!") # your other definitions here end And the contents…

---

## [Pluto.jl presentation at JupyterCon 2023](https://discourse.julialang.org/t/pluto-jl-presentation-at-jupytercon-2023/103572)

<div class="topic-metadata">

**Author:** [@fonsp](https://discourse.julialang.org/u/fonsp)\
**Replies:** 6\
**Last updated:** [September 11, 2023, 4:36am UTC](https://discourse.julialang.org/t/pluto-jl-presentation-at-jupytercon-2023/103572 "2023-09-11T04:36:48Z")

</div>

This spring I gave a talk about Pluto.jl at JupyterCon 2023 (Jupyter, not Julia) in Paris. If you want to learn more about the latest Pluto features, and how it compares to Jupyter and Python, then take a look! …

---

## [How to use StatsBase.modes correctly with MLJ?](https://discourse.julialang.org/t/how-to-use-statsbase-modes-correctly-with-mlj/103721)

<div class="topic-metadata">

**Author:** [@roeya](https://discourse.julialang.org/u/roeya)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 2:57am UTC](https://discourse.julialang.org/t/how-to-use-statsbase-modes-correctly-with-mlj/103721 "2023-09-11T02:57:26Z")

</div>

When trying to use StatsBase.modes of result of MLJ model fit I get error - ERROR: MethodError: no method matching iterate(::UnivariateFinite{Multiclass{2}, String, UInt32, Float64}) However if I use StatsBase.mode eve…

---

## [Unrolling loops over tuples - why so hard?](https://discourse.julialang.org/t/unrolling-loops-over-tuples-why-so-hard/103428)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 14\
**Last updated:** [September 10, 2023, 10:58pm UTC](https://discourse.julialang.org/t/unrolling-loops-over-tuples-why-so-hard/103428 "2023-09-10T22:58:11Z")

</div>

Unrolling loops over tuple elements can bring easy performance gains. Here’s a trivial example of a 250x speed-up, just by adding an @unroll macro to the code: import Unroll.@unroll using BenchmarkTools function nounro…

---

## [How to read .gdx files in Julia?](https://discourse.julialang.org/t/how-to-read-gdx-files-in-julia/103575)

<div class="topic-metadata">

**Author:** [@Iheb](https://discourse.julialang.org/u/Iheb)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 10:33pm UTC](https://discourse.julialang.org/t/how-to-read-gdx-files-in-julia/103575 "2023-09-10T22:33:36Z")

</div>

I have a Multistage SP written in GAMS and I want to exchange data between GAMS and Julia via gdx files (Maybe another method if there exists any). I tried using GAMS.jl but it what it does is just convert the model wri…

---

## [How would macros make this code clearer?](https://discourse.julialang.org/t/how-would-macros-make-this-code-clearer/103702)

<div class="topic-metadata">

**Author:** [@jburgy](https://discourse.julialang.org/u/jburgy)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 8:32pm UTC](https://discourse.julialang.org/t/how-would-macros-make-this-code-clearer/103702 "2023-09-10T20:32:45Z")

</div>

I have been mildly obsessed with the Thompson’s construction algorithm and recently implemented a version of it in julia. I also wrote a couple blog posts for additional context. This code works but feels like it could…

---

## [Unable to solve a differential equation using neural network](https://discourse.julialang.org/t/unable-to-solve-a-differential-equation-using-neural-network/103723)

<div class="topic-metadata">

**Author:** [@Shashank](https://discourse.julialang.org/u/Shashank)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 5:43pm UTC](https://discourse.julialang.org/t/unable-to-solve-a-differential-equation-using-neural-network/103723 "2023-09-10T17:43:05Z")

</div>

I am trying to solve a simple differential equation dy/dt=-y using neural networks. The following code runs but the loss remains at 2.0 and I get a output of zero. Am I doing something wrong here? using Flux using Flux:…

---

## [How to calculate the full width half maximum (FWHM) of a function or vector?](https://discourse.julialang.org/t/how-to-calculate-the-full-width-half-maximum-fwhm-of-a-function-or-vector/103720)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [September 10, 2023, 1:33pm UTC](https://discourse.julialang.org/t/how-to-calculate-the-full-width-half-maximum-fwhm-of-a-function-or-vector/103720 "2023-09-10T13:33:21Z")

</div>

In a number of different domains, one is interested in the width of a peak. Two common functions one might want to know the width of are probability distributions (statstics) and intensity distributions (optics and more)…

---

## [Learning Regular Expressions in Julia](https://discourse.julialang.org/t/learning-regular-expressions-in-julia/101742)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 13\
**Last updated:** [September 10, 2023, 1:27pm UTC](https://discourse.julialang.org/t/learning-regular-expressions-in-julia/101742 "2023-09-10T13:27:52Z")

</div>

I found it difficult to learn Regular Expressions in Julia. I couldn’t understand what those different symbols in r"^\\s\*(?:#|$)" stands for ? Regular Expressions documentation is not detailed enough for many peop…

---

## [BenchmarkTools @btime breaks my function arguments](https://discourse.julialang.org/t/benchmarktools-btime-breaks-my-function-arguments/103710)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 12:00pm UTC](https://discourse.julialang.org/t/benchmarktools-btime-breaks-my-function-arguments/103710 "2023-09-10T12:00:51Z")

</div>

I have a package with an exported function that I want to benchmark. When I run the function without the @btime macro, it executes flawlessly. With the macro, however, it seems to mess with the input arguments in a way …

---

## [Is splitting the Julia code into smaller scripts impacting performance?](https://discourse.julialang.org/t/is-splitting-the-julia-code-into-smaller-scripts-impacting-performance/103613)

<div class="topic-metadata">

**Author:** [@CrisCool](https://discourse.julialang.org/u/CrisCool)\
**Replies:** 5\
**Last updated:** [September 10, 2023, 9:13am UTC](https://discourse.julialang.org/t/is-splitting-the-julia-code-into-smaller-scripts-impacting-performance/103613 "2023-09-10T09:13:44Z")

</div>

Hei there julians! Let’s say I’m working on a Julia App and I organize my code in a MAIN.jl script and mayn other scripts, which I call from the MAIN.jl with include(). The structure can be nested, so the scripts include…

---

## [Could a Julia fine tuned version of Llama 2 code be created](https://discourse.julialang.org/t/could-a-julia-fine-tuned-version-of-llama-2-code-be-created/103440)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 14\
**Last updated:** [September 10, 2023, 9:12am UTC](https://discourse.julialang.org/t/could-a-julia-fine-tuned-version-of-llama-2-code-be-created/103440 "2023-09-10T09:12:43Z")

</div>

As I’m the only person working in my team in Julia I find AI code assistance helpful (copilot, chat:copilot, Llama 2 code), effectively like talking to a colleague. Although, I find chat:copilots results a mixed bag and…

---

## [How to get source printing from \`include()\`](https://discourse.julialang.org/t/how-to-get-source-printing-from-include/103699)

<div class="topic-metadata">

**Author:** [@pao](https://discourse.julialang.org/u/pao)\
**Replies:** 9\
**Last updated:** [September 10, 2023, 6:56am UTC](https://discourse.julialang.org/t/how-to-get-source-printing-from-include/103699 "2023-09-10T06:56:58Z")

</div>

Hi guys, I have a problem that I’m unable to solve. I’m tried any trick with no results. I’m writing a lot of Julia snippets (function definitions and unit tests) embedded in a book draft. Therefore, I write small fi…

---

## [How does the string pkg"..." work?](https://discourse.julialang.org/t/how-does-the-string-pkg-work/103711)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [September 10, 2023, 3:16am UTC](https://discourse.julialang.org/t/how-does-the-string-pkg-work/103711 "2023-09-10T03:16:50Z")

</div>

What magic is involved when I write macro pkg\_str(s) return esc(s) end @info pkg"Top of the morning to you, squire!" Does the macro compiler “know” that this means “call @pkg\_str when you see pkg as a string prefix…

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

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