'Change to directory popped off the top of the stack.'

@line_magic
def popd(self, parameter_s=''):

    if (not self.shell.dir_stack):
        raise UsageError('%popd    on    empty    stack')
    top = self.shell.dir_stack.pop(0)
    self.cd(top)
    print ('popd    ->', top)
