Page 103 - Beginning Programming with Pyth - John Paul Mueller
P. 103
and how certain features such as graphics appear. Finally, you need to know how to interact with running processes. In some cases, you need to know what a process is doing in order to make a decision about how to interact with it.
Downloading Your Code
Notebook provides you with a particular kind of coding environment, one that isn’t text based, in contrast to many other IDEs. If you were to open an IPython Notebook File (.ipynb, which is the same extension used by Jupyter Notebook), what you would find would be sort of readable, but not really usable. To obtain the special features that Notebook provides, the file must contain additional information not found in a normal text file. Consequently, you find that you must download your code to use it in other environments.
The “Exporting a notebook” section of Chapter 4 tells how to export your notebook in a form that Notebook understands. However, you may want to download the code into other formats that other applications can use. In fact, the File ⇒ Download As menu contains options for downloading your code in these formats:
Python (.py)
HTML (.html) Markdown (.md)
reST (.rst)
LaTeX (.tex)
PDF via LaTeX (.pdf)
Not all the formats are available all the time. For example, if you want to create a PDF using LaTeX, you must install XeTeX by using the instructions found at