如何在 IPython Notebook Server 3 中查看函数参数? [英] How can I see function arguments in IPython Notebook Server 3?

查看:29
本文介绍了如何在 IPython Notebook Server 3 中查看函数参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换到 IPython Notebook 3(准确地说是 3.1.0-cbccb68),Anaconda 版本.以前当我输入一个函数并像这样打开一个括号时:

I've recently switched to IPython Notebook 3 (3.1.0-cbccb68 to be exact), the Anaconda version. Previously when I typed a function and opened a parenthesis like this:

time.sleep()

如果光标在括号之间,那么我会得到一个显示函数参数的上下文覆盖菜单.现在我没有看到它,虽然我已经搜索过,但我无法找到如何打开此功能.

and if the cursor was between the parentheses then I would get a contextual overlay menu that displayed the function arguments. Now I don't see it, and although I've searched, I can't find out how I can turn on this functionality.

推荐答案

在 1.0 中,该功能被绑定到 (tabshift-tab,在 2.0 中 tab 已被弃用,但在某些明确的情况下仍然可以正常完成或检查在许多情况下是相互竞争的.建议始终使用 shift-Tab.( 也被添加,因为它在 Haskell 类语法中被弃用,因为它在更多情况下工作时也将人们推向 Shift-Tab.在 3.0 中,已弃用的绑定已被删除以支持官方,目前为 18+ 现在一个月 Shift-Tab.

In 1.0, the functionality was bound to ( and tab and shift-tab, in 2.0 tab was deprecated but still functional in some unambiguous cases completing or inspecting were competing in many cases. Recommendation was to always use shift-Tab. ( was also added as deprecated as confusing in Haskell-like syntax to also push people toward Shift-Tab as it works in more cases. in 3.0 the deprecated bindings have been remove in favor of the official, present for 18+ month now Shift-Tab.

所以按Shift-Tab.

这篇关于如何在 IPython Notebook Server 3 中查看函数参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆