python - tab complete dictionary keys in ipython -
i wondering if knows how enable or implement tab completion dictionary keys in ipython? seems wouldn't different functionality exists, tab completion of object attributes. if i'm wrong, i'd understand why
ipython supports dict key completion string keys since version 3.0.0 (despite not appearing in release notes), this patch. supports column name completion numpy struct arrays , pandas dataframe
columns, , other types redefine __getitem__
through defining _ipython_key_completions_
.
Comments
Post a Comment