PyYYC, April 2019

Using Jupyter, with an intro to machine learning

Kai Lukowiak

Thank you to our sponsors:

ArtsMan

assembly

Upcoming event: Polyglot YYC

Saturday, June 2

$20 including lunch

Python feature: f-strings

Prefix a string with f and you can refer to variables directly

x = 1
print(f'x is {x}') (1)

prints

x is 1

Python 3.6+, see PEP 498

Expressions

total = 12
count = 5
print(f'average is {total / count}')

prints

average is 2.4

Formatting

After the variable or expression, you can include a colon and a format string:

print(f'average is {total / count:.2f}') (1)

now = datetime.datetime.utcnow()
print(f'today is {now:%Y-%m-%d}') (2)
1prints average is 2.40, instead of 2.4
2prints today is 2019-04-24

PyYYC planning

  • Looking for sponsors

  • Thanks to everyone who answered our call for speakers! Currently looking for a speaker for July

  • And an additional organizer

Today’s talk