# Latest

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

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

**Page:** 429

---

## [Julia in VSCode takes ages to first execution](https://discourse.julialang.org/t/julia-in-vscode-takes-ages-to-first-execution/113299)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 3\
**Last updated:** [April 22, 2024, 7:10am UTC](https://discourse.julialang.org/t/julia-in-vscode-takes-ages-to-first-execution/113299 "2024-04-22T07:10:42Z")

</div>

Hi there, I don’t quite know if that’s a Julia issue or a general VS Code issue. So let me explain the behaviour: I open VS Code and therein a Julia script. I do Shift + Enter to execute a line and then I have to wait …

---

## [How to custom unicode completions?](https://discourse.julialang.org/t/how-to-custom-unicode-completions/113304)

<div class="topic-metadata">

**Author:** [@NeroBlackstone](https://discourse.julialang.org/u/NeroBlackstone)\
**Replies:** 3\
**Last updated:** [April 22, 2024, 3:58am UTC](https://discourse.julialang.org/t/how-to-custom-unicode-completions/113304 "2024-04-22T03:58:25Z")

</div>

I want to add 𝄫(double flat) and 𝄪(double sharp) to REPL unicode completion, but I don’t know how to do. I found this in github, but it seems that the Base module does not export the REPLCompletions submodule, and the R…

---

## [Cannot precompile ReinforcementLearning](https://discourse.julialang.org/t/cannot-precompile-reinforcementlearning/113217)

<div class="topic-metadata">

**Author:** [@cjs](https://discourse.julialang.org/u/cjs)\
**Replies:** 6\
**Last updated:** [April 22, 2024, 3:06am UTC](https://discourse.julialang.org/t/cannot-precompile-reinforcementlearning/113217 "2024-04-22T03:06:30Z")

</div>

I am trying to run a project that uses ReinforcementLearning but cannot get it to precompile. The error message I get is: ERROR: The following 1 direct dependency failed to precompile: ReinforcementLearning \[158674fc-8…

---

## [Would it be possible to use multiple CPU cores in Solving Nonlinear Equations?](https://discourse.julialang.org/t/would-it-be-possible-to-use-multiple-cpu-cores-in-solving-nonlinear-equations/113143)

<div class="topic-metadata">

**Author:** [@LINGXIAO\_QIN](https://discourse.julialang.org/u/LINGXIAO_QIN)\
**Replies:** 6\
**Last updated:** [April 22, 2024, 12:53am UTC](https://discourse.julialang.org/t/would-it-be-possible-to-use-multiple-cpu-cores-in-solving-nonlinear-equations/113143 "2024-04-22T00:53:07Z")

</div>

I am trying to solve a system of nonlinear equations (~25 variables). Currently, I am using NonlinearSolve.jl, it works but I want to expedite the computation. Except for some strategies introduced here such as using Sta…

---

## [Potential error in the performance tips page](https://discourse.julialang.org/t/potential-error-in-the-performance-tips-page/113286)

<div class="topic-metadata">

**Author:** [@lee-ranaweer](https://discourse.julialang.org/u/lee-ranaweer)\
**Replies:** 2\
**Last updated:** [April 21, 2024, 10:41pm UTC](https://discourse.julialang.org/t/potential-error-in-the-performance-tips-page/113286 "2024-04-21T22:41:10Z")

</div>

Hello, I am new to Julia. I was working through the examples on the performance tips page when I ran into this code in the types with values-as-parameters section. The example code is included below as well. function ar…

---

## [Energy Time Series GRU with Historic and Forecasted Variables](https://discourse.julialang.org/t/energy-time-series-gru-with-historic-and-forecasted-variables/112986)

<div class="topic-metadata">

**Author:** [@dmoored4](https://discourse.julialang.org/u/dmoored4)\
**Replies:** 1\
**Last updated:** [April 21, 2024, 5:50pm UTC](https://discourse.julialang.org/t/energy-time-series-gru-with-historic-and-forecasted-variables/112986 "2024-04-21T17:50:44Z")

</div>

Hello, all! I need conceptual assistance with how I should be using a GRU which uses historic data for variables 1:8 and forecasted variables for variables 1:4 to forecast the values for variables 5:8. I have time serie…

---

## [\`vcat(\[\], \[1 2\])\` # OK. \`vcat(\[\], \[1 "2"\])\` # Not OK](https://discourse.julialang.org/t/vcat-1-2-ok-vcat-1-2-not-ok/112991)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 18\
**Last updated:** [April 21, 2024, 5:22pm UTC](https://discourse.julialang.org/t/vcat-1-2-ok-vcat-1-2-not-ok/112991 "2024-04-21T17:22:22Z")

</div>

vcat(\[\], \[1 2\]) # OK vcat(\[\], \[1 "2"\]) # Not OK: ERROR: ArgumentError: number of columns of each array must match (got (1, 2)) \[\[\];\[1 2\]\] # OK \[\[\];\[1 "2"\]\] # Not OK: ERROR: ArgumentError: number of columns of each array…

---

## [Adjoint/transpose wrapper question](https://discourse.julialang.org/t/adjoint-transpose-wrapper-question/113128)

<div class="topic-metadata">

**Author:** [@jamesr137](https://discourse.julialang.org/u/jamesr137)\
**Replies:** 18\
**Last updated:** [April 21, 2024, 4:42pm UTC](https://discourse.julialang.org/t/adjoint-transpose-wrapper-question/113128 "2024-04-21T16:42:15Z")

</div>

Hi everyone. This is my first time posting on this site. Let me start off by saying that I am not a professional software developer (at least, not yet). I am more or less just a tinkerer or hobbyist atm, both in terms of…

---

## [Is it possible to tell which processes are currently free?](https://discourse.julialang.org/t/is-it-possible-to-tell-which-processes-are-currently-free/113305)

<div class="topic-metadata">

**Author:** [@mikel8](https://discourse.julialang.org/u/mikel8)\
**Replies:** 0\
**Last updated:** [April 21, 2024, 3:57pm UTC](https://discourse.julialang.org/t/is-it-possible-to-tell-which-processes-are-currently-free/113305 "2024-04-21T15:57:17Z")

</div>

Hi all, I’m currently writing a distributed program with several workers. At one point in the code, I am trying to have all free workers split up a loop and execute a function for different input data. While I can make …

---

## [SCIP.jl: how to add a new parameter?](https://discourse.julialang.org/t/scip-jl-how-to-add-a-new-parameter/113246)

<div class="topic-metadata">

**Author:** [@Maxime](https://discourse.julialang.org/u/Maxime)\
**Replies:** 2\
**Last updated:** [April 21, 2024, 1:16pm UTC](https://discourse.julialang.org/t/scip-jl-how-to-add-a-new-parameter/113246 "2024-04-21T13:16:48Z")

</div>

Hello, I am trying to use SCIP.jl with a custom branch of SCIP (exact-rational branch). I managed to compile this branch and to pass the install dir to SCIP.jl in my ENV\[“SCIPOPTDIR”\]. As indicated on the Readme of the …

---

## [Apparently \`getindex\` of a vector accepts more than one index?!](https://discourse.julialang.org/t/apparently-getindex-of-a-vector-accepts-more-than-one-index/113302)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [April 21, 2024, 12:06pm UTC](https://discourse.julialang.org/t/apparently-getindex-of-a-vector-accepts-more-than-one-index/113302 "2024-04-21T12:06:59Z")

</div>

Why doesn’t this throw, given that the array \[10, 20\] is one-dimensional? I would expect a MethodError. julia\> \[10, 20\]\[1, 1, 1\] 10

---

## [Is there an alternative to the agents\_first keyword?](https://discourse.julialang.org/t/is-there-an-alternative-to-the-agents-first-keyword/113272)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 2\
**Last updated:** [April 21, 2024, 8:31am UTC](https://discourse.julialang.org/t/is-there-an-alternative-to-the-agents-first-keyword/113272 "2024-04-21T08:31:35Z")

</div>

I’m upgrading my code to Agents.jl 6.x and I get an error stating that there is an unsupported keyword “agents\_first” for the run! function. I guess that the default is still the same (agents first) but I need the model\_…

---

## [How to download the html file of through a browser like Chrome](https://discourse.julialang.org/t/how-to-download-the-html-file-of-through-a-browser-like-chrome/113276)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 3\
**Last updated:** [April 21, 2024, 8:31am UTC](https://discourse.julialang.org/t/how-to-download-the-html-file-of-through-a-browser-like-chrome/113276 "2024-04-21T08:31:35Z")

</div>

How to download the html file of a website from juli, e.g.: https://page.com through a browser like chrom, if the website blocks access to robots. Some package? Paul

---

## [Reading/writing to stdio of running process/command does not work - reading blocks or is empty](https://discourse.julialang.org/t/reading-writing-to-stdio-of-running-process-command-does-not-work-reading-blocks-or-is-empty/113262)

<div class="topic-metadata">

**Author:** [@efficiencynuts](https://discourse.julialang.org/u/efficiencynuts)\
**Replies:** 6\
**Last updated:** [April 21, 2024, 7:42am UTC](https://discourse.julialang.org/t/reading-writing-to-stdio-of-running-process-command-does-not-work-reading-blocks-or-is-empty/113262 "2024-04-21T07:42:07Z")

</div>

Opening a prolog shell/repl process and sending strings to stdin and reading output doesn’t work. I don’t know what I am doing wrong but I tried a few methods and none of them seem to succeed. I just wanna run a long run…

---

## [Unusual non-deterministic benchmark results](https://discourse.julialang.org/t/unusual-non-deterministic-benchmark-results/113273)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 8\
**Last updated:** [April 21, 2024, 3:15am UTC](https://discourse.julialang.org/t/unusual-non-deterministic-benchmark-results/113273 "2024-04-21T03:15:15Z")

</div>

I’m getting some quite unexpected non-deterministic benchmarking results on a toy problem. abstract type Shape end area(::Shape) = 0.0 struct Square \<: Shape side::Float64 end area(s::Square) = s.side \* s.side …

---

## [Parallel resampling columnwise](https://discourse.julialang.org/t/parallel-resampling-columnwise/113203)

<div class="topic-metadata">

**Author:** [@jafagervik](https://discourse.julialang.org/u/jafagervik)\
**Replies:** 2\
**Last updated:** [April 20, 2024, 10:48pm UTC](https://discourse.julialang.org/t/parallel-resampling-columnwise/113203 "2024-04-20T22:48:43Z")

</div>

Hi, I have a large matrix I want to resample. Typical size is about 20\_000 \* 500. The code I have for now looks like this: using DSP: resample function resample\_parallel(signal::Matrix{Float32}, rate::Real) result …

---

## [How to test custom \`show\_data\` for \`DataInspector\` in \`Makie\`](https://discourse.julialang.org/t/how-to-test-custom-show-data-for-datainspector-in-makie/113281)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [April 20, 2024, 9:34pm UTC](https://discourse.julialang.org/t/how-to-test-custom-show-data-for-datainspector-in-makie/113281 "2024-04-20T21:34:26Z")

</div>

Hello all ! This page provides information on how to write your own sho\_data for DataInspector in Makie. However, there is no information on how to test such interactive features properly. Given that one should hover o…

---

## [Thread-safe dict?](https://discourse.julialang.org/t/thread-safe-dict/64024)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 2\
**Last updated:** [April 20, 2024, 9:24pm UTC](https://discourse.julialang.org/t/thread-safe-dict/64024 "2024-04-20T21:24:23Z")

</div>

Is there any dictionary implementation that can be updated safely within threaded code? References:

---

## [What kind of packages can be accepted by Julia community?](https://discourse.julialang.org/t/what-kind-of-packages-can-be-accepted-by-julia-community/113275)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [April 20, 2024, 5:52pm UTC](https://discourse.julialang.org/t/what-kind-of-packages-can-be-accepted-by-julia-community/113275 "2024-04-20T17:52:53Z")

</div>

What are the necessary conditions for a Julia package to be accepted and registered as a public package in the Julia community? In other words, what is the level of threshold for a Julia package to be successfully regist…

---

## [Run tests on src file change: Best practice](https://discourse.julialang.org/t/run-tests-on-src-file-change-best-practice/19173)

<div class="topic-metadata">

**Author:** [@taqtiqa-mark](https://discourse.julialang.org/u/taqtiqa-mark)\
**Replies:** 9\
**Last updated:** [April 20, 2024, 3:13pm UTC](https://discourse.julialang.org/t/run-tests-on-src-file-change-best-practice/19173 "2024-04-20T15:13:16Z")

</div>

What is the best practice to have Julia run unit-tests automatically when the src code changes? A. Using 3rd party packages. B. Using only Base or Stdlib packages.

---

## [Replace data from specific column in dataframe](https://discourse.julialang.org/t/replace-data-from-specific-column-in-dataframe/113248)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 5\
**Last updated:** [April 20, 2024, 1:52pm UTC](https://discourse.julialang.org/t/replace-data-from-specific-column-in-dataframe/113248 "2024-04-20T13:52:29Z")

</div>

I have two dataframes as shown below and need to replace one column(df.M02) with column(df2.M02) for year 2024 only. I know this can be achieved in multiple ways but I am just trying to find better way to do this. 2×13 …

---

## [What don't you like about Julia for "serious work"?](https://discourse.julialang.org/t/what-dont-you-like-about-julia-for-serious-work/54591)

<div class="topic-metadata">

**Author:** [@adamslc](https://discourse.julialang.org/u/adamslc)\
**Replies:** 176\
**Last updated:** [April 20, 2024, 12:45pm UTC](https://discourse.julialang.org/t/what-dont-you-like-about-julia-for-serious-work/54591 "2024-04-20T12:45:30Z")

</div>

One of my advisors is considering transitioning towards Julia from a traditional HPC background using C++ and Python. After a couple days playing around, he seems quite impressed by the flexibility of Julia’s type system…

---

## [Id error on creating an agent](https://discourse.julialang.org/t/id-error-on-creating-an-agent/113270)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 12:24pm UTC](https://discourse.julialang.org/t/id-error-on-creating-an-agent/113270 "2024-04-20T12:24:31Z")

</div>

I am in the process of updating my code for the Agents.jl 6.x package and I’m running into some trouble. I have the following Agents structures: @agent struct Actor(NoSpaceAgent) types::Set{Symbol} = Set{Symbol}() …

---

## [One dimensional autoencoder as a way to refine (or evaluate) cluster analysis](https://discourse.julialang.org/t/one-dimensional-autoencoder-as-a-way-to-refine-or-evaluate-cluster-analysis/112875)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 11:54am UTC](https://discourse.julialang.org/t/one-dimensional-autoencoder-as-a-way-to-refine-or-evaluate-cluster-analysis/112875 "2024-04-20T11:54:06Z")

</div>

Is it correct (and do you have references I can use in order to "sit on the giant’s shoulders…) to use 1-D autoencoders output to analyse the heterogeneity of my data, a bit like the cluster analysis but clusters maps th…

---

## [Linear Quadratic Integrator](https://discourse.julialang.org/t/linear-quadratic-integrator/113245)

<div class="topic-metadata">

**Author:** [@iabraham](https://discourse.julialang.org/u/iabraham)\
**Replies:** 3\
**Last updated:** [April 20, 2024, 8:52am UTC](https://discourse.julialang.org/t/linear-quadratic-integrator/113245 "2024-04-20T08:52:14Z")

</div>

The ControlSystems package seems to provide a lqr function for the LQR problem. I was wondering whether there was any plans to provide the lqi function for the Linear Quadratic Integrator problem. - e.g. Scilab or MATLAB …

---

## [\`isdefined\` documentation](https://discourse.julialang.org/t/isdefined-documentation/113067)

<div class="topic-metadata">

**Author:** [@Marco\_Antoniotti](https://discourse.julialang.org/u/Marco_Antoniotti)\
**Replies:** 9\
**Last updated:** [April 20, 2024, 7:49am UTC](https://discourse.julialang.org/t/isdefined-documentation/113067 "2024-04-20T07:49:08Z")

</div>

Hi I am very confused about the documentation of the isdefined function. What exactly is the index mentioned in the documentation? Or the symbol (I assume a field in a struct)? The example with a = 1//2 is not very u…

---

## [\[ANN\] FredMDQD](https://discourse.julialang.org/t/ann-fredmdqd/113265)

<div class="topic-metadata">

**Author:** [@enweg](https://discourse.julialang.org/u/enweg)\
**Replies:** 0\
**Last updated:** [April 20, 2024, 7:31am UTC](https://discourse.julialang.org/t/ann-fredmdqd/113265 "2024-04-20T07:31:17Z")

</div>

Happy to announce that FredMDQD is officially released. FredMDQD makes working with Fred MD and Fred QD datasets easy. Fred MD and Fred QD are popular pre-compiled datasets often used in macroeconometrics. Let me know i…

---

## [How do I read .webp images with Julia?](https://discourse.julialang.org/t/how-do-i-read-webp-images-with-julia/53597)

<div class="topic-metadata">

**Author:** [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Replies:** 9\
**Last updated:** [April 10, 2024, 6:25pm UTC](https://discourse.julialang.org/t/how-do-i-read-webp-images-with-julia/53597 "2024-04-10T18:25:45Z")

</div>

Title and demo says it all. julia\> using Images julia\> baseurl = "https://www.gstatic.com/webp/gallery3/2\_webp\_ll" "https://www.gstatic.com/webp/gallery3/2\_webp\_ll" julia\> img = download(baseurl \* ".png") |\> load 395×…

---

## [Copilot mess](https://discourse.julialang.org/t/copilot-mess/113216)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [April 20, 2024, 6:12am UTC](https://discourse.julialang.org/t/copilot-mess/113216 "2024-04-20T06:12:41Z")

</div>

Copilot screws up the code when I ask for the docs of the function. It puts in that extraneous “function implementation goes here” when there already is a body of the function defined. Any idea how to fix that?

---

## [Issues in running tests while exporting struct](https://discourse.julialang.org/t/issues-in-running-tests-while-exporting-struct/113253)

<div class="topic-metadata">

**Author:** [@Spinachboul](https://discourse.julialang.org/u/Spinachboul)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 6:07am UTC](https://discourse.julialang.org/t/issues-in-running-tests-while-exporting-struct/113253 "2024-04-20T06:07:52Z")

</div>

Hi! I am working on a package SGP where I am trying to export the in-struct functions but still getting the error: sgp = SGP() # Create an instance of the SGP clas ERROR: UndefVarError: SGP not defined Stacktrace: \[…

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

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