@@ -117,7 +117,7 @@ non-responsive) you will be able to use the prompt again. Re-starting
117
117
the event loop will make any open figure responsive again (and will
118
118
process any queued up user interaction).
119
119
120
- To start the event loop until all open figures are closed use
120
+ To start the event loop until all open figures are closed, use
121
121
`.pyplot.show ` as ::
122
122
123
123
pyplot.show(block=True)
@@ -345,7 +345,7 @@ become stale.
345
345
346
346
.. _draw_idle :
347
347
348
- Draw Idle
348
+ Idle draw
349
349
=========
350
350
351
351
.. autosummary ::
@@ -393,19 +393,18 @@ CPython / readline
393
393
------------------
394
394
395
395
The Python C API provides a hook, :c:data: `PyOS_InputHook `, to register a
396
- function to be run "The function will be called when Python's
396
+ function to be run ( "The function will be called when Python's
397
397
interpreter prompt is about to become idle and wait for user input
398
- from the terminal.". This hook can be used to integrate a second
398
+ from the terminal.") . This hook can be used to integrate a second
399
399
event loop (the GUI event loop) with the python input prompt loop.
400
400
The hook functions typically exhaust all pending events on the GUI
401
401
event queue, run the main loop for a short fixed amount of time, or
402
402
run the event loop until a key is pressed on stdin.
403
403
404
-
405
404
Matplotlib does not currently do any management of :c:data: `PyOS_InputHook ` due
406
405
to the wide range of ways that Matplotlib is used. This management is left to
407
406
downstream libraries -- either user code or the shell. Interactive figures,
408
- even with matplotlib in 'interactive mode', may not work in the vanilla python
407
+ even with Matplotlib in 'interactive mode', may not work in the vanilla python
409
408
repl if an appropriate :c:data: `PyOS_InputHook ` is not registered.
410
409
411
410
Input hooks, and helpers to install them, are usually included with
@@ -415,15 +414,15 @@ Matplotlib supports which can be installed via ``%matplotlib``. This
415
414
is the recommended method of integrating Matplotlib and a prompt.
416
415
417
416
418
- IPython / prompt toolkit
417
+ IPython / prompt_toolkit
419
418
------------------------
420
419
421
- With IPython >= 5.0 IPython has changed from using cpython 's readline
420
+ With IPython >= 5.0 IPython has changed from using CPython 's readline
422
421
based prompt to a ``prompt_toolkit `` based prompt. ``prompt_toolkit ``
423
422
has the same conceptual input hook, which is fed into ``prompt_toolkit `` via the
424
423
:meth: `IPython.terminal.interactiveshell.TerminalInteractiveShell.inputhook `
425
424
method. The source for the ``prompt_toolkit `` input hooks lives at
426
- :mod: `IPython.terminal.pt_inputhooks `
425
+ :mod: `IPython.terminal.pt_inputhooks `.
427
426
428
427
429
428
0 commit comments