Permalink
Browse files

rename reset parameter to 'clear' for clarity

  • Loading branch information...
1 parent a9c55d5 commit 0b63550fc010905c578425eb534e4fa7e5c9ade1 @ivanov committed May 15, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 IPython/frontend/qt/console/frontend_widget.py
@@ -534,7 +534,7 @@ def _started_channels(self):
""" Called when the KernelManager channels have started listening or
when the frontend is assigned an already listening KernelManager.
"""
- self.reset(force=True)
+ self.reset(clear=True)
#---------------------------------------------------------------------------
# 'FrontendWidget' public interface
@@ -568,12 +568,12 @@ def interrupt_kernel(self):
self._append_plain_text('Kernel process is either remote or '
'unspecified. Cannot interrupt.\n')
- def reset(self, force=False):
- """ Resets the widget to its initial state if ``force`` parameter or
+ def reset(self, clear=False):
+ """ Resets the widget to its initial state if ``clear`` parameter or
``clear_on_kernel_restart`` configuration setting is True, otherwise
prints a visual indication of the fact that the kernel restarted, but
does not clear the traces from previous usage of the kernel before it
- was restarted. With ``force=True``, it is similar to ``clear``, but
+ was restarted. With ``clear=True``, it is similar to ``%clear``, but
also re-writes the banner and aborts execution if necessary.
"""
if self._executing:
@@ -582,7 +582,7 @@ def reset(self, force=False):
self._reading = False
self._highlighter.highlighting_on = False
- if self.clear_on_kernel_restart or force:
+ if self.clear_on_kernel_restart or clear:
self._control.clear()
self._append_plain_text(self.banner)
else:

0 comments on commit 0b63550

Please sign in to comment.