Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
IPython Notebook Essentials

You're reading from   IPython Notebook Essentials Compute scientific data and execute code interactively with NumPy and SciPy

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783988341
Length 190 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Luiz Felipe Martins Luiz Felipe Martins
Author Profile Icon Luiz Felipe Martins
Luiz Felipe Martins
Arrow right icon
View More author details
Toc

Importing modules

The steps to load some of the important modules are as follows:

  • To load NumPy and matplotlib to work interactively, along with inline graphics, run the following command:
    pylab inline
    
  • To load NumPy and matplotlib without importing names into the current namespace, with inline graphics, run the following command line:
    pylab -–no-import-all inline
    
  • To load SciPy modules, use any of the following standard Python import commands:
    import scipy.<module>
    import scipy.<module> as <local-name>
    from scipy.<module> import <function>
    

If the –no-import-all options is used, the functions and objects have to be prefixed by the appropriate module name as follows:

  • For NumPy functions and objects, use numpy or np.
  • For interactive graphics, use pyplot or plt.

Modules from libraries installed in the system as well as the user-created modules with the.py extension can be imported through the standard Python mechanism.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image