Web-Books
in the Austria-Forum
Austria-Forum
Web-Books
Informatik
Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
Page - 314 -
  • User
  • Version
    • full version
    • text only version
  • Language
    • Deutsch - German
    • English

Page - 314 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition

Image of the Page - 314 -

Image of the Page - 314 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition

Text of the Page - 314 -

314 A InstallationandUseofPython A.4 HowtoWriteandRunaPythonProgram Youhavebasically threechoices todevelopand test a Pythonprogram: 1. useanIDElikeSpyder,whichoffersawindowwitha texteditorandfunctional- ity to runprogramsandobserve theoutput 2. usea texteditoranda terminalwindow 3. use theJupyternotebook A.4.1 Spyder Spyder is a graphical application for developing and running Python programs, available on all major platforms. Spyder comes with Anaconda and some other pre-built environments for scientific computing with Python. On Ubuntu it is conveniently installedbysudo apt-get install spyder. The left pane in Spyder contains a plain text editor and this is where you will write your programs. As a quick test, write and run the following lit- tle program (compare also with Fig. A.1). Click in the editor pane and write print(’Hello!’). Save this to a file (File andSave as from the menu) called, e.g., Spyder_test.py. Then, choose Run from the Run pull-down menu, and observe the outputHello! in the lower right pane, which is where programoutput appears.Theupper rightpane(file explorer)allowsyou to viewandmanagefiles. With different settings (can be changed via the menu), the appear- ance and functioning of the Spyder environment may be changed in many ways. Much more details about the Spyder environment can be found at https://www.spyder-ide.org/. Fig.A.1 The Spyder Integrated Development Environment with a simple program that prints Hello!
back to the  book Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition"
Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
Title
Programming for Computations – Python
Subtitle
A Gentle Introduction to Numerical Simulations with Python 3.6
Volume
Second Edition
Authors
Svein Linge
Hans Petter Langtangen
Publisher
Springer Open
Date
2020
Language
English
License
CC BY 4.0
ISBN
978-3-319-32428-9
Size
17.8 x 25.4 cm
Pages
356
Keywords
Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
Category
Informatik
Web-Books
Library
Privacy
Imprint
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python