Jupyter Notebook

Jupyter gets installed during Anaconda installation. To install Jupyter without Anaconda, you can execute the following command in the terminal:

pip install jupyter

Jupyter Notebook can be opened through Anaconda Navigator or by clicking on the icon in the start menu, or by entering the following command in Conda:

jupyter notebook

Jupyter Notebook opens in the browser. All folders within the startup directory are accessible from Jupyter. However, the main directory cannot be changed after opening Jupyter. A local Python server is created for Jupyter to get launched:

 Jupyter home page

A new notebook can be opened by clicking on the New button. The new notebook will be created as Untitled.ipynb, unlike any other Python IDE, where the script is stored with .py extension. Here, ipynb stands for IPython Notebook. An .ipynb file is just a text file that converts all the content—the code, markdown text, and any image or plot—to metadata in a JSON format:

 Jupyter Notebook

A Jupyter notebook is comprised of cells; a cell is where your code goes in. The cells can be used to display Markdown code or to execute the code. In the preceding screenshot, the first three cells have been converted to Markdown cells, while the next three are code cells. A code in a cell can be run by clicking the Run button in the notebook or by hitting Ctrl + Enter.

Jupyter Notebook features the Save and Checkpoint option (keyboard shortcut: Ctrl + S). Jupyter automatically saves and creates a checkpoint every 120 seconds. This checkpoint helps to recover any unsaved work, and it also helps to revert to a previous checkpoint.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset