O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using IPython as a shell

Scientists and engineers are used to experimenting. IPython was created by scientists with experimentation in mind. The interactive environment that IPython provides is viewed by many as a direct answer to MATLAB, Mathematica, Maple, and R.

The following is a list of features of the IPython shell:

  • Tab completion
  • History mechanism
  • Inline editing
  • The ability to call external Python scripts with %run
  • The ability to call magic functions that interact with the operating system shell
  • Access to system commands
  • The pylab switch
  • Access to Python debugger and profiler

How to do it...

This section describes how to use the IPython shell:

  • pylab: The pylab switch automatically imports all the SciPy, NumPy, and matplotlib packages. Without this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required