# Latest

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

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

**Page:** 810

---

## [Not easy to add utility packages to env](https://discourse.julialang.org/t/not-easy-to-add-utility-packages-to-env/93068)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 22\
**Last updated:** [January 18, 2023, 6:32am UTC](https://discourse.julialang.org/t/not-easy-to-add-utility-packages-to-env/93068 "2023-01-18T06:32:10Z")

</div>

Let’s say I’m trying to edit someone’s package. While debugging my code using the environment provided by the package’s Project.toml, I realize it would be useful to plot something. So I’d like to add Plots.jl. However, …

---

## [Postdoc position in Scientific Computing/HPC at University of Cologne](https://discourse.julialang.org/t/postdoc-position-in-scientific-computing-hpc-at-university-of-cologne/93128)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 4:40am UTC](https://discourse.julialang.org/t/postdoc-position-in-scientific-computing-hpc-at-university-of-cologne/93128 "2023-01-18T04:40:10Z")

</div>

The Center for Data and Simulation Science (CDS) is looking for a Postdoc (f/m/d) in the area of Scientific Computing/HPC in the group of Prof. Dr.-Ing. Gregor Gassner (Numerical Simulation | Division of Mathematics, Uni…

---

## [Raw file streaming read for SampledSignals](https://discourse.julialang.org/t/raw-file-streaming-read-for-sampledsignals/93125)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 3:57am UTC](https://discourse.julialang.org/t/raw-file-streaming-read-for-sampledsignals/93125 "2023-01-18T03:57:54Z")

</div>

Is there a package where it implements something like GitHub - JuliaAudio/LibSndFile.jl: Julia Interface to libsndfile but with raw file, something like stream = loadstreaming("myfile.raw";format=Complex{Float32},n\_chan…

---

## [How to format sequential data to be used in reccurence models when batches are needed?](https://discourse.julialang.org/t/how-to-format-sequential-data-to-be-used-in-reccurence-models-when-batches-are-needed/93060)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 6\
**Last updated:** [January 18, 2023, 2:23am UTC](https://discourse.julialang.org/t/how-to-format-sequential-data-to-be-used-in-reccurence-models-when-batches-are-needed/93060 "2023-01-18T02:23:40Z")

</div>

What is the best (recommended) way to store sequence data for recurrence models in Flux when it is aimed to be used in ‘batches’? At the moment I store the X data (features) as onehot hot encoded where the features span …

---

## [Understanding aspect ratio along-with xlim,ylim in Plot.jl](https://discourse.julialang.org/t/understanding-aspect-ratio-along-with-xlim-ylim-in-plot-jl/93120)

<div class="topic-metadata">

**Author:** [@sarthak](https://discourse.julialang.org/u/sarthak)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 2:16am UTC](https://discourse.julialang.org/t/understanding-aspect-ratio-along-with-xlim-ylim-in-plot-jl/93120 "2023-01-18T02:16:23Z")

</div>

g(x) = x^4 fig1 = plot(g, xlim=(-20,20),ylim=(-20,20),aspect\_ratio=:equal) fig2 = plot(g, -20,20)#aspect\_ratio=:equal fig3 = plot(fig1, fig2, layout = (1, 2), legend = false) Question: How to ensure equal aspect ratio…

---

## [Pkg: unable to connect to https://kr.pkg.julialang.org/registries (bad gateway) -- SOLVED](https://discourse.julialang.org/t/pkg-unable-to-connect-to-https-kr-pkg-julialang-org-registries-bad-gateway-solved/93066)

<div class="topic-metadata">

**Author:** [@paulbthub](https://discourse.julialang.org/u/paulbthub)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 12:35am UTC](https://discourse.julialang.org/t/pkg-unable-to-connect-to-https-kr-pkg-julialang-org-registries-bad-gateway-solved/93066 "2023-01-18T00:35:13Z")

</div>

When trying to update in Pkg, I’m seeing: Warning: could not download https://pkg.julialang.org/registries And I’ve also checked and found what I think is the probable cause, which is that https://kr.pkg.julialang.org/…

---

## [Force Revise.jl to Rerun Script](https://discourse.julialang.org/t/force-revise-jl-to-rerun-script/92969)

<div class="topic-metadata">

**Author:** [@astrobc1](https://discourse.julialang.org/u/astrobc1)\
**Replies:** 7\
**Last updated:** [January 17, 2023, 11:06pm UTC](https://discourse.julialang.org/t/force-revise-jl-to-rerun-script/92969 "2023-01-17T23:06:49Z")

</div>

Example: Contents of script named test.jl: println("Hello") I run the script with includet("test.jl") then change test.jl to be: println("Hello2") When running includet("test.jl"), the “Hello2” does not print. Is t…

---

## [Programmatically restart julia](https://discourse.julialang.org/t/programmatically-restart-julia/73806)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 10\
**Last updated:** [January 17, 2023, 10:50pm UTC](https://discourse.julialang.org/t/programmatically-restart-julia/73806 "2023-01-17T22:50:24Z")

</div>

I am creating a set of independent scripts for illustrating some concepts and I want to be sure that each of them starts “clean”. Performance is not a matter, how can I put something at the beginning of each script to f…

---

## [Intellisense/autocomplete in Julia Markdown code contexts (e.g., blocks) only](https://discourse.julialang.org/t/intellisense-autocomplete-in-julia-markdown-code-contexts-e-g-blocks-only/79557)

<div class="topic-metadata">

**Author:** [@Jason\_Mercer](https://discourse.julialang.org/u/Jason_Mercer)\
**Replies:** 6\
**Last updated:** [January 17, 2023, 10:20pm UTC](https://discourse.julialang.org/t/intellisense-autocomplete-in-julia-markdown-code-contexts-e-g-blocks-only/79557 "2023-01-17T22:20:42Z")

</div>

Hi, I was wondering if anyone else finds the quick suggestions (aka intellisense, autocomplete) overly aggressive for Julia Markdown files. I figure out how to disable the suggestions for all .jmd files using the settin…

---

## [How to clear variables and/or whole work space](https://discourse.julialang.org/t/how-to-clear-variables-and-or-whole-work-space/10149)

<div class="topic-metadata">

**Author:** [@Jelly](https://discourse.julialang.org/u/Jelly)\
**Replies:** 26\
**Last updated:** [January 17, 2023, 9:59pm UTC](https://discourse.julialang.org/t/how-to-clear-variables-and-or-whole-work-space/10149 "2023-01-17T21:59:19Z")

</div>

hello ,i’m a newcomer. i use Atom as my IDE for julia . How to clear the information in REPL and the variables that i do not need in the work space

---

## [Function subtypes](https://discourse.julialang.org/t/function-subtypes/92292)

<div class="topic-metadata">

**Author:** [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Replies:** 41\
**Last updated:** [January 17, 2023, 8:38pm UTC](https://discourse.julialang.org/t/function-subtypes/92292 "2023-01-17T20:38:08Z")

</div>

According to the somewhat dated discussion in this bug report, the only way to create a function whose supertype is a custom subtype of Function is to create a new singleton type, and then define methods on its sole inst…

---

## [Deep Reinforcement Learning](https://discourse.julialang.org/t/deep-reinforcement-learning/93104)

<div class="topic-metadata">

**Author:** [@DFKMB](https://discourse.julialang.org/u/DFKMB)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 6:50pm UTC](https://discourse.julialang.org/t/deep-reinforcement-learning/93104 "2023-01-17T18:50:11Z")

</div>

Are there any libraries for Deep Reinforcement Learning in Julia that have cover PPOs and DDPMs as they relate to finance? If so, I have a follow up question.

---

## [PGFPlotsX.jl boxplot](https://discourse.julialang.org/t/pgfplotsx-jl-boxplot/93047)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 8:24am UTC](https://discourse.julialang.org/t/pgfplotsx-jl-boxplot/93047 "2023-01-17T08:24:46Z")

</div>

Hi, I was wondering if there is a way to get overlay a line chart on top of a boxplot in PGFPlotsX.jl (something like this). Has anyone tried that before?

---

## [Imaginary unit in Julia Symbolics](https://discourse.julialang.org/t/imaginary-unit-in-julia-symbolics/93078)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 3:39pm UTC](https://discourse.julialang.org/t/imaginary-unit-in-julia-symbolics/93078 "2023-01-17T15:39:05Z")

</div>

Hi, I would like to use Symbolics.jl to make some symbolic algebra on matrices. I have got a problem to express this using Symbolics using Latexify using LinearAlgebra @variables ω A = exp(-1im\*ω) This is the out…

---

## [Double precompilation](https://discourse.julialang.org/t/double-precompilation/93100)

<div class="topic-metadata">

**Author:** [@bernardofpc](https://discourse.julialang.org/u/bernardofpc)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 3:13pm UTC](https://discourse.julialang.org/t/double-precompilation/93100 "2023-01-17T15:13:23Z")

</div>

I just downloaded a Project.toml for a project I’m working on another computer. I went through Pkg.instantiate(), Pkg.precompile() and then started using some packages. To my surprise, JuMP was precompiled again. Is t…

---

## [Outputing/Inputing vectors in DataFrames](https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099)

<div class="topic-metadata">

**Author:** [@mb96](https://discourse.julialang.org/u/mb96)\
**Replies:** 2\
**Last updated:** [January 17, 2023, 3:03pm UTC](https://discourse.julialang.org/t/outputing-inputing-vectors-in-dataframes/93099 "2023-01-17T15:03:57Z")

</div>

Hi, After some calculations I define a DataFrame to store my results and output them as a CSV file. The cutoffs columns are vectors. After outputting them as a CSV file I would like to read the file again an access …

---

## [Lapply with different outputs in Julia](https://discourse.julialang.org/t/lapply-with-different-outputs-in-julia/93029)

<div class="topic-metadata">

**Author:** [@ditfurth](https://discourse.julialang.org/u/ditfurth)\
**Replies:** 5\
**Last updated:** [January 17, 2023, 3:00pm UTC](https://discourse.julialang.org/t/lapply-with-different-outputs-in-julia/93029 "2023-01-17T15:00:27Z")

</div>

Hi all, I am trying to get mapslices to take a function and run on a vector, like I used to do with lists in R and lapply. However, there are 2 difficulties: There are other arguments. The output of each iteration ar…

---

## [Splatting specific dimension of multidimensional array?](https://discourse.julialang.org/t/splatting-specific-dimension-of-multidimensional-array/93089)

<div class="topic-metadata">

**Author:** [@davidschlegel](https://discourse.julialang.org/u/davidschlegel)\
**Replies:** 2\
**Last updated:** [January 17, 2023, 2:49pm UTC](https://discourse.julialang.org/t/splatting-specific-dimension-of-multidimensional-array/93089 "2023-01-17T14:49:14Z")

</div>

Suppose, I have a multidimensional array. Can I somehow splat over a specific dimension? An example scenario would be the following: arr = randn(2,2,3) kron(arr...) # I would like to splat over the last dimension How…

---

## [Hiring Quantum Information Science Julia programmers (cross-post)](https://discourse.julialang.org/t/hiring-quantum-information-science-julia-programmers-cross-post/93098)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 2:28pm UTC](https://discourse.julialang.org/t/hiring-quantum-information-science-julia-programmers-cross-post/93098 "2023-01-17T14:28:48Z")

</div>

A cross-post for the Julia Quantum hackers that do not peruse the job board of this forum. We (The NSF Center for Quantum Networks and UMass Amherst) are hiring people interested in high-fidelity simulations of quantum …

---

## [Makie.jl Export with transparent background](https://discourse.julialang.org/t/makie-jl-export-with-transparent-background/93087)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 1:52pm UTC](https://discourse.julialang.org/t/makie-jl-export-with-transparent-background/93087 "2023-01-17T13:52:19Z")

</div>

I have a high resolution dataset, about 1000x1000 points for which I want to export the surface plot, like in fig = Figure(resolution = (1000, 1300), figure\_padding = (0, 26, 2, 0)) axis = Axis3(fig\[1, 1\], azimuth = π…

---

## [Mid points of interval elements in interval vector](https://discourse.julialang.org/t/mid-points-of-interval-elements-in-interval-vector/93090)

<div class="topic-metadata">

**Author:** [@Kanishk](https://discourse.julialang.org/u/Kanishk)\
**Replies:** 4\
**Last updated:** [January 17, 2023, 1:38pm UTC](https://discourse.julialang.org/t/mid-points-of-interval-elements-in-interval-vector/93090 "2023-01-17T13:38:24Z")

</div>

Hello, I have an interval vector containing 10 interval elements (\[0…50\]). Now I want to get a vector containing the midpoints of all the interval elements. How to do it? Thank you

---

## [Type instability issue with parameterizable struct and tuples](https://discourse.julialang.org/t/type-instability-issue-with-parameterizable-struct-and-tuples/93088)

<div class="topic-metadata">

**Author:** [@zsoerenm](https://discourse.julialang.org/u/zsoerenm)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 1:01pm UTC](https://discourse.julialang.org/t/type-instability-issue-with-parameterizable-struct-and-tuples/93088 "2023-01-17T13:01:08Z")

</div>

Here is a MWE: struct Foo{T} buffer::Vector{Complex{T}} end function Foo(T, num\_samples) Foo(Vector{Complex{T}}(undef, num\_samples)) end function foos(T, states, num\_samples) map(y -\> map(x -\> Foo(T, num\_s…

---

## [Unable to use InteractiveDynamics and Agents as Part of my Package](https://discourse.julialang.org/t/unable-to-use-interactivedynamics-and-agents-as-part-of-my-package/78265)

<div class="topic-metadata">

**Author:** [@codekomali](https://discourse.julialang.org/u/codekomali)\
**Replies:** 18\
**Last updated:** [January 17, 2023, 12:56pm UTC](https://discourse.julialang.org/t/unable-to-use-interactivedynamics-and-agents-as-part-of-my-package/78265 "2023-01-17T12:56:55Z")

</div>

I am trying to use the latest InteractiveDynamics v0.20 and Agents v5.0 as part of my project. Since yesterday, I am getting the following error, whenever I try to precompile my package. ERROR: LoadError: UndefVarError:…

---

## [Add agent to random position in 3D GridSpace](https://discourse.julialang.org/t/add-agent-to-random-position-in-3d-gridspace/92847)

<div class="topic-metadata">

**Author:** [@sea\_slug](https://discourse.julialang.org/u/sea_slug)\
**Replies:** 4\
**Last updated:** [January 17, 2023, 12:47pm UTC](https://discourse.julialang.org/t/add-agent-to-random-position-in-3d-gridspace/92847 "2023-01-17T12:47:24Z")

</div>

I am trying to create a 3D ABM using agents.jl. I am stuck with a very simple issue, I cannot add agents to the GridSpace. I just want to give each agent a random starting point in 3D space. I have cannibalised the wolf…

---

## [Package boost\_jll: how to use?](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 4\
**Last updated:** [January 17, 2023, 11:31am UTC](https://discourse.julialang.org/t/package-boost-jll-how-to-use/92998 "2023-01-17T11:31:15Z")

</div>

Hi, There is a package called boost\_jll.jl, how can I use it? Is there an example showing how I can use a boost c++ function in another package? Thank you

---

## [Recompilation depends on package include order?](https://discourse.julialang.org/t/recompilation-depends-on-package-include-order/93084)

<div class="topic-metadata">

**Author:** [@msravi](https://discourse.julialang.org/u/msravi)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 11:25am UTC](https://discourse.julialang.org/t/recompilation-depends-on-package-include-order/93084 "2023-01-17T11:25:10Z")

</div>

Hi, I have a situation where I’m seeing different load times of packages depending on the order I include them. If I first include PyCall and then include Dates, the Dates package recompiles. However, if I do it the oth…

---

## [How to broadcast a scalar multiplication through a Mesh?](https://discourse.julialang.org/t/how-to-broadcast-a-scalar-multiplication-through-a-mesh/93038)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 2\
**Last updated:** [January 17, 2023, 1:07am UTC](https://discourse.julialang.org/t/how-to-broadcast-a-scalar-multiplication-through-a-mesh/93038 "2023-01-17T01:07:18Z")

</div>

I’m trying to port a JavaScript 3D slicer example to Julia. The example loads a 3D model of a bunny (from https://enkimute.github.io/ganja.js/examples/bunny.obj having 5002 triangle faces) and then calculates horizontal …

---

## [How can I limit the number of CPU cores Julia has access to?](https://discourse.julialang.org/t/how-can-i-limit-the-number-of-cpu-cores-julia-has-access-to/93082)

<div class="topic-metadata">

**Author:** [@Ashley](https://discourse.julialang.org/u/Ashley)\
**Replies:** 1\
**Last updated:** [January 17, 2023, 10:57am UTC](https://discourse.julialang.org/t/how-can-i-limit-the-number-of-cpu-cores-julia-has-access-to/93082 "2023-01-17T10:57:01Z")

</div>

I am using a PBS cluster system where I request a number of CPU cores for a job. However, my Julia program seems to use more than what I allocate, causing the job to be killed by the manager! I have tried setting JULIA\_…

---

## [Symbolics with Control Flow](https://discourse.julialang.org/t/symbolics-with-control-flow/93073)

<div class="topic-metadata">

**Author:** [@Daniel\_Lewis](https://discourse.julialang.org/u/Daniel_Lewis)\
**Replies:** 2\
**Last updated:** [January 17, 2023, 9:59am UTC](https://discourse.julialang.org/t/symbolics-with-control-flow/93073 "2023-01-17T09:59:04Z")

</div>

hello, I’m trying to create a function with if condition using a symbolic var: using Symbolics @variables t params = @parameters F function f(t) if 0≤t\<5 return 1 end if 5≤t\<10 return -1 end …

---

## [Help with LLVM error "Bad $ operand number in inline asm string"](https://discourse.julialang.org/t/help-with-llvm-error-bad-operand-number-in-inline-asm-string/93080)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [January 17, 2023, 9:33am UTC](https://discourse.julialang.org/t/help-with-llvm-error-bad-operand-number-in-inline-asm-string/93080 "2023-01-17T09:33:19Z")

</div>

At the end of a long code that I’m running on a cluster, I sometimes find the error LLVM ERROR: Bad $ operand number in inline asm string: 'P$��' \[4047386\] signal (6.-6): Aborted in expression starting at none:0 gsigna…

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

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