[Xiaobai series] Jupyter Lab from entry to do not give up, improve your efficiency, look over here


Basic usage please click

1. Introduction to Jupyter Lab

  • JupyterLab contains all the functions of Jupyter Notebook.
  • JupyterLab as a web-based integrated development environment, you can use it to write notebooks, operating terminals, edit markdown text, open interactive mode, view csv files and pictures and other functions

2. Jupyter Lab basic operation

Create document

Insert picture description here

Multiview

Insert picture description here

Create folders, upload files, update folders

Insert picture description here

Two modes of operation command modeandedit mode

  • command mode
  • edit mode editing mode
    in a cellpress the enterentered edit mode, pressing the Escenter command mode

cell type code markdown rawtext

  • code: code environment
  • markdown: Enhanced markdown with latex formula input
  • raw: plain text

Cell type conversion method

  • hot key

In command mode:

  1. m:markdown
  2. r:raw text
  3. y:code

Run cell

  • shift + enter: run and jump to the next cell
  • control + enter: run and stay in the current cell

Add / remove cell

  • hot key:
  1. Add cell: A command mode
  2. Delete cell: Double-click in D command mode

Let the cell display the line number

  • Shortcut key: shift + L command mode

Run py file

% run path/filename 

%run /Users/edz/Desktop/demo.py

Autocomplete

JuypterLab supports automatic completion. Pressing the Tab button when entering a function can automatically complete the function

Query function function

Automatic completion If you forget the usage of a function, press shift + tab to display the usage of the current function, similar to pycharm

3. Advanced operation of Jupyter Lab-clever use of plug-ins

15 Jupyter Lab plugins that are easy to use and explode https://zhuanlan.zhihu.com/p/101070029/

Jupyter Lab install plug-in error solution

Error installing Jupyter Lab plugin_ValueError: Please install nodejs 5+ and npm before continuing installation.

Insert picture description here
Solution:
Because Anaconda is installed on my computer, I open the Anacoda
Insert picture description here
Insert picture description here
Jupyter Lab shortcut key operation https://blog.csdn.net/KaelCui/article/details/105265189

Published 42 original articles · praised 28 · visits 4961

Guess you like

Origin blog.csdn.net/KaelCui/article/details/105282328