<p>三年后,我终于找到了一个可能的解决方案。</p>
<p><strong>回答</strong>:安装<a href="https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/index.html" rel="noreferrer">nbextensions</a>并启用腹地扩展。</p>
<blockquote>
<p>Enable code autocompletion menu for every keypress in a code cell,
instead of only calling it with tab.</p>
</blockquote>
<p>你要做的是:</p>
<ol>
<li><code>pip install jupyter_contrib_nbextensions</code></li>
<li><code>jupyter contrib nbextension install --user</code></li>
<li>启动<code>jupyter notebook</code>(浏览器启动)</li>
<li>其中一个<strong>选项卡现在应显示“<strong>Nbextensions</strong>”</li>
<li>在那里,您可以找到“<strong>腹地”。选中复选框以启用。</li>
</ol>
<p>腹地有一些可调整的选项,如:</p>
<ul>
<li><strong>hinterland.hint_delay</strong>:按键和提示请求之间的延迟(毫秒)。</li>
<li><strong>Interland.enable_at_start</strong>:是否在笔记本首次打开时启用Interland的连续提示,如果为false,则仅在从“帮助”菜单项中选择时启用。</li>
<li><strong>hinterland.hint_inside_comments</strong>:键入代码注释时是否请求提示。默认为false。</li>
<li><strong>其他regex选项</strong>:hinterland.exclude_regexp,hinterland.include_regexp,hinterland.tooltip_regexp</li>
</ul>
<hr/>
<p><a href="https://i.stack.imgur.com/cDHlC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cDHlC.png" alt="enter image description here"/></a></p>