Not-so-breaking news: GitHub is an industry standard for developers!
And, students, we’ll take the broad definition here and say that developers include all sorts of coders – including you and your quest to learn all things analytics. So, you’ll want to add GitHub integration as one of the many tools in your coder’s portfolio. And it's one of the many reasons to get excited about SAS Viya for Learners 4.
This SAS Communities Library Article covers how easily you can integrate GitHub in Jupyter using SAS Viya for Learners 4 (VFL4), our latest-and-greatest version of SAS Viya for academics. I’ll assume some basic level of familiarity with GitHub (like how to set-up and account and general navigation in GitHub). But if you’re completely new to GitHub, start with this great video and setup an account today. The rest of the article flows as follows:
In Part 1, I’ll provide a hands-on example that I used recently to make changes to a Python notebook which reads in a file from the rdatasets package and then pushes it to CAS in SAS Viya. Not sure what those words meant? Well, no worries: enjoy the (bullet-point-style) ride!
Before launching right into it, I’ll give you a disclaimer: don’t follow the steps as exactly outlined below. Why? Because it’s my file… and my edits. Create your own – or you’ll likely get access errors. Seriously 😊
Preambles aside, here we go:
Alright, perhaps you’re only familiar with GitHub in the sense that it’s a great tool for learning – and you use it only when you need to pull files down from GitHub to use in VFL. That’s cool. I was there. And, actually, that was me like 10 minutes ago (nothing prompts learning like writing a SAS Communities article!).
This section will walk you through how you can set up a personal access token, which will allow you to push changes to files + data + more to GitHub for everyone to examine. And it’s a very powerful tool indeed. Let’s get started:
Happy Git’n!
We cannot keep our files, like raw csv datasets, on the directory of SAS Viya for Learners following a logout. The Github integration is great but without a permanent local directory, we have to clone our repository time and time again, which is very unconventional. Thanks.
@TomHsiung - completely agree! And what you've uncovered is a limitation of using Jupyter in VFL4. And I write about "the why" behind it in this article:
https://communities.sas.com/t5/SAS-Communities-Library/SAS-Viya-for-Learners-4-Jupyter-Where-did-my-...
The gist? VFL needs to (1) support 7-10k users a month and (2) keep people's data and identity as secure as possible. So, we've had to put in guardrails here that differ from a commercial deployment - and make things a bit clunkier.
One "solution" for open-source and SAS programming lovers is to simply use SAS Viya Workbench for Learners. You'll have a dedicated environment... with no jovyan's required. Please let me know if that works!
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.