Skip to content

Cannot complete namespace packages (was Where did %rehash go?) #8875

@anntzer

Description

@anntzer

Either %rehash was mistakenly removed, or the doc of %rehashx

In [9]: %rehashx?
Docstring:
Update the alias table with all executable files in $PATH.

This version explicitly checks that every entry in $PATH is a file
with execute access (os.X_OK), so it is much slower than %rehash.

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.
File:      /usr/lib/python3.5/site-packages/IPython/core/magics/osm.py

In [10]: %rehash?
Object `%rehash` not found.

As a side note I noticed this when I realized that import mpl_ would not complete mpl_toolkits and tried to %rehash my cache; I still don't know how to get this to complete properly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions