Most notebooks use %matplotlib inline, but some use %pylab notebook. Latter only works inside notebook but not in lab, in lab one needs to use %pylab widget to get similar effect.
Not sure if notebooks with %pylab notebookneed to have interactive graphs or this just a nice to have.
Also note that %pylab magic is kinda deprecated in favor of %matplotlib (%pylab imports some functions from numpy/scipy into global namespace to be more Matlab-like)
Most notebooks use
%matplotlib inline
, but some use%pylab notebook
. Latter only works insidenotebook
but not inlab
, inlab
one needs to use%pylab widget
to get similar effect.Not sure if notebooks with
%pylab notebook
need to have interactive graphs or this just a nice to have.Also note that
%pylab
magic is kinda deprecated in favor of%matplotlib
(%pylab
imports some functions fromnumpy/scipy
into global namespace to be more Matlab-like)