Video Notes
Positron is a modern data science IDE created by Posit, built specifically for working with R and Python.
It combines the familiar, data-focused workflow of RStudio with the modern editor foundation and extensibility of VS Code, giving you a single environment for coding, data exploration, visualization, notebooks, and reproducible analysis.
If you’re new to Positron, check out my introductory guide here...
The video above focuses on Positron Assistant, the AI-powered code assistant built directly into Positron. Below is a summary what’s covered:
Key Characteristics
Model-agnostic
Positron Assistant doesn’t lock you into a single AI vendor. You choose the provider, such as Github Copilot or Anthropic (Claude), with support for additional providers coming soon. This flexibility lets you control cost, model behavior, and capabilities.
Context-aware
When you interact with Positron Assistant, it can see your open files, project structure, active R or Python sessions, and console history.
This saves you from a lot of copying/pasting of code and errors that is necessary when working with a standalone or generic AI chat tool.
Multiple interaction modes
Positron Assistant supports different ways of working:
-
Ask – Chat-style questions and explanations
-
Edit – Applies targeted changes to selected files
-
Agent – Goal-based, multi-step work that can touch multiple files
Each mode offers a different balance between control and automation.
Setup
To access Positron Assistant, click the robot icon in the activity bar.
In the chat panel, click Enable Positron Assistant.
In the settings window that appears, check Enable Positron Assistant and close the settings panel.
Back in the chat panel, click Add a Chat Provider.
Choose a provider. In this demo, I’ll use GitHub Copilot and follow the prompts to sign in.
FYI
During authentication, you may see a message saying “Authorize Visual Studio Code.” This is expected, since Positron is built on top of VS Code.
Once authorization is complete, Positron will prompt you to reload. After reloading, you should see an active and ready chat panel.
Basic Usage
To open the chat pane, click the robot icon in the activity bar or press one of these keyboard shortcuts:
Hover over any code responses in the chat pane to see options to run the code, inject it into the current file, copy it, or insert it into a new file.
To open the inline assistant, place your cursor in your code file and press one of these keyboard shortcuts: