Lab 1: Data Science stack
Contents
Lab 1: Data Science stack#
Objectives#
Install the Data Science Stack
Become familiar with the tools of the trade
Learn how to submit labs in MDS using GitHub and Gradescope
Task 1: Accept the lab (50 marks)#
To accept the assignment using GitHub, follow these steps:
Accept the GitHub Classroom assignment here ; you will need to accept each lab (for each course) separately.
In GitHub, go to your automatically created lab repository, then click the
Clone
button. Copy the https link in the dropdown box.
Open Terminal (Mac/Linux) or GitBash (Windows), and navigate to where you want to create your local copy of the repository.
Run
git clone <Your https repo link>
. For example, I entergit clone https://github.com/ubco-mds-2021/<REPO_NAME>-firasm.git
. You may be prompted to enter your GitHub username and password (use the Personal Access Token or the PAT).Navigate into the new folder that has been created. Make your changes, adding or editing files to this new folder.
Note you may have already completed the following 2 steps when you installed the DS Stack. You do not need to do them again
Run
git config --global user.email "<Your Email you used for GitHub>"
Run
git config --global user.email "<Your GitHub Username>"
Continue…
Run
git add -A
to stage all new edits and files in the repository for committing.Run
git commit -m "<Your commit message>"
to make a local commit of your changes. Your commit message should be a short description of what changes were made. You just made your first commit!Run
git push
to push your local commit to the GitHub server. You may be asked for your GitHub username and password (remember, use your PAT if it’s not stored) again. You should now see the changes you made reflected in GitHub’s web interface.You should repeat steps 7, 8, and 9 everytime you want to commit your changes up to GitHub.com. Otherwise they will only exist locally. I suggest having a minimum of 4 commits in this lab to get some practice on how this works.
If you have to enter your PAT every time, something isn’t quite right; the PAT should be saved and you shouldn’t be prompted for it each time.
Task 2: Install the Data Science Stack (40 marks)#
Most of you will have already installed the software and packages last week, in this task we will just confirm if everything is okay.
If you did not finish installing the stack, you should definitely do that now. Here is a link to the installation instructions.
Once you’re finished installing everything, run the following script (included in this repository) in the cells below. This is the output we will look at to make sure everything is ainstalled correctly.
Acknowledgement#
This Bash script was adapted from the original created by Dr. Joel Ostblom of the UBC-V MDS program. The original version is available here.
Run the Script#
Make sure you leave the ouput in this jupyter notebook. You may run the script as many times as you like, just remember to add, commit, and push the most recent version of your notebook to GitHub and re-submit it to Gradescope.
!bash check_setup.sh
bash: check_setup.sh: No such file or directory
Task 3: Submit your lab on Gradescope#
Submission Instructions#
Once you are done with both this lab, you will need to submit a snapshot of your repository for grading on Gradescope.
I have recorded a video with some instructions on how to submit your lab on Gradescope:
Click here to view the video in a new browser window.
The same instructions are summarized here in text:
Accept the GitHub Classroom assignment (You would have already done this in lab1A Task 1)
Commit and push your change to GitHub.
Log in to your Canvas course, and click Gradescope in the left sidebar.
You will be enrolled in the course and receive a confirmation email. Gradescope will also open in a new window/tab with your course dashboard and all active assignments.
If this is your first time using Gradescope, you will need to set a password:
In the confirmation email you received from Gradescope, click the set your password link. Enter the same password in the password and password confirmation fields, and click Set Password.
You can now access Gradescope through your Canvas course.
When in Gradescope, click the course and you will see a list of assignments. Select the assignment you want to submit.
Before you can start submitting work, you may see a dialog box telling you that your assignment will be timed. Read the information carefully, and click Start Assignment only when you’re ready for the countdown to begin.
The first time you do this, you will need to sync your GitHub account with Gradescope, and GRANT permission to our GitHub organization.
Once you log in and link your GitHub account, you should find the repository and submit it to Gradescope.
Gradescope will email you a confirmation of your submitted work, with a link to the submission.
Note: If you make any future commits to this repository, you will need to re-submit on Gradescope. You may resubmit as many times as you like before the deadline + grace period, but you will not be able to commit after this time!
You are all done with Lab 1!
Congratulations!