Another great tip from PyConUK. Need your Python tests to interact with the file system? Find using /tmp unsatisfactory, then why not mock file system files using pyfakefs.
You can follow along the machine learning tutorial yourself using materials Ezzari Esa has shared at https://github.com/savarin/pyconuk-introtutorial
- comma usage is matrix/2D list slicing
PyConUK afforded me a great oppportunity to converse with fellow technicians, including those working in HE. Carwyn, based at Bangor University, reminded me about the Software Sustainability Institute, based at the universities of Edinburgh, Manchester, Oxford and Southampton. Whose aim is to support better research by helping researchers to build and use better software.
Damien George, a researcher at the University of Cambridge, has rewritten Python to be optimised for running on a micro controller. For example, the small computers that you might find in your washing machine, sometimes only have 64kb of RAM, so are generally controlled by programs written in C.
MicroPython is implemented on Python 3 and includes the usual Python features, such as:
- floating point
- complex numbers
- math apps
Uses 528 bytes of RAM at standing and MicroPython will run on various operating systems as well as bare metal.
There are some differences, like not redefining built-ins functions and Micro Python uses garbage collection. For more information https://github.com/micropython/micropython/wiki/Differences
The open source project at: http://github.com/micropython has been well received with over 1200 stars and 170 forks.
- is Python on bare metal, USB port, SD card port, accelerometer, 192k RAM or can can run stand alone from a battery.
- made by Geltech
- £28 per board
- Light version is coming that is a lot cheaper, expected to be around £20
More information: http://micropython.org/
How does a spreadsheet work? A tour of the codebase of Dirigible, the Pythonic spreadsheet by Harry Percival
As always an entertaining speaker. Harry gave us a world wind tour of the code related to a end of life, open source, project https://github.com/pythonanywhere/dirigible-spreadsheet
He also encouraged any self respecting Pythonista to sign up and register for an account at www.pythonanywhere.com.
Tip: Did you know you could add a name space to eval commands, to limit their scope.