how to show all methods that i can choose in ipython notebook?

青春壹個敷衍的年華 提交于 2019-12-19 23:19:47

问题


I'm new to ipython notebook. When typing a code line, it should show all methods or attributes that I can choose. However, it didn't, and I'm not sure why.

It should look like this:

Does anyone know how I can get this to work?


回答1:


  1. Type the library name
  2. Type period symbol .
  3. Press tab

At this point you will see drop down menu (showing all the methods)

This works for both python 2 and python 3




回答2:


That should be a new feature of IPython 6.0.

But as mentioned in the official release post, is still just for command line users, and they are working to port it to all other users.



来源:https://stackoverflow.com/questions/43795676/how-to-show-all-methods-that-i-can-choose-in-ipython-notebook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!