Introduction
In this article, there are specific description on describing steps for using help() function. The process to demonstrate how to use help() function is executed in a Jupyter Notebook. The Jupyter Notebook itself is running in a device which used Microsoft Windows as its operating system. Before going on to the process for running ‘help()’ function, do the preparation step in the preparation section. If all of the steps in the preparation section are already been done, continue on to the execution section of the ‘help()’ function.
Preparation for Running Jupyter Notebook
-
First of all, before activating a python virtual environment, just create a new one if there is not available in the current device. Read the article with the title of ‘How to Create a Python Virtual Environment in Microsoft Windows’ in this link in order to find out how to do it.
-
Activate python virtual environment. As a reference, just look in the article titled ‘How to Activate Python Virtual Environment in Microsoft Windows’ in this link or another article titled ‘How to Activate Python Virtual Environment in Microsoft Windows’ in this link.
-
After that, run Jupyter Notebook by typing ‘jupyter notebook’ in the activated python virtual environment. For running Jupyter Notebook, just read the article titled ‘How to Install Jupyter Notebook in Microsoft Windows’ in this link.
- Finally, the preparation for testing or demonstrating on how to execute ‘help()’ is finished. Continue on to the next section.
Execute help() Function in Jupyter Notebook
So, after the preparation is being carried out as in the previous section, just do the following steps :
-
Make sure that Jupyter Notebook is running as the following image shown below :
-
When the Jupyter Notebook appear, just type in the row or in the line ‘help()’ and then execute it. The following is the appear :
Actually, typing ‘help()’ without any parameter will just display some information on how to use the help() function. In order to use it properly, it need a suitable parameter to be executed together.
-
Following after, insert any type of parameter for the help() function. Normally, it can be the name of modules, functions, classes, keywords. But in this case, just enter ‘matplotlib’ as an example. The ‘matplotlib’ itself is a python library package. Just do it as in the following image :
-
Type enter, and the result of the ‘help(matplotlib)’ command will appear. It will display the detail description and information about ‘matplotlib’ python library pakage. Below is the appearance of the output :
As further information in another format, there is a video content showing how to do it. Although it is not similar with the one described in this article, there is an example for using ‘help()’ function using Jupyter Notebook running in a device using Microsoft Windows. Just visit this link and view the following embedded video :