Page 50 - Touhpad Ai
P. 50

Features of Jupyter Notebook are as follows:

              u  Interactive Computing-Live Code Execution: Write and execute code in real-time, and see the results immediately
                 within the same document.

              u  Data Visualization-Integrated Plots: Easily create and display visualizations using libraries like Matplotlib, Seaborn,
                 Plotly, and Bokeh directly within the notebook.

              u  Collaboration and Sharing-Export Formats: Export notebooks to various formats, including HTML, PDF, Markdown,
                 and slides.
              You can install Jupyter Notebook using pip. For installing Jupyter Notebook, you need to open your terminal or command
              prompt and run the following command:

                 pip install notebook
              The steps to open and work with Jupyter Notebook are as follows:

               Step 1   Open the Jupyter Notebook by running the following command in your terminal or command prompt:
                       jupyter notebook
                       This will start the Jupyter server and open the Jupyter dashboard in your default web browser.
               Step 2    Click the New button and select the Python 3 (ipykernal) option in the Jupyter dashboard to create a new
                       notebook.


















                         The new notebook opens with the default name Untitled. However, you can change the name by clicking over it.
                       Jupyter Notebook consists of cells. The two main types are Code cells and Markdown cells.

               Step 3    Write the code in the Code cell.
               Step 4   Click on the Run button in the toolbar or press the Shift + Enter key to run a code.













                       The output of the code is displayed.
















                 48     Touchpad Artificial Intelligence - XI
   45   46   47   48   49   50   51   52   53   54   55