如何在 python shell 中设置自动完成和代码建议?

How do you set up autocompletion and code suggestions in python shell?

我看到了下面的编码 gif,它描绘了用户键入命令(例如 import)和弹出消息将描述该命令的用法。

如何设置类似的东西?

根据该 gif 回购中的 github 问题,该视频是使用 bpython

拍摄的

来源:https://github.com/tqdm/tqdm/issues/67

vim (with jedi or python-mode) or emacs and integrated development environments like pycharm 等代码编辑器可以提供相同的功能。