From 8832158464ea4c0df2d176d0cc0bd723e39a917d 2018-10-21 01:00:01 From: Matthias Bussonnier Date: 2018-10-21 01:00:01 Subject: [PATCH] Bit nitpicky about rst markup, find more errors. --- diff --git a/IPython/__init__.py b/IPython/__init__.py index 7bd0ee3..043a946 100644 --- a/IPython/__init__.py +++ b/IPython/__init__.py @@ -75,7 +75,7 @@ def embed_kernel(module=None, local_ns=None, **kwargs): Parameters ---------- - module : ModuleType, optional + module : types.ModuleType, optional The module to load into IPython globals (default: caller) local_ns : dict, optional The namespace to load into IPython user namespace (default: caller) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0df8b44..23a4799 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -66,6 +66,8 @@ extensions = [ 'configtraits', ] +nitpicky = True + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/whatsnew/version7.rst b/docs/source/whatsnew/version7.rst index 19352cc..31b4e4a 100644 --- a/docs/source/whatsnew/version7.rst +++ b/docs/source/whatsnew/version7.rst @@ -206,8 +206,8 @@ Make :magic:`%run -n -i ... ` work correctly. Earlier, if :magic:`%run` was passed both arguments, ``-n`` would be silently ignored. See :ghpull:`10308` -The :cellmagic:`%%script`` (as well as :cellmagic:`%%bash``, -:cellmagic:`%%ruby``... ) cell magics now raise by default if the return code of +The :cellmagic:`%%script` (as well as :cellmagic:`%%bash`, +:cellmagic:`%%ruby`... ) cell magics now raise by default if the return code of the given code is non-zero (thus halting execution of further cells in a notebook). The behavior can be disable by passing the ``--no-raise-error`` flag.