Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-nr4z6 Total loading time: 0 Render date: 2024-05-07T20:13:47.426Z Has data issue: false hasContentIssue false

Appendix A - Installing a Python environment

Published online by Cambridge University Press:  05 August 2014

John M. Stewart
Affiliation:
University of Cambridge
Get access

Summary

In order to use Python we need to install at least two distinct types of software. The first type is relatively straightforward, consisting of core Python itself, and associated packages, and is discussed in Section A.1 below. The second type addresses a much more complex issue, the interaction of human and machine, i.e., how to instruct the machine to do what we want it to do. An optimal resolution depends in part on what other computer software you wish to use. Some pointers are offered in Section A.2.

Most users of Matlab or Mathematica never see these issues. Invoking either application sets up an editor window or notebook, and an integrated editor accepts instructions from the keyboard. Then a key press invokes the interpreter, and delivers the desired output with an automatic return to the editor window. They obviously get top marks for immediate convenience and simplicity, but in the long term they may not win out on efficiency and versatility.

Installing Python packages

As has been outlined in Section 1.2, we shall need not only core Python, but also the add-on packages IPython (see Chapter 2), numpy, scipy (packages discussed in Chapter 4), matplotlib (see Chapter 5) and potentially mayavi (discussed in Chapter 6). Although data analysis is merely mentioned in Section 4.5, that section recommends the pandas package, and for many this will be a must-have.

Type
Chapter
Information
Python for Scientists , pp. 205 - 209
Publisher: Cambridge University Press
Print publication year: 2014

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×