# New to Julia

**URL:** https://discourse.julialang.org/c/first-steps/8.md?page=40

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

**Page:** 41

---

## [Creating new Julia environment with older version](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865)

<div class="topic-metadata">

**Author:** [@John\_Finseth](https://discourse.julialang.org/u/John_Finseth)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 11:53am UTC](https://discourse.julialang.org/t/creating-new-julia-environment-with-older-version/116865 "2024-07-10T11:53:30Z")

</div>

I currently have Julia 1.10.4, but I want to run Julia 1.7.3 from within VScode. I installed via juliaup, and my new install location is: "C:\\Users\\####\\.julia\\juliaup\\julia-1.7.3+0.x64.w64.mingw32\\bin\\julia.exe" Then,…

---

## [Multiple Dispatch with Abstract Integer](https://discourse.julialang.org/t/multiple-dispatch-with-abstract-integer/116859)

<div class="topic-metadata">

**Author:** [@liopeer](https://discourse.julialang.org/u/liopeer)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 8:22am UTC](https://discourse.julialang.org/t/multiple-dispatch-with-abstract-integer/116859 "2024-07-10T08:22:43Z")

</div>

Hey everyone, I created a struct UNet with an outer constructor and made it callable, but when trying to actually create an instance I get a MethodError that I don’t understand: I am type annotating ::Integer and ::Vect…

---

## [VSCode vs Intellij Julia support](https://discourse.julialang.org/t/vscode-vs-intellij-julia-support/81123)

<div class="topic-metadata">

**Author:** [@DWSchulze](https://discourse.julialang.org/u/DWSchulze)\
**Replies:** 11\
**Last updated:** [July 9, 2024, 7:45pm UTC](https://discourse.julialang.org/t/vscode-vs-intellij-julia-support/81123 "2024-07-09T19:45:39Z")

</div>

I’ve started using Intellij with the Julia plugin 0.4.2, and it’s missing important functionality. Progress on that plugin has been slow and it looks like JetBrains doesn’t really care about it. The good news is that t…

---

## [Sanity check function input variables](https://discourse.julialang.org/t/sanity-check-function-input-variables/116792)

<div class="topic-metadata">

**Author:** [@jwhughes](https://discourse.julialang.org/u/jwhughes)\
**Replies:** 5\
**Last updated:** [July 9, 2024, 5:24pm UTC](https://discourse.julialang.org/t/sanity-check-function-input-variables/116792 "2024-07-09T17:24:49Z")

</div>

I’ve been reading “Julia as a Second Language: General purpose programming with a taste of data science” by Erik Engheim and he suggests putting this cone\_volume(r, h) = pir^2h/3 in a file and including it. I would li…

---

## [Specialized matrix-matrix multiplication algorithm](https://discourse.julialang.org/t/specialized-matrix-matrix-multiplication-algorithm/116282)

<div class="topic-metadata">

**Author:** [@vincentxwang](https://discourse.julialang.org/u/vincentxwang)\
**Replies:** 5\
**Last updated:** [July 9, 2024, 3:06pm UTC](https://discourse.julialang.org/t/specialized-matrix-matrix-multiplication-algorithm/116282 "2024-07-09T15:06:01Z")

</div>

Hi! I’m an undergrad and I’m trying to replicate a result from a paper for a fast matrix-matrix multiplication algorithm (specifically the Bernstein lift matrix). Unfortunately, my code seems some 2-3x slower than what’s…

---

## [Understanding JULIA\_CPU\_TARGET](https://discourse.julialang.org/t/understanding-julia-cpu-target/116774)

<div class="topic-metadata">

**Author:** [@amanif0ld](https://discourse.julialang.org/u/amanif0ld)\
**Replies:** 5\
**Last updated:** [July 9, 2024, 3:42am UTC](https://discourse.julialang.org/t/understanding-julia-cpu-target/116774 "2024-07-09T03:42:38Z")

</div>

I am trying to generate precompiled files for packages that are reusable across a number of computers that share a common DEPOT\_PATH through a shared filesystem. I would ideally want to precompile package .so and .ji fil…

---

## [Higher derivative gives NAN](https://discourse.julialang.org/t/higher-derivative-gives-nan/116763)

<div class="topic-metadata">

**Author:** [@gkeee](https://discourse.julialang.org/u/gkeee)\
**Replies:** 4\
**Last updated:** [July 8, 2024, 3:39pm UTC](https://discourse.julialang.org/t/higher-derivative-gives-nan/116763 "2024-07-08T15:39:26Z")

</div>

I want to compute the higher derivatives of f1(x) = exp(im \* 2π \* x) / (im \* x). For example 8th derivative, ı used nth\_derivative function with ForwardDiff, but 8th derivatives gives NAN. I changed the function as f2(x…

---

## [ERROR: InitError: KeyError: key "get\_cmap" not found](https://discourse.julialang.org/t/error-initerror-keyerror-key-get-cmap-not-found/116542)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 1:53pm UTC](https://discourse.julialang.org/t/error-initerror-keyerror-key-get-cmap-not-found/116542 "2024-07-08T13:53:34Z")

</div>

I tried to make a new release of my package. My unit tests all pass (i.e. green checkmark in GitHub’s CI). However, @JuliaRegistrator is refusing to merge here because “automerge guidelines not met”. The log file reveals…

---

## [Progress bar on reading a compressed file](https://discourse.julialang.org/t/progress-bar-on-reading-a-compressed-file/116717)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 3\
**Last updated:** [July 7, 2024, 1:50pm UTC](https://discourse.julialang.org/t/progress-bar-on-reading-a-compressed-file/116717 "2024-07-07T13:50:32Z")

</div>

I’m trying to have a progress bar (like ProgressMeter.jl) on reading a file. The file might or might not be compressed and a priori the only thing I know is the total number of bytes of the file. Right now I have open(…

---

## [My install using the (new?) curl method failed in a freakish way](https://discourse.julialang.org/t/my-install-using-the-new-curl-method-failed-in-a-freakish-way/116685)

<div class="topic-metadata">

**Author:** [@MoorparkPaul](https://discourse.julialang.org/u/MoorparkPaul)\
**Replies:** 2\
**Last updated:** [July 6, 2024, 2:35pm UTC](https://discourse.julialang.org/t/my-install-using-the-new-curl-method-failed-in-a-freakish-way/116685 "2024-07-06T14:35:04Z")

</div>

My Mac Julia installation was about two years old, so I thought I should update it. When I got to Download Julia I saw that it is now recommended that one use $ curl -fsSL https://install.julialang.org | sh When I issu…

---

## [Failure to precompile FixedEffectModels](https://discourse.julialang.org/t/failure-to-precompile-fixedeffectmodels/116541)

<div class="topic-metadata">

**Author:** [@luke98](https://discourse.julialang.org/u/luke98)\
**Replies:** 5\
**Last updated:** [July 6, 2024, 8:03am UTC](https://discourse.julialang.org/t/failure-to-precompile-fixedeffectmodels/116541 "2024-07-06T08:03:36Z")

</div>

Hi All, I am new to Julia. I am trying to use the package FixedEffectModels. After adding the Package I am trying to run the code as provided in the Readme file of the github package: using DataFrames, RDatasets, Fixe…

---

## [Error while installing a package](https://discourse.julialang.org/t/error-while-installing-a-package/116678)

<div class="topic-metadata">

**Author:** [@pragy\_r](https://discourse.julialang.org/u/pragy_r)\
**Replies:** 1\
**Last updated:** [July 5, 2024, 8:35pm UTC](https://discourse.julialang.org/t/error-while-installing-a-package/116678 "2024-07-05T20:35:36Z")

</div>

Hi all, I am very new to julia and i have been trying to install this package - PANDA. all but one of its dependencies are not getting precompiled and installed. This is the error message that I am getting: 70 dependen…

---

## [Move Colorbar to left](https://discourse.julialang.org/t/move-colorbar-to-left/116667)

<div class="topic-metadata">

**Author:** [@Midez](https://discourse.julialang.org/u/Midez)\
**Replies:** 4\
**Last updated:** [July 5, 2024, 3:43pm UTC](https://discourse.julialang.org/t/move-colorbar-to-left/116667 "2024-07-05T15:43:55Z")

</div>

Hello, is it possible moving the Colorbar from left to right, that is to say switching it with the y axis ? I have nothing found in the docs as to how achieving this.

---

## [Significant Difference in Runtime Between Specified and Unspecified Noise](https://discourse.julialang.org/t/significant-difference-in-runtime-between-specified-and-unspecified-noise/115745)

<div class="topic-metadata">

**Author:** [@Sepanta-Mssvn](https://discourse.julialang.org/u/Sepanta-Mssvn)\
**Replies:** 5\
**Last updated:** [July 5, 2024, 1:41pm UTC](https://discourse.julialang.org/t/significant-difference-in-runtime-between-specified-and-unspecified-noise/115745 "2024-07-05T13:41:13Z")

</div>

There seems to be a significant difference in runtime when the noise process is specified. In the simple case of: using DifferentialEquations using BenchmarkTools global T = 10.0::Float64 f(du, u, p, t) = du .= 0.0+0.…

---

## [Frame of the chart disappears when increasing chart size](https://discourse.julialang.org/t/frame-of-the-chart-disappears-when-increasing-chart-size/116614)

<div class="topic-metadata">

**Author:** [@meccal](https://discourse.julialang.org/u/meccal)\
**Replies:** 1\
**Last updated:** [July 4, 2024, 11:12pm UTC](https://discourse.julialang.org/t/frame-of-the-chart-disappears-when-increasing-chart-size/116614 "2024-07-04T23:12:32Z")

</div>

Hi everyone, I am trying to produce a simple line chart like plot(x, y, , xlabel=“x”, ylabel=“y”, color=:black, linewidth=20, linestyle=:dot, grid=false, legend=false, yticks=y\_tick\_positions, tickfontsize=120, labelfo…

---

## [Using the Integrator block from ModelingToolkitStandardLibrary with vector input](https://discourse.julialang.org/t/using-the-integrator-block-from-modelingtoolkitstandardlibrary-with-vector-input/116593)

<div class="topic-metadata">

**Author:** [@a\_tudor\_b](https://discourse.julialang.org/u/a_tudor_b)\
**Replies:** 2\
**Last updated:** [July 3, 2024, 4:22pm UTC](https://discourse.julialang.org/t/using-the-integrator-block-from-modelingtoolkitstandardlibrary-with-vector-input/116593 "2024-07-03T16:22:57Z")

</div>

Hi, I’m trying to build a multi-input multi-output control system using ModelingToolkit and the ModelingToolkitStandardLibrary. I’ve come to the Integrator block and I can’t figure out how to configure it for a vector i…

---

## [Instability in StatsModels.jl term creation](https://discourse.julialang.org/t/instability-in-statsmodels-jl-term-creation/116571)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 1\
**Last updated:** [July 3, 2024, 4:12pm UTC](https://discourse.julialang.org/t/instability-in-statsmodels-jl-term-creation/116571 "2024-07-03T16:12:04Z")

</div>

I am trying to follow closely the documentation of StatsModels.jl to get a function term working as syntaxic sugar to define survival response in regression models. The issue is that i get a lot of type instabilities… I …

---

## [Large numbers multiplication](https://discourse.julialang.org/t/large-numbers-multiplication/116574)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [July 3, 2024, 2:01pm UTC](https://discourse.julialang.org/t/large-numbers-multiplication/116574 "2024-07-03T14:01:05Z")

</div>

Hello everyone, Im doing some concentration conversion and I noticed this issue. julia\> 3.321155762205247e-10 \* 6.022e23 \* 0.5e-3 \* 1e-6 100000.0 now if I put last three numbers in a variable. x = 6.022e23 \* 0.5e-3 \*…

---

## [Neural Nets training with multiple Chains Lux.jl and LuxCUDA.jl: LoadError: AssertionError: length(init\_params) == length(depvars) when using multi chains in NeuralPDE.jl GPU example](https://discourse.julialang.org/t/neural-nets-training-with-multiple-chains-lux-jl-and-luxcuda-jl-loaderror-assertionerror-length-init-params-length-depvars-when-using-multi-chains-in-neuralpde-jl-gpu-example/116501)

<div class="topic-metadata">

**Author:** [@BakChin-Hwa](https://discourse.julialang.org/u/BakChin-Hwa)\
**Replies:** 2\
**Last updated:** [July 2, 2024, 5:45am UTC](https://discourse.julialang.org/t/neural-nets-training-with-multiple-chains-lux-jl-and-luxcuda-jl-loaderror-assertionerror-length-init-params-length-depvars-when-using-multi-chains-in-neuralpde-jl-gpu-example/116501 "2024-07-02T05:45:24Z")

</div>

When adapting the GPU example (Using GPUs · NeuralPDE.jl) of NeuralPDE .jl to multiple chains, it does not work. using NeuralPDE, Lux, LuxCUDA, Random, ComponentArrays using Optimization using OptimizationOptimisers imp…

---

## [Julia with CuArray issue](https://discourse.julialang.org/t/julia-with-cuarray-issue/116485)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 8:04pm UTC](https://discourse.julialang.org/t/julia-with-cuarray-issue/116485 "2024-07-01T20:04:43Z")

</div>

I am getting an issue with CuArray and tried to explain it with simple example. I have created a device pointer through cudaMalloc in C function “get\_device\_address()”. The “get\_device\_address()” is called in Julia and …

---

## [Julia v1.10.3 cannot locate repository GitError(Code:ENOTFOUND, Class:Repository, could not find repository from '.../.julia/clones/10051337927520772488')](https://discourse.julialang.org/t/julia-v1-10-3-cannot-locate-repository-giterror-code-enotfound-class-repository-could-not-find-repository-from-julia-clones-10051337927520772488/116466)

<div class="topic-metadata">

**Author:** [@joshua-slaughter](https://discourse.julialang.org/u/joshua-slaughter)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 6:28pm UTC](https://discourse.julialang.org/t/julia-v1-10-3-cannot-locate-repository-giterror-code-enotfound-class-repository-could-not-find-repository-from-julia-clones-10051337927520772488/116466 "2024-07-01T18:28:06Z")

</div>

Hi all, fearing that this could potentially be a duplicate see here I am running into a similar error but I believe the .cache directory may not exist anymore? I cannot located it in my .julia directory. But I am getting…

---

## [GMT fails to precompile in Julia 1.10.4](https://discourse.julialang.org/t/gmt-fails-to-precompile-in-julia-1-10-4/116391)

<div class="topic-metadata">

**Author:** [@morningglory05](https://discourse.julialang.org/u/morningglory05)\
**Replies:** 8\
**Last updated:** [July 1, 2024, 4:46pm UTC](https://discourse.julialang.org/t/gmt-fails-to-precompile-in-julia-1-10-4/116391 "2024-07-01T16:46:55Z")

</div>

I’m updating to Julia 1.10.4. Most of the packages precompiled fine, but GMT is refusing to precompile. When I use VScode, I get the following error: ERROR: LoadError: InitError: could not load library "C:\\Users\\johns\\.…

---

## [\`ParseError\` when reducing for short-circuit evaluation](https://discourse.julialang.org/t/parseerror-when-reducing-for-short-circuit-evaluation/116458)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 12:43pm UTC](https://discourse.julialang.org/t/parseerror-when-reducing-for-short-circuit-evaluation/116458 "2024-07-01T12:43:32Z")

</div>

Motive Hi, I have bit tensors to find fixed point of 3-dimensional ODE and I tried drawing nullcline first. Because intersection of nullcline is a candidate of fixed point, I have to evaluate so many times. I want to use…

---

## [Julia to C function to Julia function call](https://discourse.julialang.org/t/julia-to-c-function-to-julia-function-call/115997)

<div class="topic-metadata">

**Author:** [@miniskar](https://discourse.julialang.org/u/miniskar)\
**Replies:** 5\
**Last updated:** [July 1, 2024, 11:32am UTC](https://discourse.julialang.org/t/julia-to-c-function-to-julia-function-call/115997 "2024-07-01T11:32:08Z")

</div>

I am trying having a runtime framework implemented in C++ launguage. Julia application calls this framework and this framework will call some other Julia function. I am facing some issue when the framework calls Julia fu…

---

## [Cant get video from Makie in Pluto](https://discourse.julialang.org/t/cant-get-video-from-makie-in-pluto/116158)

<div class="topic-metadata">

**Author:** [@Numair\_Ahmed](https://discourse.julialang.org/u/Numair_Ahmed)\
**Replies:** 4\
**Last updated:** [July 1, 2024, 8:29am UTC](https://discourse.julialang.org/t/cant-get-video-from-makie-in-pluto/116158 "2024-07-01T08:29:26Z")

</div>

Hi. I was just messing around with makie in Pluto cause I’m trying to get familiar with the language and Pluto notebooks for a project I’m planning on doing on differential equations(namely the heat equation) and I was t…

---

## [Adding ReinforcementLearning to environment fails. compatibility issue](https://discourse.julialang.org/t/adding-reinforcementlearning-to-environment-fails-compatibility-issue/116122)

<div class="topic-metadata">

**Author:** [@korilium](https://discourse.julialang.org/u/korilium)\
**Replies:** 4\
**Last updated:** [June 30, 2024, 2:46pm UTC](https://discourse.julialang.org/t/adding-reinforcementlearning-to-environment-fails-compatibility-issue/116122 "2024-06-30T14:46:04Z")

</div>

Hello, I tried installing the ReinforcementLearning.jl package in my environment and I get the following error: (Peccon) pkg\> add ReinforcementLearning Resolving package versions... ERROR: Unsatisfiable requirements…

---

## [Problem with CUDA test](https://discourse.julialang.org/t/problem-with-cuda-test/111627)

<div class="topic-metadata">

**Author:** [@ErwinMoller](https://discourse.julialang.org/u/ErwinMoller)\
**Replies:** 11\
**Last updated:** [June 29, 2024, 6:38am UTC](https://discourse.julialang.org/t/problem-with-cuda-test/111627 "2024-06-29T06:38:23Z")

</div>

Hello, This is my first posting, and I am new to Julia. I have to say I love Julia so far, once I got over my ‘scoping annoyances’. :wink: So far I programmed a multithreaded prime-generating program on the CPU which w…

---

## [Assignment of values to a subset of a subset of indices of an array](https://discourse.julialang.org/t/assignment-of-values-to-a-subset-of-a-subset-of-indices-of-an-array/116369)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 3\
**Last updated:** [June 29, 2024, 4:14am UTC](https://discourse.julialang.org/t/assignment-of-values-to-a-subset-of-a-subset-of-indices-of-an-array/116369 "2024-06-29T04:14:58Z")

</div>

Why does the following give different results? a = zeros(Float32, 10) b = rand(Float32,10) ind1 = \[3,4,6,9\] ind2 = \[2,3,4\] julia\> a\[ind1\[ind2\]\] .= mean(b\[ind1\[ind2\]\]) 3-element view(::Vector{Float32}, \[4, 6, 9\]) with e…

---

## [\[Code Review\] Dirstat ported from C++ and Java](https://discourse.julialang.org/t/code-review-dirstat-ported-from-c-and-java/116324)

<div class="topic-metadata">

**Author:** [@iNverse](https://discourse.julialang.org/u/iNverse)\
**Replies:** 18\
**Last updated:** [June 28, 2024, 8:13pm UTC](https://discourse.julialang.org/t/code-review-dirstat-ported-from-c-and-java/116324 "2024-06-28T20:13:18Z")

</div>

Hi I am writing a simple dirstat program which will traverse a directory and collect various metadata for the file. A task is dispatched to a threadpool when a we encounter a directory. Currently I have implementations i…

---

## [Efficient simulation with different path lengths](https://discourse.julialang.org/t/efficient-simulation-with-different-path-lengths/116321)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 5\
**Last updated:** [June 28, 2024, 2:32pm UTC](https://discourse.julialang.org/t/efficient-simulation-with-different-path-lengths/116321 "2024-06-28T14:32:25Z")

</div>

Hi, I’ve enjoyed using Julia on my first research project quite a lot, and I’m now thinking of how to set up my code for my second research project. The computational bottleneck in this project lies in performing many co…

[Previous page](https://discourse.julialang.org/c/first-steps/8.md?page=39)

[Next page](https://discourse.julialang.org/c/first-steps/8.md?page=41)
