From f7e055d056609377a6fa726eea1fb985b9da47ed 2019-06-12 20:01:20 From: Antony Lee Date: 2019-06-12 20:01:20 Subject: [PATCH] Fix docstring of `%reset`. `_ip` doesn't exist at the toplevel, `get_ipython()` does. --- diff --git a/IPython/core/magics/namespace.py b/IPython/core/magics/namespace.py index 6a19e6a..cef6ddb 100644 --- a/IPython/core/magics/namespace.py +++ b/IPython/core/magics/namespace.py @@ -518,12 +518,12 @@ class NamespaceMagics(Magics): In [7]: a Out[7]: 1 - In [8]: 'a' in _ip.user_ns + In [8]: 'a' in get_ipython().user_ns Out[8]: True In [9]: %reset -f - In [1]: 'a' in _ip.user_ns + In [1]: 'a' in get_ipython().user_ns Out[1]: False In [2]: %reset -f in