Julia, VS Code & Jupyter
Julia
Download and Install Julia: If you haven’t already, download Julia from the official website and install it on your computer. (Mac users: Julia is also available via MacPorts and Homebrew.)
You can start Julia by typing julia
in the Terminal.
Julia in Visual Studio Code
Julia only runs in the Terminal. For Windows and Mac users Visual Studio Code with Julia for Visual Studio Code make up a nice developer environment.
Julia in Jupyter Notebooks
Using Jupyter Notebooks with Julia is a fantastic way to combine code, formatted text, math, and multimedia in a single document. Here’s how you can get started:
1. Installation Steps
- Install Julia.
- Add IJulia Package: Open the Julia REPL (Read-Eval-Print Loop) and run the following commands:
This will install the IJulia package, which integrates Julia with Jupyter.using Pkg; Pkg.add("IJulia")
- From the Julia REPL: After installing IJulia, you can launch Jupyter by running:
This command will open Jupyter locally in your default web browser with Julia as an available kernel.using IJulia; notebook()
3. Creating and Running Notebooks
- Create a New Notebook: In the Jupyter interface, click on “New” and select “Julia” from the dropdown menu to create a new notebook.
- Write and Execute Code: You can now write Julia code in the cells and execute them by pressing
Shift + Enter
. For example:println("Hello, Julia!").
Some additional links
Getting started with Julia
https://docs.julialang.org/en/v1/manual/getting-started/
Julia TDA
https://github.com/wildart/TDA.jl
Notable differences with Python
https://docs.julialang.org/en/v1/manual/noteworthy-differences/#Noteworthy-differences-from-Python
Jupyter Notebooks