JupyterLab has full support for Jupyter Notebook

JupyterLab is an interactive development environment for the next generation of Jupyter Notebook, with additional features. We believe it will be time for Jupyter Notebook to be replaced when it is released

By using JupyterLab, documents and activities can be handled in a flexible, integrated and extensible manner:

  • Terminals can be turned on to run code interactively, fully supporting rich output
  • supportMarkdown, Python, R, LaTeXWait for any text file
  • Enhancing notebook
  • More Plug-in support

If you have the following needs in your daily life, I think you can install a JupyterLab

  • Want to experiment with snippets of code anytime, anywhere
  • Multi-language, multi-document support
  • Note taking requirement (text + code)

The installation

Next, I will use Python as the default language to build JupyterLab. First, make sure that you have installed the basic Python environment:

#One line of command
pip install jupyterlab
#Install ipython
pip install ipython
Copy the code

If you use the password on the server, you are advised to set the password as follows:

#Enter the IPython interactive environment
ipython
Copy the code

Generate password:

from notebook.auth import passwd
passwd()
# Enter the password you set to log in JupyterLab interface and then there will be a string of output, remember to copy, later configuration needs to use
Copy the code

Modifying the JupyterLab Configuration file:

jupyter lab --generate-config
Copy the code

Modify the following configuration:

C. notebookapp. allow_root = True C. Notebookapp. open_browser = False C. Notebookapp. password = 'Paste the string of numbers I just copied here'Copy the code

Please install the Node environment first to make it easy to install the plug-in later. Assuming you do, here is how to install the plug-in:

#Take the example of installing a plug-in that generates directories
jupyter labextension install @jupyterlab/toc
#View installed plug-ins
jupyter labextension list
Copy the code

After installation, open JupyterLab:

Jupyter - lab - IP = 0.0.0.0Copy the code

Go to Settings->Advanced Settings Editor and change false to true as shown below:

At this point, you should see a plug-in management icon on the left side of the interface. Click to see the plug-in you just installed

Through this plug-in query function, you can easily install the plug-in, after the installation can be directly hot update, see my JupyterLab home page:

Draw flow chart, write code, write documents, all kinds of document rendering, multi-language support, how, interested you can also build a ~

The plug-in

The current plug-ins of JupyterLab are also rich. The plug-ins I use are as follows:

function

Code tip:

Use documentation tips:

Support vim Emacs and other key styles:

Document viewing is especially convenient:

Code and interface theme Settings:

Document multi-window:

The cell can be dragged and the output can be displayed in a new window:

Start a new terminal interaction at any time:

Here just picked up some common functions, more functions can be found in the official documents, if you have better use skills, welcome to exchange ~

More and more

  • Official address: github.com/jupyterlab
  • Documents: jupyterlab. Readthedocs. IO/en/stable /
  • Plug-in: github.com/topics/jupy…