- name: setup-test
- ops-run-with: jupyter
- python>=3.8
- canvasapi>=2.0.0
- supports universal environment 🌎
Test project to use when working through the setup docs.
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
becomesCANVAS_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)
- if everything is setup correctly you should see an output like the following
(instead displaying your first name as it appears on Canvas)
- Make sure you have your environment created (either universal or project environment)
- Follow steps to run Jupyter notebook
- 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.
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!
- 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
- this will create the setup-test directory in whichever folder you are set to in terminal (check with
- Import environment (once):
$ conda env create -f environment.yml
- 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
- Make sure you have your token (either handy or in .env - see above)
- Activate the environment:
$ conda activate setup-test
- Launch jupyter:
$ jupyter notebook
- Follow instructions
- You're basically a wizard now 🧙♀️