# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=236

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

**Page:** 237

---

## [How to control options for displaying table in Weave.jl?](https://discourse.julialang.org/t/how-to-control-options-for-displaying-table-in-weave-jl/105256)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 0\
**Last updated:** [October 21, 2023, 1:17am UTC](https://discourse.julialang.org/t/how-to-control-options-for-displaying-table-in-weave-jl/105256 "2023-10-21T01:17:34Z")

</div>

Hello! I’ve been playing a bit with Weave.jl tonight and found it very fun to use! I tried to do a table though, and I must admit: I did struggle quite a bit. Basically it does work if one does; using DataFrames DataF…

---

## [2D Interpolation on an irregular grid](https://discourse.julialang.org/t/2d-interpolation-on-an-irregular-grid/105247)

<div class="topic-metadata">

**Author:** [@k\_j](https://discourse.julialang.org/u/k_j)\
**Replies:** 8\
**Last updated:** [October 20, 2023, 10:53pm UTC](https://discourse.julialang.org/t/2d-interpolation-on-an-irregular-grid/105247 "2023-10-20T22:53:52Z")

</div>

I want to do 2D interpolation on an irregular grid. In particular, I have a function f:\\mathbb R^2 \\rightarrow \\mathbb R, (x, y) \\mapsto z. I have an irregular grid D = (x\_i, y\_i)\_i as well as the corresponding values F…

---

## [Ordering labels across subplots](https://discourse.julialang.org/t/ordering-labels-across-subplots/105251)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 3\
**Last updated:** [October 20, 2023, 10:11pm UTC](https://discourse.julialang.org/t/ordering-labels-across-subplots/105251 "2023-10-20T22:11:15Z")

</div>

Hi, I would like to add the same label to two subplots. In the example below, the densities and colors are correct, but the label should be 1 2 3 4 for each subplot. Is there a way to correct this issue? Thanks! using…

---

## [General Package Manager getting the Repo URL and license](https://discourse.julialang.org/t/general-package-manager-getting-the-repo-url-and-license/105192)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 9:31pm UTC](https://discourse.julialang.org/t/general-package-manager-getting-the-repo-url-and-license/105192 "2023-10-20T21:31:19Z")

</div>

In an earlier version of the package manager, I had written a tool, which could take all of the Packages I had installed, and generate an excel spreadsheet which included the package, the version, the repo url and the li…

---

## [Error with PythonCall.jl and SimpleITK on Julia 1.9 but works on beta (1.10)](https://discourse.julialang.org/t/error-with-pythoncall-jl-and-simpleitk-on-julia-1-9-but-works-on-beta-1-10/105250)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 1\
**Last updated:** [October 20, 2023, 8:45pm UTC](https://discourse.julialang.org/t/error-with-pythoncall-jl-and-simpleitk-on-julia-1-9-but-works-on-beta-1-10/105250 "2023-10-20T20:45:49Z")

</div>

When I try to load SimpleITK via PythonCall.jl on windows, I am running into a new error. This is not a problem on Mac or Linux. This does not error when working on the current beta (1.10). I also have a public link here …

---

## [Why can you write \`r\[1\]\` if \`r\` is a number?](https://discourse.julialang.org/t/why-can-you-write-r-1-if-r-is-a-number/105229)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 4\
**Last updated:** [October 20, 2023, 7:55pm UTC](https://discourse.julialang.org/t/why-can-you-write-r-1-if-r-is-a-number/105229 "2023-10-20T19:55:57Z")

</div>

I encountered an interesting bug here in OrbitalElements.jl. Essentially, writing r\[1\] returned r because r was a number (a Float64 specifically). This also works when writing numbers directly: you can write 42\[1\]. r\[:\] …

---

## [Publishing generated julia package documentation into confluence?](https://discourse.julialang.org/t/publishing-generated-julia-package-documentation-into-confluence/105248)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 7:20pm UTC](https://discourse.julialang.org/t/publishing-generated-julia-package-documentation-into-confluence/105248 "2023-10-20T19:20:05Z")

</div>

Hi, I’d like to publish documentation of some julia packages into confluence. The code lives in a local gitlab instance and the documentation should go into a local confluence instance. For Sphinx, there exists plugin.…

---

## [Test pulling down older versions of packages in Extras than it should](https://discourse.julialang.org/t/test-pulling-down-older-versions-of-packages-in-extras-than-it-should/105245)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 4:34pm UTC](https://discourse.julialang.org/t/test-pulling-down-older-versions-of-packages-in-extras-than-it-should/105245 "2023-10-20T16:34:55Z")

</div>

For some reason this stopped working after I did the last \]update. I have several plotting extensions for some home-grown packages I’m referencing. This all worked fine, but now when I run the package test from the Pro…

---

## [Implementing module, MethodError: objects of type Module are not callable](https://discourse.julialang.org/t/implementing-module-methoderror-objects-of-type-module-are-not-callable/105202)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 7\
**Last updated:** [October 20, 2023, 7:19am UTC](https://discourse.julialang.org/t/implementing-module-methoderror-objects-of-type-module-are-not-callable/105202 "2023-10-20T07:19:03Z")

</div>

I am trying to implement an R-like matrix where the columns/rows can be referred to by named indices. using Revise using Base include("nm.jl") using .NM nm = NM.NamedMatrix(zeros(3, 2), \["row1", "row2", "row3"\], \["col…

---

## [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…

---

## [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…

---

## [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…

---

## [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 = …

---

## [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 …

---

## [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…

---

## [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…

---

## [ArrayFire on macOS](https://discourse.julialang.org/t/arrayfire-on-macos/105181)

<div class="topic-metadata">

**Author:** [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Replies:** 5\
**Last updated:** [October 19, 2023, 1:50pm UTC](https://discourse.julialang.org/t/arrayfire-on-macos/105181 "2023-10-19T13:50:00Z")

</div>

I am trying to use the ArrayFire package on macOS and the problem is that it cannot load the libaf library installed using Homebrew because it cannot find it. The only way I could make this work was to specify the enviro…

---

## [Problems with signature changes of imported local modules on include](https://discourse.julialang.org/t/problems-with-signature-changes-of-imported-local-modules-on-include/104842)

<div class="topic-metadata">

**Author:** [@hijit](https://discourse.julialang.org/u/hijit)\
**Replies:** 26\
**Last updated:** [October 19, 2023, 1:47pm UTC](https://discourse.julialang.org/t/problems-with-signature-changes-of-imported-local-modules-on-include/104842 "2023-10-19T13:47:27Z")

</div>

Hi I realized during the development of a Julia package that one of the big drawbacks of importing/using local modules is that the signatures of all functions tied to a Modules namespace are changed to be nested in the i…

---

## [Why the function nroots returns a Matrix{Array{Int64,0}}](https://discourse.julialang.org/t/why-the-function-nroots-returns-a-matrix-array-int64-0/105167)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 1:17pm UTC](https://discourse.julialang.org/t/why-the-function-nroots-returns-a-matrix-array-int64-0/105167 "2023-10-19T13:17:44Z")

</div>

import Polynomials: Polynomial, derivative import StatsBase: sample function nroots!(p, z; eps=1e-05, maxiter=50) dp= derivative(p) ddp=derivative(dp) prod=ddp\*p nr=zeros(Int, size(z)) for \_ in 1:maxite…

---

## [Julia IRs, and how to have Julia compile user-generated IR code](https://discourse.julialang.org/t/julia-irs-and-how-to-have-julia-compile-user-generated-ir-code/105073)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 6\
**Last updated:** [October 19, 2023, 12:45pm UTC](https://discourse.julialang.org/t/julia-irs-and-how-to-have-julia-compile-user-generated-ir-code/105073 "2023-10-19T12:45:39Z")

</div>

In a recently registered tiny package, I have a function whose body is basically just an llvmcall that calls the LLVM unreachable instruction: Core.Intrinsics.llvmcall("unreachable", Cvoid, Tuple{}). The goal is to convi…

---

## [Modules Management like FromFile](https://discourse.julialang.org/t/modules-management-like-fromfile/105179)

<div class="topic-metadata">

**Author:** [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 12:36pm UTC](https://discourse.julialang.org/t/modules-management-like-fromfile/105179 "2023-10-19T12:36:12Z")

</div>

Are there any plans to improve the modules management in Julia by implementing as a standard part of the language something similar to the excellent FromFile package which makes development so much easier?

---

## [Get signature of function](https://discourse.julialang.org/t/get-signature-of-function/105156)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 9\
**Last updated:** [October 19, 2023, 12:06pm UTC](https://discourse.julialang.org/t/get-signature-of-function/105156 "2023-10-19T12:06:42Z")

</div>

Is there any code analysis tool that can infer the signature of f(x) = \[x\] without requiring a call site? eg something that can tell me f(x::T) returns Vector{T}? Afaik Cthulhu and JET require a concrete arglist for a…

---

## [Compilation of a function with constant arguments](https://discourse.julialang.org/t/compilation-of-a-function-with-constant-arguments/105168)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 1\
**Last updated:** [October 19, 2023, 11:45am UTC](https://discourse.julialang.org/t/compilation-of-a-function-with-constant-arguments/105168 "2023-10-19T11:45:30Z")

</div>

I struggle to understand the following behaviour of Julia’s compilation process: according to the @time output, the sum of squares function defined below is not compiled when called with a constant argument. I wonder wh…

---

## [Julia 1.9, same depot with different machines?](https://discourse.julialang.org/t/julia-1-9-same-depot-with-different-machines/103463)

<div class="topic-metadata">

**Author:** [@Sevi](https://discourse.julialang.org/u/Sevi)\
**Replies:** 22\
**Last updated:** [October 19, 2023, 11:06am UTC](https://discourse.julialang.org/t/julia-1-9-same-depot-with-different-machines/103463 "2023-10-19T11:06:58Z")

</div>

Hi! I’m using Julia 1.9 on an HPC cluster and ran into a strange error on some of the machines. I have a hunch that it’s related to native code caching and the fact that I currently use the same depot for all machines, b…

---

## [Best practice for Binder in 2023?](https://discourse.julialang.org/t/best-practice-for-binder-in-2023/105173)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 2\
**Last updated:** [October 19, 2023, 10:22am UTC](https://discourse.julialang.org/t/best-practice-for-binder-in-2023/105173 "2023-10-19T10:22:18Z")

</div>

Since: Using Julia in Binder: interactive web environment for running your code I haven’t seen many Binder demo or links from Julia packages. And in fact some of Binder’s own Julia demo is now broken: https://mybinder…

---

## [ERROR: SystemError: close: Input/output error (related to CSV package)](https://discourse.julialang.org/t/error-systemerror-close-input-output-error-related-to-csv-package/105162)

<div class="topic-metadata">

**Author:** [@Siv\_Soerensen](https://discourse.julialang.org/u/Siv_Soerensen)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 10:03am UTC](https://discourse.julialang.org/t/error-systemerror-close-input-output-error-related-to-csv-package/105162 "2023-10-19T10:03:13Z")

</div>

I’m simulating some data sets (60 in total), where I loop over the same procedure 60 times, saving each data set as a CSV file before moving on to the next data set. After doing this procedure 13 times (out of the 60), …

---

## [How to properly run julia 1.9 on LSF cluster](https://discourse.julialang.org/t/how-to-properly-run-julia-1-9-on-lsf-cluster/104999)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 8:48am UTC](https://discourse.julialang.org/t/how-to-properly-run-julia-1-9-on-lsf-cluster/104999 "2023-10-19T08:48:02Z")

</div>

I updated to julia 1.9.3, and I am unable to run my code on a cluster. The 1st issue is the precompilation. It seems to me that every time I open a new session with the cluster, I need to precompile my project. As far a…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=235)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=237)
