Show More
@@ -163,6 +163,11 b' class InteractiveShellApp(Configurable):' | |||
|
163 | 163 | |
|
164 | 164 | # Extensions that are always loaded (not configurable) |
|
165 | 165 | default_extensions = List(Unicode, [u'storemagic'], config=False) |
|
166 | ||
|
167 | hide_initial_ns = Bool(True, config=True, | |
|
168 | help="""Should variables loaded at startup (by startup files, exec_lines, etc.) | |
|
169 | be hidden from tools like %who?""" | |
|
170 | ) | |
|
166 | 171 | |
|
167 | 172 | exec_files = List(Unicode, config=True, |
|
168 | 173 | help="""List of files to run at IPython startup.""" |
@@ -290,7 +295,8 b' class InteractiveShellApp(Configurable):' | |||
|
290 | 295 | sys.stderr.flush() |
|
291 | 296 | |
|
292 | 297 | # Hide variables defined here from %who etc. |
|
293 | self.shell.user_ns_hidden.update(self.shell.user_ns) | |
|
298 | if self.hide_initial_ns: | |
|
299 | self.shell.user_ns_hidden.update(self.shell.user_ns) | |
|
294 | 300 | |
|
295 | 301 | def _run_exec_lines(self): |
|
296 | 302 | """Run lines of code in IPythonApp.exec_lines in the user's namespace.""" |
General Comments 0
You need to be logged in to leave comments.
Login now