Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Doc bugfix: user_ns is not an attribute of Magic objects. #2713

Merged
merged 1 commit into from

2 participants

@corranwebster

The interactive reference document has a minor bug where the user_ns is not accessed correctly. This fixes that issue, getting the namespace via the shell's user_ns attribute.

@bfroehle bfroehle merged commit fe3a6c1 into from
@bfroehle

Thanks!

@minrk minrk referenced this pull request from a commit
@minrk minrk Backport PR #2713: Doc bugfix: user_ns is not an attribute of Magic o…
…bjects.

The interactive reference document has a minor bug where the user_ns is not accessed correctly.  This fixes that issue, getting the namespace via the shell's user_ns attribute.
4e3ccfc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/source/interactive/reference.txt
View
2  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
Something went wrong with that request. Please try again.