sudo apt-get install python3-pip
sudo pip3 install virtualenv
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
import json, datetime | |
class RoundTripEncoder(json.JSONEncoder): | |
DATE_FORMAT = "%Y-%m-%d" | |
TIME_FORMAT = "%H:%M:%S" | |
def default(self, obj): | |
if isinstance(obj, datetime.datetime): | |
return { | |
"_type": "datetime", | |
"value": obj.strftime("%s %s" % ( |
This document will walk you through compiling your own scientific python distribution from source,
without sudo
, on a linux machine. The core numpy
and scipy
libraries will be linked against
Intel MKL for maximum performance.
This procedure has been tested with Rocks Cluster Linux 6.0 (Mamba) and CentOS 6.3.