# General Usage

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

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

**Page:** 102

---

## [Reverse-mode autodiff with Enzyme involving WignerSymbols](https://discourse.julialang.org/t/reverse-mode-autodiff-with-enzyme-involving-wignersymbols/123967)

<div class="topic-metadata">

**Author:** [@dameka](https://discourse.julialang.org/u/dameka)\
**Replies:** 5\
**Last updated:** [December 19, 2024, 6:32pm UTC](https://discourse.julialang.org/t/reverse-mode-autodiff-with-enzyme-involving-wignersymbols/123967 "2024-12-19T18:32:53Z")

</div>

One part of a function chain I’m differentiating with Enzyme involves Clebsch-Gordan coefficients generated by the WignerSymbols package. I’m able to differentiate a MWE function with Forward mode, but Reverse mode gives…

---

## [How to dispatch like f(::AbstractArray{T1,N+1}, ::AbstractArray{T2,N})?](https://discourse.julialang.org/t/how-to-dispatch-like-f-abstractarray-t1-n-1-abstractarray-t2-n/123995)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 4:51pm UTC](https://discourse.julialang.org/t/how-to-dispatch-like-f-abstractarray-t1-n-1-abstractarray-t2-n/123995 "2024-12-19T16:51:50Z")

</div>

Is it possible to dispatch on the difference between the dimensions of two arrays arguments? One can, for example, define f(::AbstractArray{T1,N}, ::AbstractArray{T2,N}) where {T1,T2,N} = ... Then, this method will be …

---

## [CSV.jl writing quoted strings](https://discourse.julialang.org/t/csv-jl-writing-quoted-strings/123989)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 14\
**Last updated:** [December 19, 2024, 4:06pm UTC](https://discourse.julialang.org/t/csv-jl-writing-quoted-strings/123989 "2024-12-19T16:06:37Z")

</div>

I am wondering when CSV.write chooses to quote a field when writing a file. I know I can use quotestrings=true to force all strings to be quoted, but in my case that seems unnecessary and undesirable. I can read a CSV f…

---

## [Testing show methods](https://discourse.julialang.org/t/testing-show-methods/123933)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 20\
**Last updated:** [December 19, 2024, 3:05pm UTC](https://discourse.julialang.org/t/testing-show-methods/123933 "2024-12-19T15:05:26Z")

</div>

I have defined a simple function to test show methods. It works like this: julia\> struct A x::Int y::Float64 p::String v::Vector{Float64} end julia\> function Base.show…

---

## [Problem with readlines function in windows](https://discourse.julialang.org/t/problem-with-readlines-function-in-windows/123970)

<div class="topic-metadata">

**Author:** [@marodriguezs](https://discourse.julialang.org/u/marodriguezs)\
**Replies:** 6\
**Last updated:** [December 19, 2024, 11:02am UTC](https://discourse.julialang.org/t/problem-with-readlines-function-in-windows/123970 "2024-12-19T11:02:08Z")

</div>

hi everyone, readlines function does not finish with Ctrl+d. Tested with julia REPL called from CMD, powershell, Windows Terminal, and from an small program. No problem with linux. julia\> versioninfo() Julia Version 1.…

---

## [Is there a specific reason why the const keyword cannot be used within the scope of a function?](https://discourse.julialang.org/t/is-there-a-specific-reason-why-the-const-keyword-cannot-be-used-within-the-scope-of-a-function/123986)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 4\
**Last updated:** [December 19, 2024, 10:52am UTC](https://discourse.julialang.org/t/is-there-a-specific-reason-why-the-const-keyword-cannot-be-used-within-the-scope-of-a-function/123986 "2024-12-19T10:52:01Z")

</div>

I noticed that trying to use the const keyword in a local scope results in a compilation error. Is there a specific reason for this? I wanted to define an anonymous function in a local scope (see Creating an anonymous fu…

---

## [Testing Julia REPL in a libuv spawn call](https://discourse.julialang.org/t/testing-julia-repl-in-a-libuv-spawn-call/123980)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 0\
**Last updated:** [December 19, 2024, 6:40am UTC](https://discourse.julialang.org/t/testing-julia-repl-in-a-libuv-spawn-call/123980 "2024-12-19T06:40:18Z")

</div>

Hi there, I might use a bit of help with Lua, libuv, and the Julia REPL (I initially posted on slack, but folk rightfully pointed that this is better suited here). For context, I am writing integration tests for neovim’s…

---

## [PyCall problem](https://discourse.julialang.org/t/pycall-problem/123977)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 6\
**Last updated:** [December 19, 2024, 4:24am UTC](https://discourse.julialang.org/t/pycall-problem/123977 "2024-12-19T04:24:16Z")

</div>

my julia version is 1.10.0, and my system is windows 10. julia\> using PyCall julia\> using JLD julia\> @pyimport sympy.physics.wigner as wigner ERROR: PyError (PyImport\_ImportModule The Python package sympy.physics.wi…

---

## [OutOfMemoryError in HomotopyContinuation](https://discourse.julialang.org/t/outofmemoryerror-in-homotopycontinuation/95105)

<div class="topic-metadata">

**Author:** [@Ricardo\_Miranda\_Mart](https://discourse.julialang.org/u/Ricardo_Miranda_Mart)\
**Replies:** 1\
**Last updated:** [December 19, 2024, 1:28am UTC](https://discourse.julialang.org/t/outofmemoryerror-in-homotopycontinuation/95105 "2024-12-19T01:28:28Z")

</div>

Hi all, I’m trying to use HomotopyContinuation.jl to find all of the solutions a polynomial system of equations with 14 polynomials in 14 variables. Each polynomial is sum of monomials of degree from 10 to 13 (like f1=…

---

## [Anyone interested in developing QT for Julia](https://discourse.julialang.org/t/anyone-interested-in-developing-qt-for-julia/123973)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 0\
**Last updated:** [December 19, 2024, 1:21am UTC](https://discourse.julialang.org/t/anyone-interested-in-developing-qt-for-julia/123973 "2024-12-19T01:21:12Z")

</div>

In particular, I’m talking about classic QT Widgets, not QML. I’ve tried taking a stab at it using the QT6 jlls and using the source code for QML.jl as an inspiration, but I quickly realized I have no idea what I’m doin…

---

## [Removing allocations from ForwardDiff.jacobian!](https://discourse.julialang.org/t/removing-allocations-from-forwarddiff-jacobian/80996)

<div class="topic-metadata">

**Author:** [@jbu](https://discourse.julialang.org/u/jbu)\
**Replies:** 1\
**Last updated:** [December 18, 2024, 10:10pm UTC](https://discourse.julialang.org/t/removing-allocations-from-forwarddiff-jacobian/80996 "2024-12-18T22:10:18Z")

</div>

I’m getting a few stray allocations while using ForwardDiff.jacobian!. I followed the advice in this post, but that didn’t seem to remove them. What’s the best way to track down and eliminate these allocations? Edit: I’…

---

## [Non-blocking network IO](https://discourse.julialang.org/t/non-blocking-network-io/123344)

<div class="topic-metadata">

**Author:** [@phma](https://discourse.julialang.org/u/phma)\
**Replies:** 25\
**Last updated:** [December 18, 2024, 9:41pm UTC](https://discourse.julialang.org/t/non-blocking-network-io/123344 "2024-12-18T21:41:50Z")

</div>

I’m going to write a node that maintains network connections with other nodes. When the node is told to shut down, it has to finish sending and receiving messages, then shut down. This has to take a few seconds at most. …

---

## [Build julia without LinearAlgebra](https://discourse.julialang.org/t/build-julia-without-linearalgebra/123962)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 0\
**Last updated:** [December 18, 2024, 3:00pm UTC](https://discourse.julialang.org/t/build-julia-without-linearalgebra/123962 "2024-12-18T15:00:35Z")

</div>

Hi, I understand that LinearAlgebra has been moved to its own repository. Is there a way to build Julia without this library please? Thank you

---

## [Looking for a clean way to add a row in a DataFrame](https://discourse.julialang.org/t/looking-for-a-clean-way-to-add-a-row-in-a-dataframe/123891)

<div class="topic-metadata">

**Author:** [@dobby](https://discourse.julialang.org/u/dobby)\
**Replies:** 10\
**Last updated:** [December 18, 2024, 2:44pm UTC](https://discourse.julialang.org/t/looking-for-a-clean-way-to-add-a-row-in-a-dataframe/123891 "2024-12-18T14:44:24Z")

</div>

Hello, I am new to Julia, so please have mercy. I am reading multiple CSV files, where the rows are the same. But in order to distinguish the different files I’m reading, I have to add a row to indicate that. Here is …

---

## [Any tips for approaching stability/allocation check integration late into a package?](https://discourse.julialang.org/t/any-tips-for-approaching-stability-allocation-check-integration-late-into-a-package/123875)

<div class="topic-metadata">

**Author:** [@s\_amap](https://discourse.julialang.org/u/s_amap)\
**Replies:** 4\
**Last updated:** [December 18, 2024, 10:44am UTC](https://discourse.julialang.org/t/any-tips-for-approaching-stability-allocation-check-integration-late-into-a-package/123875 "2024-12-18T10:44:57Z")

</div>

Hi. Working on a package that does some rather generic things with types, I’ve been thinking of adding some type stability checking, performance benchmarks for regression detection, unexpected allocation detections, … I…

---

## [How does one access ESRI File GeoDatabases (\*.gdb)?](https://discourse.julialang.org/t/how-does-one-access-esri-file-geodatabases-gdb/108998)

<div class="topic-metadata">

**Author:** [@PoachedEggs](https://discourse.julialang.org/u/PoachedEggs)\
**Replies:** 6\
**Last updated:** [December 18, 2024, 12:33am UTC](https://discourse.julialang.org/t/how-does-one-access-esri-file-geodatabases-gdb/108998 "2024-12-18T00:33:46Z")

</div>

Greetings, everyone. I am picking up Julia as a second programming language, so bear with me. The JuliaGeo group is making great strides to carve a path for geospatial analytics using Julia. I am excited to see what come…

---

## [Timer or play button in Bonito app](https://discourse.julialang.org/t/timer-or-play-button-in-bonito-app/123926)

<div class="topic-metadata">

**Author:** [@snowgum](https://discourse.julialang.org/u/snowgum)\
**Replies:** 3\
**Last updated:** [December 17, 2024, 5:24pm UTC](https://discourse.julialang.org/t/timer-or-play-button-in-bonito-app/123926 "2024-12-17T17:24:45Z")

</div>

I’m using Bonito with WGLMakie to visualise 2D slices of multi-dimensional data in heatmaps. I got a simple slider working together with heatmap (the slider value slices one variable dimension) for a 3D array data: app …

---

## [Get long type information for struct definition](https://discourse.julialang.org/t/get-long-type-information-for-struct-definition/123900)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 9\
**Last updated:** [December 17, 2024, 4:52pm UTC](https://discourse.julialang.org/t/get-long-type-information-for-struct-definition/123900 "2024-12-17T16:52:43Z")

</div>

Sometimes I want to wrap a struct which has long type information in another struct. For example, I want to wrap an interpolator like this one: julia\> using Interpolations julia\> cubic\_spline\_interpolation(0:0.1:0.2, z…

---

## [Nested parallelization in MPI with small outer loop and large inner loop](https://discourse.julialang.org/t/nested-parallelization-in-mpi-with-small-outer-loop-and-large-inner-loop/123610)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 3:25pm UTC](https://discourse.julialang.org/t/nested-parallelization-in-mpi-with-small-outer-loop-and-large-inner-loop/123610 "2024-12-17T15:25:59Z")

</div>

I’m trying to run a slurm job using MPI, that involves a nested loop, where the outer loop is over a smaller list of size m than the inner loop (size n). For the inner loop, I want to use as many processes as possible np…

---

## [Error in libcrypto](https://discourse.julialang.org/t/error-in-libcrypto/123922)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 1:35pm UTC](https://discourse.julialang.org/t/error-in-libcrypto/123922 "2024-12-17T13:35:09Z")

</div>

I am getting the following error on Github: Run davidanthoff/julia-pkgbutler@releases/v1 Adding GitHub.com keys to /home/runner/.ssh/known\_hosts Starting ssh-agent /usr/bin/ssh-agent -a /tmp/ssh-auth.sock SSH\_AUTH\_SOCK…

---

## [Cfunction error handling](https://discourse.julialang.org/t/cfunction-error-handling/123925)

<div class="topic-metadata">

**Author:** [@Sergey](https://discourse.julialang.org/u/Sergey)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 1:29pm UTC](https://discourse.julialang.org/t/cfunction-error-handling/123925 "2024-12-17T13:29:55Z")

</div>

Hi. Im calling cfunctions from c++ code. Is it possible not to break execution and do error handling if one occure on julia sode? for exmple: function calc(x :: Float32) return 100 \* sqrt(-x) end call this with …

---

## [Improving Efficiency of Embarassingly Parallel Problem Using \`Threads\`](https://discourse.julialang.org/t/improving-efficiency-of-embarassingly-parallel-problem-using-threads/123897)

<div class="topic-metadata">

**Author:** [@freestatelabs](https://discourse.julialang.org/u/freestatelabs)\
**Replies:** 7\
**Last updated:** [December 17, 2024, 1:32pm UTC](https://discourse.julialang.org/t/improving-efficiency-of-embarassingly-parallel-problem-using-threads/123897 "2024-12-17T13:32:31Z")

</div>

I recently upgraded my workstation and have been benchmarking a code I had written that I consider to be “embarrassingly parallel”, implemented via the Threads module. However, I found that I was getting far greater loss…

---

## [Creating an anonymous function at the local level. Conflict with const resulting in performance issues](https://discourse.julialang.org/t/creating-an-anonymous-function-at-the-local-level-conflict-with-const-resulting-in-performance-issues/123921)

<div class="topic-metadata">

**Author:** [@stefkuypers](https://discourse.julialang.org/u/stefkuypers)\
**Replies:** 4\
**Last updated:** [December 17, 2024, 1:23pm UTC](https://discourse.julialang.org/t/creating-an-anonymous-function-at-the-local-level-conflict-with-const-resulting-in-performance-issues/123921 "2024-12-17T13:23:36Z")

</div>

I’m building a simulation framework and am running into the following problem: I have a initialisation function init\_model(x::InitType) where x is a structure containing the information needed for initialisation of a mo…

---

## [Unregistered nested dependencies](https://discourse.julialang.org/t/unregistered-nested-dependencies/123923)

<div class="topic-metadata">

**Author:** [@polhager](https://discourse.julialang.org/u/polhager)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 12:12pm UTC](https://discourse.julialang.org/t/unregistered-nested-dependencies/123923 "2024-12-17T12:12:36Z")

</div>

Hi all. I have a local package (PackageOne) which uses an unregistered package (PythonStructs) as a dependency. I would then like to use said local package as a dependency for a second local package (PackageTwo). The Pr…

---

## [Adding processed artefacts to a package](https://discourse.julialang.org/t/adding-processed-artefacts-to-a-package/123804)

<div class="topic-metadata">

**Author:** [@rssdev10](https://discourse.julialang.org/u/rssdev10)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 8:23am UTC](https://discourse.julialang.org/t/adding-processed-artefacts-to-a-package/123804 "2024-12-13T08:23:48Z")

</div>

Hi, I found an old package with an internal data dependency that breaks the use of an executable binary built with PackageCompiler. In this package there is an explicit dependency for a file calculated during the packag…

---

## [Development with Docker and CUDA](https://discourse.julialang.org/t/development-with-docker-and-cuda/123884)

<div class="topic-metadata">

**Author:** [@hilario](https://discourse.julialang.org/u/hilario)\
**Replies:** 5\
**Last updated:** [December 17, 2024, 11:23am UTC](https://discourse.julialang.org/t/development-with-docker-and-cuda/123884 "2024-12-17T11:23:49Z")

</div>

Hi. I am developing code for my research and I’d like to make it run in a machine in which I don’t have permission to install Julia. I am not developing any “app”, I just want to be able to run my code, do my tests, expa…

---

## [Debug logging for package extensions](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 2\
**Last updated:** [December 17, 2024, 11:03am UTC](https://discourse.julialang.org/t/debug-logging-for-package-extensions/123883 "2024-12-17T11:03:11Z")

</div>

Is it possible to enable debug logging for package extensions? I’m trying to simply do JULIA\_DEBUG=TaijaParallel,TaijaParallel.MPIExt mpiexec -n 4 julia --project=$EXPERIMENT\_DIR $EXPERIMENT\_DIR/run\_evaluation\_grid.jl --…

---

## [Coding style in unary operator overloading](https://discourse.julialang.org/t/coding-style-in-unary-operator-overloading/123888)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 6\
**Last updated:** [December 17, 2024, 10:42am UTC](https://discourse.julialang.org/t/coding-style-in-unary-operator-overloading/123888 "2024-12-17T10:42:09Z")

</div>

Is there a reason to prefer one of the following two options? Option 1: Base.:-(a::MyType) = MyType(-a.data) Option 2: import Base.- -(a::MyType) = MyType(-a.data)

---

## [Custom labels instead of numbering in RegressionTables.jl](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 5:29am UTC](https://discourse.julialang.org/t/custom-labels-instead-of-numbering-in-regressiontables-jl/123908 "2024-12-17T05:29:28Z")

</div>

Hi there, currently RegressionTables.jl automatically numbers the regression models when more than one is passed to regtable (using integers). However, I dont seem to find a way to replace these integers with custom lab…

---

## [Is there a package to that can make partial functions automatically?](https://discourse.julialang.org/t/is-there-a-package-to-that-can-make-partial-functions-automatically/31292)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 23\
**Last updated:** [December 17, 2024, 1:37am UTC](https://discourse.julialang.org/t/is-there-a-package-to-that-can-make-partial-functions-automatically/31292 "2024-12-17T01:37:13Z")

</div>

I have a function say savejdf savejdf(df::AbstractDataFrame, path::AbstractString) and I would like to create all possible partial functions e.g. savejdf(df::AbstractDataFrame) = path -\> savejdf(df, path) savejdf(pa…

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

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