##// END OF EJS Templates
make hiding of initial namespace optional...
MinRK -
Show More
@@ -164,6 +164,11 b' class InteractiveShellApp(Configurable):'
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
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 )
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."""
169 )
174 )
@@ -290,6 +295,7 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.
298 if self.hide_initial_ns:
293 self.shell.user_ns_hidden.update(self.shell.user_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):
General Comments 0
You need to be logged in to leave comments. Login now