Python

Installing Python Modules

How to install local python modules in the Linux Labs

Lab 1 Introduction to Linux

Aims The aim of this lab is to introduce some basic Linux commands and tools The terminal and why it is important basic linux commands ls,pwd,mkdir,cd,rm,man,history. The environment and how to set it up Getting Started The first thing we need to do is to get a terminal open.

Lab 1 Introduction to Linux

Aims The aim of this lab is to introduce some basic Linux commands and tools The terminal and why it is important basic linux commands ls,pwd,mkdir,cd,rm,man,history. The environment and how to set it up Getting Started The first thing we need to do is to get a terminal open.

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 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 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 the process of test driven development (TDD) and develop some simple tests, we will use the following steps. Project Setup Test Setup Test Driven Design of a Simple RGBA class using Version control Storing Pixels It is common to store image pixel data using a single unsigned int32_t data type.

Lab 4 OO in Python

Aims The aim of this lab is to investigate Object Orientation in python The principles of S.O.L.I.D Classes in Python OO Design principles SOLID Is A mnemonic to remember the first five principles of Object Oriented design

Lab 5 Test Driven Development

Aims The aim of this lab is to introduce the process of test driven development (TDD) and develop some simple tests, we will use the following steps. Project Setup Version Control Setup Test Setup Test Driven Design of a Simple RGBA class Storing Pixels It is common to store image pixel data using a single unsigned int32_t data type.

Computational Thinking

What is Computational Thinking? The idea of computational thinking is allow us to look at problems and determine the best way for a computer to solve this (and related problems).

Computational Thinking

What is Computational Thinking? The idea of computational thinking is allow us to look at problems and determine the best way for a computer to solve this (and related problems).

Simple Programs

Simple Programs with Python In this session we will look at writing some simple stand alone programs in Python. We will cover the following topics: #!/ __main__ sys.argv The first thing to note is that Python is an interpreted language, this means that you can run Python code directly from the command line.

Databases and SQL

Databases and SQL

Setup Python for Machine Learning and AI

Introduction In Lab1 we introduced the PyEnv tool to allow us to install various versions of python either locally or globally. In the following examples we will explore how we can setup and install specific ML libraries into a Virtual Environment using the global PyEnv python.

Command Line Arguments

Overview In this session we will look at how to pass arguments to a Python program from the command line. We will cover the following topics: sys.argv argparse click What are command line arguments?

Type Hinting

Type Hints were added to python 3.5 as a way of adding support for linters and 3rd party tools to check code for possible errors. These have no effect of the running of the code and are not mandatory, however they are good software engineering practice and we encourage their use throughout your code.

Type Hints

Aims We will investigate some modern python features and concepts by developing some small programs. Type Hinting Type hints were added to python 3.5 as a way of adding support for linters and 3rd party tools to check code for possible errors.

File IO

Overview In this session we will look at how to read and write files in Python. We will cover the following topics: Opening and closing files Reading and writing text files context managers We will also continue to develop our csv writer program from the previous session.

Lab 4 ML frameworks for python

Introduction In Lab3 we introduced the PyEnv tool to allow us to install various versions of python either locally or globally, and we installed the Anaconda distribution of python which includes many of the libraries we will be using in the course.

Type Hints

Aims We will investigate some modern python features and concepts by developing some small programs. Type Hinting Type hints were added to python 3.5 as a way of adding support for linters and 3rd party tools to check code for possible errors.

Black

Why do I need it? Life is too short to tidy up code by hand. Black is an opinionated python formatter. By using it, you agree to cede control over minutiae of hand-formatting.

Numpy

Why do I need it? numpy is “The fundamental package for scientific computing with Python”. In particular it gives us fast and efficient array types which can be used with C/C++ types as well.

Rich & Textual

Why do I need it? These two co-related modules will make your command line tools better. “Rich is a Python library for rich text and beautiful formatting in the terminal”, “Textual is a TUI (Text User Interface) framework for Python inspired by modern web development.

Installing Python in the Labs

We look at how to install python for personal use in the labs

Vanessa Stotz

Stuff

Renderman Plugin guide

This page lists the rib and python syntax for all of the current renderman plugins.

PointViz (or doing the ASE assignment) Week 1

The ongoing saga of my doing the ASE assignment

PointViz (or doing the ASE assignment) Week 2

The ongoing saga of my doing the ASE assignment

PointViz (or doing the ASE assignment) Week 3

The ongoing saga of my doing the ASE assignment

PointViz (or doing the ASE assignment) Week 4

The ongoing saga of my doing the ASE assignment

PointViz (or doing the ASE assignment) Week 5

The ongoing saga of my doing the ASE assignment

PointViz (or doing the ASE assignment) Week 6

The ongoing saga of my doing the ASE assignment

Creating a Simple USD Schema

On creating a simple schema for USD and then a plugin for python

ClutterBase

A portable asset datatbase for DCC tools

Aslan Saparov

This thesis report documents the terrain generation, the research on different methods and techniques possible to generate a terrain as well as the implementation of it in this project.