Page 422 - AI Ver 3.0 class 10_Flipbook
P. 422

This would open a new notebook with Python3 as a programming language.

              To work with Jupyter Notebook in a virtual environment, it is essential to install a kernel within that environment.
              To install the kernel, open Anaconda Prompt and run the following command:

              conda install jupyter nb_conda ipykernel
                 • Jupyter is an extension for Jupyter Notebook.
                 • Ipykernel  provides an interactive  Python shell and serves as a Jupyter  kernel for running  Python  code in
                 notebooks.
                 • nb_conda is a Jupyter kernel extension that allows kernel selection for notebook execution.
                 Once the installation is complete, use the following command to launch Jupyter Notebook:

                   jupyter notebook
              Jupyter Notebook Interface

              Jupyter Notebook interface supports graphical user interface. This makes it easier for the programmer to manage
              the tools by using a few mouse clicks.
              Some of the components of Jupyter Notebook are:

                 • Notebook: A file created in Jupyter Notebook, saved with the .ipynb extension.

                 • Kernel: A computational engine that executes the code within a notebook.
                 • Cell: A section within the notebook where code is written and executed by the kernel. When the code runs, the
                 output appears directly below the corresponding code cell.
















              Some of the important tasks you can do using Jupyter Notebook's tool bar are:

                  Icon                     Name                                        Function



                           Save and create checkpoints             It saves the code written in a notebook.





                           Insert a cell below                     It adds a cell next to an active cell.






                           Cut this cell                           It is used to cut the content of the selected cell.






                    420     Touchpad Artificial Intelligence (Ver. 3.0)-X
   417   418   419   420   421   422   423   424   425   426   427