'Update current working directory.
Retrieve the cwd and emit a signal connected to the working directory
widget. (see: handle_exec_method())'

def get_cwd(self):

    code = u'get_ipython().kernel.get_cwd()'
    if self._reading:
        return
    else:
        self.silent_exec_method(code)
