##// END OF EJS Templates
make hiding of initial namespace optional...
MinRK -
Show More
@@ -163,6 +163,11 b' class InteractiveShellApp(Configurable):'
163
163
164 # Extensions that are always loaded (not configurable)
164 # Extensions that are always loaded (not configurable)
165 default_extensions = List(Unicode, [u'storemagic'], config=False)
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 exec_files = List(Unicode, config=True,
172 exec_files = List(Unicode, config=True,
168 help="""List of files to run at IPython startup."""
173 help="""List of files to run at IPython startup."""
@@ -290,7 +295,8 b' class InteractiveShellApp(Configurable):'
290 sys.stderr.flush()
295 sys.stderr.flush()
291
296
292 # Hide variables defined here from %who etc.
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 def _run_exec_lines(self):
301 def _run_exec_lines(self):
296 """Run lines of code in IPythonApp.exec_lines in the user's namespace."""
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