You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / core / magics / osm / OSMagics / dhist

function

IPython.core.magics.osm:OSMagics.dhist

source: /IPython/core/magics/osm.py :526

Signature

def   dhist ( self parameter_s = '' )

Summary

Print your history of visited directories.

Extended Summary

%dhist -> print full history\ %dhist n -> print last n entries only\ %dhist n1 n2 -> print entries between n1 and n2 (n2 not included)\

This history is automatically maintained by the %cd command, and always available as the global list variable _dh. You can use %cd -<n> to go to directory number <n>.

Note that most of time, you should view directory history by entering cd -<TAB>.

Aliases

  • IPython.core.magics.OSMagics.dhist