Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 2.17 KB

GettingStartedCheatsheet.md

File metadata and controls

56 lines (42 loc) · 2.17 KB

GettingStarted Cheatsheet

Installation

We'll be using python

Python 3.10.xx

Installation

https://www.python.org/downloads/release/python-3105/

Creating environments

venv

Typically we'll create virtual environments for our projects using venv

python3.10 -m venv venv
source ~/venv/venv/activate

This allows you to install things locally without interacting with the global space of the packages that you install

requirements.txt

It's useful to be able to just install a version of the packages used, we'll typically using requirements.txt to install necessary packages

# Generate a requirements.txt via pip freeze
pip freeze > requirements.txt

Types

Types are awesome, in the future cadcad, datascience aligned projects will use types, we'll try and use types as well so a good primer here is just the actual type systems documentation. Here's also a motivational piece thats good as well.

Numpy

We'll probably using numpy in some way or form. Numpy is a python package that makes it easier to perform math operations on vectors/matricies/list of data.

Matplotlib or Plotly

Both are great options, modellers choice. The text uses an outdated version of matplotlib Slightly slicker plotting production plotly

Jupyter Notebook

For this study group we have a great getting started notebook and also a way to start evolving our setup with notebook cribbed from the cadcad tools repo.

Token Engineering Tools

Just a quick link to overview of token engineering toolinng. Tools

Useful Python Topics

List Comprehensios Lambda Functions Type Annotations Data Class