Getting Started: Installing Julia and VS Code

Author

David Evans

Published

April 2, 2026

This guide will walk you through installing everything you need for this course: the Julia programming language, the VS Code editor, and two VS Code extensions for writing and running Julia code.

1 Installing Julia

The recommended way to install Julia is through the terminal using juliaup, Julia’s official version manager. See the Julia downloads page for more details.

1.1 Mac

  1. Open a terminal (search for “Terminal” with Spotlight: ⌘ + Space).

  2. Run the following command:

    curl -fsSL https://install.julialang.org | sh
  3. Follow the on-screen prompts. The installer will set up juliaup (Julia’s version manager) and install the latest stable version of Julia.

  4. Close and reopen your terminal so the new PATH settings take effect.

  5. Type julia and press Enter. The Julia prompt julia> should appear. Type 1 + 1 and press Enter to confirm it works.

1.2 Windows

  1. Open PowerShell or Command Prompt (search for either in the Start menu).

  2. Run the following command:

    winget install --name Julia --id 9NJNWW8PVKMN -e -s msstore
  3. Follow the on-screen prompts. This installs juliaup (Julia’s version manager) and the latest stable version of Julia, and adds it to your PATH automatically.

  4. Close and reopen your terminal so the new PATH settings take effect.

  5. Type julia and press Enter. The Julia prompt julia> should appear. Type 1 + 1 and press Enter to confirm it works.

2 Installing VS Code

2.1 Mac

  1. Go to https://code.visualstudio.com/.
  2. Click the large Download for macOS button.
  3. Open the downloaded .dmg file.
  4. Drag Visual Studio Code into your Applications folder.
  5. Open VS Code from your Applications folder.

2.2 Windows

  1. Go to https://code.visualstudio.com/.
  2. Click the large Download for Windows button.
  3. Run the downloaded installer.
  4. Accept the license agreement and click through the installer. On the Select Additional Tasks screen, I recommend checking:
    • Add “Open with Code” action to Windows Explorer file context menu
    • Add to PATH (should be checked by default)
  5. Click Install and then Finish.
  6. VS Code should open automatically. If not, search for “Visual Studio Code” in the Start menu.

3 Installing the Julia Extension in VS Code

This extension gives you syntax highlighting, code completion, and the ability to run Julia code directly inside VS Code.

  1. Open VS Code.
  2. Click the Extensions icon in the left sidebar (it looks like four small squares, or press Ctrl+Shift+X on Windows / ⌘+Shift+X on Mac).
  3. In the search bar at the top, type Julia.
  4. Find the extension called Julia by julialang (it should be the first result).
  5. Click Install.
  6. After installation, VS Code may prompt you to set the Julia executable path. If Julia was added to your PATH (see installation steps above), VS Code should detect it automatically. If not:
    • Open VS Code settings (Ctrl+, on Windows / ⌘+, on Mac).
    • Search for Julia: Executable Path.
    • Set it to the path where Julia is installed:
      • Mac: /Applications/Julia-1.12.app/Contents/Resources/julia/bin/julia (adjust the version number if needed)
      • Windows: C:\Users\YourUsername\AppData\Local\Programs\Julia-1.12.0\bin\julia.exe (adjust the version number and username)
  7. After you restart VS Code, you can open the Julia REPL by pressing Alt+J then Alt+O. (Option J + Option O on Mac). It may ask you to install Revise.jl. Click install to install it.

3.1 Testing the Julia Extension

  1. Create a new file in VS Code (Ctrl+N / ⌘+N) and save it as test.jl. (.jl is the file extension for Julia files. That way the Julia extension knows to highlight the file as Julia code.)

  2. Type the following:

    println("Hello, EC 410!")
  3. Press Ctrl+Enter to run the line. The Julia REPL should open at the bottom of VS Code and print Hello, EC 410!.

4 Installing the Jupyter Notebook Extension in VS Code

This extension allows you to create and run Jupyter notebooks (.ipynb files) directly in VS Code. We will use notebooks for completing and submitting problem sets.

  1. Open VS Code.
  2. Click the Extensions icon in the left sidebar (Ctrl+Shift+X / ⌘+Shift+X).
  3. In the search bar, type Jupyter.
  4. Find the extension called Jupyter by Microsoft (it should be the first result).
  5. Click Install. This will also install several related extensions (Jupyter Keymap, Jupyter Cell Tags, etc.) automatically.

5 Getting the Course Notebooks

5.1 Installing Git

Git is a version control tool we will use to download the course notebooks.

5.1.1 Mac

  1. Open a terminal (search for “Terminal” with Spotlight: ⌘ + Space).
  2. Type git --version and press Enter. If Git is already installed, you will see a version number and can skip to the next section.
  3. If Git is not installed, macOS will prompt you to install the Xcode Command Line Tools — click Install and follow the prompts. This may take a few minutes.

5.1.2 Windows

  1. Go to https://git-scm.com/download/win.
  2. The download should start automatically. Run the installer.
  3. Click through the installer with the default settings.
  4. Once installed, open Git Bash from the Start menu to confirm it works: type git --version and press Enter.

5.2 Downloading the Course Notebooks

With Git installed, you can now download the course notebook repository.

  1. Open a terminal (Mac) or Git Bash (Windows).

  2. Navigate to the folder where you want to store course files. For example, to put them on your Desktop:

    • Mac: cd ~/Desktop
    • Windows: cd ~/Desktop
  3. Run the following command to clone the repository:

    git clone https://github.com/dgevans/UndergraduateComputationalNotebooks
  4. This will create a folder called UndergraduateComputationalNotebooks containing all the course notebooks.

5.3 Setting Up the Julia Environment

The notebook repository includes a Project.toml file that lists all the Julia packages used in this course. You need to activate this environment and install the packages once before running any notebooks.

  1. Open VS Code and open the UndergraduateComputationalNotebooks folder (FileOpen Folder).

  2. In the bottom toolbar, click Julia env: and select the UndergraduateComputationalNotebooks environment from the list.

  3. Open the Julia REPL by pressing Alt+J then Alt+O. A Julia terminal will appear at the bottom of VS Code.

  4. Press ] to enter package mode. The prompt will change to (UndergraduateComputationalNotebooks) pkg>.

  5. Type the following and press Enter:

    instantiate
  6. Julia will download and install all required packages. This may take several minutes the first time. Press Backspace when it finishes to return to the normal Julia prompt.

After this one-time setup, the environment will be ready whenever you open a notebook from this folder.

6 Summary

You should now have the following installed and working:

Software Purpose
Julia The programming language we use in this course
VS Code The code editor where you will write and run Julia code
Julia extension Lets you run .jl files and provides syntax highlighting in VS Code
Jupyter extension Lets you create and run .ipynb notebooks in VS Code for problem sets
Git Downloads the course notebook repository
Course notebooks The .ipynb files you will use for lectures and problem sets

If you run into any issues, don’t hesitate to come to office hours or email me at devans@uoregon.edu.