@@ -117,7 +117,7 @@ non-responsive) you will be able to use the prompt again. Re-starting
117117the event loop will make any open figure responsive again (and will
118118process 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
395395The 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
397397interpreter 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
399399event loop (the GUI event loop) with the python input prompt loop.
400400The hook functions typically exhaust all pending events on the GUI
401401event queue, run the main loop for a short fixed amount of time, or
402402run the event loop until a key is pressed on stdin.
403403
404-
405404Matplotlib does not currently do any management of :c:data: `PyOS_InputHook ` due
406405to the wide range of ways that Matplotlib is used. This management is left to
407406downstream 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
409408repl if an appropriate :c:data: `PyOS_InputHook ` is not registered.
410409
411410Input hooks, and helpers to install them, are usually included with
@@ -415,15 +414,15 @@ Matplotlib supports which can be installed via ``%matplotlib``. This
415414is 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
422421based prompt to a ``prompt_toolkit `` based prompt. ``prompt_toolkit ``
423422has the same conceptual input hook, which is fed into ``prompt_toolkit `` via the
424423:meth: `IPython.terminal.interactiveshell.TerminalInteractiveShell.inputhook `
425424method. 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