Extending the Learning Environment Beyond the Browser
SAS® Viya® for Learners (VFL) is designed to make analytics accessible—quickly. With tools like SAS Studio, Visual Analytics, and JupyterLab available in a browser, students can begin exploring data, building models, and generating insights within minutes.
But as R/Python + SAS coding projects grow beyond a single session, a natural question emerges:
How do I continue my work tomorrow?
Part of the answer lies in how VFL is designed.
The Jupyter environment in SAS Viya for Learners is intentionally session-based, meaning work stored locally in that environment does not persist automatically between sessions. This design supports scalability, security, and global access for thousands of users.
However—and this is important—this does not mean your coding work has to be temporary in VFL.
In practice, learners are encouraged to use tools like GitHub integration to persist and manage their coding projects across sessions. This mirrors real-world workflows and provides a reliable way to store, version, and revisit projects over time. In other words, persistence in VFL is achieved through integration—not local storage alone.
For many learners, this becomes a turning point:
And that’s usually the moment when the browser alone starts to feel limiting—especially for more code-heavy workflows and those wanting to keep some files local.
This is where connecting Visual Studio Code (VS Code) to SAS Viya for Learners becomes especially valuable.
Before diving in, it’s worth clarifying something important:
This workflow is not intended to replace the core SAS Viya for Learners experience.
For many users—especially those newer to analytics—VFL already provides everything needed through:
These tools support code, no-code, and low-code analytics workflows, and for many learners, that’s exactly where the journey should begin.
Connecting Visual Studio Code to SAS Viya for Learners is most valuable for:
Rather than replacing VFL, this approach extends it.
A common workflow might look like:
VS Code can help you prepare and manage the work—especially if you already prefer those coding tools and are already working locally.
SAS Viya helps you analyze, model, and make decisions.
By connecting VS Code to SAS Viya for Learners, you combine:
🌐 Cloud Analytics (SAS Viya)
💻 Local Development (VS Code)
Together, this creates a workflow that moves beyond “running code” toward building solutions that persist, evolve, and scale.
At this point, it’s worth addressing a common question:
Doesn’t SAS already offer an environment that solves this persistence challenge?
Yes—SAS Viya Workbench for Learners (WFL) provides a more traditional, persistent development experience with full control over files and environment configuration. Moreover, WFL provides access to SAS, Python, and R in two main IDEs: VS Code and Jupyter.
However, SAS Viya for Learners serves a different purpose:
In short:
The integration of VS Code to SAS Viya for Learners allows you to extend VFL with development capabilities, rather than replacing it.
This approach brings the two closer together—without asking you to choose.
If you do not already have Visual Studio Code installed:
Once installed, you’re ready to connect to SAS Viya for Learners.
The connection process only takes a few minutes. Here’s how to get set up.
1. Open your local Visual Studio Code application… and say hello!
2. Next, navigate to the Extensions Marketplace
3. Search for and install the SAS extension
4. Let’s review some important fine print… as it explains the why behind the next few steps:
5. Open Settings and locate the SAS configuration
6. Under Features > Extensions, edit your settings.json file to define a connection profile, found here:
7. Update your SAS connection profile with your VFL environment URL and connection details. Your file should resemble the following example.
8. Authenticate using your SAS Viya for Learners credentials
9. Paste the authorization code when prompted
Once complete, you will be connected and able to run SAS code directly from VS Code using your VFL environment.
After connecting, you may notice something… slightly confusing:
“Where is my casuser folder?”
In SAS Studio, it appears here:
Files → Home → casuser
But in VS Code, it’s not immediately visible.
This comes down to how SAS Viya organizes data behind the scenes.
There are actually two different concepts at play:
SAS Studio presents these in a unified way, making navigation intuitive.
VS Code, however, shows the underlying file system directly.
The casuser folder exists—it’s just nested deeper in the file system.
A typical path looks like: /export/viya/homes/<your-id>/casuser
In VS Code, you can find it by navigating through:
SAS Server → Home → export → viya → homes → <your-id> → casuser
Once located, you’ll see your files exactly as expected.
This distinction helps clarify how SAS Viya operates:
Understanding this separation is key to working effectively across tools. And once you see this distinction, many other parts of SAS Viya start to make more sense.
Note: While VS Code surfaces the file system, you can still interact with CAS (in-memory data) through SAS code executed from VS Code—allowing you to load, analyze, and manage tables within CAS as part of your workflow.
Once you’ve located the folder, you can:
This provides a much more traditional and flexible development experience compared to working solely within a browser session.
To enhance your workflow, consider installing:
These extensions can help bridge SAS and open-source workflows within a single environment.
If you’ve spent time working in SAS Viya for Learners, you may already be familiar with one important constraint:
Individual file uploads through SAS Studio are limited to 100 MB.
(Find my old posts here: Part 1 and Part 2).
This limit exists for good reason—helping maintain performance and ensuring a consistent experience across thousands of users.
In previous work, we explored creative ways to work within this constraint, including:
But here’s a useful (and often overlooked) detail:
When using VS Code connected to SAS Viya for Learners, you are no longer limited by the browser-based upload restriction for a single file.
Because VS Code interacts directly with the underlying file system, you can:
Note: the total storage limit—typically 5 GB—still applies
This isn’t just a convenience—it changes what’s possible in a teaching and learning environment:
The 100 MB limit is a browser constraint—not a platform limitation.
Step outside the browser… and a few more doors open.
Finally, if you’ve ever found yourself wondering “Where did my files go?” or working around upload limits, you’re not alone—these are natural signals that you’re ready to extend your workflow beyond the browser.
SAS Viya for Learners is designed to help students get started quickly—and supports persistent, scalable analytics workflows through its platform and integrations.
This combination allows users to:
SAS Studio and the broader Viya platform provide a powerful, accessible analytics experience.
VS Code adds flexibility for those who want to extend that experience into a more traditional development workflow using some local files and processing.
Learning how these tools work together is where things really start to click.
Dive into keynotes, announcements and breakthroughs on demand.
Explore Now →The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.