# General Usage

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

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

**Page:** 240

---

## [Issues installing python packages with CondaPkg](https://discourse.julialang.org/t/issues-installing-python-packages-with-condapkg/104552)

<div class="topic-metadata">

**Author:** [@Ignacio\_Loaiza](https://discourse.julialang.org/u/Ignacio_Loaiza)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 4:57pm UTC](https://discourse.julialang.org/t/issues-installing-python-packages-with-condapkg/104552 "2023-10-11T16:57:43Z")

</div>

Hi everyone! I have a Julia package, which I have been developing for some time. Today I was making some changes to it, and at some point something got broken that I don’t know how to fix. The problem happens when I try…

---

## [How to rotate a Meshes.jl graphic?](https://discourse.julialang.org/t/how-to-rotate-a-meshes-jl-graphic/104865)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 4:32pm UTC](https://discourse.julialang.org/t/how-to-rotate-a-meshes-jl-graphic/104865 "2023-10-11T16:32:14Z")

</div>

Hello, To rotate a Meshes.jl graphic, I do: fig, ax, plt = MeshViz.viz( Meshes.Box(Meshes.Point(-2.5, -2.5, -0.5), Meshes.Point(2.5, 2.5, 1.5)); alpha = 0 ) # bounding box to fix the frame ax.show\_axis =…

---

## [ERROR: LoadError: ArgumentError: Package LibGit2 does not have LibGit2\_jll in its dependencies](https://discourse.julialang.org/t/error-loaderror-argumenterror-package-libgit2-does-not-have-libgit2-jll-in-its-dependencies/104852)

<div class="topic-metadata">

**Author:** [@goedman](https://discourse.julialang.org/u/goedman)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 4:29pm UTC](https://discourse.julialang.org/t/error-loaderror-argumenterror-package-libgit2-does-not-have-libgit2-jll-in-its-dependencies/104852 "2023-10-11T16:29:39Z")

</div>

Since a number of weeks I can no longer initiate Pkg mode in Julia-1.11-DEV… . Any hints on how to work around that? Thanks! In my .julia/environments/Manifest.toml the entry for LibGIT2 is: \[\[deps.LibGit2\]\] deps = \[…

---

## [Proper way to install Julia with \`OPENBLAS\_NUM\_THREADS=1\`](https://discourse.julialang.org/t/proper-way-to-install-julia-with-openblas-num-threads-1/104855)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 3:29pm UTC](https://discourse.julialang.org/t/proper-way-to-install-julia-with-openblas-num-threads-1/104855 "2023-10-11T15:29:36Z")

</div>

Related to: Odd thread calling behavior on HPC I’ve been experiencing some issues on our uni’s HPC due to OpenBLAS thread calling (see link to related discussion above). The issue can be resolved by just adding/modifyin…

---

## [Display with different plots show the same plot several times](https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897)

<div class="topic-metadata">

**Author:** [@ovt](https://discourse.julialang.org/u/ovt)\
**Replies:** 1\
**Last updated:** [October 11, 2023, 3:06pm UTC](https://discourse.julialang.org/t/display-with-different-plots-show-the-same-plot-several-times/103897 "2023-10-11T15:06:41Z")

</div>

Here is a minimal example: using PlotlyLight display(Plot(y=rand(10))) display(Plot(y=rand(10))) If I run this code inside a script, it will open two tabs in my browser with the same plot on both tabs. Somehow, it doe…

---

## [Avoiding dynamic dispatch in loops with non-concrete vector types](https://discourse.julialang.org/t/avoiding-dynamic-dispatch-in-loops-with-non-concrete-vector-types/104851)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [October 11, 2023, 1:54pm UTC](https://discourse.julialang.org/t/avoiding-dynamic-dispatch-in-loops-with-non-concrete-vector-types/104851 "2023-10-11T13:54:25Z")

</div>

Let’s say I have some parametric struct struct Foo{T} ... end, and I prepare a vector of Foos. I now have a loop that for a given vector, which doesn’t mutate during the loop, picks a random index in the loop, and…

---

## [Stall when trying to create sysimage for Plots.jl](https://discourse.julialang.org/t/stall-when-trying-to-create-sysimage-for-plots-jl/104854)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 1:49pm UTC](https://discourse.julialang.org/t/stall-when-trying-to-create-sysimage-for-plots-jl/104854 "2023-10-11T13:49:32Z")

</div>

Hi! I’m working in steps towards building a sysimage with PackageCompiler for my own package. I manage to build a sysimage for CSV.jl Now I’m following the guide https://julialang.github.io/PackageCompiler.jl/dev/exam…

---

## [Julia workers in containers. \`stdout\` issue](https://discourse.julialang.org/t/julia-workers-in-containers-stdout-issue/104767)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 2\
**Last updated:** [October 11, 2023, 9:48am UTC](https://discourse.julialang.org/t/julia-workers-in-containers-stdout-issue/104767 "2023-10-11T09:48:36Z")

</div>

Hi, I am experiencing a strange issue with Julia workers running in docker container instances in Azure . I am able to run distributed computations on workers, so everything seems fine, except that workers don’t print an…

---

## [Julia Language Server failed to precompile](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286)

<div class="topic-metadata">

**Author:** [@MBaisset](https://discourse.julialang.org/u/MBaisset)\
**Replies:** 5\
**Last updated:** [October 11, 2023, 10:55am UTC](https://discourse.julialang.org/t/julia-language-server-failed-to-precompile/103286 "2023-10-11T10:55:42Z")

</div>

Hello, I’ve tried to install Julia 1.9.3 on my Mac OS Mojave 10.14.6 (previously using Julia 1.8.5 that perfectly worked). I use VScode as editor, but now with Julia 1.9.3, VScode Julia language server fails precompili…

---

## [Problem adding IJulia as a package dependency](https://discourse.julialang.org/t/problem-adding-ijulia-as-a-package-dependency/104841)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 0\
**Last updated:** [October 11, 2023, 10:24am UTC](https://discourse.julialang.org/t/problem-adding-ijulia-as-a-package-dependency/104841 "2023-10-11T10:24:11Z")

</div>

I have writen a small script (GitHub - BacAmorim/ijuliaup: Simple script to help remove/add IJulia kernels after updating Julia.) that provides a convient way of removing and adding new IJulia kernels (with multiple thre…

---

## [Concrete vs parametric when determining type specificity](https://discourse.julialang.org/t/concrete-vs-parametric-when-determining-type-specificity/104784)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 23\
**Last updated:** [October 11, 2023, 6:12am UTC](https://discourse.julialang.org/t/concrete-vs-parametric-when-determining-type-specificity/104784 "2023-10-11T06:12:26Z")

</div>

Consider these two methods: foo(x::T, ::Vector) where T = "vector" foo(x::T, ::AbstractVector{T}) where T = "abstract vector" Clearly, neither method signature is a subset of the other: foo(1, \[1.0\]) matches only the f…

---

## [2D state space model using Turing.jl](https://discourse.julialang.org/t/2d-state-space-model-using-turing-jl/104486)

<div class="topic-metadata">

**Author:** [@KotaAihara](https://discourse.julialang.org/u/KotaAihara)\
**Replies:** 4\
**Last updated:** [October 11, 2023, 5:34am UTC](https://discourse.julialang.org/t/2d-state-space-model-using-turing-jl/104486 "2023-10-11T05:34:37Z")

</div>

I’m making 2d state space model by using Turing.jl Here is my code. x\[t\] is state equation and y\[t\] is observation equation. #Multivariate SSM #sample model # model using Turing using Random, Distributions using P…

---

## [Package compiler with Visual Studio C](https://discourse.julialang.org/t/package-compiler-with-visual-studio-c/104756)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [October 10, 2023, 8:10pm UTC](https://discourse.julialang.org/t/package-compiler-with-visual-studio-c/104756 "2023-10-10T20:10:02Z")

</div>

I’m trying to us PackageCompiler.jl to make a stand-alone C library. I’ll use it on linux eventually, but right now I’m trying to test it out in Visual Studio 2019. None of the examples seem to talk about setting thing…

---

## [String Documentation Wiki Prototype](https://discourse.julialang.org/t/string-documentation-wiki-prototype/104816)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 7:39pm UTC](https://discourse.julialang.org/t/string-documentation-wiki-prototype/104816 "2023-10-10T19:39:10Z")

</div>

Strings Strings in Julia represent a finite sequence of characters. The default String type consists of immutable sequence of UTF-8 codeunits. This is a wiki experiment in building a friendly crowd sourced supplementary…

---

## [Correct way to perform direct socket io, i.e no memory copy](https://discourse.julialang.org/t/correct-way-to-perform-direct-socket-io-i-e-no-memory-copy/104758)

<div class="topic-metadata">

**Author:** [@L\_Adam](https://discourse.julialang.org/u/L_Adam)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 7:26pm UTC](https://discourse.julialang.org/t/correct-way-to-perform-direct-socket-io-i-e-no-memory-copy/104758 "2023-10-10T19:26:43Z")

</div>

currently, socket read/write are through stream interface, and it’s buffered. and to read that, there is an extra memory copy with take!. what is the proper way to do direct socket io, without memory copy?(or is direct …

---

## [Errors when creating sysimage](https://discourse.julialang.org/t/errors-when-creating-sysimage/104801)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 4:40pm UTC](https://discourse.julialang.org/t/errors-when-creating-sysimage/104801 "2023-10-10T16:40:33Z")

</div>

Hi good folks! I am trying to create a sysimage to distribute a package I have created. I also don’t want the source code of the package to be available. As a first step I am trying to create such a sysimage for the CSV…

---

## [Get all names accessible from a Module](https://discourse.julialang.org/t/get-all-names-accessible-from-a-module/98492)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 10\
**Last updated:** [October 10, 2023, 1:04pm UTC](https://discourse.julialang.org/t/get-all-names-accessible-from-a-module/98492 "2023-10-10T13:04:08Z")

</div>

I know that Base.names can be used to extract most of the names that are accessible from inside a Module m, but I just realized that even if one calls it names(m;all=true, imported=true), the list of returned names does …

---

## [Loop vs vectorization](https://discourse.julialang.org/t/loop-vs-vectorization/104796)

<div class="topic-metadata">

**Author:** [@Alberto\_Roman](https://discourse.julialang.org/u/Alberto_Roman)\
**Replies:** 4\
**Last updated:** [October 10, 2023, 12:40pm UTC](https://discourse.julialang.org/t/loop-vs-vectorization/104796 "2023-10-10T12:40:15Z")

</div>

Hi all, I have a partial differential equation to solve using finite difference. I am trying to understand if it is better to use a vectorized version or a loop version to calculate the right hand side of the equation, …

---

## [Passing multiple Control Inputs to a Continuous data driven problem](https://discourse.julialang.org/t/passing-multiple-control-inputs-to-a-continuous-data-driven-problem/104617)

<div class="topic-metadata">

**Author:** [@Harry\_Armstrong](https://discourse.julialang.org/u/Harry_Armstrong)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 4:31pm UTC](https://discourse.julialang.org/t/passing-multiple-control-inputs-to-a-continuous-data-driven-problem/104617 "2023-10-09T16:31:13Z")

</div>

I’ve recently been working with the DataDrivenDiffEq.jl package to implement system identification on non linear systems and have run into a bit of a road block. The model I’m trying to identify takes two control inputs …

---

## [Tullio for general dimensional tensors](https://discourse.julialang.org/t/tullio-for-general-dimensional-tensors/104787)

<div class="topic-metadata">

**Author:** [@J.J.sakurai](https://discourse.julialang.org/u/J.J.sakurai)\
**Replies:** 2\
**Last updated:** [October 10, 2023, 7:27am UTC](https://discourse.julialang.org/t/tullio-for-general-dimensional-tensors/104787 "2023-10-10T07:27:03Z")

</div>

Tullio.jl seems to be super faster. But how can I write tullio code for general dimensional tensors. For example, an outer product of vectors, do we need such a branch as follow? Is there any way to write the following …

---

## [Indexing within double quotation mark](https://discourse.julialang.org/t/indexing-within-double-quotation-mark/32968)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 9\
**Last updated:** [October 10, 2023, 6:12am UTC](https://discourse.julialang.org/t/indexing-within-double-quotation-mark/32968 "2023-10-10T06:12:09Z")

</div>

Hi community, Julia is amazing in “$a”. One step further, are there any way to achieve this? plot(…,label=\[“a1 is $a\[:,1\], a2 is $a\[:,2\].”\]) Or other command like ‘legend!(a,b)’ to define which parameters will be sp…

---

## [Feedback on a Threadsafe Buffer Manager](https://discourse.julialang.org/t/feedback-on-a-threadsafe-buffer-manager/104782)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 0\
**Last updated:** [October 10, 2023, 3:32am UTC](https://discourse.julialang.org/t/feedback-on-a-threadsafe-buffer-manager/104782 "2023-10-10T03:32:26Z")

</div>

In this conversation, I mentioned that I used a Channel to manage preallocated objects over the lifetime of a pipeline. I was hoping someone could offer some feedback on my approach to that: """ get\_buffer\_manager(…

---

## [Help in accelerating constructing Symbolic jacobian?](https://discourse.julialang.org/t/help-in-accelerating-constructing-symbolic-jacobian/104701)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 9\
**Last updated:** [October 10, 2023, 1:19am UTC](https://discourse.julialang.org/t/help-in-accelerating-constructing-symbolic-jacobian/104701 "2023-10-10T01:19:06Z")

</div>

Can anyone help me accelerate/optimize this computation of symbolic computation of Jacobian? I am on latest version of Symbolics and julia 1.9.3. using Symbolics using ToeplitzMatrices N= 280; a = Symbolics.variable…

---

## [Most performant way to perform matrix and vector calculations in a function](https://discourse.julialang.org/t/most-performant-way-to-perform-matrix-and-vector-calculations-in-a-function/104672)

<div class="topic-metadata">

**Author:** [@eduardosalaz](https://discourse.julialang.org/u/eduardosalaz)\
**Replies:** 5\
**Last updated:** [October 9, 2023, 9:42pm UTC](https://discourse.julialang.org/t/most-performant-way-to-perform-matrix-and-vector-calculations-in-a-function/104672 "2023-10-09T21:42:50Z")

</div>

Hi there everone. Currently I have the following function: function start\_constraints(S, B, M, V, R, X, values\_matrix, risk\_vec) for i in 1:S for m in 1:M values\_matrix\[i, m\] = sum(X\[i, j\] \* V\[m\]…

---

## [Filtering Dataframe date column](https://discourse.julialang.org/t/filtering-dataframe-date-column/104658)

<div class="topic-metadata">

**Author:** [@rajmac](https://discourse.julialang.org/u/rajmac)\
**Replies:** 8\
**Last updated:** [October 9, 2023, 3:43pm UTC](https://discourse.julialang.org/t/filtering-dataframe-date-column/104658 "2023-10-09T15:43:57Z")

</div>

I have a dataframe formed by reading in a CSV file as df3 = CSV.read(“data//weight\_filtered.csv”, dateformat=“yyyy-mm-dd”. Row │ Date Data │ Date Float32 ─────┼───────────────────── 1 │ 2022-07-01 20…

---

## [SMatrix{2, 2, Float64} is not a concrete type?](https://discourse.julialang.org/t/smatrix-2-2-float64-is-not-a-concrete-type/104638)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 8\
**Last updated:** [October 9, 2023, 2:51pm UTC](https://discourse.julialang.org/t/smatrix-2-2-float64-is-not-a-concrete-type/104638 "2023-10-09T14:51:12Z")

</div>

I’m writing some program which for the sake of aesthetics manipulates data as SMatrix{2,2, Float64}. However, I noticed that, having a collection of such SMatrices, say in variable Ms, the command sum(Ms) allocates memor…

---

## [Precompilation Fails on HPC](https://discourse.julialang.org/t/precompilation-fails-on-hpc/104664)

<div class="topic-metadata">

**Author:** [@aadam](https://discourse.julialang.org/u/aadam)\
**Replies:** 16\
**Last updated:** [October 9, 2023, 1:18pm UTC](https://discourse.julialang.org/t/precompilation-fails-on-hpc/104664 "2023-10-09T13:18:35Z")

</div>

I tried adding IJulia to the base environment first, but it gave the precompilation error where it wasn’t able to precompile Parsers, JSON, Conda, IJulia. I then tried adding CSV and it again fails at the precompilation…

---

## [Why does try\\catch not work in this example?](https://discourse.julialang.org/t/why-does-try-catch-not-work-in-this-example/104751)

<div class="topic-metadata">

**Author:** [@ovt](https://discourse.julialang.org/u/ovt)\
**Replies:** 1\
**Last updated:** [October 9, 2023, 1:17pm UTC](https://discourse.julialang.org/t/why-does-try-catch-not-work-in-this-example/104751 "2023-10-09T13:17:29Z")

</div>

julia\> using PlotlyLight julia\> try Plot(y=\[NaN,NaN\]) catch e @warn "NaN in plot" end Error showing value of type Plot: ERROR: NaN not allowed to be written in JSON spec

---

## [HPC Slurm Logging Peer Check](https://discourse.julialang.org/t/hpc-slurm-logging-peer-check/104732)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 4\
**Last updated:** [October 9, 2023, 1:05pm UTC](https://discourse.julialang.org/t/hpc-slurm-logging-peer-check/104732 "2023-10-09T13:05:21Z")

</div>

Hello, I am looking for some help understanding what is probably a familiar problem to those who run Julia regularly on an HPC with Slurm. I’ll explain the issue and then share what I’ve found. Hopefully someone can hel…

---

## ["show" nested struct](https://discourse.julialang.org/t/show-nested-struct/85298)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [October 9, 2023, 11:46am UTC](https://discourse.julialang.org/t/show-nested-struct/85298 "2023-10-09T11:46:13Z")

</div>

How can I use the show method for a type that is nested in another struct? For example: julia\> struct A x::Int end julia\> Base.show(io::IO, ::MIME"text/plain", a::A) = print(io, "\>\>A$(a.x)") julia\> s…

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

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