Skip to content

Commit 7f641c7

Browse files
authored
Merge pull request #19798 from meeseeksmachine/auto-backport-of-pr-19790-on-v3.4.x
Backport PR #19790 on branch v3.4.x (Small typo fixes to interactive guide.)
2 parents 81c2a22 + 7694f86 commit 7f641c7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/users/interactive_guide.rst

+8-9
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ non-responsive) you will be able to use the prompt again. Re-starting
117117
the event loop will make any open figure responsive again (and will
118118
process any queued up user interaction).
119119

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
121121
`.pyplot.show` as ::
122122

123123
pyplot.show(block=True)
@@ -345,7 +345,7 @@ become stale.
345345

346346
.. _draw_idle:
347347

348-
Draw Idle
348+
Idle draw
349349
=========
350350

351351
.. autosummary::
@@ -393,19 +393,18 @@ CPython / readline
393393
------------------
394394

395395
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
397397
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
399399
event loop (the GUI event loop) with the python input prompt loop.
400400
The hook functions typically exhaust all pending events on the GUI
401401
event queue, run the main loop for a short fixed amount of time, or
402402
run the event loop until a key is pressed on stdin.
403403

404-
405404
Matplotlib does not currently do any management of :c:data:`PyOS_InputHook` due
406405
to the wide range of ways that Matplotlib is used. This management is left to
407406
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
409408
repl if an appropriate :c:data:`PyOS_InputHook` is not registered.
410409

411410
Input hooks, and helpers to install them, are usually included with
@@ -415,15 +414,15 @@ Matplotlib supports which can be installed via ``%matplotlib``. This
415414
is the recommended method of integrating Matplotlib and a prompt.
416415

417416

418-
IPython / prompt toolkit
417+
IPython / prompt_toolkit
419418
------------------------
420419

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
422421
based prompt to a ``prompt_toolkit`` based prompt. ``prompt_toolkit``
423422
has the same conceptual input hook, which is fed into ``prompt_toolkit`` via the
424423
:meth:`IPython.terminal.interactiveshell.TerminalInteractiveShell.inputhook`
425424
method. The source for the ``prompt_toolkit`` input hooks lives at
426-
:mod:`IPython.terminal.pt_inputhooks`
425+
:mod:`IPython.terminal.pt_inputhooks`.
427426

428427

429428

0 commit comments

Comments
 (0)