Importing everything is a source of possible errors (e.g. pylab
overwrites numpy names)
from numpy import *
# if available import pylab (from matlibplot)
from pylab import *
I would prefer the current standard
import numpy as np
import matplotlib.pylab as plt
and keep the name space as part of the name, e.g. np.dot, np.exp, ...
Log in to post a comment.