sas-py-vscodeRun Python on SAS Viya from Visual Studio Code — using the Python packages your Viya administrator installed and manages, without installing Python locally.
What it doesThe SAS extension for VS Code
lets you write SAS code locally and run it on Viya. This does the same thing for
Python: you edit That matters in environments where you can't install Python locally, where the data can't leave Viya, or where you simply want your development environment to match production exactly. Why not just use a local Python?Because the interesting data and the interesting packages are on the server. A local interpreter gives you neither, and a notebook server sitting beside Viya gives you a second environment to keep in sync. Running in Viya's own compute session means the code you tested is the code that will run. Design constraintsThese are commitments, not aspirations: No local Python required. The extension is TypeScript and talks to Viya over REST. If you have no Python on your machine, everything still works. Targets Viya 4. Version differences between releases live in a dialect layer rather than scattered conditionals. SAS 9 and Viya 3.5 are explicitly out of scope. Complementary to the SAS extension, not a replacement. Install both. That one authors SAS; this one authors Python. Neither needs the other. Editing intelligence is delegated. Completion, hover, and refactoring come
from Where your code runs is something you set, and something you can see. Each workspace has a run target — a Viya profile, or Local — chosen from the status bar, which always names it. On Local this extension contributes nothing to the editor: the run button you already had is Microsoft's, and we neither wrap it nor start an interpreter of our own. The target decides where our commands appear, never what they do, so nothing changes meaning under your hands. See ADR-0011. Tested, and honestly so. Unit tests mock at the HTTP boundary with no network; fixtures exist per Viya generation; a live tier runs against a real deployment and is opt-in. Behaviour we haven't verified against a real Viya is documented as unverified — see the Probe findings section of each phase file under docs/phases/, indexed by STATUS.md. No telemetry. None is collected. There is no setting to turn off, because there is nothing to turn off. Documentation
Licence |