Show More
@@ -287,16 +287,19 b' class InteractiveShellApp(Configurable):' | |||
|
287 | 287 | self._run_startup_files() |
|
288 | 288 | self._run_exec_lines() |
|
289 | 289 | self._run_exec_files() |
|
290 | ||
|
291 | # Hide variables defined here from %who etc. | |
|
292 | if self.hide_initial_ns: | |
|
293 | self.shell.user_ns_hidden.update(self.shell.user_ns) | |
|
294 | ||
|
295 | # command-line execution (ipython -i script.py, ipython -m module) | |
|
296 | # should *not* be excluded from %whos | |
|
290 | 297 | self._run_cmd_line_code() |
|
291 | 298 | self._run_module() |
|
292 | 299 | |
|
293 | 300 | # flush output, so itwon't be attached to the first cell |
|
294 | 301 | sys.stdout.flush() |
|
295 | 302 | sys.stderr.flush() |
|
296 | ||
|
297 | # Hide variables defined here from %who etc. | |
|
298 | if self.hide_initial_ns: | |
|
299 | self.shell.user_ns_hidden.update(self.shell.user_ns) | |
|
300 | 303 | |
|
301 | 304 | def _run_exec_lines(self): |
|
302 | 305 | """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