Sunday 17 February 2019

Python morsels

iPython
iPython is a must for any python programming.  It is simple to install (with pip3), can be used just like the standard interpreter with no learning curve and is packed with useful features.  Features which made my life better from day 1 include:
1) being able to a stop a program at a given point and inspect the variables
2) Hitting tab after an obect name to display a list of its properties.

Python CLI
python command line programs are useful when using linux.  In particular Python is great for simple utilities but it is a nuisance to have to run them from specific directories.  Python CLI makes this easier. Thomas Stringer has provided a simple example.  I also found an explanation on Stack Overflow on usage helpful.

No comments:

Post a Comment