Skip to content

JupyterLab

JupyterLab is a new generation of web-based Jupyter interactive development environment, which can manage files, execute Shell commands, and Python code through the web. And supports plug-in extensions. JupyterLab contains all the features of Jupyter Notebook.

JupyterLab Basic Introduction

Once the instance is created and started, you can click the link in the instance list to open JupyterLab.

After opening, go to the startup page. On the left is the file browser, which can access all files in the instance. On the right is the work area.

The JupyterLab provided by default is a Chinese-language interface, which can be adjusted to an English interface in the menu Settings - Language.

run terminal

On the startup page, click Other - Terminal to create a new terminal. Or create a terminal in the menu File - New - Terminal.

Commands can be executed directly after opening the terminal page.

Use logout or Ctrl + D inside the terminal when finished to exit the terminal normally.

If you close the terminal window directly, the terminal will continue to run in the background, including the command task being executed. If you want to retrieve the previously closed terminal window, you can click the Running Terminal and Kernel button on the left menu bar to view the running terminal.

Click on a running terminal to reopen the terminal's tab. When the display is blank, you can type Enter to print a terminal prompt once.

run the code

Create an instance mirrored as TensorFlow 2 and run the notebook code in TensorFlow 2.0 Tutorial for Beginners.

warning

JupyterLab upload only recommends uploading small files. If there are large files such as datasets, please upload them to personal data first and then download them to the instance. See Data Storage for instructions on uploading and downloading.

First download beginner.ipynb Notepad file. Upload to the server via JupyterLab.

Double-click the file to open Notepad, and you can see the code content in Notepad in the work area on the right.

Select Run - Run All Cells in the menu to run all the code.

The output of the program can be seen below each cell in the workspace.