diff --git a/IPython/core/inputtransformer.py b/IPython/core/inputtransformer.py index 2fcf7ee..f668f46 100644 --- a/IPython/core/inputtransformer.py +++ b/IPython/core/inputtransformer.py @@ -407,8 +407,11 @@ def _strip_prompts(prompt_re, initial_re=None, turnoff_re=None): If no initial expression is given, prompt_re will be used everywhere. Used mainly for plain Python prompts, where the continuation prompt ``...`` is a valid Python expression in Python 3, so shouldn't be stripped. - If initial_re and prompt_re differ, - only initial_re will be tested against the first line. + + Notes + ----- + If `initial_re` and `prompt_re differ`, + only `initial_re` will be tested against the first line. If any prompt is found on the first two lines, prompts will be stripped from the rest of the block. """ diff --git a/IPython/core/magics/namespace.py b/IPython/core/magics/namespace.py index 426c3b8..c86d3de 100644 --- a/IPython/core/magics/namespace.py +++ b/IPython/core/magics/namespace.py @@ -483,9 +483,9 @@ class NamespaceMagics(Magics): Parameters ---------- -f - force reset without asking for confirmation. + force reset without asking for confirmation. -s - 'Soft' reset: Only clears your namespace, leaving history intact. + 'Soft' reset: Only clears your namespace, leaving history intact. References to objects may be kept. By default (without this option), we do a 'hard' reset, giving you a new session and removing all references to objects from the current session. @@ -494,10 +494,14 @@ class NamespaceMagics(Magics): may allow you to reimport Python modules that have been updated and pick up changes, but can have unattended consequences. - in : reset input history - out : reset output history - dhist : reset directory history - array : reset only variables that are NumPy arrays + in + reset input history + out + reset output history + dhist + reset directory history + array + reset only variables that are NumPy arrays See Also -------- diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py index 78f04b7..0096b9c 100644 --- a/IPython/core/oinspect.py +++ b/IPython/core/oinspect.py @@ -577,10 +577,10 @@ class Inspector(Colorable): ---------- obj : any Object to inspect and return info from - oname: str (default: ''): + oname : str (default: ''): Name of the variable pointing to `obj`. formatter : callable - info: + info already computed information detail_level : integer Granularity of detail level, if set to 1, give more information.