Python

Lab 1 Python Setup and Install

Aims The aim of this lab is to help setup and install python and various other tools Using PyEnv for installation of python versions Using Pip to install packages Setup VSCode to edit and run python files Why do I need PyEnv?

Install and Setup of PyEnv

PyEnv can be installed by downloading from here https://github.com/pyenv/pyenv or if using a mac use brew install pyenv If downloading from github do the following git clone https://github.com/pyenv/pyenv.git ~/.pyenv cd ~/.

Lab 2 Test Driven Development

Aims The aim of this lab is to introduce pytest and the process of Test Driven Development, we will do this in the following way. Configure GitHub for labs. Use uv to set up a pytest Python environment.

Lab 2 More Linux

Aims The aim of this lab is to introduce more basic Linux commands and tools Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.

Lab 2 More Linux

Aims The aim of this lab is to introduce more basic Linux commands and tools Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.

Lab 2 More Linux

Aims The aim of this lab is to introduce more basic Linux commands and tools Essential Linux Directories Most linux environments have a similar directory structure. The following is a list of the most important directories and their purpose.

Lab 2 Functions and Modules

Aims The aim of this lab is to setup a simple python project using the Turtle module and experiment with writing code and functions. By the end of the Lab we should be able to

MayaPY not working

When running the following code in a mayapy session import maya.standalone maya.standalone.initialize(name='python') The interpreter never returns for the next line of code. TL;DR was an issue with my userSetup.py where I use cmds.

Lab 3 PyEnv

Aims The aim of this lab is to help setup and install python and various other tools Using PyEnv for installation of python versions Using Pip to install packages Setup VSCode to edit and run python files Why do I need PyEnv?

Lab 3 Test Driven Development

Aims The aim of this lab is to introduce pytest and the process of Test Driven Development, we will do this in the following way. Use uv to set up a pytest Python environment.