Python related links¶
Advanced python. Lecture on python by Thomas Wouters at Google. 21 Feb 2007 [1]
Numpy for Matlab users (Accessed July 2019)
Footnotes
Matplotlib (separate page).
Managing dependencies — Reinout van Rees’s website Article from 2009 about Managing dependencies.
PyFormat: Examples of using format() in python
Old talk by Aaron Meurer: 10 awesome features of Python you cannot do because you are still using Python 2 9 April 2014 at APUG
Python documentation in info format (useful with a powerful info reader like emacs).
Example using datetime¶
The documentation of the datetime module indicates that there are these objects: * datetime * time * timezone
import datetime
import time
b= 1261228562.0
print(b)
a = datetime.datetime.fromtimestamp(b)
print(a)
Style guide¶
Google python style guide (part of the general style guides). These guides are kept in a “styleguide” github repo.
Fluent python book by Luciano Ramalho (O’Reilly 2015). The example code is in github.
Virtualenv¶
Turns out that virtualenv is not the same as venv
I finally read a stack overflow article/question (Jan 2017) that clarifies what is what and there’s a good link to explain pipenv in realpython.com
I think I like the answer from Rias Rizvi suggesting that one should generally use venv for python 3.3 and newer. Since python 2 is deprecated, it sounds like there is no need to use virtualenv.
Then there also is pipenv. And pipenv uses virtualenv instead of venv.