Skip to content

A Jupyter Notebook to test if your computer is correctly setup to run Sauder LS, Canvas API projects

Notifications You must be signed in to change notification settings

saud-learning-services/setup-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👷 Setup Test

  • name: setup-test
  • ops-run-with: jupyter
  • python>=3.8
  • canvasapi>=2.0.0
  • supports universal environment 🌎

Summary

Test project to use when working through the setup docs.

Input

You will need to give this tool an active Canvas API token for it to work. There are two methods of doing this (we recommend getting familiar with both):

a. Set your token to the CANVAS_API_TOKEN field in the .env file (replace "your-token-here")

CANVAS_API_TOKEN=your-token-here becomes CANVAS_API_TOKEN=fdfjskSDFj3343jkasdaA...

or

b. Delete the .env file and the Jupyter Notebook will prompt you to paste in your token as input (this is the more common way to input tokens for Ops tools)

Output

  • if everything is setup correctly you should see an output like the following
Logo

(instead displaying your first name as it appears on Canvas)

Getting Started - General Ops Method

  1. Make sure you have your environment created (either universal or project environment)
  2. Follow steps to run Jupyter notebook
  3. Follow the instructions in the Jupyter notebook

That's it! See below for some more advanced steps if you want to test out your terminal knowledge.


Want to Try in Terminal?

Many of our projects will have instructions similar to the following that are for those who want to run the projects without any GUI. Give it a try if you're keen!

First Time (do once)

  1. Clone this repo: $ git clone saud-learning-services/setup-test
    • this will create the setup-test directory in whichever folder you are set to in terminal (check with $ pwd to see current working directory)
    • see terminal basics to change directories
  2. Import environment (once): $ conda env create -f environment.yml

Every Time

  1. Make sure you are in the right directory: $ pwd if it isn't ..../setup-test then you need to navigate to it: $ cd {YOUR_PATH}/setup-test
  2. Make sure you have your token (either handy or in .env - see above)
  3. Activate the environment: $ conda activate setup-test
  4. Launch jupyter: $ jupyter notebook
  5. Follow instructions
  6. You're basically a wizard now 🧙‍♀️

About

A Jupyter Notebook to test if your computer is correctly setup to run Sauder LS, Canvas API projects

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published