From ba70177127ed86ee7d7eea384e94addd90a382b1 2012-12-21 17:05:48 From: Corran Webster Date: 2012-12-21 17:05:48 Subject: [PATCH] Minor bugfix: user_ns is not an attribute of Magic objects. --- diff --git a/docs/source/interactive/reference.txt b/docs/source/interactive/reference.txt index 4a7e706..9e74650 100644 --- a/docs/source/interactive/reference.txt +++ b/docs/source/interactive/reference.txt @@ -227,7 +227,7 @@ IPython object: def lmagic(self, line): "my line magic" print "Full access to the main IPython object:", self.shell - print "Variables in the user namespace:", self.user_ns.keys() + print "Variables in the user namespace:", self.shell.user_ns.keys() return line @cell_magic