##// END OF EJS Templates
Magic commands section
David P. Sanders -
Show More
@@ -177,9 +177,7 b' Raw cells provide a place to put additional information which is not evaluated b'
177 177
178 178 Plotting
179 179 --------
180
181 The Notebook allows
182
180 One major feature of the Notebook is the ability to capture the result of plots as inline output.
183 181 `%matplotlib` and `%pylab` magics
184 182
185 183 Inline versus non inline
@@ -189,11 +187,23 b' Inline versus non inline'
189 187
190 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 202 Exporting a notebook and importing existing scripts
195 203 ---------------------------------------------------
196 204
205 Need to talk about ipython nbconvert
206
197 207 If you want to provide others with a static HTML or PDF view of your notebook,
198 208 use the ``Print`` button. This opens a static view of the document, which you
199 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 215 The `Download` button lets you save a notebook file to the Download area
206 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). The notebook is
208 saved by default with the ``.ipynb`` extension and the files contain JSON data
209 that is not meant for human editing or consumption. But you can always export
217 notebook server on a remote host and need a file locally).
218 But you can always export
210 219 the input part of a notebook to a plain python script by choosing Python format
211 220 in the `Download` drop list. This removes all output and saves the text cells
212 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