Numerical experiments, Tips, Tricks and Gotchas
This is yet another reference for myself.
In order to activate inline grafics, it usually recomended to call%pylab inlineHowever, according to the documentation [1], this command makes a lot of imports:
import numpy import matplotlib from matplotlib import pylab, mlab, pyplot np = numpy plt = pyplot from IPython.display import display from IPython.core.pylabtools import figsize, getfigs from pylab import * from numpy import *I found this light-weight substitution on the Internet [ 2] and use since:
%matplotlib inline import matplotlib import numpy as np import matplotlib.pyplot as pltor [3]
import numpy as np import pandas as pd import matplotlib.pyplot as plt %matplotlib inline
© Nikolai Shokhirev, 2012-2024
email: nikolai(dot)shokhirev(at)gmail(dot)com