在代码顶部添加 %config IPCompleter.greedy=True
%config IPCompleter.greedy=True
shift+回车运行,对于接下来运行过的内容都会被列入自动提示中。