# General Usage

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

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

**Page:** 209

---

## [Julia package incompatibility](https://discourse.julialang.org/t/julia-package-incompatibility/108597)

<div class="topic-metadata">

**Author:** [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)\
**Replies:** 7\
**Last updated:** [January 23, 2024, 9:06pm UTC](https://discourse.julialang.org/t/julia-package-incompatibility/108597 "2024-01-23T21:06:03Z")

</div>

Hi all! Ever since working with GLMakie, GraphMakie etc, I’ve been having a LOT of issues with my packages in Julia, it takes really really long for them to precompile at the start \[1\] (which is not how it’s been up unti…

---

## [GitError(Code:ERROR, Class:SSL, SSL error: 0xffffffff - ERROR - Generic error)](https://discourse.julialang.org/t/giterror-code-error-class-ssl-ssl-error-0xffffffff-error-generic-error/109170)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 0\
**Last updated:** [January 23, 2024, 8:14pm UTC](https://discourse.julialang.org/t/giterror-code-error-class-ssl-ssl-error-0xffffffff-error-generic-error/109170 "2024-01-23T20:14:41Z")

</div>

I am trying to push using LibGit2. LibGit2.push(LibGit2.GitRepo(tmpdir); remoteurl, refspecs=\["+refs/heads/main:refs/heads/main"\], credentials) as far as I can tell, the tmpdir is a valid git repository, the remoteurl …

---

## [Run doctests?](https://discourse.julialang.org/t/run-doctests/8035)

<div class="topic-metadata">

**Author:** [@tbenst](https://discourse.julialang.org/u/tbenst)\
**Replies:** 5\
**Last updated:** [January 23, 2024, 6:30pm UTC](https://discourse.julialang.org/t/run-doctests/8035 "2024-01-23T18:30:07Z")

</div>

I’m guessing I’m missing something trivially obvious but haven’t found it–how can I run all doctests found in my code? The Julia documentation references make -C doc doctest, but PkgDev.generate() does not create a make…

---

## [World age problem from a package](https://discourse.julialang.org/t/world-age-problem-from-a-package/109104)

<div class="topic-metadata">

**Author:** [@daro.slai](https://discourse.julialang.org/u/daro.slai)\
**Replies:** 11\
**Last updated:** [January 23, 2024, 3:24pm UTC](https://discourse.julialang.org/t/world-age-problem-from-a-package/109104 "2024-01-23T15:24:54Z")

</div>

Hi, I’m having a world age problem in a very weird way, or at least weird enough that I can’t see the similarities with other examples. I have a file simulationFns.jl that defines a few functions such as: using LiiBRA…

---

## [What kind of tests are sufficient: Some personal thoughts](https://discourse.julialang.org/t/what-kind-of-tests-are-sufficient-some-personal-thoughts/108549)

<div class="topic-metadata">

**Author:** [@Zaikun](https://discourse.julialang.org/u/Zaikun)\
**Replies:** 15\
**Last updated:** [January 23, 2024, 3:20pm UTC](https://discourse.julialang.org/t/what-kind-of-tests-are-sufficient-some-personal-thoughts/108549 "2024-01-23T15:20:58Z")

</div>

Code must be battle-tested before it becomes software. How should we test the libraries that we develop? What kind of tests are sufficient? Suppose that we are developing a package of numerical solvers (for linear algeb…

---

## [PyTorch (Transformers) leads to different results under PythonCall and native Python](https://discourse.julialang.org/t/pytorch-transformers-leads-to-different-results-under-pythoncall-and-native-python/109084)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 13\
**Last updated:** [January 23, 2024, 3:20am UTC](https://discourse.julialang.org/t/pytorch-transformers-leads-to-different-results-under-pythoncall-and-native-python/109084 "2024-01-23T03:20:13Z")

</div>

Hello, I am trying to add Microsoft phi model to Transformers.jl, since it seems like “small” language model to play with. I also wanted to become more aware of how the HuggingFace integration is done for the sake of kn…

---

## [Problem using margin on plots](https://discourse.julialang.org/t/problem-using-margin-on-plots/16226)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 7\
**Last updated:** [January 23, 2024, 1:11pm UTC](https://discourse.julialang.org/t/problem-using-margin-on-plots/16226 "2024-01-23T13:11:18Z")

</div>

Hey everyone, I have the following problem. I want to plot something and use the Unicode symbol for beta as xlabel. However, it gets cut off like this: using Plots; pyplot(); plot(rand(10)) xlabel!("\\beta") It seem…

---

## [Help with Julia multithreading](https://discourse.julialang.org/t/help-with-julia-multithreading/109090)

<div class="topic-metadata">

**Author:** [@amd](https://discourse.julialang.org/u/amd)\
**Replies:** 9\
**Last updated:** [January 23, 2024, 7:36am UTC](https://discourse.julialang.org/t/help-with-julia-multithreading/109090 "2024-01-23T07:36:48Z")

</div>

I am trying to multithread an estimation (optimization) problem over a set of parameters, while looping over another set of parameters. The optimization function uses a vector of random numbers. Here is the approximate c…

---

## [Documenter.jl: no docs found for ... in \`@docs\` block](https://discourse.julialang.org/t/documenter-jl-no-docs-found-for-in-docs-block/109124)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 1\
**Last updated:** [January 23, 2024, 1:25am UTC](https://discourse.julialang.org/t/documenter-jl-no-docs-found-for-in-docs-block/109124 "2024-01-23T01:25:56Z")

</div>

I’m utterly baffled. If I use the following code, Documenter.jl successfully finds all of my markdown documentation and populates an html file: '''@autodocs Modules = \[PsychoJL\] Private = false Order = \[:function, :type…

---

## [Error in FastTransforms.jl for cheb2leg](https://discourse.julialang.org/t/error-in-fasttransforms-jl-for-cheb2leg/108995)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 10:20pm UTC](https://discourse.julialang.org/t/error-in-fasttransforms-jl-for-cheb2leg/108995 "2024-01-22T22:20:31Z")

</div>

I’m working with Legendre transforms and according to FastTransforms.jl, one can do a Chebyshev Transform and use the cheb2leg() function to transform from Chebyshev coefficients to Legendre coefficients. I’ve compared …

---

## [Any workaround for this core Julia bug causing spurious \`UndefVarError\`?](https://discourse.julialang.org/t/any-workaround-for-this-core-julia-bug-causing-spurious-undefvarerror/109083)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [January 22, 2024, 6:45am UTC](https://discourse.julialang.org/t/any-workaround-for-this-core-julia-bug-causing-spurious-undefvarerror/109083 "2024-01-22T06:45:14Z")

</div>

This script succeeds as expected (run as script or try in a fresh REPL session): f(::Type{\<:Tuple{Vararg{A}}}) where {A} = A struct S end f(Tuple{Vararg{S}}) f(Tuple{Vararg{T}} where {T\<:S}) But if the order of the c…

---

## [Help managing legacy registered and local generated packages](https://discourse.julialang.org/t/help-managing-legacy-registered-and-local-generated-packages/109102)

<div class="topic-metadata">

**Author:** [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Replies:** 0\
**Last updated:** [January 22, 2024, 2:19pm UTC](https://discourse.julialang.org/t/help-managing-legacy-registered-and-local-generated-packages/109102 "2024-01-22T14:19:09Z")

</div>

My company has an internal message construction protocol similar to ProtoBuffs. Based on a user specified messaging format a tool is used to build native libraries for different languages. Lets call this tool MsgGen. We …

---

## [Unexpected memory allocation](https://discourse.julialang.org/t/unexpected-memory-allocation/109094)

<div class="topic-metadata">

**Author:** [@JonasKoziorek](https://discourse.julialang.org/u/JonasKoziorek)\
**Replies:** 2\
**Last updated:** [January 22, 2024, 12:25pm UTC](https://discourse.julialang.org/t/unexpected-memory-allocation/109094 "2024-01-22T12:25:57Z")

</div>

Hello, I have the following code: using ForwardDiff function logistic(x, p) return p\*x\*(1-x) end function nth\_composite(func, x0, p, n) x = x0 for \_ in 1:n x = func(x, p) end return x end …

---

## [BinaryBuilder.jl can't dlopen because of libopenlibm.so](https://discourse.julialang.org/t/binarybuilder-jl-cant-dlopen-because-of-libopenlibm-so/108486)

<div class="topic-metadata">

**Author:** [@dstahlke](https://discourse.julialang.org/u/dstahlke)\
**Replies:** 8\
**Last updated:** [January 21, 2024, 11:41am UTC](https://discourse.julialang.org/t/binarybuilder-jl-cant-dlopen-because-of-libopenlibm-so/108486 "2024-01-21T11:41:27Z")

</div>

I’m running into trouble while trying to make a wrapper for the Glasgow Subgraph Solver library (C++). I’ve created a CxxWrap wrapper and verified that it works when manually compiled. Now I’m trying to get it to build…

---

## [Nested parallel computation (pmap + @distributed)](https://discourse.julialang.org/t/nested-parallel-computation-pmap-distributed/109075)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 0\
**Last updated:** [January 21, 2024, 9:28pm UTC](https://discourse.julialang.org/t/nested-parallel-computation-pmap-distributed/109075 "2024-01-21T21:28:46Z")

</div>

I have N datasets (\\text{data}^{}\_1,..., \\text{data}^{}\_{10}). For each dataset I need to solve \\hat{\\theta}^{}\_{d}=\\arg\\min\\limits\_\\theta h(\\theta;\\text{data}^{}\_{d}). I am using pmap to run the optimizations in paralle…

---

## [Transform in DataFrames](https://discourse.julialang.org/t/transform-in-dataframes/109041)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 13\
**Last updated:** [January 21, 2024, 9:15pm UTC](https://discourse.julialang.org/t/transform-in-dataframes/109041 "2024-01-21T21:15:04Z")

</div>

I’m struggling with transformations in DataFrames. To make it simple, let’s start with a very basic transformation. Suppose that I want to add columns :b and :c in the following DataFrame: df = DataFrame(a=repeat(\[1,2\]…

---

## [PrecompileTools and --trace-compile](https://discourse.julialang.org/t/precompiletools-and-trace-compile/109067)

<div class="topic-metadata">

**Author:** [@mchitre](https://discourse.julialang.org/u/mchitre)\
**Replies:** 3\
**Last updated:** [January 21, 2024, 3:26pm UTC](https://discourse.julialang.org/t/precompiletools-and-trace-compile/109067 "2024-01-21T15:26:22Z")

</div>

I have a simple package Test1: module Test1 f1(x) = x + 1 f2(x) = f1(2x) f3(x) = f1(3x) using PrecompileTools @compile\_workload begin f2(1.2) end end # module I load and precompile the package in an environment. I…

---

## [Running tests on code defined in package extension](https://discourse.julialang.org/t/running-tests-on-code-defined-in-package-extension/99691)

<div class="topic-metadata">

**Author:** [@FredW](https://discourse.julialang.org/u/FredW)\
**Replies:** 8\
**Last updated:** [January 21, 2024, 10:51am UTC](https://discourse.julialang.org/t/running-tests-on-code-defined-in-package-extension/99691 "2024-01-21T10:51:23Z")

</div>

Hello, Is there any way to run unit tests on methods/types defined in a package extension (but not exposed by the main package) ? As an example, say that our package exposes only one function: sample(model, rng ....) …

---

## [\`UnicodePlots\` can't well display on Windows10 command-line interface](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 9\
**Last updated:** [January 20, 2024, 11:20pm UTC](https://discourse.julialang.org/t/unicodeplots-cant-well-display-on-windows10-command-line-interface/109019 "2024-01-20T23:20:40Z")

</div>

Write the following code in a Julia script and double click it on Win10: using UnicodePlots: lineplot, scatterplot, barplot lineplot(randn(10)) |\> display scatterplot(randn(10)) |\> display barplot(\[1:10;\], rand(10)) |\> …

---

## [JSON3 indexing nested object by string path](https://discourse.julialang.org/t/json3-indexing-nested-object-by-string-path/109056)

<div class="topic-metadata">

**Author:** [@alexgr](https://discourse.julialang.org/u/alexgr)\
**Replies:** 2\
**Last updated:** [January 20, 2024, 10:07pm UTC](https://discourse.julialang.org/t/json3-indexing-nested-object-by-string-path/109056 "2024-01-20T22:07:14Z")

</div>

Given: using JSON3 json\_string = """ { "name": "rocket1", "observations": \[ { "speed": "100", "acceleration": "1" }, { "speed": "200", "ac…

---

## [OpenSSL.jl eof() blocks with Keep-Alive Connections](https://discourse.julialang.org/t/openssl-jl-eof-blocks-with-keep-alive-connections/109053)

<div class="topic-metadata">

**Author:** [@TheDude](https://discourse.julialang.org/u/TheDude)\
**Replies:** 0\
**Last updated:** [January 20, 2024, 6:25pm UTC](https://discourse.julialang.org/t/openssl-jl-eof-blocks-with-keep-alive-connections/109053 "2024-01-20T18:25:39Z")

</div>

I am struggling with reading from an sslstream (or even just a socket) with a keep alive connection (that is, ones where an HTTP request I send contains the ‘Connection: Keep-Alive header’). Specifically, it appears tha…

---

## [In which file from the Linear Algebra github page are exp, log and ^ functions for matrix input?](https://discourse.julialang.org/t/in-which-file-from-the-linear-algebra-github-page-are-exp-log-and-functions-for-matrix-input/109052)

<div class="topic-metadata">

**Author:** [@MatheusJanczkowski](https://discourse.julialang.org/u/MatheusJanczkowski)\
**Replies:** 2\
**Last updated:** [January 20, 2024, 6:16pm UTC](https://discourse.julialang.org/t/in-which-file-from-the-linear-algebra-github-page-are-exp-log-and-functions-for-matrix-input/109052 "2024-01-20T18:16:30Z")

</div>

I need to look at the Linear Algebra package implementation of these matrix functions, thus, if anyone could send me the link to the file in github, it would be much appreciated. Thanks in advance!

---

## [Unexpected method additions to a struct instance's Function field](https://discourse.julialang.org/t/unexpected-method-additions-to-a-struct-instances-function-field/109032)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 5\
**Last updated:** [January 20, 2024, 5:25pm UTC](https://discourse.julialang.org/t/unexpected-method-additions-to-a-struct-instances-function-field/109032 "2024-01-20T17:25:13Z")

</div>

The thing I’m demonstrating here is that, the letters and numbers instances have property func that gets respective method definitions, but their supposedly separate method additions get defined for the other instance as…

---

## [CSV vs DelimitedFiles vs Numpy](https://discourse.julialang.org/t/csv-vs-delimitedfiles-vs-numpy/108963)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 15\
**Last updated:** [January 20, 2024, 4:38pm UTC](https://discourse.julialang.org/t/csv-vs-delimitedfiles-vs-numpy/108963 "2024-01-20T16:38:34Z")

</div>

I’ve been working on a project where I need to read specific rows and columns from a data file. To determine the most efficient approach, I conducted benchmarks using CSV.jl, DelimitedFiles.jl, and Numpy in Python. The r…

---

## [New Julia LTS? Are many using the current (Julia 1.6) LTS?](https://discourse.julialang.org/t/new-julia-lts-are-many-using-the-current-julia-1-6-lts/93919)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 104\
**Last updated:** [January 20, 2024, 4:04pm UTC](https://discourse.julialang.org/t/new-julia-lts-are-many-using-the-current-julia-1-6-lts/93919 "2024-01-20T16:04:14Z")

</div>

Julia 1.6 was released on 24 March 2021, but wasn’t declared LTS until Dec 2021 (previous LTS, 1.0, was LTS for just over 3 years). Should we go for 18 month LTS support as node.js? There has never been a promise for ho…

---

## [Adding members to an existing Enum](https://discourse.julialang.org/t/adding-members-to-an-existing-enum/108962)

<div class="topic-metadata">

**Author:** [@egvila](https://discourse.julialang.org/u/egvila)\
**Replies:** 5\
**Last updated:** [January 19, 2024, 7:33pm UTC](https://discourse.julialang.org/t/adding-members-to-an-existing-enum/108962 "2024-01-19T19:33:39Z")

</div>

If there is an existing Enum with some members, e.g., @enum Fruit apple=1 orange=2 How could I later add kiwi=3 to it?

---

## [Quoting when constructing commands problematic?](https://discourse.julialang.org/t/quoting-when-constructing-commands-problematic/109023)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [January 19, 2024, 8:41pm UTC](https://discourse.julialang.org/t/quoting-when-constructing-commands-problematic/109023 "2024-01-19T20:41:30Z")

</div>

I think the construction of commands objects on Windows uses improper quoting for directories. See PlotlyJS causes errors, can't figure out how to use PlotlyLight - how to use Plotly from Julia? - #27 by PetrKryslUCSD

---

## [abs(::Int32) slower than abs(::Int)](https://discourse.julialang.org/t/abs-int32-slower-than-abs-int/109011)

<div class="topic-metadata">

**Author:** [@djholiver](https://discourse.julialang.org/u/djholiver)\
**Replies:** 7\
**Last updated:** [January 19, 2024, 8:18pm UTC](https://discourse.julialang.org/t/abs-int32-slower-than-abs-int/109011 "2024-01-19T20:18:30Z")

</div>

Hi, I have a need for a lot of large integer vectors, so have attempted to make use of Int32 rather than Int to minimise the memory footprint. As I need to ensure the values are positive, I call abs(i) on each element d…

---

## [Using Vararg for mixed types](https://discourse.julialang.org/t/using-vararg-for-mixed-types/108973)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 5\
**Last updated:** [January 19, 2024, 4:17pm UTC](https://discourse.julialang.org/t/using-vararg-for-mixed-types/108973 "2024-01-19T16:17:40Z")

</div>

Recently I have started getting the error message: WARNING: Wrapping Vararg directly in UnionAll is deprecated (wrap the tuple instead). │ You may need to write f(x::Vararg{T}) rather than f(x::Vararg{\<:T}) or f(x::Va…

---

## [Strange bug in compiled binaries about SuiteSparse](https://discourse.julialang.org/t/strange-bug-in-compiled-binaries-about-suitesparse/108027)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 3\
**Last updated:** [January 19, 2024, 4:27pm UTC](https://discourse.julialang.org/t/strange-bug-in-compiled-binaries-about-suitesparse/108027 "2024-01-19T16:27:19Z")

</div>

I’m still trying to find a MWE. But let me describe some facts that I’ve figured out. Our code, compiled on Dec 14th, works well. However, when compiled on Dec 23rd, the binary will output the following when running: ┌…

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

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