# General Usage

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

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

**Page:** 108

---

## [Artifacts for dummies?](https://discourse.julialang.org/t/artifacts-for-dummies/123251)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 7\
**Last updated:** [November 29, 2024, 9:59pm UTC](https://discourse.julialang.org/t/artifacts-for-dummies/123251 "2024-11-29T21:59:08Z")

</div>

I tried yesterday to use Artifacts to store some testing data for a package, and failed miserably. First, I couldn’t find a clear indication on how to obtain the git-tree-sha1, or the sha256 that are required for the ex…

---

## [Make \`LinearSolve\` factorizations available in a standalone manner](https://discourse.julialang.org/t/make-linearsolve-factorizations-available-in-a-standalone-manner/123260)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 7:49pm UTC](https://discourse.julialang.org/t/make-linearsolve-factorizations-available-in-a-standalone-manner/123260 "2024-11-29T19:49:49Z")

</div>

This question was initially posted a few weeks back as an issue in LinearSolve.jl but got no attention there. By reposting it here I’m hoping to generate a bit of discussion about this. As far as I understand the purpos…

---

## [Putting Manifest.toml in git](https://discourse.julialang.org/t/putting-manifest-toml-in-git/94144)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 15\
**Last updated:** [November 29, 2024, 5:43pm UTC](https://discourse.julialang.org/t/putting-manifest-toml-in-git/94144 "2024-11-29T17:43:21Z")

</div>

We have our manifest.toml in git. Every time we merge there is a conflict, typically on the project\_hash. I’m not sure which project\_hash is valid (from the HEAD or the current hash). What is the correct policy?

---

## [Emptying a GridPosition in Makie](https://discourse.julialang.org/t/emptying-a-gridposition-in-makie/123248)

<div class="topic-metadata">

**Author:** [@paiconic](https://discourse.julialang.org/u/paiconic)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 2:46pm UTC](https://discourse.julialang.org/t/emptying-a-gridposition-in-makie/123248 "2024-11-29T14:46:00Z")

</div>

I want to create an interactive plot where I keep replotting new stuff (by replacing the old stuff) in my GridLayout. Is there an equivalent of empty!(g::GridPosition) like we have for empty!(ax::Axis)?

---

## [Julia Distributed can't find ssh key, can't use remote machine](https://discourse.julialang.org/t/julia-distributed-cant-find-ssh-key-cant-use-remote-machine/123240)

<div class="topic-metadata">

**Author:** [@davidbp](https://discourse.julialang.org/u/davidbp)\
**Replies:** 5\
**Last updated:** [November 29, 2024, 11:43am UTC](https://discourse.julialang.org/t/julia-distributed-cant-find-ssh-key-cant-use-remote-machine/123240 "2024-11-29T11:43:44Z")

</div>

Hi all I have the following script 06\_test\_nuc12.jl that seems not to find the private key for the ssh using Distributed procs = addprocs(\["dbp@79.152.67.28:8620", 4\], dir="/home/dbp", exename="/home/dbp/jul…

---

## [Obtaining modern CUDA libraries](https://discourse.julialang.org/t/obtaining-modern-cuda-libraries/123237)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 11:16am UTC](https://discourse.julialang.org/t/obtaining-modern-cuda-libraries/123237 "2024-11-29T11:16:36Z")

</div>

For ONNXRunTime.jl GPU support, we need various CUDA libraries. In theory, we only need binaries. In practice, the easiest way to obtain these was to install the following packages: CUDA.jl and CUDNN However CUDNN is…

---

## [How to let a PC run a Julia program automatically every time it is woken up?](https://discourse.julialang.org/t/how-to-let-a-pc-run-a-julia-program-automatically-every-time-it-is-woken-up/123211)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [November 29, 2024, 8:08am UTC](https://discourse.julialang.org/t/how-to-let-a-pc-run-a-julia-program-automatically-every-time-it-is-woken-up/123211 "2024-11-29T08:08:54Z")

</div>

I am using a Windows PC. I want the computer to run a Julia program automatically every time it is woken up. I could use Windows’ Task Scheduler to do this, but it wasn’t perfect. That’s because I found that the program …

---

## [Getting to zero allocations in NonlinearSolve.jl](https://discourse.julialang.org/t/getting-to-zero-allocations-in-nonlinearsolve-jl/123123)

<div class="topic-metadata">

**Author:** [@rafaelbailo](https://discourse.julialang.org/u/rafaelbailo)\
**Replies:** 9\
**Last updated:** [November 29, 2024, 6:05am UTC](https://discourse.julialang.org/t/getting-to-zero-allocations-in-nonlinearsolve-jl/123123 "2024-11-29T06:05:30Z")

</div>

I am in the process of migrating some code from NLsolve.jl to NonlinearSolve.jl. I have written a simple Newton-Raphson test, but I cannot get the allocations down to zero; both solve! and reinit! allocate. Can this be i…

---

## [DiffEq Plotting Question](https://discourse.julialang.org/t/diffeq-plotting-question/123228)

<div class="topic-metadata">

**Author:** [@TheLazyFarmer](https://discourse.julialang.org/u/TheLazyFarmer)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 6:04am UTC](https://discourse.julialang.org/t/diffeq-plotting-question/123228 "2024-11-29T06:04:28Z")

</div>

Hello, I have the results of a differential equation I solved with DifferentialEquations.jl. Each of the results of the solution are stored in an (n x n+1) array, as so: 4×5 Matrix{Float64}: -1.0 -1.0 -…

---

## [Vscode workspace cannot show detail julia function](https://discourse.julialang.org/t/vscode-workspace-cannot-show-detail-julia-function/123009)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 3:27am UTC](https://discourse.julialang.org/t/vscode-workspace-cannot-show-detail-julia-function/123009 "2024-11-29T03:27:03Z")

</div>

When I updated vscode and julia, the vscode workspace cannot show detail function, I don’t know what’s wrong with the settings. All subfunction show “unknown”, as shown in the diagram

---

## [FFT with @view](https://discourse.julialang.org/t/fft-with-view/123137)

<div class="topic-metadata">

**Author:** [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Replies:** 4\
**Last updated:** [November 29, 2024, 2:09am UTC](https://discourse.julialang.org/t/fft-with-view/123137 "2024-11-29T02:09:37Z")

</div>

I want to do fft and want to write the result on a predefined array. However, there is a problem with this when the source and target arrays are both views: using FFTW, LinearAlgebra M = randn(100,100,100) C = @view M\[:…

---

## [Using Catalyst.jl with large reaction networks](https://discourse.julialang.org/t/using-catalyst-jl-with-large-reaction-networks/123061)

<div class="topic-metadata">

**Author:** [@tb877](https://discourse.julialang.org/u/tb877)\
**Replies:** 2\
**Last updated:** [November 29, 2024, 1:27am UTC](https://discourse.julialang.org/t/using-catalyst-jl-with-large-reaction-networks/123061 "2024-11-29T01:27:27Z")

</div>

Hi all, I’m looking into a way to simulate additive integer chemistry, i.e. 1+1→2 1+2→3 1+3→4 ... 2+2→4 2+3→5 2+4→6 ... I’m quite new to Julia, but have noticed that Catalyst.jl lets you define reaction\_network object…

---

## [PythonCall just works when I close the REPL after importing OpenSSL\_jll, but I cannot make it work in the same session](https://discourse.julialang.org/t/pythoncall-just-works-when-i-close-the-repl-after-importing-openssl-jll-but-i-cannot-make-it-work-in-the-same-session/123122)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 1\
**Last updated:** [November 26, 2024, 10:35pm UTC](https://discourse.julialang.org/t/pythoncall-just-works-when-i-close-the-repl-after-importing-openssl-jll-but-i-cannot-make-it-work-in-the-same-session/123122 "2024-11-26T22:35:18Z")

</div>

Hi all, I am trying to make the following workflow involving PythonCall to work in the same Julia session. I am experiencing some problems with PythonCall and SSL credentials, which thanks to @cjdoris I managed to make …

---

## [Type stability in closures](https://discourse.julialang.org/t/type-stability-in-closures/123227)

<div class="topic-metadata">

**Author:** [@AntonReinhard](https://discourse.julialang.org/u/AntonReinhard)\
**Replies:** 13\
**Last updated:** [November 28, 2024, 11:00pm UTC](https://discourse.julialang.org/t/type-stability-in-closures/123227 "2024-11-28T23:00:13Z")

</div>

I’m doing a bunch of code generation and came across a strange behaviour involving type stability, closures and variable captures. I reduced the problem to the following example: function f(a, b) \_f = (x, y) -\> begi…

---

## [DataFrames: How to remove rows containing NaNs when there are also missings](https://discourse.julialang.org/t/dataframes-how-to-remove-rows-containing-nans-when-there-are-also-missings/61396)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 9\
**Last updated:** [November 28, 2024, 10:01pm UTC](https://discourse.julialang.org/t/dataframes-how-to-remove-rows-containing-nans-when-there-are-also-missings/61396 "2024-11-28T22:01:49Z")

</div>

Assume I have the following DataFrame and want to remove rows containing NaN: df = DataFrame(a=\[NaN, 1.1, NaN, missing, missing\], b=\[1.1, 2, 3, missing, NaN\], c='a':'e'); For just one column I could do something like: …

---

## [Real time plotting on the Raspberry PI 4](https://discourse.julialang.org/t/real-time-plotting-on-the-raspberry-pi-4/123225)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 0\
**Last updated:** [November 28, 2024, 5:00pm UTC](https://discourse.julialang.org/t/real-time-plotting-on-the-raspberry-pi-4/123225 "2024-11-28T17:00:18Z")

</div>

I am looking for a real time plotting capability for the Raspberry PI 4 and/or 5. The PI 4 has a pretty weak graphics capability, limited to Open GL ES 3.1 and Vulkan 1 and the PI 5 with OpenGL ES 3.1 and Vulkan 1.2. I…

---

## [Symbolic rewriter rules for symbolic functions](https://discourse.julialang.org/t/symbolic-rewriter-rules-for-symbolic-functions/123131)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 2\
**Last updated:** [November 28, 2024, 8:13pm UTC](https://discourse.julialang.org/t/symbolic-rewriter-rules-for-symbolic-functions/123131 "2024-11-28T20:13:42Z")

</div>

I have something simple that there seems to be no answer anywhere. I make a symbolic function and none of the re-writing rules work on it. using SymbolicUtils using Symbolics using Latexify using Plots using LaTeXString…

---

## [Getting different allocations from \`@allocations\` vs \`@timev\`/\`@time\`](https://discourse.julialang.org/t/getting-different-allocations-from-allocations-vs-timev-time/123222)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 1\
**Last updated:** [November 28, 2024, 6:55pm UTC](https://discourse.julialang.org/t/getting-different-allocations-from-allocations-vs-timev-time/123222 "2024-11-28T18:55:22Z")

</div>

I have a function f() = Int\[\]. Let’s try and check how much it allocates using @timev (or @time) and @allocations. julia\> @timev f() 0.000002 seconds (1 allocation: 64 bytes) elapsed time (ns): 1667 gc time (ns): …

---

## [Problems with surface](https://discourse.julialang.org/t/problems-with-surface/123226)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 3\
**Last updated:** [November 28, 2024, 6:19pm UTC](https://discourse.julialang.org/t/problems-with-surface/123226 "2024-11-28T18:19:38Z")

</div>

Dear all, I want to plot a simple surface, as in the following command: using Plots gr() xs = collect(0.1:0.05:2.0) ys = collect(0.2:0.1:2.0) X = \[x for x = xs for \_ = ys\] Y = \[y for \_ = xs for y = ys\] Z = ((x, y)-\>be…

---

## [Mutable struct vs Ref in an immutable one?](https://discourse.julialang.org/t/mutable-struct-vs-ref-in-an-immutable-one/92846)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 7\
**Last updated:** [November 28, 2024, 6:04pm UTC](https://discourse.julialang.org/t/mutable-struct-vs-ref-in-an-immutable-one/92846 "2024-11-28T18:04:24Z")

</div>

I want to define a struct where one field is mutable, and one isn’t,. I see two ways to approach this: struct A x :: Int y :: typeof(Ref(1)) end and mutable struct B const x :: Int y :: Int end Wh…

---

## [V1.11 \`SYSTEM: caught exception of type :TypeError while trying to print a failed Task notice; giving up\`](https://discourse.julialang.org/t/v1-11-system-caught-exception-of-type-typeerror-while-trying-to-print-a-failed-task-notice-giving-up/121296)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 3\
**Last updated:** [November 28, 2024, 5:43pm UTC](https://discourse.julialang.org/t/v1-11-system-caught-exception-of-type-typeerror-while-trying-to-print-a-failed-task-notice-giving-up/121296 "2024-11-28T17:43:49Z")

</div>

Today I updated to v1.11 and I get the following error when I go to package mode (@v1.11) pkg\> SYSTEM: caught exception of type :TypeError while trying to print a failed Task notice; giving up This only happens when I …

---

## [Documenter.jl site not displaying full set of features from github, the basic static features only without links and content strcuture](https://discourse.julialang.org/t/documenter-jl-site-not-displaying-full-set-of-features-from-github-the-basic-static-features-only-without-links-and-content-strcuture/123117)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 1\
**Last updated:** [November 27, 2024, 12:22am UTC](https://discourse.julialang.org/t/documenter-jl-site-not-displaying-full-set-of-features-from-github-the-basic-static-features-only-without-links-and-content-strcuture/123117 "2024-11-27T00:22:37Z")

</div>

I am starting a new repository on Github, https://github.com/mantzaris/BenchmarkDataNLP.jl, and it compiles and the Github actions work etc, but on the site’s deployment: https://mantzaris.github.io/BenchmarkDataNLP.jl/,…

---

## [Gradient using ForwardDiff.jl not working](https://discourse.julialang.org/t/gradient-using-forwarddiff-jl-not-working/123193)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 2\
**Last updated:** [November 28, 2024, 4:57pm UTC](https://discourse.julialang.org/t/gradient-using-forwarddiff-jl-not-working/123193 "2024-11-28T16:57:32Z")

</div>

Hi there, I wrote the following log-likelihood function for which I want to try out ForwardDiff.jl to compute the Jacobian. I have it also by hand but just wanted to try it out and check the differences. However I run i…

---

## [Autodifferentiation of model with fixed and mutable parameters](https://discourse.julialang.org/t/autodifferentiation-of-model-with-fixed-and-mutable-parameters/123208)

<div class="topic-metadata">

**Author:** [@EminentCoder](https://discourse.julialang.org/u/EminentCoder)\
**Replies:** 3\
**Last updated:** [November 28, 2024, 1:06pm UTC](https://discourse.julialang.org/t/autodifferentiation-of-model-with-fixed-and-mutable-parameters/123208 "2024-11-28T13:06:00Z")

</div>

Hello all, I am currently trying to build a model where some of the model-parameters need to be optimized while others have to remain fixed. The current approach works rather well, but I have some trouble with auto-diff…

---

## [Packages installed in VSCode disappeared in Windows Powershell?](https://discourse.julialang.org/t/packages-installed-in-vscode-disappeared-in-windows-powershell/123166)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 15\
**Last updated:** [November 28, 2024, 12:32pm UTC](https://discourse.julialang.org/t/packages-installed-in-vscode-disappeared-in-windows-powershell/123166 "2024-11-28T12:32:08Z")

</div>

In VSCode I have installed two packages in the default @v1.11 environment: But when I opened Windows Powershell to start julia and typed \] st I found there is nothing: Why?

---

## [Is Julia even the right choice for this contrarian game idea long-term?](https://discourse.julialang.org/t/is-julia-even-the-right-choice-for-this-contrarian-game-idea-long-term/123036)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 11\
**Last updated:** [November 28, 2024, 10:25am UTC](https://discourse.julialang.org/t/is-julia-even-the-right-choice-for-this-contrarian-game-idea-long-term/123036 "2024-11-28T10:25:39Z")

</div>

Julia is not currently a suitable language for game development. There is no major game engine in it. I have accepted this fully. However, the reason I look into Julia for game development is not its current state, but i…

---

## [How to pre-compile an extension?](https://discourse.julialang.org/t/how-to-pre-compile-an-extension/123160)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [November 28, 2024, 2:35am UTC](https://discourse.julialang.org/t/how-to-pre-compile-an-extension/123160 "2024-11-28T02:35:50Z")

</div>

How can I precompile “RatiosFixedPointNumbersExt”? I have a script that creates a system image, and if I run Julia with this system image I do not want that it starts precompiling again, it should be instant, but if I r…

---

## [Teaching and grading with Julia and Pluto (... and ChatGPT)](https://discourse.julialang.org/t/teaching-and-grading-with-julia-and-pluto-and-chatgpt/120795)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 4\
**Last updated:** [November 27, 2024, 9:04pm UTC](https://discourse.julialang.org/t/teaching-and-grading-with-julia-and-pluto-and-chatgpt/120795 "2024-11-27T21:04:37Z")

</div>

Hi everybody. We have used Julia and Pluto in an economics course over the last four years. Students use Pluto notebooks to solve numerical (and symbolic) problems, and the assessment moments (tests/exams) are also under…

---

## [\`IdDict{UInt64, Float64}\` is much slower than \`Dict{UInt64, Float64}\` for retrieving values](https://discourse.julialang.org/t/iddict-uint64-float64-is-much-slower-than-dict-uint64-float64-for-retrieving-values/123144)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 2\
**Last updated:** [November 27, 2024, 8:36pm UTC](https://discourse.julialang.org/t/iddict-uint64-float64-is-much-slower-than-dict-uint64-float64-for-retrieving-values/123144 "2024-11-27T20:36:16Z")

</div>

MWE: julia\> k = rand(UInt, 5000); julia\> v = rand(Float64, 5000); julia\> using Random julia\> ks = shuffle(k); julia\> d1 = Dict(k .=\> v); julia\> d2 = IdDict(k .=\> v); julia\> using BenchmarkTools julia\> @benchmark …

---

## [What is the purpose of JuliaWorkspaces.jl?](https://discourse.julialang.org/t/what-is-the-purpose-of-juliaworkspaces-jl/123181)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [November 27, 2024, 5:37pm UTC](https://discourse.julialang.org/t/what-is-the-purpose-of-juliaworkspaces-jl/123181 "2024-11-27T17:37:24Z")

</div>

What is the purpose the the package JuliaWorkspaces? It seams to be an important component of the VSCode Julia plugin. But which requirements does this package implement that justify that it is a separate package? wha…

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

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