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