# New to Julia

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

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

**Page:** 21

---

## [Inconsistent Behavior of Revise.jl in VSCode](https://discourse.julialang.org/t/inconsistent-behavior-of-revise-jl-in-vscode/126381)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 1\
**Last updated:** [March 1, 2025, 12:13am UTC](https://discourse.julialang.org/t/inconsistent-behavior-of-revise-jl-in-vscode/126381 "2025-03-01T00:13:42Z")

</div>

Hi everyone, I’m having serious trouble using Revise in VSCode. Sometimes it works perfectly, other times it doesn’t, and the behavior seems extremely inconsistent. I can’t figure out what’s going on. I don’t even know…

---

## [Github - How to clone/install specific branch?](https://discourse.julialang.org/t/github-how-to-clone-install-specific-branch/23572)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 13\
**Last updated:** [February 28, 2025, 10:00pm UTC](https://discourse.julialang.org/t/github-how-to-clone-install-specific-branch/23572 "2025-02-28T22:00:01Z")

</div>

Hey guys! I started using Github for my package (GitHub - AhmedSalih3d/PostSPH.jl: Easing the process of post-processing simulations done in DualSPHysics) and I have two different branches, “master” and “dev”. If I do t…

---

## [How can I access my \\\\wsl$\\Ubuntu files with joinpath() in pluto notebooks?](https://discourse.julialang.org/t/how-can-i-access-my-wsl-ubuntu-files-with-joinpath-in-pluto-notebooks/121861)

<div class="topic-metadata">

**Author:** [@selinguler94](https://discourse.julialang.org/u/selinguler94)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 11:57am UTC](https://discourse.julialang.org/t/how-can-i-access-my-wsl-ubuntu-files-with-joinpath-in-pluto-notebooks/121861 "2025-02-28T11:57:56Z")

</div>

I want to access my files from wsl ubuntu but this format of code has syntax error only resolved by removing “$”, but that probably would cause Windows to fail accessing to my Ubuntu files. HOME = joinpath(ENV\[“HOME”\], …

---

## [GLMakie does not seem to compile in a notebook in cursor](https://discourse.julialang.org/t/glmakie-does-not-seem-to-compile-in-a-notebook-in-cursor/126411)

<div class="topic-metadata">

**Author:** [@hsharsh](https://discourse.julialang.org/u/hsharsh)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 10:34am UTC](https://discourse.julialang.org/t/glmakie-does-not-seem-to-compile-in-a-notebook-in-cursor/126411 "2025-02-28T10:34:20Z")

</div>

I am trying to use GLMakie in a notebook in cursor but when I run using GLMakie it gives me a load error ERROR: LoadError: UndefVarError: \`px\_per\_unit\` not defined in \`Makie\` Suggestion: check for spelling errors or m…

---

## [What should I do when asked for a private key loaction when adding a private repository on windows](https://discourse.julialang.org/t/what-should-i-do-when-asked-for-a-private-key-loaction-when-adding-a-private-repository-on-windows/29201)

<div class="topic-metadata">

**Author:** [@HBaghdadi1995](https://discourse.julialang.org/u/HBaghdadi1995)\
**Replies:** 20\
**Last updated:** [February 27, 2025, 10:40pm UTC](https://discourse.julialang.org/t/what-should-i-do-when-asked-for-a-private-key-loaction-when-adding-a-private-repository-on-windows/29201 "2025-02-27T22:40:46Z")

</div>

When trying to add my private repository using the julia repl. It sops adding with a line saying Private key location for 'git@github.com' \[C:\\Users\\\[username\]\\.ssh\\id\_rsa\]: I’m not entirely sure what I should type in a…

---

## [Text To Speech in Julia](https://discourse.julialang.org/t/text-to-speech-in-julia/104189)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 4\
**Last updated:** [February 27, 2025, 10:28am UTC](https://discourse.julialang.org/t/text-to-speech-in-julia/104189 "2025-02-27T10:28:37Z")

</div>

Is there any open-source Text to Speech (TTS) option available in Julia that: can save to (.ogg) file, and has a licence permitting commercial use Doesn’t look like Windows and MacOS allow free commercial use. Looks …

---

## [Check if optional arguments with default values of method are specified](https://discourse.julialang.org/t/check-if-optional-arguments-with-default-values-of-method-are-specified/126295)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [February 26, 2025, 8:57am UTC](https://discourse.julialang.org/t/check-if-optional-arguments-with-default-values-of-method-are-specified/126295 "2025-02-26T08:57:26Z")

</div>

Hi, I’m writing some simulation code in which I run simulations for various choices of parameters and save the results to some files, where file-names are generated automatically by collecting the parameter names and val…

---

## [What are people using for notebooks?](https://discourse.julialang.org/t/what-are-people-using-for-notebooks/125810)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 15\
**Last updated:** [February 26, 2025, 12:25am UTC](https://discourse.julialang.org/t/what-are-people-using-for-notebooks/125810 "2025-02-26T00:25:27Z")

</div>

I’ve been using Jupyter, but I know there is also Pluto, and perhaps others. Does anyone have suggestions or preferences?

---

## [Making Enzyme.jl work with the integrator interface of OrdinaryDiffEq.jl](https://discourse.julialang.org/t/making-enzyme-jl-work-with-the-integrator-interface-of-ordinarydiffeq-jl/126186)

<div class="topic-metadata">

**Author:** [@Rittick\_Roy](https://discourse.julialang.org/u/Rittick_Roy)\
**Replies:** 11\
**Last updated:** [February 25, 2025, 1:30pm UTC](https://discourse.julialang.org/t/making-enzyme-jl-work-with-the-integrator-interface-of-ordinarydiffeq-jl/126186 "2025-02-25T13:30:33Z")

</div>

I’m new to using autodiff in Julia and have some issues making Enzyme.jl work with OrdinaryDiffEq.jl. I want to take the a reverse mode derivative of my differential equation solution with respect to the input parameter …

---

## [Pluto - GLMakie Button action ok in @async but crashing with Threads.@spawn](https://discourse.julialang.org/t/pluto-glmakie-button-action-ok-in-async-but-crashing-with-threads-spawn/126204)

<div class="topic-metadata">

**Author:** [@RobbesU](https://discourse.julialang.org/u/RobbesU)\
**Replies:** 14\
**Last updated:** [February 24, 2025, 3:52pm UTC](https://discourse.julialang.org/t/pluto-glmakie-button-action-ok-in-async-but-crashing-with-threads-spawn/126204 "2025-02-24T15:52:44Z")

</div>

I am trying to run a continuous animation from inside Pluto, which requires a run/pause button to control. The Making animated and interactive scientific visualizations in Makie.jl uses @async to spin off the task, but…

---

## [Max of a vector](https://discourse.julialang.org/t/max-of-a-vector/108294)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 31\
**Last updated:** [February 24, 2025, 4:03am UTC](https://discourse.julialang.org/t/max-of-a-vector/108294 "2025-02-24T04:03:13Z")

</div>

It is quite strange that the max function cannot work in an intuitive way. I just want the maximum value in a vector. julia\> a = \[1,2,3\] 3-element Vector{Int64}: 1 2 3 julia\> max(a) ERROR: MethodError: no method mat…

---

## [Numeric Substitution Issue in build\_function (expression=Val{false})](https://discourse.julialang.org/t/numeric-substitution-issue-in-build-function-expression-val-false/126202)

<div class="topic-metadata">

**Author:** [@vikram\_backup](https://discourse.julialang.org/u/vikram_backup)\
**Replies:** 1\
**Last updated:** [February 23, 2025, 5:18pm UTC](https://discourse.julialang.org/t/numeric-substitution-issue-in-build-function-expression-val-false/126202 "2025-02-23T17:18:45Z")

</div>

Consider the simple code which defines a function of x using build\_function using Symbolics @variables x expr = exp(im\*x)\*cos(x) # The option expression=Val{false} is supposed to force numerical evaluation. f = build\_…

---

## [Learning material for experienced programmers](https://discourse.julialang.org/t/learning-material-for-experienced-programmers/126189)

<div class="topic-metadata">

**Author:** [@chenzhekl](https://discourse.julialang.org/u/chenzhekl)\
**Replies:** 5\
**Last updated:** [February 22, 2025, 8:47pm UTC](https://discourse.julialang.org/t/learning-material-for-experienced-programmers/126189 "2025-02-22T20:47:55Z")

</div>

Hello, I’m a professional machine learning engineer with extensive experience in Rust, C++, and Python. I’ve noticed that many Julia books are aimed either at complete beginners or are tailored to niche areas like optimi…

---

## [Updating Julia with juliaup on Ubuntu 24.04](https://discourse.julialang.org/t/updating-julia-with-juliaup-on-ubuntu-24-04/126067)

<div class="topic-metadata">

**Author:** [@arietsu](https://discourse.julialang.org/u/arietsu)\
**Replies:** 5\
**Last updated:** [February 22, 2025, 4:49pm UTC](https://discourse.julialang.org/t/updating-julia-with-juliaup-on-ubuntu-24-04/126067 "2025-02-22T16:49:02Z")

</div>

Read about juliaup in wonderful https://modernjuliaworkflows.org/ blog and wanted to use it as one of suitable best practices. Failed to install juliaup under my Ubuntu 24.04. Error message from curl: $ curl -fsSL https…

---

## [Genie framework/SearchLight.Migration problem creating composed primary key](https://discourse.julialang.org/t/genie-framework-searchlight-migration-problem-creating-composed-primary-key/126177)

<div class="topic-metadata">

**Author:** [@andreh](https://discourse.julialang.org/u/andreh)\
**Replies:** 0\
**Last updated:** [February 22, 2025, 9:58am UTC](https://discourse.julialang.org/t/genie-framework-searchlight-migration-problem-creating-composed-primary-key/126177 "2025-02-22T09:58:43Z")

</div>

Hello! I am setting up GenieAuthorisation within a Genie App, I am setting up the 4 tables: CreateTableRoles CreateTablePermissions CreateTableRolesUsers CreateTablePermissionsRoles within my module CreateTableRolesU…

---

## [How can I make this correlation plot?](https://discourse.julialang.org/t/how-can-i-make-this-correlation-plot/100434)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 13\
**Last updated:** [February 21, 2025, 10:24pm UTC](https://discourse.julialang.org/t/how-can-i-make-this-correlation-plot/100434 "2025-02-21T22:24:58Z")

</div>

how can I make a plot like this in Julia? Which package should i use? I have used corrplot but I don’t think we can get plot like this with that.

---

## [Slow decrease of loss and an error during fitting an ODE to data](https://discourse.julialang.org/t/slow-decrease-of-loss-and-an-error-during-fitting-an-ode-to-data/126050)

<div class="topic-metadata">

**Author:** [@Ashima\_Kalathingal](https://discourse.julialang.org/u/Ashima_Kalathingal)\
**Replies:** 4\
**Last updated:** [February 21, 2025, 6:14pm UTC](https://discourse.julialang.org/t/slow-decrease-of-loss-and-an-error-during-fitting-an-ode-to-data/126050 "2025-02-21T18:14:21Z")

</div>

Hello, I have been trying to fit one parameter of a an ODE using the experimental data. I used the following example to write the code The problem is that the MSE loss is decreasing really really slowly even though …

---

## [Problems Compiling MKLSparse](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 3\
**Last updated:** [February 21, 2025, 1:48pm UTC](https://discourse.julialang.org/t/problems-compiling-mklsparse/126131 "2025-02-21T13:48:29Z")

</div>

I’m having some difficulty with MKLSparse. When the package is precompiling, it throws the following error: \`\`\`ERROR: The following 1 direct dependency failed to precompile: MKLSparse Failed to precompile MKLSparse …

---

## [Filter dataframe with regular expression](https://discourse.julialang.org/t/filter-dataframe-with-regular-expression/76888)

<div class="topic-metadata">

**Author:** [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Replies:** 8\
**Last updated:** [February 20, 2025, 2:44am UTC](https://discourse.julialang.org/t/filter-dataframe-with-regular-expression/76888 "2025-02-20T02:44:05Z")

</div>

Hello, I am trying to filter a dataframe based on values in certain column. This works fine when I use subset() with ByRow(in(\[“mytext”\])). But I get problems with regular expressions: df = subset(df, :mycol =\> x -\> By…

---

## [Newbie plotting frustration](https://discourse.julialang.org/t/newbie-plotting-frustration/126049)

<div class="topic-metadata">

**Author:** [@dwannetts](https://discourse.julialang.org/u/dwannetts)\
**Replies:** 10\
**Last updated:** [February 19, 2025, 11:50pm UTC](https://discourse.julialang.org/t/newbie-plotting-frustration/126049 "2025-02-19T23:50:34Z")

</div>

Hi All, I have been developing a significant level of frustration over the past few weeks. On one hand, Julia appears fast and able to deal with the data that I need to deal with, at least up to a point. Documentation…

---

## [ERROR: KeyError: key "SparseArrays" not found](https://discourse.julialang.org/t/error-keyerror-key-sparsearrays-not-found/125980)

<div class="topic-metadata">

**Author:** [@Eventine](https://discourse.julialang.org/u/Eventine)\
**Replies:** 11\
**Last updated:** [February 19, 2025, 3:01pm UTC](https://discourse.julialang.org/t/error-keyerror-key-sparsearrays-not-found/125980 "2025-02-19T15:01:20Z")

</div>

I’m new to Julia, I had a project that was using ControlSystems and SparseArrays packages. After the weekend I came back to the office, lauched a test, and nothing was working. Basically it says that I cannot compile Con…

---

## [An error occurred while building the environment](https://discourse.julialang.org/t/an-error-occurred-while-building-the-environment/126053)

<div class="topic-metadata">

**Author:** [@Spurs15437](https://discourse.julialang.org/u/Spurs15437)\
**Replies:** 1\
**Last updated:** [February 19, 2025, 9:08am UTC](https://discourse.julialang.org/t/an-error-occurred-while-building-the-environment/126053 "2025-02-19T09:08:19Z")

</div>

(jl\_79BdVv) pkg\> precompile Precompiling project... ✗ NCDatasets ✗ DIVAnd 0 dependencies successfully precompiled in 5 seconds. 199 already precompiled. ERROR: The following 1 direct dependency failed to precompil…

---

## [How to write inline math variables, equations in Markdown inside Pluto?](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041)

<div class="topic-metadata">

**Author:** [@ghoshr](https://discourse.julialang.org/u/ghoshr)\
**Replies:** 2\
**Last updated:** [February 18, 2025, 7:40pm UTC](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041 "2025-02-18T19:40:06Z")

</div>

I am trying to write some mathematical variables and equations inline in Markdown in Pluto. I am trying to write \\dfrac{a}{b} = c and x inside other sentences. And not a/b = c and x. This is how I did it here, and how I …

---

## [Parameters of the neural network not updating after training in a Neural ODE problem](https://discourse.julialang.org/t/parameters-of-the-neural-network-not-updating-after-training-in-a-neural-ode-problem/125554)

<div class="topic-metadata">

**Author:** [@Ashima\_Kalathingal](https://discourse.julialang.org/u/Ashima_Kalathingal)\
**Replies:** 13\
**Last updated:** [February 16, 2025, 10:57pm UTC](https://discourse.julialang.org/t/parameters-of-the-neural-network-not-updating-after-training-in-a-neural-ode-problem/125554 "2025-02-16T22:57:09Z")

</div>

Hello, I have been struggling with this problem for some time now. I have constructed an example neural ode problem related to my work using the following example. https://docs.sciml.ai/Overview/stable/showcase/missing\_…

---

## [Metaprogramming to automatically test new versions of code](https://discourse.julialang.org/t/metaprogramming-to-automatically-test-new-versions-of-code/125899)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 9\
**Last updated:** [February 16, 2025, 6:32am UTC](https://discourse.julialang.org/t/metaprogramming-to-automatically-test-new-versions-of-code/125899 "2025-02-16T06:32:56Z")

</div>

In writing my code, I often find that I wish to test if a certain function, say f, can be made quicker. One way of doing this is to find a place within my code where the function gets used and run f and some f\_quick base…

---

## [Question about compilation time of the whole language](https://discourse.julialang.org/t/question-about-compilation-time-of-the-whole-language/125882)

<div class="topic-metadata">

**Author:** [@CiccioPasticcio](https://discourse.julialang.org/u/CiccioPasticcio)\
**Replies:** 7\
**Last updated:** [February 15, 2025, 8:56pm UTC](https://discourse.julialang.org/t/question-about-compilation-time-of-the-whole-language/125882 "2025-02-15T20:56:18Z")

</div>

Hello everyone, I was trying in these days for the first time to work on julia internals. I havea a question about the time it takes to compile the whole language. So my usual workflow is: modify some code, compile the l…

---

## [Animation stopped working](https://discourse.julialang.org/t/animation-stopped-working/125861)

<div class="topic-metadata">

**Author:** [@Friso](https://discourse.julialang.org/u/Friso)\
**Replies:** 8\
**Last updated:** [February 14, 2025, 1:26pm UTC](https://discourse.julialang.org/t/animation-stopped-working/125861 "2025-02-14T13:26:40Z")

</div>

Hello, I wrote a code that worked yesterday, but today the animation part did not work any longer: using Timers tic() using ModelingToolkit, OrdinaryDiffEq, Parameters using Plots toc() # 🔹 Define struct for simulatio…

---

## [Avoid writing exponentially many methods for a function that may take vectors or matrices](https://discourse.julialang.org/t/avoid-writing-exponentially-many-methods-for-a-function-that-may-take-vectors-or-matrices/125895)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 1:14pm UTC](https://discourse.julialang.org/t/avoid-writing-exponentially-many-methods-for-a-function-that-may-take-vectors-or-matrices/125895 "2025-02-14T13:14:50Z")

</div>

Hi, in my current project I need to compute a function, say f, in N inputs, which all may be either vectors or matrices. In terms of interpretation: a vector is an ‘observation’, and a matrix is a set of observations, wh…

---

## [GLMakie, how to set viewing to include points 'outside' the 3D frame](https://discourse.julialang.org/t/glmakie-how-to-set-viewing-to-include-points-outside-the-3d-frame/125875)

<div class="topic-metadata">

**Author:** [@RobbesU](https://discourse.julialang.org/u/RobbesU)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 6:42am UTC](https://discourse.julialang.org/t/glmakie-how-to-set-viewing-to-include-points-outside-the-3d-frame/125875 "2025-02-14T06:42:34Z")

</div>

I suspect I’m missing something with the camera settings and/or clip planes, but I’ve been messing with them all day and cannot get it. In GLMakie v0.18 (held back by ModelingToolkitDesigner) I would see 3D points also…

---

## [Vectors breaking when printing](https://discourse.julialang.org/t/vectors-breaking-when-printing/125889)

<div class="topic-metadata">

**Author:** [@Lachlan-Ikeguchi](https://discourse.julialang.org/u/Lachlan-Ikeguchi)\
**Replies:** 3\
**Last updated:** [February 14, 2025, 7:10am UTC](https://discourse.julialang.org/t/vectors-breaking-when-printing/125889 "2025-02-14T07:10:10Z")

</div>

When I access an index in a vector, write to it, and read it back, it is correct. But when I print the vector, it explodes. The code is: struct card suit number end function generate\_deck(number\_of\_suits::UIn…

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

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