As a special tool for interactive tasks, Jupyter offers special commands that help to better understand the code that you are currently writing.
For instance, some of the commands are as follows:
- * <object>? and <object>??: This prints a detailed description (with ?? being even more verbose) of <object>
- %<function>: This uses the special <magic function>
Let's demonstrate the usage of these commands with an example. We first start the interactive console with the jupyter command, which is used to run Jupyter from the command line, as shown here:
$> jupyter console Jupyter Console 4.1.1In : obj1 = range(10)
Then, in the first line of code, which is marked by Jupyter as , we create a list of 10 numbers (from 0 ...