# General Usage

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

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

**Page:** 29

---

## [Flat shading in Makie](https://discourse.julialang.org/t/flat-shading-in-makie/15216)

<div class="topic-metadata">

**Author:** [@krcools](https://discourse.julialang.org/u/krcools)\
**Replies:** 4\
**Last updated:** [November 24, 2025, 11:20pm UTC](https://discourse.julialang.org/t/flat-shading-in-makie/15216 "2025-11-24T23:20:04Z")

</div>

Is it possible to have per face coloring/lighting for Makie.mesh (as opposed to per vertex)? This is more appropriate for the visualization of polyhedra or other shapes that have sharp corners and for the visualization o…

---

## [Print all outputs of Jupyter Cell](https://discourse.julialang.org/t/print-all-outputs-of-jupyter-cell/134095)

<div class="topic-metadata">

**Author:** [@Ismam](https://discourse.julialang.org/u/Ismam)\
**Replies:** 1\
**Last updated:** [November 24, 2025, 10:13pm UTC](https://discourse.julialang.org/t/print-all-outputs-of-jupyter-cell/134095 "2025-11-24T22:13:26Z")

</div>

Is there a Julia equivalent to the below python code which enables Jupyter notebooks to print all outputs. from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast\_node\_interactivity = "all" I kn…

---

## [Permute NamedTuple based on names of another NamedTuple](https://discourse.julialang.org/t/permute-namedtuple-based-on-names-of-another-namedtuple/134088)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [November 24, 2025, 7:51pm UTC](https://discourse.julialang.org/t/permute-namedtuple-based-on-names-of-another-namedtuple/134088 "2025-11-24T19:51:19Z")

</div>

I would like to perform a calculation in type space: given a NamedTuple{M,K} type, permute its fields so that the names match a NamedTuple{N}. Example: julia\> p1(NamedTuple{(:a,:b)}, NamedTuple{(:b,:a),Tuple{Int,Float64…

---

## [Registering a Julia Package](https://discourse.julialang.org/t/registering-a-julia-package/134081)

<div class="topic-metadata">

**Author:** [@ekneller](https://discourse.julialang.org/u/ekneller)\
**Replies:** 2\
**Last updated:** [November 24, 2025, 5:09pm UTC](https://discourse.julialang.org/t/registering-a-julia-package/134081 "2025-11-24T17:09:54Z")

</div>

I am trying to register my first Julia package called EarthBox and have passed all of the AutoMerge requirements. However, there appears to be a non-package issue with the registration process. See this link for details …

---

## [Updating via JuliaUp](https://discourse.julialang.org/t/updating-via-juliaup/134082)

<div class="topic-metadata">

**Author:** [@Boris](https://discourse.julialang.org/u/Boris)\
**Replies:** 2\
**Last updated:** [November 24, 2025, 4:12pm UTC](https://discourse.julialang.org/t/updating-via-juliaup/134082 "2025-11-24T16:12:39Z")

</div>

So, I wanted to go to 1.12.2 as I saw the post that it is available and when I use list, I don’t see it. Am I missing something? \> juliaup status Default Channel Version Update ---------------------…

---

## [Query compiler's effect modeling](https://discourse.julialang.org/t/query-compilers-effect-modeling/134079)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [November 24, 2025, 2:15pm UTC](https://discourse.julialang.org/t/query-compilers-effect-modeling/134079 "2025-11-24T14:15:46Z")

</div>

Before using @assume\_effects, is it possible to check what the compiler already figured out about a function? I can of course do it very indirectly (call the function and see what’s eliminated), but it would be great to…

---

## [Get Lagrange multipliers from Ipopt with Optimization.jl](https://discourse.julialang.org/t/get-lagrange-multipliers-from-ipopt-with-optimization-jl/134074)

<div class="topic-metadata">

**Author:** [@nico](https://discourse.julialang.org/u/nico)\
**Replies:** 1\
**Last updated:** [November 24, 2025, 1:41pm UTC](https://discourse.julialang.org/t/get-lagrange-multipliers-from-ipopt-with-optimization-jl/134074 "2025-11-24T13:41:53Z")

</div>

Hi everyone! I’m working with the Julia packages Optimization.jl and Ipopt.jl to solve a nonlinear programming (NLP) problem. I’m successfully solving the problem, but I need to extract the final Lagrange multipliers (…

---

## [Mooncake, Turing, and CI](https://discourse.julialang.org/t/mooncake-turing-and-ci/134067)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 3\
**Last updated:** [November 24, 2025, 11:20am UTC](https://discourse.julialang.org/t/mooncake-turing-and-ci/134067 "2025-11-24T11:20:45Z")

</div>

Hello, I finally am switching to DifferentiationInterface for the tests of a package of mine and I don’t think I could be happier! It lets me quickly write tests in a coherent manner, to try different backends. Amazing…

---

## [\[juliacall\] Invoking functions with names not allowed by Python](https://discourse.julialang.org/t/juliacall-invoking-functions-with-names-not-allowed-by-python/134056)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 1\
**Last updated:** [November 23, 2025, 10:52pm UTC](https://discourse.julialang.org/t/juliacall-invoking-functions-with-names-not-allowed-by-python/134056 "2025-11-23T22:52:48Z")

</div>

I’d like to make a Python wrapper for a Julia package that implements methods for Base operators like + and \*, among others. The wrapper class should use juliacall to create the object and then simply pass method calls t…

---

## [Why can't a tuple of types have an abstract type with Type selectors?](https://discourse.julialang.org/t/why-cant-a-tuple-of-types-have-an-abstract-type-with-type-selectors/134036)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 7\
**Last updated:** [November 23, 2025, 11:12am UTC](https://discourse.julialang.org/t/why-cant-a-tuple-of-types-have-an-abstract-type-with-type-selectors/134036 "2025-11-23T11:12:10Z")

</div>

julia\> 1 isa Int true julia\> (1,) isa Tuple{Int} true julia\> Int isa Type{Int} true julia\> (Int,) isa Tuple{Type{Int}} # ??? false And how does dispatch work if this doesn’t work for method signatures as tuple types? …

---

## [Alternative to map() for grouped dataframe?](https://discourse.julialang.org/t/alternative-to-map-for-grouped-dataframe/134038)

<div class="topic-metadata">

**Author:** [@Quantodeluz](https://discourse.julialang.org/u/Quantodeluz)\
**Replies:** 9\
**Last updated:** [November 22, 2025, 9:42pm UTC](https://discourse.julialang.org/t/alternative-to-map-for-grouped-dataframe/134038 "2025-11-22T21:42:04Z")

</div>

I’m trying to do one quadratic fit per subdataframe on a grouped dataframe (using two of it’s columns obviously), but i can’t use map() to do it because it’s reserved, and doing a list comprehension throws an error becau…

---

## [Dagger.jl optimising a two step matrix-vector multiplication](https://discourse.julialang.org/t/dagger-jl-optimising-a-two-step-matrix-vector-multiplication/134030)

<div class="topic-metadata">

**Author:** [@cneverett](https://discourse.julialang.org/u/cneverett)\
**Replies:** 1\
**Last updated:** [November 22, 2025, 9:23pm UTC](https://discourse.julialang.org/t/dagger-jl-optimising-a-two-step-matrix-vector-multiplication/134030 "2025-11-22T21:23:30Z")

</div>

Hi All, I am attempting to scale some serial code used in my code package Diplodocus.jl to be compatible with HPC systems, following suggestions to try distributing operations using Dagger.jl. My problem (in serial) is …

---

## [Jupyter classic](https://discourse.julialang.org/t/jupyter-classic/133844)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 4\
**Last updated:** [November 22, 2025, 7:20pm UTC](https://discourse.julialang.org/t/jupyter-classic/133844 "2025-11-22T19:20:48Z")

</div>

Hi, I’m always using jupyer to create my julia notebooks, but always using the classic jupyter, not the jupyterlab one which is very, very igly looking to my eyes. Up until a few days ago I could revert back to the clas…

---

## [Stream into JLD2 file](https://discourse.julialang.org/t/stream-into-jld2-file/134025)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 8\
**Last updated:** [November 22, 2025, 11:57am UTC](https://discourse.julialang.org/t/stream-into-jld2-file/134025 "2025-11-22T11:57:48Z")

</div>

I am trying to write a larger than memory dataset to a JLD2 file in a streaming way. That dataset is generated by an iterator of known length and element type. So I thought I could use JLD2.create\_dataset() to create tha…

---

## [Reducing over Point objects](https://discourse.julialang.org/t/reducing-over-point-objects/133540)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 9\
**Last updated:** [November 22, 2025, 10:27am UTC](https://discourse.julialang.org/t/reducing-over-point-objects/133540 "2025-11-22T10:27:25Z")

</div>

Julia has many statistics-computing functions, typically a “reduce” kind of function, that can take either a simple vector, or go over an array and compute the output over row, columns, etc according to the dims paramete…

---

## [Missing Tree Hash](https://discourse.julialang.org/t/missing-tree-hash/134039)

<div class="topic-metadata">

**Author:** [@Chrysoberyl](https://discourse.julialang.org/u/Chrysoberyl)\
**Replies:** 2\
**Last updated:** [November 22, 2025, 8:46am UTC](https://discourse.julialang.org/t/missing-tree-hash/134039 "2025-11-22T08:46:03Z")

</div>

In the versioning file of GNNGraphs: General/G/GNNGraphs/Versions.toml at master · JuliaRegistries/General · GitHub There is this line: \["1.4.2"\] git-tree-sha1 = "b3d3e4edd78a75d90089b4c13df1650895fbc7b2" but after cl…

---

## [Why is a \`isfoo(x) = x === foo\` method defined for some singleton types?](https://discourse.julialang.org/t/why-is-a-isfoo-x-x-foo-method-defined-for-some-singleton-types/134018)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 19\
**Last updated:** [November 22, 2025, 1:00am UTC](https://discourse.julialang.org/t/why-is-a-isfoo-x-x-foo-method-defined-for-some-singleton-types/134018 "2025-11-22T01:00:32Z")

</div>

Base and some libraries introduce a function to test for singleton types (ismissing, isnothing) that is basically an application of ===. I am curious about the rationale for this API choice. (Not questioning how it is i…

---

## [Confusion about type constraints in where clauses](https://discourse.julialang.org/t/confusion-about-type-constraints-in-where-clauses/134019)

<div class="topic-metadata">

**Author:** [@Graham\_Gill](https://discourse.julialang.org/u/Graham_Gill)\
**Replies:** 4\
**Last updated:** [November 21, 2025, 11:02pm UTC](https://discourse.julialang.org/t/confusion-about-type-constraints-in-where-clauses/134019 "2025-11-21T23:02:49Z")

</div>

Why this julia\> g(::Type{S}, ::Type{T}) where {T, S\>:T} = (S,T) g (generic function with 1 method) julia\> g(Integer, Int) ERROR: UndefVarError: \`S\` not defined in static parameter matching Suggestion: run Test.detect\_u…

---

## [Juliaup (nightly) download not working](https://discourse.julialang.org/t/juliaup-nightly-download-not-working/132411)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 8:19pm UTC](https://discourse.julialang.org/t/juliaup-nightly-download-not-working/132411 "2025-11-21T20:19:12Z")

</div>

Can other confirm, or if only problem for me locally, know why? \[I’ve done this before, worked then, couldn’t update either so I tried this after removing.\] $ juliaup add nightly Installing Julia latest-linux-x86\_64 Er…

---

## [Reinterpret interleaved real and imaginary numbers to an Abstract Vector](https://discourse.julialang.org/t/reinterpret-interleaved-real-and-imaginary-numbers-to-an-abstract-vector/134033)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [November 21, 2025, 4:19pm UTC](https://discourse.julialang.org/t/reinterpret-interleaved-real-and-imaginary-numbers-to-an-abstract-vector/134033 "2025-11-21T16:19:10Z")

</div>

I am reading interleaved complex data as (abscissa, real, imaginary) numbers in one vector. Elements 1, 4 ,7, … are the abscissa, and elements (2,3), (4,5), … are the (real, imaginary) components of the complex numbers.…

---

## [Segmentation fault at rmprocs()](https://discourse.julialang.org/t/segmentation-fault-at-rmprocs/134022)

<div class="topic-metadata">

**Author:** [@mancolric](https://discourse.julialang.org/u/mancolric)\
**Replies:** 4\
**Last updated:** [November 21, 2025, 3:12pm UTC](https://discourse.julialang.org/t/segmentation-fault-at-rmprocs/134022 "2025-11-21T15:12:36Z")

</div>

Hello, I am trying to run this simple MWE.jl file in a HPC: using Distributed addprocs(2) println("Processes added") rmprocs(workers()) println("Processes removed") If I run julia MWE.jl in my laptop, it works fine.…

---

## [Seg fault when using julia (pakcage installation, profiling)](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991)

<div class="topic-metadata">

**Author:** [@Ahmed\_ALKAF](https://discourse.julialang.org/u/Ahmed_ALKAF)\
**Replies:** 15\
**Last updated:** [November 21, 2025, 2:56pm UTC](https://discourse.julialang.org/t/seg-fault-when-using-julia-pakcage-installation-profiling/133991 "2025-11-21T14:56:15Z")

</div>

Hello, I’m new to Julia so I don’t know if seg faults are a classic thing but anyway, I have one and I don’t know why. I installed Julia using Juliaup I’m on linux, so I just ran the command curl -fsSL https://instal…

---

## [Makie：ERROR: MethodError: no method matching create\_dim\_conversion(::Type{Union{Missing, Float64}}) The function \`create\_dim\_conversion\` exists, but no method is defined for this combination of argument types](https://discourse.julialang.org/t/makie-error-methoderror-no-method-matching-create-dim-conversion-type-union-missing-float64-the-function-create-dim-conversion-exists-but-no-method-is-defined-for-this-combination-of-argument-types/131156)

<div class="topic-metadata">

**Author:** [@dk-zen](https://discourse.julialang.org/u/dk-zen)\
**Replies:** 5\
**Last updated:** [November 21, 2025, 2:39pm UTC](https://discourse.julialang.org/t/makie-error-methoderror-no-method-matching-create-dim-conversion-type-union-missing-float64-the-function-create-dim-conversion-exists-but-no-method-is-defined-for-this-combination-of-argument-types/131156 "2025-11-21T14:39:05Z")

</div>

I upgraded Makie and the code that was working fine before started to give errors. Has anyone encountered this problem? or Would it be better to go back to the previous version? ERROR: MethodError: no method matching c…

---

## [Multidimensional array comprehension](https://discourse.julialang.org/t/multidimensional-array-comprehension/134004)

<div class="topic-metadata">

**Author:** [@fps](https://discourse.julialang.org/u/fps)\
**Replies:** 13\
**Last updated:** [November 21, 2025, 8:31am UTC](https://discourse.julialang.org/t/multidimensional-array-comprehension/134004 "2025-11-21T08:31:59Z")

</div>

I wonder it is possible to get the following matrix with a single array comprehension that’s also efficient to evaluate: (1, 1, 1) (1, 2, 1) (1, 1, 2) (1, 2, 2) (1, 1, 3) (1, 2, 3).... (2, 1, 1) (2, 2, 1) (2, 1, 2) (2…

---

## [Is there any way to use cd with multithreading?](https://discourse.julialang.org/t/is-there-any-way-to-use-cd-with-multithreading/133984)

<div class="topic-metadata">

**Author:** [@eott-siz](https://discourse.julialang.org/u/eott-siz)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 8:00am UTC](https://discourse.julialang.org/t/is-there-any-way-to-use-cd-with-multithreading/133984 "2025-11-21T08:00:53Z")

</div>

I’m currently working on a simulation server for running simulations with our simulation engine. The simulation input is uploaded via a Python flask API, but the simulation code and the code handling execution is in Juli…

---

## [Best practices for optimization problems with ODE solves and eigen calls](https://discourse.julialang.org/t/best-practices-for-optimization-problems-with-ode-solves-and-eigen-calls/133995)

<div class="topic-metadata">

**Author:** [@Gavin-Rockwood](https://discourse.julialang.org/u/Gavin-Rockwood)\
**Replies:** 12\
**Last updated:** [November 21, 2025, 7:47am UTC](https://discourse.julialang.org/t/best-practices-for-optimization-problems-with-ode-solves-and-eigen-calls/133995 "2025-11-21T07:47:22Z")

</div>

I am working on an optimization which has the following structure Build some Hamiltonian large matrices which are functions of the parameters I am optimizing over Project onto the lowest couple of energy levels Calcula…

---

## [Problems with GLMakie](https://discourse.julialang.org/t/problems-with-glmakie/133922)

<div class="topic-metadata">

**Author:** [@Mervyn\_Larrier](https://discourse.julialang.org/u/Mervyn_Larrier)\
**Replies:** 6\
**Last updated:** [November 21, 2025, 2:49am UTC](https://discourse.julialang.org/t/problems-with-glmakie/133922 "2025-11-21T02:49:59Z")

</div>

I’m trying to learn how to use GLMakie having had a lot of success with CairoMakie. But I immediately ran into issues. VSCode is my main text editor, and whereas I’ve never had an issue with CairoMakie, I can’t say the s…

---

## [VSC update screwed the REPL?](https://discourse.julialang.org/t/vsc-update-screwed-the-repl/134012)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 3\
**Last updated:** [November 21, 2025, 1:20am UTC](https://discourse.julialang.org/t/vsc-update-screwed-the-repl/134012 "2025-11-21T01:20:07Z")

</div>

Hi, is it only me or the last VSC update screwed the ability to open the Julia REPL? It happened to me after the last update but even when I installed a September version I was also not able to open the REPL. The big sh…

---

## [Very best way to concatenate an array of arrays](https://discourse.julialang.org/t/very-best-way-to-concatenate-an-array-of-arrays/8672)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 49\
**Last updated:** [November 20, 2025, 11:39pm UTC](https://discourse.julialang.org/t/very-best-way-to-concatenate-an-array-of-arrays/8672 "2025-11-20T23:39:00Z")

</div>

I’ve been wondering about this for a while. Suppose I want to concatenate arrays of arrays. Currently the only way I know of doing that is vcat(A...) (or could be hcat, whatever). My understanding is that this is doub…

---

## [JLD2 - load from IOBuffer](https://discourse.julialang.org/t/jld2-load-from-iobuffer/67641)

<div class="topic-metadata">

**Author:** [@cwiese](https://discourse.julialang.org/u/cwiese)\
**Replies:** 5\
**Last updated:** [November 20, 2025, 9:04pm UTC](https://discourse.julialang.org/t/jld2-load-from-iobuffer/67641 "2025-11-20T21:04:33Z")

</div>

I am not finding a method to load a JLD2 file using JLD2.load() from IOBuffer. This seems basic for saving and loading to cloud like S3 or Azure Blob storage (which is my case). I would like to avoid reading from a REST …

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

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