Show More
@@ -177,9 +177,7 b' Raw cells provide a place to put additional information which is not evaluated b' | |||||
177 |
|
177 | |||
178 | Plotting |
|
178 | Plotting | |
179 | -------- |
|
179 | -------- | |
180 |
|
180 | One major feature of the Notebook is the ability to capture the result of plots as inline output. | ||
181 | The Notebook allows |
|
|||
182 |
|
||||
183 | `%matplotlib` and `%pylab` magics |
|
181 | `%matplotlib` and `%pylab` magics | |
184 |
|
182 | |||
185 | Inline versus non inline |
|
183 | Inline versus non inline | |
@@ -189,11 +187,23 b' Inline versus non inline' | |||||
189 |
|
187 | |||
190 | Magic commands |
|
188 | Magic commands | |
191 | -------------- |
|
189 | -------------- | |
|
190 | Magic commands, or *magics*, are one-word commands starting with `%`, which give commands to IPython itself (as opposed to standard Python commands which are exported to be run in a Python interpreter). | |||
|
191 | ||||
|
192 | Magics control different elements of the way that the IPython notebook operates. They are entered into standard code cells and executed as usual with :kbd:`Shift-Enter`. | |||
|
193 | ||||
|
194 | Some of the main magics are the following: | |||
|
195 | ||||
|
196 | ``%lsmagic`` | |||
|
197 | Lists all the magic commands available | |||
|
198 | ||||
|
199 | See CROSS-REF for a complete list of magics | |||
192 |
|
200 | |||
193 |
|
201 | |||
194 | Exporting a notebook and importing existing scripts |
|
202 | Exporting a notebook and importing existing scripts | |
195 | --------------------------------------------------- |
|
203 | --------------------------------------------------- | |
196 |
|
204 | |||
|
205 | Need to talk about ipython nbconvert | |||
|
206 | ||||
197 | If you want to provide others with a static HTML or PDF view of your notebook, |
|
207 | If you want to provide others with a static HTML or PDF view of your notebook, | |
198 | use the ``Print`` button. This opens a static view of the document, which you |
|
208 | use the ``Print`` button. This opens a static view of the document, which you | |
199 | can print to PDF using your operating system's facilities, or save to a file |
|
209 | can print to PDF using your operating system's facilities, or save to a file | |
@@ -204,9 +214,8 b' this, you must send the directory along with the main html file).' | |||||
204 |
|
214 | |||
205 | The `Download` button lets you save a notebook file to the Download area |
|
215 | The `Download` button lets you save a notebook file to the Download area | |
206 | configured by your web browser (particularly useful if you are running the |
|
216 | configured by your web browser (particularly useful if you are running the | |
207 |
notebook server on a remote host and need a file locally). |
|
217 | notebook server on a remote host and need a file locally). | |
208 | saved by default with the ``.ipynb`` extension and the files contain JSON data |
|
218 | But you can always export | |
209 | that is not meant for human editing or consumption. But you can always export |
|
|||
210 | the input part of a notebook to a plain python script by choosing Python format |
|
219 | the input part of a notebook to a plain python script by choosing Python format | |
211 | in the `Download` drop list. This removes all output and saves the text cells |
|
220 | in the `Download` drop list. This removes all output and saves the text cells | |
212 | in comment areas. See ref:`below <notebook_format>` for more details on the |
|
221 | in comment areas. See ref:`below <notebook_format>` for more details on the |
General Comments 0
You need to be logged in to leave comments.
Login now