2: Getting Help(Working with Jupyter console )

2016/09/15 14:00
阅读数 21

Jupyter console has a robust built-in help system. You can get help in several ways:

  • You can type ? after starting the console. This will display help about Jupyter. You can exit by typing q.
  • You can type %quickref. This is a magicthat will tell you some useful commands. We'll talk more about Jupyter magics shortly.
  • If you want information about a variable, just type the name of the variable, followed by?. For information on the dq variable, you'd type dq?.
  • Type help() to get access to Python help. This will enable you to get help on all the modules and functions currently available. You can quit by typing quit.
  • If you want to use the Python help system to get information on a variable, typehelp(variable_name). If you wanted help with the variable dq, you'd typehelp(dq).

Being able to get help will let you see which methods are allowed on which objects, and be able to better understand the capabilities of Jupyter console.

Instructions

  • Open the Jupyter console by typing ipython.
  • Assign the value 5 to the variable dq.
  • Get help with the variable dq using both ? and help(dq).
  • Type help(), and explore the Python help functionality. See if you can look up some modules.
  • Exit Jupyter console by typing exit
展开阅读全文
打赏
0
0 收藏
分享
加载中
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部