How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows

Posted on

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

  1. 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.

  2. 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.

  3. 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.

  4. 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 :

  1. Make sure that Jupyter Notebook is running as the following image shown below :

    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
  2. When the Jupyter Notebook appear, just type in the row or in the line ‘help()’ and then execute it. The following is the appear :

    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows

    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.

  3. 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 :

    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
  4. 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 :

    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows
    How to Use help() Function in Jupyter Notebook running in a device using Microsoft Windows

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 :

Leave a Reply