# Latest

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

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

**Page:** 893

---

## [VSCode sysimage build hangs on my NFS home directory](https://discourse.julialang.org/t/vscode-sysimage-build-hangs-on-my-nfs-home-directory/88872)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 8:44pm UTC](https://discourse.julialang.org/t/vscode-sysimage-build-hangs-on-my-nfs-home-directory/88872 "2022-10-17T20:44:56Z")

</div>

I’m not really sure this is a bug with VSCode or Julia, so I’ll just throw it out there for discussion and file a bug if something comes of it. I tried building a sysimage for a project I’m working on this morning. Doin…

---

## [How to make this plot in Julia?](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 29\
**Last updated:** [October 17, 2022, 8:15pm UTC](https://discourse.julialang.org/t/how-to-make-this-plot-in-julia/75065 "2022-10-17T20:15:54Z")

</div>

How do I make something similar to the following plot in Julia? using RCall, DataFrames, Random Random.seed!(123) d = DataFrame(name = repeat(\["A","B","C","D","E","F"\], inner=4), time=repeat(\[0,1,3,6\], outer=6), …

---

## [Enum type as field value performance](https://discourse.julialang.org/t/enum-type-as-field-value-performance/88867)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 7:49pm UTC](https://discourse.julialang.org/t/enum-type-as-field-value-performance/88867 "2022-10-17T19:49:22Z")

</div>

I know it is discouraged to use an abstract type for a field in a composite type due to the runtime overhead of looking up the type and method resolution. Does using an enum type suffer from the same problem? Or is it m…

---

## [How to efficiently evaluate a Flux.jl neural network millions of times on the GPU?](https://discourse.julialang.org/t/how-to-efficiently-evaluate-a-flux-jl-neural-network-millions-of-times-on-the-gpu/88864)

<div class="topic-metadata">

**Author:** [@PolarizedPoutine](https://discourse.julialang.org/u/PolarizedPoutine)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 7:36pm UTC](https://discourse.julialang.org/t/how-to-efficiently-evaluate-a-flux-jl-neural-network-millions-of-times-on-the-gpu/88864 "2022-10-17T19:36:04Z")

</div>

I have trained a small Flux.jl neural network that I am embedding into a larger model but I need to use the neural network to make millions (billions?) of predictions as part of running this larger model. Since the larg…

---

## [Accidentally exited Julia session](https://discourse.julialang.org/t/accidentally-exited-julia-session/88858)

<div class="topic-metadata">

**Author:** [@mengxiaoliu](https://discourse.julialang.org/u/mengxiaoliu)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 7:33pm UTC](https://discourse.julialang.org/t/accidentally-exited-julia-session/88858 "2022-10-17T19:33:46Z")

</div>

I ran some codes on the Julia REPL in VS Code and accidentally closed VS Code. When I reopened VS Code the Terminal window showed history restored followed by a series of numbers (see below). I wonder if it is possib…

---

## [Profiler hangs](https://discourse.julialang.org/t/profiler-hangs/88836)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 7:09pm UTC](https://discourse.julialang.org/t/profiler-hangs/88836 "2022-10-17T19:09:23Z")

</div>

I have a function, that terminates fine if I run it. f() # terminates after ~10s However if I profile it, it does not: using Profile @profile f() CPU usage goes down to 0% after a few seconds while and the function …

---

## [Performance of Fields with Union Type](https://discourse.julialang.org/t/performance-of-fields-with-union-type/88863)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 6:53pm UTC](https://discourse.julialang.org/t/performance-of-fields-with-union-type/88863 "2022-10-17T18:53:31Z")

</div>

The Manual \> Performance Tips documentation says that one should not use a field with an abstract type. This makes sense to me as otherwise a lot of type lookup and method resolution would have to happen at runtime when…

---

## [Edge-based partitioning with vertex separators of oriented graphs](https://discourse.julialang.org/t/edge-based-partitioning-with-vertex-separators-of-oriented-graphs/88855)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 6:47pm UTC](https://discourse.julialang.org/t/edge-based-partitioning-with-vertex-separators-of-oriented-graphs/88855 "2022-10-17T18:47:11Z")

</div>

I am searching for an algorithm that can create balanced edge-based partitions with vertex separators of oriented graphs. My understanding is that the METIS\_PartGraphKway function performs a vertex-based partition with e…

---

## [Animating a bar representing fractions that change with time](https://discourse.julialang.org/t/animating-a-bar-representing-fractions-that-change-with-time/88806)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 8\
**Last updated:** [October 17, 2022, 5:15pm UTC](https://discourse.julialang.org/t/animating-a-bar-representing-fractions-that-change-with-time/88806 "2022-10-17T17:15:26Z")

</div>

I want to make a single stacked bar where the differerent colors will show the fraction of some quantity. I get errors when I try to animate it: MWE using GLMakie fig = Figure() COLORS = \[ "#7143E0", "#0A9A84",…

---

## [Does Julia have fast expectations over multivariate Gaussians?](https://discourse.julialang.org/t/does-julia-have-fast-expectations-over-multivariate-gaussians/88834)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 6\
**Last updated:** [October 17, 2022, 4:18pm UTC](https://discourse.julialang.org/t/does-julia-have-fast-expectations-over-multivariate-gaussians/88834 "2022-10-17T16:18:54Z")

</div>

The following approach using HCubature.jl seems rather slow. Is there an easy way to make this faster in Julia? using BenchmarkTools, HCubature, Distributions softplus(x) = log(exp(x) + 1) function integrand(r1, r2, u; …

---

## [Function with vector of Union-Type](https://discourse.julialang.org/t/function-with-vector-of-union-type/88850)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 3:43pm UTC](https://discourse.julialang.org/t/function-with-vector-of-union-type/88850 "2022-10-17T15:43:57Z")

</div>

This does work: function \_foo1(\_range::AbstractVector=\[1,2\]) println(\_range) end \_foo1(\[1, missing\]) This fails: function \_foo2(\_range::Vector{Union{\<:Number, Missing}}=\[1, 2\]) println(\_range) end \_foo2(\[1, m…

---

## [Creating Ensemble Model(s) with Flux](https://discourse.julialang.org/t/creating-ensemble-model-s-with-flux/88796)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 6\
**Last updated:** [October 17, 2022, 2:17pm UTC](https://discourse.julialang.org/t/creating-ensemble-model-s-with-flux/88796 "2022-10-17T14:17:11Z")

</div>

Hello, I am trying to build a very basic ensemble model with Flux. Since the network structure does not change, all weak learners are the same. I am facing a problem with loss function definitions. It seems like I have…

---

## [Type stability with user input](https://discourse.julialang.org/t/type-stability-with-user-input/88828)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 2:12pm UTC](https://discourse.julialang.org/t/type-stability-with-user-input/88828 "2022-10-17T14:12:09Z")

</div>

Hi there! I am writing a small parser, and I use multiple-dispatch to make Julia use the right parser function depending on the type of token entered by the user. Here is a mock-up tokenizer that uses the same idea as m…

---

## [Exact the sequence of chr1 in XAM.jl](https://discourse.julialang.org/t/exact-the-sequence-of-chr1-in-xam-jl/88163)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 1:37pm UTC](https://discourse.julialang.org/t/exact-the-sequence-of-chr1-in-xam-jl/88163 "2022-10-17T13:37:51Z")

</div>

I only want to exact the sequence of chr1 not all. using XAM bamfile="..." reader=open(BAM.Reader,bamfile) for record in reader println(BAM.refname(record)) end This returns all the chromosomes.I just want chr1.But…

---

## [Finding charactersitic time in decaying dataset](https://discourse.julialang.org/t/finding-charactersitic-time-in-decaying-dataset/88849)

<div class="topic-metadata">

**Author:** [@greivin](https://discourse.julialang.org/u/greivin)\
**Replies:** 0\
**Last updated:** [October 17, 2022, 1:28pm UTC](https://discourse.julialang.org/t/finding-charactersitic-time-in-decaying-dataset/88849 "2022-10-17T13:28:57Z")

</div>

Hello! I have a dataset of N points with the x-axis in a log scale, representing time and the y-axis a correlation. The correlation decays and I want to interpolate, somehow, and find the value of t for which C has deca…

---

## [How to make a function store data to avoid repeating computation](https://discourse.julialang.org/t/how-to-make-a-function-store-data-to-avoid-repeating-computation/88396)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 45\
**Last updated:** [October 17, 2022, 12:22pm UTC](https://discourse.julialang.org/t/how-to-make-a-function-store-data-to-avoid-repeating-computation/88396 "2022-10-17T12:22:49Z")

</div>

I have a function in a module that performs some heavy computation to produce a fixed output. It is hard to predict if the function will be called, and we want to avoid computing it if unnecessary. So, we would like th…

---

## [How to display "Angstrom" symbol as an axis label in Makie?](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827)

<div class="topic-metadata">

**Author:** [@PuDu-Astro](https://discourse.julialang.org/u/PuDu-Astro)\
**Replies:** 5\
**Last updated:** [October 17, 2022, 12:18pm UTC](https://discourse.julialang.org/t/how-to-display-angstrom-symbol-as-an-axis-label-in-makie/88827 "2022-10-17T12:18:30Z")

</div>

Angstrom is commonly used as an unit in astronomy. In LaTeX, we can easily input it using “\\AA”. I tried to display it in Makie as an axis label, but failed. L"\\AA" doesn’t work. For example: using CairoMakie, LaTeXStr…

---

## [Substitution of products of symbolic variables](https://discourse.julialang.org/t/substitution-of-products-of-symbolic-variables/88733)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 11:42am UTC](https://discourse.julialang.org/t/substitution-of-products-of-symbolic-variables/88733 "2022-10-17T11:42:06Z")

</div>

I am trying to simplify a symbolic expression by replacing products of symbolic variables, eg. x\*y, with a single new variable, e.g. z, but I cannot succeed in doing it. Any suggestion? MWE: using Symbolics using Symbo…

---

## [Only 50% of Cores/Threads available through VS Code](https://discourse.julialang.org/t/only-50-of-cores-threads-available-through-vs-code/87990)

<div class="topic-metadata">

**Author:** [@TimKnab](https://discourse.julialang.org/u/TimKnab)\
**Replies:** 16\
**Last updated:** [October 17, 2022, 11:18am UTC](https://discourse.julialang.org/t/only-50-of-cores-threads-available-through-vs-code/87990 "2022-10-17T11:18:39Z")

</div>

I have a 6 Core MacBook Pro running Ventura (OS X 13) and when I launch Julia directly from the command line I have access to all 12 CPU threads for multithreading. When I launch Julia in VS Code, I can only get up to 6 …

---

## [How can I get the Token from the server](https://discourse.julialang.org/t/how-can-i-get-the-token-from-the-server/88840)

<div class="topic-metadata">

**Author:** [@hasanOryx](https://discourse.julialang.org/u/hasanOryx)\
**Replies:** 0\
**Last updated:** [October 17, 2022, 9:38am UTC](https://discourse.julialang.org/t/how-can-i-get-the-token-from-the-server/88840 "2022-10-17T09:38:49Z")

</div>

Working with Postman, using the configeration as shown at the screen shoot, I’m able to get the token from the server. How can I do this using Julia code?

---

## [How to add condition for compiling functions?](https://discourse.julialang.org/t/how-to-add-condition-for-compiling-functions/88839)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 9:30am UTC](https://discourse.julialang.org/t/how-to-add-condition-for-compiling-functions/88839 "2022-10-17T09:30:39Z")

</div>

Hey, I have a code with multiple functions and variables in order to simulate a physical system. I would like to be able to use the same code and just with a if(one input parameter) to choose which numerical method I u…

---

## [DiffEqSensitivity.jl: Issues with ReverseDiffAdjoint sensealg](https://discourse.julialang.org/t/diffeqsensitivity-jl-issues-with-reversediffadjoint-sensealg/88774)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 6\
**Last updated:** [October 17, 2022, 9:00am UTC](https://discourse.julialang.org/t/diffeqsensitivity-jl-issues-with-reversediffadjoint-sensealg/88774 "2022-10-17T09:00:50Z")

</div>

Hi all, I am starting out in DiffEqSensitivity, and I ran into the following issue. When computing gradients as per the following example I get StackOverFlow using ReverseDiff using OrdinaryDiffEq using DiffEqSensitivi…

---

## [Accessing attractor information using attractor mapper in DynamicalSystems.jl](https://discourse.julialang.org/t/accessing-attractor-information-using-attractor-mapper-in-dynamicalsystems-jl/88837)

<div class="topic-metadata">

**Author:** [@Lucalino](https://discourse.julialang.org/u/Lucalino)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 8:55am UTC](https://discourse.julialang.org/t/accessing-attractor-information-using-attractor-mapper-in-dynamicalsystems-jl/88837 "2022-10-17T08:55:54Z")

</div>

Hi, I am using the DynamicalSystems.jl function mapper = AttractorsViaRecurrences(ds, grid) and mapper(x0) to find a limit cycle of my dynamical system ds for some initial condition x0. Indeed, an attractor is found ( I…

---

## [Julia 1.8.2:could not download https://pkg.julialang.org/registries](https://discourse.julialang.org/t/julia-1-8-2-could-not-download-https-pkg-julialang-org-registries/88832)

<div class="topic-metadata">

**Author:** [@walterlee](https://discourse.julialang.org/u/walterlee)\
**Replies:** 3\
**Last updated:** [October 17, 2022, 8:52am UTC](https://discourse.julialang.org/t/julia-1-8-2-could-not-download-https-pkg-julialang-org-registries/88832 "2022-10-17T08:52:19Z")

</div>

Hi there, I am new to Julia and I need help below please. I am new user hence I can put 2 links in a post. Warning: could not download https://pkg.julialang.org/registries exception = Could not resolve host: pkg.julia…

---

## [Introductory book recommendations](https://discourse.julialang.org/t/introductory-book-recommendations/45066)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 5\
**Last updated:** [October 17, 2022, 8:11am UTC](https://discourse.julialang.org/t/introductory-book-recommendations/45066 "2022-10-17T08:11:04Z")

</div>

I’m looking for good textbooks about quantum computing, quantum informatics and quantum biology. Any PDF availabe online for free is acceptable. Do you have any recommendations? Preferrably, they should be at introducto…

---

## [Is it possible to preserve the fields and methods of a type when creating a subtype?](https://discourse.julialang.org/t/is-it-possible-to-preserve-the-fields-and-methods-of-a-type-when-creating-a-subtype/88719)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 4\
**Last updated:** [October 17, 2022, 7:50am UTC](https://discourse.julialang.org/t/is-it-possible-to-preserve-the-fields-and-methods-of-a-type-when-creating-a-subtype/88719 "2022-10-17T07:50:16Z")

</div>

Hi suppose I have a SubDataFrame A with columns A.Roll, A.Pitch, A.Yaw. Further suppose I create a new type in order to apply specific methods. struct Plane flight :: SubDataFrame end B = Plane(A) Is it possib…

---

## [Meta programming on fuction definning](https://discourse.julialang.org/t/meta-programming-on-fuction-definning/88826)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 7:02am UTC](https://discourse.julialang.org/t/meta-programming-on-fuction-definning/88826 "2022-10-17T07:02:38Z")

</div>

There is a function: function fun(x) a = x + 1 b = x + 2 return a + b end Is there a way I can do this? @custom\_macro function fun(x) a = x + 1 b = x + 2 return a + b end So the function fun …

---

## [Error in parameter estimation of ODEs](https://discourse.julialang.org/t/error-in-parameter-estimation-of-odes/88611)

<div class="topic-metadata">

**Author:** [@ak47](https://discourse.julialang.org/u/ak47)\
**Replies:** 7\
**Last updated:** [October 17, 2022, 6:06am UTC](https://discourse.julialang.org/t/error-in-parameter-estimation-of-odes/88611 "2022-10-17T06:06:55Z")

</div>

I have been trying out some simple parameter estimation problem for ODEs. In my code, I specify save\_idxs = 2 in calculating the loss, I get this error: MethodError: no method matching vec(::Float32 . I need your help. T…

---

## [HiGHS duals for MIPs](https://discourse.julialang.org/t/highs-duals-for-mips/88817)

<div class="topic-metadata">

**Author:** [@adow031](https://discourse.julialang.org/u/adow031)\
**Replies:** 2\
**Last updated:** [October 17, 2022, 5:15am UTC](https://discourse.julialang.org/t/highs-duals-for-mips/88817 "2022-10-17T05:15:25Z")

</div>

I’m testing out the HiGHS optimizer in JuMP, and have found that HiGHS returns duals (they all seem to be 0) for MIPs. All other optimizers that I’ve used return errors when attempting to find duals of MIPs: ERROR: Asse…

---

## [Research Software Engineer @ Princeton University](https://discourse.julialang.org/t/research-software-engineer-princeton-university/88819)

<div class="topic-metadata">

**Author:** [@JJ3563](https://discourse.julialang.org/u/JJ3563)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 4:53am UTC](https://discourse.julialang.org/t/research-software-engineer-princeton-university/88819 "2022-10-17T04:53:50Z")

</div>

The Initiative for Data-Driven Social Science (DDSS) at Princeton University is recruiting a Research Software Engineer (RSE) to join their growing team. If you have a strong background in scientific programming or high …

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

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