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