Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87e9002

Browse files
committed
Remove no longer supported --matplotlib and --colors.
1 parent 6dc238d commit 87e9002

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

docs/source/interactive/qtconsole.rst

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ that specific figure:
130130

131131
.. _inline:
132132

133-
``--matplotlib inline``
133+
``%matplotlib inline``
134134
***********************
135135

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)`.
140140

141141
The inline backend can use either SVG or PNG figures (PNG being the default).
142142
It also supports the special key ``'retina'``, which is 2x PNG for high-DPI displays.
@@ -236,34 +236,23 @@ Colors and Highlighting
236236
=======================
237237

238238
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:
241241

242242
* LightBG for light backgrounds
243243
* Linux for dark backgrounds
244244
* NoColor for a simple colorless terminal
245245

246-
The Qt widget has full support for the ``colors`` flag used in the terminal shell.
247-
248246
The Qt widget, however, has full syntax highlighting as you type, handled by
249247
the `pygments`_ library. The ``style`` argument exposes access to any style by
250248
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.
255250

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:
258252

259253
.. image:: figs/colors_dark.png
260254
:width: 627px
261255

262-
.. Note::
263-
264-
Calling ``ipython qtconsole -h`` will show all the style names that
265-
pygments can find on your system.
266-
267256
You can also pass the filename of a custom CSS stylesheet, if you want to do
268257
your own coloring, via the ``stylesheet`` argument. The default LightBG
269258
stylesheet:

0 commit comments

Comments
 (0)