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

bundles / IPython 9.2.0 / IPython / core / magics / osm / OSMagics / rehashx

function

IPython.core.magics.osm:OSMagics.rehashx

source: /dev/ipython/IPython/core/magics/osm.py:200

Signature

def rehashx(self, parameter_s = '')

Summary

Update the alias table with all executable files in $PATH.

Extended Summary

rehashx explicitly checks that every entry in $PATH is a file with execute access (os.X_OK).

Under Windows, it checks executability as a match against a '|'-separated string of extensions, stored in the IPython config variable win_exec_ext. This defaults to 'exe|com|bat'.

This function also resets the root module cache of module completer, used on slow filesystems.

Aliases

  • IPython.core.magics.OSMagics.rehashx