# Latest

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

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

**Page:** 624

---

## [Best Operating System for the Juliaverse](https://discourse.julialang.org/t/best-operating-system-for-the-juliaverse/62795)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 33\
**Last updated:** [August 10, 2023, 12:40pm UTC](https://discourse.julialang.org/t/best-operating-system-for-the-juliaverse/62795 "2023-08-10T12:40:53Z")

</div>

I’m replacing my vintage Mac Pros with a 5950x build and leaving OSX behind (sadly). I’ve installed the Windows 10 that I purchased the day I bought the PC parts… but… I dunno. On another thread @stillyslalom suggested …

---

## [Latex Title Makie](https://discourse.julialang.org/t/latex-title-makie/102667)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 9:40am UTC](https://discourse.julialang.org/t/latex-title-makie/102667 "2023-08-10T09:40:31Z")

</div>

No matter whether I use title = "Example Trajectory", #L"Example Trajectory for $\\tau=0$", titlefont = texfont(), or title =#L"Example Trajectory for $\\tau=0$", in Makie, I never manage to get the title t…

---

## [Differences in using MvNormal and Normal in the calculation of the likelihood](https://discourse.julialang.org/t/differences-in-using-mvnormal-and-normal-in-the-calculation-of-the-likelihood/102602)

<div class="topic-metadata">

**Author:** [@99dB](https://discourse.julialang.org/u/99dB)\
**Replies:** 4\
**Last updated:** [August 10, 2023, 8:43am UTC](https://discourse.julialang.org/t/differences-in-using-mvnormal-and-normal-in-the-calculation-of-the-likelihood/102602 "2023-08-10T08:43:45Z")

</div>

Hello all, I have a question related the ODE Turing tutorial: using Turing, DifferentialEquations, StatsPlots, LinearAlgebra, Random Random.seed!(14); function lotka\_volterra(du, u, p, t) # Model parameters. …

---

## [How to create circular color gradient plot?](https://discourse.julialang.org/t/how-to-create-circular-color-gradient-plot/102301)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 6\
**Last updated:** [August 1, 2023, 11:55am UTC](https://discourse.julialang.org/t/how-to-create-circular-color-gradient-plot/102301 "2023-08-01T11:55:57Z")

</div>

I see a lot of examples how to do it in Python, but no example how to do it in Julia Makie. What should I use, mash?

---

## [How to utilize symmetry in tensor contraction?](https://discourse.julialang.org/t/how-to-utilize-symmetry-in-tensor-contraction/102514)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 6:13am UTC](https://discourse.julialang.org/t/how-to-utilize-symmetry-in-tensor-contraction/102514 "2023-08-10T06:13:33Z")

</div>

Hi, I tried to consider tensor contraction A\[a,b\] B\[b,c,d,e\] = C\[a,c,c,e\], where B\[b,c,d,e\] = B\[b,c,e,d\]. I am not sure if my following julia code is right using LinearAlgebra using BenchmarkTools, TensorOperations n …

---

## [Julia equivalent of R's quantile function](https://discourse.julialang.org/t/julia-equivalent-of-rs-quantile-function/102584)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 7\
**Last updated:** [August 10, 2023, 5:25am UTC](https://discourse.julialang.org/t/julia-equivalent-of-rs-quantile-function/102584 "2023-08-10T05:25:49Z")

</div>

I am trying to convert R code to Julia and need help on below logic conversion. Currently in R they are trying to process each row in percentile\_to df using for loop by passing arguments to function func\_get\_percentile\_…

---

## [Implementing Tables.jl interface results in Stack Overflow](https://discourse.julialang.org/t/implementing-tables-jl-interface-results-in-stack-overflow/102633)

<div class="topic-metadata">

**Author:** [@MitchellWeg](https://discourse.julialang.org/u/MitchellWeg)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 12:57am UTC](https://discourse.julialang.org/t/implementing-tables-jl-interface-results-in-stack-overflow/102633 "2023-08-10T00:57:19Z")

</div>

For my package, I’m trying to implement the Tables.jl package. I however don’t really have a clue on how to implement the interface, and what the specific functions need to return. Currently, I have this code. It howeve…

---

## [Problem with multiplying functions to create Lagrange interpolating polynomial basis](https://discourse.julialang.org/t/problem-with-multiplying-functions-to-create-lagrange-interpolating-polynomial-basis/102578)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 1:57am UTC](https://discourse.julialang.org/t/problem-with-multiplying-functions-to-create-lagrange-interpolating-polynomial-basis/102578 "2023-08-10T01:57:19Z")

</div>

I am trying to write some functions to generate a Lagrange interpolating polynomial basis. That is, I want to create a vector where each element is a lagrange polynomial basis function. I have some code below but it does…

---

## [DataFrame: New columns with names from existing column](https://discourse.julialang.org/t/dataframe-new-columns-with-names-from-existing-column/102658)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 1:50am UTC](https://discourse.julialang.org/t/dataframe-new-columns-with-names-from-existing-column/102658 "2023-08-10T01:50:55Z")

</div>

I’m trying to take an existing DataFrame that looks something like the following: df = DataFrame(:x =\> \[1, 2, 3, 1, 2\], :y =\> \[:A, :A, :A, :B, :B\], :z =\> 1:2:9) 5×3 DataFrame Row │ x y z │ Int64 …

---

## [What's the aliasing story in Julia](https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 36\
**Last updated:** [August 9, 2023, 9:50pm UTC](https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564 "2023-08-09T21:50:31Z")

</div>

So let’s say I’m looking at a function that takes multiple mutable arguments, say, any! or extrema! or sortperm!, or sum!, or copyto!, or mul!. Who is responsible for handling aliasing? Am I ever allowed to pass in two o…

---

## [Why does indexing with a scalar allocate memory?](https://discourse.julialang.org/t/why-does-indexing-with-a-scalar-allocate-memory/102656)

<div class="topic-metadata">

**Author:** [@qua4tre](https://discourse.julialang.org/u/qua4tre)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 11:44pm UTC](https://discourse.julialang.org/t/why-does-indexing-with-a-scalar-allocate-memory/102656 "2023-08-09T23:44:57Z")

</div>

julia\> @time 2.0; 0.000005 seconds julia\> x = fill(2.0, 3) 3-element Vector{Float64}: 2.0 2.0 2.0 julia\> @time x\[1\]; 0.000009 seconds (1 allocation: 16 bytes) I would have assumed x\[1\] would be a nonallocating …

---

## [include(::Function, ::AbstractString)](https://discourse.julialang.org/t/include-function-abstractstring/102624)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 9\
**Last updated:** [August 9, 2023, 11:25am UTC](https://discourse.julialang.org/t/include-function-abstractstring/102624 "2023-08-09T11:25:35Z")

</div>

Hi, Can someone provide a simple example of how to use the following function? include(::Function, ::AbstractString) Everytime I try to use it returns ERROR: undefVarError : myfun not defined. Thank you

---

## [Write Large Parquet to S3](https://discourse.julialang.org/t/write-large-parquet-to-s3/102639)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 6\
**Last updated:** [August 9, 2023, 8:43pm UTC](https://discourse.julialang.org/t/write-large-parquet-to-s3/102639 "2023-08-09T20:43:09Z")

</div>

I have an AWS Glue table made up of parquet files. Unfortunately, the upstream process creates files that are too small for optimal querying from Athena/Redshift so I am looking to consolidate them up to files closer to …

---

## [Help needed to train simple RNN using Flux](https://discourse.julialang.org/t/help-needed-to-train-simple-rnn-using-flux/102650)

<div class="topic-metadata">

**Author:** [@chenwilliam77](https://discourse.julialang.org/u/chenwilliam77)\
**Replies:** 0\
**Last updated:** [August 9, 2023, 7:36pm UTC](https://discourse.julialang.org/t/help-needed-to-train-simple-rnn-using-flux/102650 "2023-08-09T19:36:46Z")

</div>

I am trying to learn a function of time series data using a neural network. In the example below, I’m simulating an AR(1), and I’m trying to learn the function f(x\_t, x\_{t - 1}, x\_{t - 2}, . . .) = x\_t^2 + x\_{t - 1}^2 \*…

---

## [Is it possible to precompile (with PrecompileTools) code from a package extension?](https://discourse.julialang.org/t/is-it-possible-to-precompile-with-precompiletools-code-from-a-package-extension/102647)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 6:27pm UTC](https://discourse.julialang.org/t/is-it-possible-to-precompile-with-precompiletools-code-from-a-package-extension/102647 "2023-08-09T18:27:43Z")

</div>

I was trying to use PrecompileTools to make a pre-compilation workflow for a package extension but ran into issues where because the weak-dependency is not part of the module its name is not defined. Is it possible to p…

---

## [GLTF + Julia (and Makie)](https://discourse.julialang.org/t/gltf-julia-and-makie/102642)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 5:39pm UTC](https://discourse.julialang.org/t/gltf-julia-and-makie/102642 "2023-08-09T17:39:06Z")

</div>

Is anyone aware of any work out there where GLTF files are used with Julia? I’m aware of GLTF.jl which seems to be the ticket for loading the data, though its most recent commit was in 2021 which makes me a bit wary. My …

---

## [Help with callbacks (to set a variable to a constant value)](https://discourse.julialang.org/t/help-with-callbacks-to-set-a-variable-to-a-constant-value/102634)

<div class="topic-metadata">

**Author:** [@aleppersico](https://discourse.julialang.org/u/aleppersico)\
**Replies:** 4\
**Last updated:** [August 9, 2023, 5:03pm UTC](https://discourse.julialang.org/t/help-with-callbacks-to-set-a-variable-to-a-constant-value/102634 "2023-08-09T17:03:09Z")

</div>

Hello! :slight\_smile: I am simulating a complex dynamical system with DifferentialEquations.jl and via callbacks I introduce perturbations of some parameters. I would like to introduce a callback which continuously sets…

---

## [Creating a function with utf](https://discourse.julialang.org/t/creating-a-function-with-utf/102628)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 4:35pm UTC](https://discourse.julialang.org/t/creating-a-function-with-utf/102628 "2023-08-09T16:35:35Z")

</div>

Is there a way how I can replace inv(x) by x⁻¹ or (x)⁻¹ instead? I would like to define a new postfix operator!

---

## [Julia hangs on \`using PProf\`](https://discourse.julialang.org/t/julia-hangs-on-using-pprof/102646)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 4:26pm UTC](https://discourse.julialang.org/t/julia-hangs-on-using-pprof/102646 "2023-08-09T16:26:19Z")

</div>

I’m trying to do some allocation profiling. I start a thread, which is reading from a pipe, and I want to check that it is not allocating. Then, I do using PProf and julia hangs. If I do using PProf before starting th…

---

## [Plots in the terminal (with sixel)](https://discourse.julialang.org/t/plots-in-the-terminal-with-sixel/22503)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 50\
**Last updated:** [August 9, 2023, 4:25pm UTC](https://discourse.julialang.org/t/plots-in-the-terminal-with-sixel/22503 "2023-08-09T16:25:58Z")

</div>

I just came across “sixel” which allows to show graphics in the terminal (while reading this GitHub - csdvrx/sixel-gnuplot: GNUplot with sixel support ) Unfortunately, gnome-terminal does not support this (Bug 729204 –…

---

## [ModelingToolkit compilation time for many small simulations](https://discourse.julialang.org/t/modelingtoolkit-compilation-time-for-many-small-simulations/102631)

<div class="topic-metadata">

**Author:** [@Antomek](https://discourse.julialang.org/u/Antomek)\
**Replies:** 5\
**Last updated:** [August 9, 2023, 4:21pm UTC](https://discourse.julialang.org/t/modelingtoolkit-compilation-time-for-many-small-simulations/102631 "2023-08-09T16:21:14Z")

</div>

Hello all, I am in a situation where I want to run many small ODEs, to do an ensemble-type of simulation. I really like using ModelingToolkit, and was trying to use it for this purpose. However, my code is running rea…

---

## [Summing exponential expressions in NLP](https://discourse.julialang.org/t/summing-exponential-expressions-in-nlp/102640)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 3:43pm UTC](https://discourse.julialang.org/t/summing-exponential-expressions-in-nlp/102640 "2023-08-09T15:43:17Z")

</div>

I have the NLP below that I want to solve with JuMP. The problem transforms the original time-series x\_t into a new time-series x'\_t with a different integral but the same shape and extremes. The objective function minim…

---

## [ERROR: UndefVarError: \`plot\_chains\` not defined](https://discourse.julialang.org/t/error-undefvarerror-plot-chains-not-defined/102641)

<div class="topic-metadata">

**Author:** [@George\_Githinji](https://discourse.julialang.org/u/George_Githinji)\
**Replies:** 0\
**Last updated:** [August 9, 2023, 2:39pm UTC](https://discourse.julialang.org/t/error-undefvarerror-plot-chains-not-defined/102641 "2023-08-09T14:39:41Z")

</div>

I installed Turing and TuringGLM and then ran an example as detailed in the tutorial . However when I ran plot\_chains(chns) , I ran into an issue. ERROR: UndefVarError: \`plot\_chains\` not defined Stacktrace: \[1\] top-le…

---

## [Using superscript ⁻¹ as a postfix operator for inv?](https://discourse.julialang.org/t/using-superscript-as-a-postfix-operator-for-inv/40413)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 15\
**Last updated:** [August 9, 2023, 1:59pm UTC](https://discourse.julialang.org/t/using-superscript-as-a-postfix-operator-for-inv/40413 "2023-08-09T13:59:11Z")

</div>

Nice. I see they’re using the latest unicode. Does anyone know if it will be possible (an supported by Julia) to express negative one “-1” as a superscript w/ unicode? X^{-1} is a lot leaner than inv(X) or X^-1

---

## [Deep Bayesian Model Discovery without using NeuralODE object](https://discourse.julialang.org/t/deep-bayesian-model-discovery-without-using-neuralode-object/102403)

<div class="topic-metadata">

**Author:** [@gsh19](https://discourse.julialang.org/u/gsh19)\
**Replies:** 4\
**Last updated:** [August 3, 2023, 12:45am UTC](https://discourse.julialang.org/t/deep-bayesian-model-discovery-without-using-neuralode-object/102403 "2023-08-03T00:45:11Z")

</div>

Hi everyone. I am trying to implement the Deep Bayesian Model Discovery on the Lotka-Volterra model discussed in the Automated Discovery of Missing Physics example. The problem I am facing is that I am not able to figur…

---

## [Flux model on GPU?](https://discourse.julialang.org/t/flux-model-on-gpu/102595)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [August 9, 2023, 12:29pm UTC](https://discourse.julialang.org/t/flux-model-on-gpu/102595 "2023-08-09T12:29:49Z")

</div>

How can I determine whether a Flux model is on a GPU (of any kind)? For example, if m = Dense(1, 1) |\> gpu/cpu should it somehow be based on typeof(m) or are there other alternatives? My use case is that I have a (traini…

---

## [Is there a C/C++/Rust/Go library that can do inference on Flux models?](https://discourse.julialang.org/t/is-there-a-c-c-rust-go-library-that-can-do-inference-on-flux-models/102581)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 11\
**Last updated:** [August 9, 2023, 12:08pm UTC](https://discourse.julialang.org/t/is-there-a-c-c-rust-go-library-that-can-do-inference-on-flux-models/102581 "2023-08-09T12:08:39Z")

</div>

If not, is it useful to have one at least for simple layers like Dense, Conv, Scale, etc.?

---

## [Read file to io](https://discourse.julialang.org/t/read-file-to-io/102629)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 12:04pm UTC](https://discourse.julialang.org/t/read-file-to-io/102629 "2023-08-09T12:04:44Z")

</div>

Given a filename and an io::IO, what’s the recommended way of reading a file and dumping it to io? A naive solution is function read\_to\_io(filename::AbstractString, io::IO) open(filename, "r") do src\_io whi…

---

## [How to "prioritize" choosing some parameters over others in Hyperopt.jl or similar packages](https://discourse.julialang.org/t/how-to-prioritize-choosing-some-parameters-over-others-in-hyperopt-jl-or-similar-packages/102594)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 5\
**Last updated:** [August 9, 2023, 11:37am UTC](https://discourse.julialang.org/t/how-to-prioritize-choosing-some-parameters-over-others-in-hyperopt-jl-or-similar-packages/102594 "2023-08-09T11:37:42Z")

</div>

Hi there, I wasn’t sure whether I should have posted this in Statistics or in Optimization, but here it goes. I have a peculiar situation. I want to use Hyperopt.jl optimize a function quality(x::Vector{Int}). The funct…

---

## [Difference between % and mod](https://discourse.julialang.org/t/difference-between-and-mod/102630)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 11:02am UTC](https://discourse.julialang.org/t/difference-between-and-mod/102630 "2023-08-09T11:02:14Z")

</div>

For ‘’’ (-3.2) % π ‘’’ I get ‘’’ -0.05840734641020706 ‘’’ but for ‘’’ mod(-3.2,π) ‘’’ I get ‘’’ 3.083185307179586 ‘’’ I like the latter for my purpose but is that difference a bug or a feature?

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

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