Seite - 217 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python
Bild der Seite - 217 -
Text der Seite - 217 -
A.5 WritingIPythonNotebooks 217
Executing these statements results in a plot in the browser, see Fig. A.2. It was
popular tostart thenotebookbyipython notebook –pylab to importeverything
from numpy and matplotlib.pyplotandmake all plots inline, but the –pylab
option isnowofficiallydiscouraged18. Ifyouwant thenotebook tobehavemoreas
MATLABandnotuse thenpandpltprefix,youcan insteadof thefirst three lines
abovewrite%pylab.
Fig.A.2 Exampleonan IPythonnotebook
18http://carreau.github.io/posts/10-No-PyLab-Thanks.ipynb.html
Programming for Computations – Python
A Gentle Introduction to Numerical Simulations with Python
- Titel
- Programming for Computations – Python
- Untertitel
- A Gentle Introduction to Numerical Simulations with Python
- Autoren
- Svein Linge
- Hans Petter Langtangen
- Verlag
- Springer Open
- Datum
- 2016
- Sprache
- englisch
- Lizenz
- CC BY-NC 4.0
- ISBN
- 978-3-319-32428-9
- Abmessungen
- 17.8 x 25.4 cm
- Seiten
- 248
- Schlagwörter
- Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
- Kategorie
- Informatik