Long time Rstudio/R user, new Python/Positron user and having some struggles with Positron (and python). Most my colleagues who use python don't use Postitron, so their help is limited, and my campus IT department doesn't support this program, so they can't help either. So i turn to this community!
both my macbook and windows machine have 16G ram. Positron, my .py and .qmd scripts all run just fine. No lag. On my windows machine, I simply open positron and my memory usage goes up by 30%ish. I just was trying to help a student open a shared project folder and it equally locked up his system. Yet on both, the task manger says that positron is only using like 13-15% RAM - and the ram bar in the top right corner inside positron only shows that it's using about 1.5G (doing nothing but being open). His was so lagged that it took a good 30 seconds to run a single code chunk. How would i even go about resolving this?
This student is starting to work with me on a shared project folder, where I have already setup a .venv. The docs say that positron auto-detects .venv and uses them when a folder is opened. That is not happening for the student, nor me on my windows machine. The project and files work fine on my mac. Running Interpreter: Discover All Interpreters found nothing, and runing source .venv/bin/activate in the terminal results in a 'not recognized command' error. What steps am I missing here?
Python(?) question - i open a .py file (in a folder) and positron recognizes the python 3.14.8 interpreter in the top right (green circle, says using system python), and in the bottom left "C:\Program Files\Python314\python.exe. but when i go to the terminal and type python3 -m pip install <pkgname> it says "Python not found"..... i'm getting mixed signals here!
for #2, a .venv made on a mac won't work on windows, it needs to be recreated there. on windows the activate script lives in .venv\Scripts\ instead of bin/, so that source command will always fail there.
Thank you for sharing your experience trying out Positron! Let me take these one at a time, starting with the two easier ones.
2. The .venv not being detected
@rachelwilson is exactly right in that a virtual environment is not portable between operating systems. A .venv created on your Mac contains macOS-specific binaries and hard-coded absolute paths, so it won't work when opened on Windows. It needs to be recreated on each machine. Likewise, the activation script lives in .venv\Scripts\ on Windows (Activate.ps1 for PowerShell, activate.bat for cmd), so source .venv/bin/activate will not be able to work there.
On the Windows machine, open the project folder in Positron and run Python: Create Environment from the Command Palette (or run python -m venv .venv in the terminal), then reinstall your packages, ideally from a requirements.txt or pyproject.toml so the environment is reproducible everywhere.
A few follow-up questions here:
How is the project folder shared between you (OneDrive/Dropbox/Google Drive sync, git, network drive)? If it's a sync service, make sure .venv/ is excluded from syncing; syncing environments across machines corrupts them, and the sync client churning on thousands of tiny files can itself cause major slowdowns (possibly related to your #1!).
Is the .venv at the root of the folder you open in Positron? Positron currently only auto-discovers project environments at the workspace root. If you open a parent folder, it won't find it.
3. "Python not found" in the terminal
You're getting two pieces of information about two different things, so there's no contradiction:
The interpreter shown in the top-right / bottom-left is the Python the Positron console will use.
The terminal resolves python/python3 from your system PATH, which is a separate matter. On Windows the command is python (or the py launcher) so python3 generally doesn't exist, and the "Python was not found" message is Windows' stub that tries to redirect you to the Microsoft Store.
That said, the more important point: your console is currently using the system Python (C:\Program Files\Python314), and you shouldn't pip install into that. Create the .venv first (see #2), select it as your interpreter, and then install packages into it with python -m pip install <pkgname>. That guarantees the packages land in the same environment your console is actually running.
1. Memory/lag issues
This one needs some more information to pin down. A few things worth knowing first:
The ~1.5 GB shown in Positron's status bar only reflects part of the picture. Positron runs many processes (the UI, the extension host, one kernel per console session, language servers) and Windows Task Manager collapses these into a single entry unless you expand it.
On a 16 GB machine, any process pushing total usage up can tip the system into memory pressure and paging, which causes exactly the "30 seconds to run one chunk" symptom so the thing consuming the memory may not be Positron at all.
Some follow-up questions:
When the slowdown happens, what does Task Manager's Processes tab (sorted by memory, with the Positron entry expanded) show as the top consumers? And on the Mac, Activity Monitor?
Inside Positron, run Developer: Open Process Explorer from the Command Palette during a slowdown. What does that show?
Is the shared project folder inside a cloud-synced directory (OneDrive, Dropbox, etc.)? This is a common cause of whole-machine lag with dev tools.
Roughly how large is the project folder in terms of number of files, any very large data files?
Which Positron version are you both running, and which extensions are installed?
Does the lag occur with no console sessions running (just Positron open), or only after a Python session has started?