@@ -130,13 +130,13 @@ that specific figure:
130
130
131
131
.. _inline :
132
132
133
- ``-- matplotlib inline ``
133
+ ``% matplotlib inline ``
134
134
***********************
135
135
136
- If you want to have all of your figures embedded in your session, instead of
137
- calling :func: `display `, you can specify `` --matplotlib inline `` when you start the
138
- console, and each time you make a plot, it will show up in your document, as if
139
- you had called :func: `display(fig) `.
136
+ If you want to have all of your figures automatically embedded in your session
137
+ without having to explicitly call :func: `display `, you can specify
138
+ `` %matplotlib inline `` within the console; after doing so, generated plots will
139
+ show up directly in your document just as if you had called :func: `display(fig) `.
140
140
141
141
The inline backend can use either SVG or PNG figures (PNG being the default).
142
142
It also supports the special key ``'retina' ``, which is 2x PNG for high-DPI displays.
@@ -236,34 +236,23 @@ Colors and Highlighting
236
236
=======================
237
237
238
238
Terminal IPython has always had some coloring, but never syntax
239
- highlighting. There are a few simple color choices, specified by the `` colors ``
240
- flag or ``%colors `` magic:
239
+ highlighting. There are a few simple color choices, specified by the
240
+ ``%colors `` magic:
241
241
242
242
* LightBG for light backgrounds
243
243
* Linux for dark backgrounds
244
244
* NoColor for a simple colorless terminal
245
245
246
- The Qt widget has full support for the ``colors `` flag used in the terminal shell.
247
-
248
246
The Qt widget, however, has full syntax highlighting as you type, handled by
249
247
the `pygments `_ library. The ``style `` argument exposes access to any style by
250
248
name that can be found by pygments, and there are several already
251
- installed. The ``colors `` argument, if unspecified, will be guessed based on
252
- the chosen style. Similarly, there are default styles associated with each
253
- ``colors `` option.
254
-
249
+ installed.
255
250
256
- Screenshot of ``ipython qtconsole --colors=linux ``, which uses the 'monokai'
257
- theme by default:
251
+ Screenshot of the Linux color, which uses the 'monokai' theme by default:
258
252
259
253
.. image :: figs/colors_dark.png
260
254
:width: 627px
261
255
262
- .. Note ::
263
-
264
- Calling ``ipython qtconsole -h `` will show all the style names that
265
- pygments can find on your system.
266
-
267
256
You can also pass the filename of a custom CSS stylesheet, if you want to do
268
257
your own coloring, via the ``stylesheet `` argument. The default LightBG
269
258
stylesheet:
0 commit comments