MCPcopy Index your code
hub / github.com/ipython/ipython / popd

Method popd

IPython/core/magics/osm.py:511–518  ·  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

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