MCPcopy Create free account
hub / github.com/ipython/ipython / popd

Method popd

IPython/core/magics/osm.py:512–519  ·  view source on GitHub ↗

Change to directory popped off the top of the stack.

(self, parameter_s='')

Source from the content-addressed store, hash-verified

510
511 @line_magic
512 def popd(self, parameter_s=''):
513 """Change to directory popped off the top of the stack.
514 """
515 if not self.shell.dir_stack:
516 raise UsageError("%popd on empty stack")
517 top = self.shell.dir_stack.pop(0)
518 self.cd(top)
519 print("popd ->",top)
520
521 @line_magic
522 def dirs(self, parameter_s=''):

Callers

nothing calls this directly

Calls 3

cdMethod · 0.95
UsageErrorClass · 0.90
popMethod · 0.80

Tested by

no test coverage detected