Pylab stellt eine prozedurale Schnittstelle für das objektorientierte Matplotlib-Modul zur Verfügung. Die Kommandos sind Matlab nachempfunden. Deshalb gibt es zu einem Großteil der Pylab-Kommandos analoge Matlab-Kommandos mit ähnlichen Argumenten.
%pylab
oder
ipython3 --pylab
Dabei erfolgen die folgenden 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 *