Desktop Installation

This page describes the installation of Pumas on desktop systems (Windows and macOS). Two installation methods are available: using the Visual Studio Code extension (recommended) or manual installation via the command line.

Prerequisites

System Requirements

Ensure your system meets the following specifications:

ComponentMinimum RequirementRecommended
Operating SystemWindows 10 or macOS 10.15Latest Windows or macOS
RAM8 GB16 GB or more
CPU4 Cores8 Cores or more
Disk Space10 GB20 GB or more

Required Software

Visual Studio Code

Download and install VS Code from the official website: https://code.visualstudio.com/download

License Key

You must have a valid Pumas license key. This was provided via email when you purchased or received access to Pumas.

Installation Steps

Step 1: Install the Pumas Extension

  1. Launch Visual Studio Code
  2. Open the Extensions view (Ctrl+Shift+X on Windows, Cmd+Shift+X on macOS)
  3. Search for "Pumas" in the marketplace
  4. Click Install on the official Pumas extension published by PumasAI

Step 2: Install Required Extensions

After installing the Pumas extension, VS Code will check for required dependencies:

  1. If the Julia and Quarto extensions are not installed, a notification will appear
  2. Click Install to add both extensions automatically
  3. VS Code will restart to activate the extensions

Step 3: Install juliaup

The extension uses juliaup to manage Julia versions:

  1. After VS Code restarts, the extension checks for juliaup
  2. If not found, a notification appears asking to install it
  3. Click Install Automatically
  4. When prompted in the terminal, type y and press Enter to confirm
  5. Restart VS Code after installation completes

Step 4: Install Pumas

  1. Run Pumas: List Versions from the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)

  2. Select the Pumas version you want to install

  3. Choose the installation type:

    • Global Installation: Available system-wide for all projects
    • Project Installation: Specific to a single project folder
  4. The installation runs in a terminal window (20-30 minutes)

After installation starts, a notification appears to configure VS Code:

  1. Click Configure VS Code
  2. Choose Set Globally for system-wide use or Set for Workspace for the current project

Using Pumas

Starting the REPL

Once configured, start Julia with Pumas:

  1. Open the Command Palette

  2. Run Julia: Start REPL

  3. The REPL opens with the configured Pumas environment

  4. Load Pumas with:

    using Pumas

    When loading Pumas for the first time, you will be prompted to enter your license key through a terminal menu.

Managing Versions

Viewing Installed Versions

Run Pumas: List Versions to see all available and installed versions. Installed versions show "- Installed" in the description.

Switching Versions

  1. Select an installed version from the list
  2. Choose Configure VS Code
  3. Select global or workspace configuration

Removing Versions

  1. Select an installed version
  2. Choose Remove
  3. Confirm the removal

This removes the juliaup channel and deletes the environment folder at ~/.julia/environments/{productId}.

Additional Commands

All commands are available through the Command Palette:

  • Pumas: Get Started - Opens the welcome page
  • Pumas: List Versions - Shows available versions
  • Pumas: Show Logs - Opens the output panel
  • Pumas: Clear Cache - Clears cached version information

Configuration

VS Code Settings

After installation, verify your configuration:

  1. Open Command Palette
  2. Run Preferences: Open User Settings (JSON)
  3. Check that julia.executablePath points to the correct Pumas installation
  4. Check that julia.environmentPath points to the correct environment
  5. Remove any references to older Pumas versions

Project-Specific Installation

For project isolation:

  1. Open your project folder in VS Code
  2. Run Pumas: List Versions
  3. Choose Install in project when installing
  4. Select your project folder

Manual Installation Without VS Code

This section describes an alternative installation method for users who prefer command-line installation or cannot use the VS Code extension. The manual installation uses PumasProductManager.jl to manage Pumas versions.

Prerequisites

Install Julia via juliaup, which is the official Julia version manager. This is required for the product manager to work.

Installation Steps

Step 1: Install PumasProductManager

Start Julia with a separate environment for the product manager:

julia --project=@PumasProductManager

Install and load the product manager:

julia> import Pkg;
       Pkg.add(url = "https://github.com/PumasAI/PumasProductManager.jl");
       import PumasProductManager;

Step 2: List Available Products

Enter the package manager by pressing ] and list available products:

pkg> pumas list
DeepPumas@0.8.0
DeepPumas@0.8.1
Pumas@2.6.0
Pumas@2.6.1
Pumas@2.7.0

Step 3: Install a Product

Initialize the desired product version:

pkg> pumas init Pumas@2.7.0

This downloads and installs all required packages and precompiles them. The process takes 20-30 minutes.

For project-specific installation, specify a path:

pkg> pumas init Pumas@2.7.0 my-project

Step 4: Use the Installed Product

Exit Julia and restart with the newly installed version:

julia +Pumas@2.7.0

Or for a project-specific installation:

julia +Pumas@2.7.0 --project=my-project

Load Pumas:

julia> using Pumas

When loading Pumas for the first time, you will be prompted to enter your license key through a terminal menu.

Managing Products

Updating PumasProductManager

To check for new product versions:

$ julia +PumasProductManager

pkg> update

julia> exit()

$ julia +PumasProductManager

pkg> pumas list

Adding Packages to Environments

Add additional packages to a Pumas environment:

julia +Pumas@2.7.0

pkg> add --preserve=all ExtraPackage

The --preserve=all flag ensures compatibility with the fixed Pumas package versions.

Uninstalling Products

Remove the directory containing the Project.toml and Manifest.toml files. For global installations, these are typically in ~/.julia/environments/{product-name}.

To remove the product manager itself:

$ julia +PumasProductManager

pkg> status

This shows the environment path. Remove that directory to uninstall.

VS Code Configuration (Optional)

To use VS Code with a manually installed Pumas, follow the configuration steps in the Configuration section above, using paths like:

  • Executable Path: julia +Pumas@2.7.0
  • Environment Path: ~/.julia/environments/Pumas@2.7.0

For setting default juliaup channels:

# Global default
juliaup default Pumas@2.7.0

# Project-specific override
juliaup override set Pumas@2.7.0

Usage with Quarto

If you've set a default juliaup channel, Quarto notebooks require no special setup. Include engine: julia in the frontmatter.

For specific versions without a default channel:

---
engine: julia
julia:
  exeflags: ["+Pumas@2.7.0"]
---