# Latest

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

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

**Page:** 573

---

## [Update of dev packages seems not persisted](https://discourse.julialang.org/t/update-of-dev-packages-seems-not-persisted/105242)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 3:21pm UTC](https://discourse.julialang.org/t/update-of-dev-packages-seems-not-persisted/105242 "2023-10-20T15:21:46Z")

</div>

Say I have dev package B that uses dev package A. In the REPL: julia\> using B It complains that package A is missing dependencies. So, I did: julia\> cd("A") pkg\> activate . pkg\> add someDep pkg\> precompile julia\> cd…

---

## [Empty range has first element, bug or feature?](https://discourse.julialang.org/t/empty-range-has-first-element-bug-or-feature/105236)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 2:57pm UTC](https://discourse.julialang.org/t/empty-range-has-first-element-bug-or-feature/105236 "2023-10-20T14:57:43Z")

</div>

I found the following behavoir, which is IMO a bug, but not sure: julia\> isempty(1:0) true julia\> first(1:0) 1 I would have expected an error.

---

## [Methods for maintaining backwards compatibility](https://discourse.julialang.org/t/methods-for-maintaining-backwards-compatibility/105227)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 2:06pm UTC](https://discourse.julialang.org/t/methods-for-maintaining-backwards-compatibility/105227 "2023-10-20T14:06:53Z")

</div>

I’ve just improved some of the code in a package of mine, and found (from my unit testing) that it throws an error in v1.6 of Julia. I’d like to maintain compatibility with Julia 1.6 since this is the most recent LTS rel…

---

## [How to handle conflicting functions between 2 packages](https://discourse.julialang.org/t/how-to-handle-conflicting-functions-between-2-packages/105219)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 4\
**Last updated:** [October 20, 2023, 1:32pm UTC](https://discourse.julialang.org/t/how-to-handle-conflicting-functions-between-2-packages/105219 "2023-10-20T13:32:24Z")

</div>

The issue is popping very often with DynamicalSystems.ji package now, here’s a sample of using … julia\> IntervalBox(-2..2, -2..2) WARNING: both ChaosTools and GLMakie export ".."; uses of it in module Main must be qual…

---

## [Polynomial overfitting and y3- Help](https://discourse.julialang.org/t/polynomial-overfitting-and-y3-help/105239)

<div class="topic-metadata">

**Author:** [@anafranchi](https://discourse.julialang.org/u/anafranchi)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 1:29pm UTC](https://discourse.julialang.org/t/polynomial-overfitting-and-y3-help/105239 "2023-10-20T13:29:31Z")

</div>

Hi guys, I’m learning Julia. I would like to ask you a question. How do I insert y3 into the graph? and then why order 8 comes out with so much overfitting. A more compliant line should emerge as the result of the photo…

---

## [LoadError:SystemError:opening file XXX: permission denied](https://discourse.julialang.org/t/loaderroropening-file-xxx-permission-denied/105150)

<div class="topic-metadata">

**Author:** [@yuxia](https://discourse.julialang.org/u/yuxia)\
**Replies:** 3\
**Last updated:** [October 20, 2023, 12:51pm UTC](https://discourse.julialang.org/t/loaderroropening-file-xxx-permission-denied/105150 "2023-10-20T12:51:11Z")

</div>

The command I type in: julia xxx.jl 1 100 1 400 output.txt & xxx is the filename. Error: LoadError:SystemError:opening file XXX: permission denied OS:Ubuntu julia version:1.9.3 This my first time running julia…

---

## [How to declare a global variable without initializing it?](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 5\
**Last updated:** [October 20, 2023, 12:06pm UTC](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225 "2023-10-20T12:06:03Z")

</div>

Say I declare the following outside all functions, VSCode complains that exportfile is missing reference, on that line and on all lines referencing the symbol. global exportfile::IOStream But if I initialize it there w…

---

## [Help with numerically unstable algorithm](https://discourse.julialang.org/t/help-with-numerically-unstable-algorithm/104911)

<div class="topic-metadata">

**Author:** [@enweg](https://discourse.julialang.org/u/enweg)\
**Replies:** 13\
**Last updated:** [October 20, 2023, 12:12pm UTC](https://discourse.julialang.org/t/help-with-numerically-unstable-algorithm/104911 "2023-10-20T12:12:44Z")

</div>

Hi, I have this small algorithm that is supposed to create a matrix based on random eigenvalues and eigenvectors. Since the last few rows of the matrix need to satisfy some criteria, I end up with essentially the follow…

---

## [\`InexactError\` in my Plots.jl related script](https://discourse.julialang.org/t/inexacterror-in-my-plots-jl-related-script/105170)

<div class="topic-metadata">

**Author:** [@Alex\_Beck](https://discourse.julialang.org/u/Alex_Beck)\
**Replies:** 11\
**Last updated:** [October 20, 2023, 11:28am UTC](https://discourse.julialang.org/t/inexacterror-in-my-plots-jl-related-script/105170 "2023-10-20T11:28:17Z")

</div>

Hello again, thanks for your help, I’ve made what you told me to, but now I have this: ERROR: LoadError: InexactError: Int64(998.8002) Stacktrace: \[1\] Int64 @ ./float.jl:900 \[inlined\] \[2\] convert @ ./number.jl:7…

---

## [Would it make sense to roll back module definitions which error half-way?](https://discourse.julialang.org/t/would-it-make-sense-to-roll-back-module-definitions-which-error-half-way/105228)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 11:25am UTC](https://discourse.julialang.org/t/would-it-make-sense-to-roll-back-module-definitions-which-error-half-way/105228 "2023-10-20T11:25:44Z")

</div>

Consider this: julia\> module M const a = 1 error("e") const b = 2 end ERROR: e Stacktrace: \[1\] error(s::String) @ Base ./error.jl:35 \[2\] top-level scope @ REPL\[1\]:3 julia\> M.a …

---

## [Regarding missing references in VSCode](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 11:09am UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197 "2023-10-20T11:09:37Z")

</div>

I found the latest extension working well with symbols in packages and modules. But it appears it doesn’t work with includes. Symbols are marked missing both in included and including sides. Not sure if it is what it …

---

## [What libraries are available to work with streams?](https://discourse.julialang.org/t/what-libraries-are-available-to-work-with-streams/80043)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 10:13am UTC](https://discourse.julialang.org/t/what-libraries-are-available-to-work-with-streams/80043 "2023-10-20T10:13:22Z")

</div>

It would be interesting to collect the possible tools available to work with streams of data. From my knowledge I can recall the following libraries, but I am sure I am missing something. BufferedStream.jl BufferedFil…

---

## [PiNN model not working with an LSTM layer](https://discourse.julialang.org/t/pinn-model-not-working-with-an-lstm-layer/105222)

<div class="topic-metadata">

**Author:** [@Maria\_Adelaide\_Loffa](https://discourse.julialang.org/u/Maria_Adelaide_Loffa)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 8:42am UTC](https://discourse.julialang.org/t/pinn-model-not-working-with-an-lstm-layer/105222 "2023-10-20T08:42:40Z")

</div>

Hi everyone, It hase been a while that I have an issue with a PINN model. When using a chain of dense layers, the model works fine. However, when using a chain of DENSE and LSTM layers, there seems to be something wrong…

---

## [Batched CUDA FFT Plans](https://discourse.julialang.org/t/batched-cuda-fft-plans/105187)

<div class="topic-metadata">

**Author:** [@MaximilianGelbrecht](https://discourse.julialang.org/u/MaximilianGelbrecht)\
**Replies:** 2\
**Last updated:** [October 20, 2023, 6:50am UTC](https://discourse.julialang.org/t/batched-cuda-fft-plans/105187 "2023-10-20T06:50:21Z")

</div>

CUDA.jl PR1903 added support for FFTs along more directions with CUDA.jl v5. I am a bit confused how this works in practice, as I can’t find it documented. The PR states This is achieved by allowing fft-plans to have f…

---

## [Declaring large number of variables in JuMP](https://discourse.julialang.org/t/declaring-large-number-of-variables-in-jump/105214)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 5:41am UTC](https://discourse.julialang.org/t/declaring-large-number-of-variables-in-jump/105214 "2023-10-20T05:41:48Z")

</div>

Hi people, Is it expected for this code to utilize such a significant amount of memory, given the following Julia code that defines variables within a JuMP optimization model? using JuMP, CPLEX m = Model(CPLEX.Optimize…

---

## [Having Problems when creating an app](https://discourse.julialang.org/t/having-problems-when-creating-an-app/105141)

<div class="topic-metadata">

**Author:** [@gugong](https://discourse.julialang.org/u/gugong)\
**Replies:** 4\
**Last updated:** [October 20, 2023, 3:22am UTC](https://discourse.julialang.org/t/having-problems-when-creating-an-app/105141 "2023-10-20T03:22:00Z")

</div>

Hello, I am haivng problems when converting my code into an exe file. While I have to use isdefined function to check if there is an variable in my main environment such as ’ if isdefined(:term\_symbol)', and the package…

---

## [There are some doubts about the results of the experiments in the Powermodels documentation](https://discourse.julialang.org/t/there-are-some-doubts-about-the-results-of-the-experiments-in-the-powermodels-documentation/105210)

<div class="topic-metadata">

**Author:** [@lzq-zbc](https://discourse.julialang.org/u/lzq-zbc)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 2:16am UTC](https://discourse.julialang.org/t/there-are-some-doubts-about-the-results-of-the-experiments-in-the-powermodels-documentation/105210 "2023-10-20T02:16:20Z")

</div>

I would like to consult the following documents about the experimental results, for example, the calculation time of the SoC model of case1354\_pegase is 3 seconds, but I calculate the time on my personal computer is 17 s…

---

## [MPI + Multithreading with ParallelStencil.jl + ImplicitGlobalGrid.jl](https://discourse.julialang.org/t/mpi-multithreading-with-parallelstencil-jl-implicitglobalgrid-jl/105138)

<div class="topic-metadata">

**Author:** [@ali-vaziri](https://discourse.julialang.org/u/ali-vaziri)\
**Replies:** 4\
**Last updated:** [October 19, 2023, 11:13pm UTC](https://discourse.julialang.org/t/mpi-multithreading-with-parallelstencil-jl-implicitglobalgrid-jl/105138 "2023-10-19T23:13:48Z")

</div>

Hi, I tried using ParallelStencil+ImplicitGlobalGrid with MPI on CPU clusters, but I cannot get the multiprocessing to work. I attempted the acoustic2D.jl example from the ParallelStencil repo and added ImplicitGlobalGr…

---

## [How to find unique values into Vector{Vector{Int64}}?](https://discourse.julialang.org/t/how-to-find-unique-values-into-vector-vector-int64/105188)

<div class="topic-metadata">

**Author:** [@rodolforbcoutinho](https://discourse.julialang.org/u/rodolforbcoutinho)\
**Replies:** 6\
**Last updated:** [October 19, 2023, 10:25pm UTC](https://discourse.julialang.org/t/how-to-find-unique-values-into-vector-vector-int64/105188 "2023-10-19T22:25:45Z")

</div>

Hi I’m trying to get the unique values into A variable bellow, but unique(A) isn’t showing the correct result, is repeating A. How could I get the real result: \[1,2,4,5,6,7,8,10,11\] ? Thanks in advance!!! A 5-element …

---

## [How to discourage macros: disable automerge of General registry PRs?](https://discourse.julialang.org/t/how-to-discourage-macros-disable-automerge-of-general-registry-prs/104529)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 41\
**Last updated:** [October 19, 2023, 9:49pm UTC](https://discourse.julialang.org/t/how-to-discourage-macros-disable-automerge-of-general-registry-prs/104529 "2023-10-19T21:49:32Z")

</div>

It seems to me that macros are defined much too often in the Julia ecosystem and the (error-prone) definitions of such macros are often very complex. FWIW, the Julia Manual page on metaprogramming already heavily discou…

---

## [Polynomial problem-help me please](https://discourse.julialang.org/t/polynomial-problem-help-me-please/105195)

<div class="topic-metadata">

**Author:** [@condor98](https://discourse.julialang.org/u/condor98)\
**Replies:** 8\
**Last updated:** [October 19, 2023, 9:43pm UTC](https://discourse.julialang.org/t/polynomial-problem-help-me-please/105195 "2023-10-19T21:43:44Z")

</div>

this post is deleted for nother topic

---

## [Overfitting polynomial. help](https://discourse.julialang.org/t/overfitting-polynomial-help/105200)

<div class="topic-metadata">

**Author:** [@condor98](https://discourse.julialang.org/u/condor98)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 9:36pm UTC](https://discourse.julialang.org/t/overfitting-polynomial-help/105200 "2023-10-19T21:36:54Z")

</div>

Hi guys, I’m having trouble with this exercise. Order 18 is too overfitting for me. how can I solve it? a graph like the one on the orange line should come out. the one with the red line is mine. where I’m wrong in the c…

---

## [Loading PyTorch Faster RCNN with ONNX fails](https://discourse.julialang.org/t/loading-pytorch-faster-rcnn-with-onnx-fails/105201)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 9:08pm UTC](https://discourse.julialang.org/t/loading-pytorch-faster-rcnn-with-onnx-fails/105201 "2023-10-19T21:08:27Z")

</div>

Hi, I’m trying to load a trained Faster R-CNN model that has been exported with ONNX: It has been saved like this: torch.onnx.export(model, x\[None, :, :, :\], "detector.onnx", …

---

## [Issue with TOML in Tests with PackageCompiler](https://discourse.julialang.org/t/issue-with-toml-in-tests-with-packagecompiler/105203)

<div class="topic-metadata">

**Author:** [@Gauf](https://discourse.julialang.org/u/Gauf)\
**Replies:** 0\
**Last updated:** [October 19, 2023, 9:07pm UTC](https://discourse.julialang.org/t/issue-with-toml-in-tests-with-packagecompiler/105203 "2023-10-19T21:07:36Z")

</div>

Heya all, I’m currently having an issue with some unit tests that use PackageCompiler (v2.1.10) Here’s a trimmed down sample: using Test using Pkg using PackageCompiler @testset "Dummy Package tests" begin dir = …

---

## [How to detect oscillations/characteristic frequencies in data?](https://discourse.julialang.org/t/how-to-detect-oscillations-characteristic-frequencies-in-data/105169)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 7:37pm UTC](https://discourse.julialang.org/t/how-to-detect-oscillations-characteristic-frequencies-in-data/105169 "2023-10-19T19:37:33Z")

</div>

I have a (many) signal I have gotten from experiments. The extent can be argued, but I’d definitely say there is something pulsing/oscillatory going on: using Plots plot(signal) How do I actually show this though? I …

---

## [Revise.jl not updating correctly a package](https://discourse.julialang.org/t/revise-jl-not-updating-correctly-a-package/93711)

<div class="topic-metadata">

**Author:** [@nrontsis](https://discourse.julialang.org/u/nrontsis)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 6:23pm UTC](https://discourse.julialang.org/t/revise-jl-not-updating-correctly-a-package/93711 "2023-10-19T18:23:06Z")

</div>

I am getting incomplete package updates from Revise.jl 3.5.0 in Julia 1.8.2 Linux x64 (Docker on MacOS 13.1) which I managed to track to the following minimal example: Example Package src/Example.jl: module Example …

---

## [Pluto notebook HTML version: how to download data from repository?](https://discourse.julialang.org/t/pluto-notebook-html-version-how-to-download-data-from-repository/74992)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 23\
**Last updated:** [October 19, 2023, 4:21pm UTC](https://discourse.julialang.org/t/pluto-notebook-html-version-how-to-download-data-from-repository/74992 "2023-10-19T16:21:00Z")

</div>

I’m using Pluto to report a statistical analysis. Right now, the notebook loads data I have stored locally. However, I’d like to convert the notebook to a HTML file so that my collaborators can run it in the cloud, using…

---

## [Symbolics Writing element (matrix) inverse](https://discourse.julialang.org/t/symbolics-writing-element-matrix-inverse/105191)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 0\
**Last updated:** [October 19, 2023, 3:40pm UTC](https://discourse.julialang.org/t/symbolics-writing-element-matrix-inverse/105191 "2023-10-19T15:40:31Z")

</div>

Hello, I am trying to create a symbolic representation of some algebra that I am trying to work out for a project. Ideally, I would like to create a way to write an expression like below: @variables H, \\sigma # H is an…

---

## [Inconsitent gradients of BachNorm on GPU in testmode](https://discourse.julialang.org/t/inconsitent-gradients-of-bachnorm-on-gpu-in-testmode/105189)

<div class="topic-metadata">

**Author:** [@Phypix](https://discourse.julialang.org/u/Phypix)\
**Replies:** 0\
**Last updated:** [October 19, 2023, 2:49pm UTC](https://discourse.julialang.org/t/inconsitent-gradients-of-bachnorm-on-gpu-in-testmode/105189 "2023-10-19T14:49:11Z")

</div>

I encountered an issue with the gradient of the BatchNorm on the GPU in testmode. If the shape of the input array is either 2, 4 or 5, the gradients will differ from the result of any other sized array. The results on t…

---

## [RNNs in LUX](https://discourse.julialang.org/t/rnns-in-lux/104597)

<div class="topic-metadata">

**Author:** [@pyrex41](https://discourse.julialang.org/u/pyrex41)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 3:25pm UTC](https://discourse.julialang.org/t/rnns-in-lux/104597 "2023-10-19T15:25:34Z")

</div>

I am trying to work out how to build an RNN in Lux, but just using the build-in blocks (instead of the custom approach in the tutorial). I don’t understand why the following basic code throws an error – do i need to be e…

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

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