# General Usage

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

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

**Page:** 140

---

## [Fully archive working environment (When Manifest is not enough)](https://discourse.julialang.org/t/fully-archive-working-environment-when-manifest-is-not-enough/118446)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [August 21, 2024, 9:21am UTC](https://discourse.julialang.org/t/fully-archive-working-environment-when-manifest-is-not-enough/118446 "2024-08-21T09:21:50Z")

</div>

Is there a way to take a working environment and fully archive it to be 100% reproducible offline ? E.g., I have a messed-up project that consists of public registry packages unversioned github packages local packages …

---

## [Tell the compiler the return type of function chosen at runtime](https://discourse.julialang.org/t/tell-the-compiler-the-return-type-of-function-chosen-at-runtime/118429)

<div class="topic-metadata">

**Author:** [@ljg](https://discourse.julialang.org/u/ljg)\
**Replies:** 3\
**Last updated:** [August 21, 2024, 7:10am UTC](https://discourse.julialang.org/t/tell-the-compiler-the-return-type-of-function-chosen-at-runtime/118429 "2024-08-21T07:10:52Z")

</div>

The following MRE function: function fun(idx, a::Int, b::Int) funs = \[+, -\] return funs\[idx\](a, b) end Is not type-stable because Julia does not infer the return type of funs\[idx\]. Here is the output of @code\_…

---

## [Reduced row echelon form](https://discourse.julialang.org/t/reduced-row-echelon-form/8656)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 6\
**Last updated:** [August 20, 2024, 6:39pm UTC](https://discourse.julialang.org/t/reduced-row-echelon-form/8656 "2024-08-20T18:39:40Z")

</div>

There used to be a rref function to put a matrix in reduced row echelon form, but it is not available anymore. Is it in some package, or has it been renamed?

---

## [Performance vs notation tradeoff: DataFrame vs AxisArray vs StaticArray vs?](https://discourse.julialang.org/t/performance-vs-notation-tradeoff-dataframe-vs-axisarray-vs-staticarray-vs/118323)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 4:47pm UTC](https://discourse.julialang.org/t/performance-vs-notation-tradeoff-dataframe-vs-axisarray-vs-staticarray-vs/118323 "2024-08-20T16:47:33Z")

</div>

I’ve got two datasets that would look like this in a dataframe (see later for MWE): julia\> df1 = mat2df(mat1, colnames1, id1) 8×5 DataFrame Row │ id col1 col2 col3 col4 │ String Int64 Int64 Int64 …

---

## [Create text document without LaTeX](https://discourse.julialang.org/t/create-text-document-without-latex/118417)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 3\
**Last updated:** [August 20, 2024, 4:01pm UTC](https://discourse.julialang.org/t/create-text-document-without-latex/118417 "2024-08-20T16:01:02Z")

</div>

Is there a package, preferably in pure Julia, that can create Odt/Pdf documents without LaTeX or Pandoc ?

---

## [What are good ways to structure reoccurring phrases in doc-strings](https://discourse.julialang.org/t/what-are-good-ways-to-structure-reoccurring-phrases-in-doc-strings/118302)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 3:59pm UTC](https://discourse.julialang.org/t/what-are-good-ways-to-structure-reoccurring-phrases-in-doc-strings/118302 "2024-08-20T15:59:22Z")

</div>

I recently refactored my doc strings after this discussion. In that thread already, @jules wrote, that in Makie they splice a lot of doc strings. I started doing something like that as well collecting phrases I often us…

---

## [How can I express the abstract type of a multi-parameter type that only matches the second parameter](https://discourse.julialang.org/t/how-can-i-express-the-abstract-type-of-a-multi-parameter-type-that-only-matches-the-second-parameter/118405)

<div class="topic-metadata">

**Author:** [@Blumenkranz](https://discourse.julialang.org/u/Blumenkranz)\
**Replies:** 5\
**Last updated:** [August 20, 2024, 1:49pm UTC](https://discourse.julialang.org/t/how-can-i-express-the-abstract-type-of-a-multi-parameter-type-that-only-matches-the-second-parameter/118405 "2024-08-20T13:49:19Z")

</div>

If I have a type VS\_Data{DIM,NDF} and a instance a::VS\_Data{3,2}. Then we have isa(a,VS\_Data{3})=true but isa(a,VS\_Data{2})=false, which implies that VS\_Data{DIM,NDF}\<:VS\_Data{DIM}. My question is how can I express the a…

---

## [Find all functions/methods that take two numbers as arguments](https://discourse.julialang.org/t/find-all-functions-methods-that-take-two-numbers-as-arguments/118403)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [August 20, 2024, 5:35am UTC](https://discourse.julialang.org/t/find-all-functions-methods-that-take-two-numbers-as-arguments/118403 "2024-08-20T05:35:14Z")

</div>

I’m implementing a new subtype of Integer (should be a PR to Julia’s Base), so I want a list of all functions that have a type signature like (::Int16, ::Int16), so I could implement the operation for the new type. I re…

---

## [NeuralOperators.jl Performance (compared with Python)](https://discourse.julialang.org/t/neuraloperators-jl-performance-compared-with-python/106076)

<div class="topic-metadata">

**Author:** [@Julian\_Villaquira](https://discourse.julialang.org/u/Julian_Villaquira)\
**Replies:** 8\
**Last updated:** [August 20, 2024, 3:35am UTC](https://discourse.julialang.org/t/neuraloperators-jl-performance-compared-with-python/106076 "2024-08-20T03:35:59Z")

</div>

Hi, I am training a Neural Operator to learn a map between a two dimensional domain. For Julia, this is a MWE of the problem I am considering: # Imports. using NeuralOperators using Flux using FluxTraining using MLUtils…

---

## [Problems with sequential update with @turbo](https://discourse.julialang.org/t/problems-with-sequential-update-with-turbo/118397)

<div class="topic-metadata">

**Author:** [@2xu2](https://discourse.julialang.org/u/2xu2)\
**Replies:** 0\
**Last updated:** [August 20, 2024, 12:42am UTC](https://discourse.julialang.org/t/problems-with-sequential-update-with-turbo/118397 "2024-08-20T00:42:53Z")

</div>

I have the following minimal working example that contains two weird behaviors of @turbo with sequential update: using LoopVectorization # Incorrect usage of @turbo function wrong\_example(n) x = 0.0 y = zeros(…

---

## [LibPQ on the Raspberry PI](https://discourse.julialang.org/t/libpq-on-the-raspberry-pi/118282)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [August 20, 2024, 12:17am UTC](https://discourse.julialang.org/t/libpq-on-the-raspberry-pi/118282 "2024-08-20T00:17:44Z")

</div>

I have LibPQ working on a Windows machine. I am now trying to get it to work on a Raspberry PI 4. The RPI has 64 bit bookworm installed as Raspberry PI OS. It is up to date. I installed Postgresql using the installat…

---

## [Symbolics vs Reduce?](https://discourse.julialang.org/t/symbolics-vs-reduce/118322)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 11\
**Last updated:** [August 19, 2024, 10:53pm UTC](https://discourse.julialang.org/t/symbolics-vs-reduce/118322 "2024-08-19T22:53:17Z")

</div>

I have been using Symbolics in Julia and the only other symbolic algebra package I have used is sympy (from python). My question is does Julia Symbolics/SymbolicUtils use Reduce (I do see there is a Julia interface for …

---

## [The new \`invmod(n, T)\` function and even arguments](https://discourse.julialang.org/t/the-new-invmod-n-t-function-and-even-arguments/118377)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 2\
**Last updated:** [August 19, 2024, 8:45pm UTC](https://discourse.julialang.org/t/the-new-invmod-n-t-function-and-even-arguments/118377 "2024-08-19T20:45:59Z")

</div>

I was reading about new features in Julia 1.11 and happened upon this new invmod capability: invmod(n::BitInteger): efficient native modular inverses by StefanKarpinski · Pull Request #52180 · JuliaLang/julia · GitHub . …

---

## [\[ANN\] Introducing the JuliaHealth Blog!](https://discourse.julialang.org/t/ann-introducing-the-juliahealth-blog/118388)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [August 19, 2024, 8:19pm UTC](https://discourse.julialang.org/t/ann-introducing-the-juliahealth-blog/118388 "2024-08-19T20:19:32Z")

</div>

Hi folks! :wave: Have an announcement to make: We have a public JuliaHealth Blog now! There is not much on the blog at this time beyond us just now having the dedicated space. It is built using quarto and each blog pos…

---

## [Can you overload if-else-blocks? (for bounded model checking)](https://discourse.julialang.org/t/can-you-overload-if-else-blocks-for-bounded-model-checking/118364)

<div class="topic-metadata">

**Author:** [@phK3](https://discourse.julialang.org/u/phK3)\
**Replies:** 2\
**Last updated:** [August 19, 2024, 7:19pm UTC](https://discourse.julialang.org/t/can-you-overload-if-else-blocks-for-bounded-model-checking/118364 "2024-08-19T19:19:30Z")

</div>

Recently we had a really hard-to-debug error in our code, so I was thinking about doing formal verification - especially bounded model checking - for julia. I thought that translating a piece of Julia code to an equival…

---

## [Best way to calculate B' \* A \* B](https://discourse.julialang.org/t/best-way-to-calculate-b-a-b/118382)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 7:09pm UTC](https://discourse.julialang.org/t/best-way-to-calculate-b-a-b/118382 "2024-08-19T19:09:22Z")

</div>

I’d like to calculate B' \* A \* B, where A is Hermitian, without allocating intermediary results. Note that B will be, in general, a rectangular matrix. I’m currently using Tullio to do the calculation, but I was wonderin…

---

## [Activating and adding the packages in new folder only include the project and Manifest toml files](https://discourse.julialang.org/t/activating-and-adding-the-packages-in-new-folder-only-include-the-project-and-manifest-toml-files/118374)

<div class="topic-metadata">

**Author:** [@fasihullahsaleem](https://discourse.julialang.org/u/fasihullahsaleem)\
**Replies:** 2\
**Last updated:** [August 19, 2024, 3:44pm UTC](https://discourse.julialang.org/t/activating-and-adding-the-packages-in-new-folder-only-include-the-project-and-manifest-toml-files/118374 "2024-08-19T15:44:38Z")

</div>

Hello, so I want to ask some questions as I didn’t find answer to these. When I try to remove the Package that I installed before, it says it removed it. but when I go to the folder of packages that package exists in i…

---

## [Counting Exchanges To Order Array with Repeats](https://discourse.julialang.org/t/counting-exchanges-to-order-array-with-repeats/118342)

<div class="topic-metadata">

**Author:** [@brombo](https://discourse.julialang.org/u/brombo)\
**Replies:** 9\
**Last updated:** [August 19, 2024, 1:57pm UTC](https://discourse.julialang.org/t/counting-exchanges-to-order-array-with-repeats/118342 "2024-08-19T13:57:56Z")

</div>

I am asking this question to avoid reinventing the wheel (also because I am lazy). I have to arrays of integers in normal order with no repeats within each array. Then I generate an array by concatenation the two array…

---

## [Determining lower bound of compat statement](https://discourse.julialang.org/t/determining-lower-bound-of-compat-statement/117248)

<div class="topic-metadata">

**Author:** [@bclyons12](https://discourse.julialang.org/u/bclyons12)\
**Replies:** 1\
**Last updated:** [August 19, 2024, 1:45pm UTC](https://discourse.julialang.org/t/determining-lower-bound-of-compat-statement/117248 "2024-08-19T13:45:19Z")

</div>

Is there a way to test the lower bound compatibility of a package systematically, say by doing a binary search to find the lowest version for which tests pass? When adding a new compat entry to a Project.toml, CompatHelp…

---

## [Documentation to pdf](https://discourse.julialang.org/t/documentation-to-pdf/118359)

<div class="topic-metadata">

**Author:** [@jackmarry](https://discourse.julialang.org/u/jackmarry)\
**Replies:** 3\
**Last updated:** [August 19, 2024, 1:36pm UTC](https://discourse.julialang.org/t/documentation-to-pdf/118359 "2024-08-19T13:36:31Z")

</div>

I want to download the documentation of the Julia package in PDF format directly and in one go. How can I do it?

---

## [ModelingToolkit fails to pre-compile](https://discourse.julialang.org/t/modelingtoolkit-fails-to-pre-compile/118361)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [August 19, 2024, 11:10am UTC](https://discourse.julialang.org/t/modelingtoolkit-fails-to-pre-compile/118361 "2024-08-19T11:10:36Z")

</div>

Since this morning I cannot freshly install ModellingToolkit any longer, neither the latest nor older versions. I get this error: The following 1 direct dependency failed to precompile: ModelingToolkit \[961ee093-0014-5…

---

## [Jupyter Notebook nbconvert does not fail on julia error](https://discourse.julialang.org/t/jupyter-notebook-nbconvert-does-not-fail-on-julia-error/118168)

<div class="topic-metadata">

**Author:** [@Simon\_Exner](https://discourse.julialang.org/u/Simon_Exner)\
**Replies:** 3\
**Last updated:** [August 19, 2024, 9:04am UTC](https://discourse.julialang.org/t/jupyter-notebook-nbconvert-does-not-fail-on-julia-error/118168 "2024-08-19T09:04:59Z")

</div>

Hi, I have trouble with the following commands: jupyter nbconvert --ExecutePreprocessor.kernel\_name="julia-1.10" --to notebook --inplace --execute ${{ env.FILE }} jupyter nbconvert --to script ${{ env.FILE }} jupyter n…

---

## [Plots on Windows: failed to precompile FFMPEG](https://discourse.julialang.org/t/plots-on-windows-failed-to-precompile-ffmpeg/118360)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 7\
**Last updated:** [August 18, 2024, 5:41pm UTC](https://discourse.julialang.org/t/plots-on-windows-failed-to-precompile-ffmpeg/118360 "2024-08-18T17:41:56Z")

</div>

Is there any news on this problem? I have the same issue on a Windows 10 machine, Julia 1.9.3, Plots v1.39.0. The error I get is the following: ERROR: LoadError: InitError: could not load library "C:\\Users\\viv\\.julia\\a…

---

## [GKSQT problem, help needed to debug](https://discourse.julialang.org/t/gksqt-problem-help-needed-to-debug/106892)

<div class="topic-metadata">

**Author:** [@HugoTrentesaux](https://discourse.julialang.org/u/HugoTrentesaux)\
**Replies:** 7\
**Last updated:** [August 18, 2024, 6:25pm UTC](https://discourse.julialang.org/t/gksqt-problem-help-needed-to-debug/106892 "2024-08-18T18:25:10Z")

</div>

I’m using Julia 1.9.4 binaries from AUR (en) - julia-bin GR version v0.72.10 WebIO version v0.8.21 Mux version v1.0.1 Trying to make an interactif plot following the Mux example here: How to make dynamic plots with s…

---

## [Plots broken on Windows bc FFMPEG broken bc avcodec-58.dll cant be loaded](https://discourse.julialang.org/t/plots-broken-on-windows-bc-ffmpeg-broken-bc-avcodec-58-dll-cant-be-loaded/48092)

<div class="topic-metadata">

**Author:** [@jdad](https://discourse.julialang.org/u/jdad)\
**Replies:** 20\
**Last updated:** [October 29, 2020, 8:09am UTC](https://discourse.julialang.org/t/plots-broken-on-windows-bc-ffmpeg-broken-bc-avcodec-58-dll-cant-be-loaded/48092 "2020-10-29T08:09:19Z")

</div>

Hello, since me last “up” one hour ago, Plots doesnot work anymore (on my Windows 10 machine) because FFMPEG seems broken (on a fresh (empty) .julia) davidj@vivojdw ~$ julia \_ \_ \_ \_(\_)\_ | D…

---

## [Saving and loading model with Flux.jl](https://discourse.julialang.org/t/saving-and-loading-model-with-flux-jl/118328)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 2\
**Last updated:** [August 18, 2024, 11:11am UTC](https://discourse.julialang.org/t/saving-and-loading-model-with-flux-jl/118328 "2024-08-18T11:11:05Z")

</div>

I want to save and load trained model with jld2. The model is just getStarted example from Flux documentation, and it works perfectly fine, without saving and loading step, but I want to plot the data with previously tra…

---

## [Automatically generating methods with a macro](https://discourse.julialang.org/t/automatically-generating-methods-with-a-macro/118320)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 5\
**Last updated:** [August 18, 2024, 6:09am UTC](https://discourse.julialang.org/t/automatically-generating-methods-with-a-macro/118320 "2024-08-18T06:09:45Z")

</div>

I was recently implementing a bunch of functions which all had multiple methods with identical structure. The methods differed only in their arguments and some preprocessing steps. EDIT (borrowed from a later post): Th…

---

## [Julia performance on the same task on different CPUs and OSs](https://discourse.julialang.org/t/julia-performance-on-the-same-task-on-different-cpus-and-oss/117916)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 8\
**Last updated:** [August 18, 2024, 4:57am UTC](https://discourse.julialang.org/t/julia-performance-on-the-same-task-on-different-cpus-and-oss/117916 "2024-08-18T04:57:22Z")

</div>

The workload Arrow files with 250K individuals and 3M education status observations Read into memory as DataFrames, join individual records with education status observations. Group resulting data frame by individual a…

---

## [Makie isosurface transparency?](https://discourse.julialang.org/t/makie-isosurface-transparency/65214)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 13\
**Last updated:** [August 18, 2024, 4:51am UTC](https://discourse.julialang.org/t/makie-isosurface-transparency/65214 "2024-08-18T04:51:42Z")

</div>

In Makie is there a way to make an isosurface have some partial transparency? There used to be I think, but I cant see an alpha option or similar http://makie.juliaplots.org/dev/plotting\_functions/volume.html Over at h…

---

## [Most efficient way to obtain the decimal representation of a rational number?](https://discourse.julialang.org/t/most-efficient-way-to-obtain-the-decimal-representation-of-a-rational-number/118303)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 12\
**Last updated:** [August 17, 2024, 11:08pm UTC](https://discourse.julialang.org/t/most-efficient-way-to-obtain-the-decimal-representation-of-a-rational-number/118303 "2024-08-17T23:08:09Z")

</div>

Let’s say I want to obtain the decimal representation of p//q e.g. 1/2 is 0.5 so I would store that as (\[0, 5\], 2) where the 2nd value in the tuple is the position where the digits don’t repeat. And so 1//7 = 0.142857 t…

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

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