[Introduction to Data Analysis] Jupyter Notebook


Jupyter Notebook is a web-based application for interactive computing. It can be applied to the whole process of computing: development, documentation, running code and displaying results.

  In short, Jupyter Notebook is opened as a web page , you canin the web page Directly write code and run the code , the running result of the code will alsoDisplayed directly under the code blockprogram of. If you need to write an instruction document during the programming process, you can write it directly on the same page , which is convenient for timely explanation and explanation.


1. Save/load

  Because the visual interface is well done, there is no need to explain it. Key options include New , Open , Make a Copy , Rename , Save and Create Checkpoint , Revert to Selected Checkpoint , Print Preview , Save As , and Close and Stop All Scripts .
  Let’s go directly to the picture here:
insert image description here


2. Applicable to multiple programming languages

  Jupyter provides a kernel for computing and communicating with three programming languages :
insert image description here
  when installing Jupyter, the IPython kernel will be installed automatically. The specific operations are to interrupt the kernel, restart the kernel, clear all running results after restarting the kernel, run all cells after restarting the kernel, restart Connect, close kernels, run other language kernels.
insert image description here


3. Write code and text

  Jupyter encapsulates code and text into three types of cells: Markdown, code and NBConvert .

3.1 Edit cell

   Edit cell operationMainly include: cut selected cell , paste above selected cell , copy cell , paste above selected cell , paste and replace selected cell , delete selected cell , restore delete cell operation , Split cell at cursor , merge with cell above , merge with cell below , edit notebook metadata , move cell down , remove attachment from cell , find and replace , copy attachment from selected cell , paste attachment To Selected Cells , Paste Attachments to Selected Cells .
  The specific content is shown in the figure below:
insert image description here

3.2 Insert cells

  can chooseInsert a cell above the selected cellandInsert a cell below the selected cell
insert image description here

3.3 Running cells

  can chooseRun selected cellsRun the selected cell and select the cell belowRun selected cells and add new cells belowrun all cellsRun all cells aboveRun all cells belowChange selected cell typeShow, hide, or clear output from selected cellsShow, hide, or clear output from all cells
insert image description here

3.4 View cells

  Here, we can show or hide the Jupyter logo and file name , show or hide toolbars , show or hide cell row numbers , and show or hide cell operation buttons .
insert image description here


4. Widgets

  Controls are used to control data or realize data visualization, such as scroll bars, text boxes and other controls .
  Controls can be used to create interactive GUIs, or to synchronize state information between Python and JavaScript .
  we canOption to download all active control statesSave Notebook files with interactive controlsandEmbed the current control
insert image description here


5. Help

  existhelpinterface, we can view UI navigation , built-in shortcuts , edit built-in shortcuts , Notebook help , Markdown help , Jupyter Notebook unofficial extension , Python help , IPython help , Numpy help , SciPy help , Matplotlib help , SymPy help , Pandas Help and About Jupyter Notebook .
insert image description here

Guess you like

Origin blog.csdn.net/m0_65748531/article/details/132338902