Beginner

Setup

Install Julia, configure your development environment, manage packages, and set up Jupyter integration for interactive data science.

Installing Julia

  1. Download

    Visit julialang.org/downloads and download the latest stable version for your OS.

  2. Install

    Run the installer (Windows/macOS) or extract the tarball (Linux). Add Julia to your PATH.

  3. Verify

    Open a terminal and type julia to launch the REPL.

Terminal
# Verify installation
$ julia --version
julia version 1.11.2

# Launch the REPL
$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.2
 _/ |\__'_|_|_|\__'_|  |
|__/                   |

julia>

Package Management with Pkg

Julia has a built-in package manager. Press ] in the REPL to enter Pkg mode:

Julia REPL (Pkg mode)
# Enter Pkg mode by pressing ]
(@v1.11) pkg> add DataFrames CSV Plots

# Add multiple data science packages
(@v1.11) pkg> add Statistics LinearAlgebra
(@v1.11) pkg> add Flux MLJ

# Check installed packages
(@v1.11) pkg> status

# Update all packages
(@v1.11) pkg> update

# Press backspace to exit Pkg mode

VS Code Setup

  1. Install VS Code

    Download from code.visualstudio.com.

  2. Install Julia Extension

    Search for "Julia" in the Extensions panel and install the official extension by julialang.

  3. Configure

    The extension provides syntax highlighting, linting, debugging, inline results, and an integrated REPL.

Jupyter Integration

Julia REPL
# Install IJulia for Jupyter support
using Pkg
Pkg.add("IJulia")

# Launch Jupyter Notebook
using IJulia
notebook()

Project Environments

Terminal
# Create a new project environment
$ mkdir my-ds-project && cd my-ds-project
$ julia --project=.

# In Pkg mode, add project-specific packages
(@my-ds-project) pkg> add DataFrames CSV Plots
# This creates Project.toml and Manifest.toml
Best practice: Always use project environments (like Python virtual environments) to manage dependencies per project. Share Project.toml and Manifest.toml for reproducibility.

Ready to Go Deeper?

Live instructor-led courses from our partners. Affiliate disclosure.