Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use JupyterLab

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use JupyterLab, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Introduction to JupyterLab

JupyterLab is the latest data science production tool featured by Jupyter. In a sense, it appears to replace Jupyter Notebook. But don't worry that Jupyter Notebook will disappear. JupyterLab contains all the features of Jupyter Notebook.

JupyterLab as a web-based integrated development environment, you can use it to write notebook, operating terminals, editing markdown text, open interactive mode, view csv files and pictures and other functions.

You can think of JupyterLab as a very evolutionary version of Jupyter Notebook. The original individual combat is now a joint cooperation of sea, land and air.

In short, JupyterLab has the following characteristics:

Interactive mode: Python interactive mode can input code directly, then execute it, and get the result immediately, so Python interactive mode is mainly used to debug Python code.

Kernel supported documentation: enables you to enable code in any text file (Markdown,Python,R, etc.) that runs in the Jupyter kernel

Modular interface: open several notebook or files (HTML, TXT, Markdown, etc.) in the same window at the same time, display in the form of tags, more like an IDE

Mirror notebook output: allows you to easily create dashboards

Multiple views of the same document: enables you to edit documents synchronously and view results in real time

Support multiple data formats: view and process multiple data formats, and also provide rich visual output or Markdown output

Cloud services: use Jupyter Lab to connect to services such as Google Drive, greatly increasing productivity

Install Jupyter Lab

Install Jupyter Lab using pip, conda

Pip

Pip is probably the package management tool commonly used by most people. If you use pip installation, execute it on the command line:

Pip install jupyterlab

Conda

If you are an Anaconda user, you can install it directly with conda, please execute it on the command line:

Conda install-c conda-forge jupyterlab runs Jupyter Lab

After installing Jupyter Lab, the next thing to do is run it.

Use the jupyter-lab or jupyter lab command on the command line, and the default browser automatically opens Jupyter Lab.

Starter

The tab on the right is called the initiator, and you can create a new notebook, console, teminal, or text text.

When you create a new notebook or other project, the launcher disappears. If you want to create a new document, just click the "+" button in the red circle on the left.

Open the document

Click the type of document you want to open in the launcher, and you can open the corresponding document.

Click the "+" button on the left to create multiple documents, and you will see:

You can also create a new project using the menu bar at the top, step: file- > new, and then select the type of document you want to create. This is the same as Jupyter Notebook, if you often use Notebook, then you should be no stranger.

You can open multiple documents after any typesetting combination, just press and hold the tab and drag.

When writing code in a notebook, you can create multiple views of the document if you want to synchronize the editing of the document in real time and view the execution results. Step: file- > new view for notebook

File browser

The column on the left is the file browser, which shows the files that can be used in the location where you started from JupyterLab.

You can create folders, upload files, and list new files.

Preview Markdown text

Edit code

Preview the csv file

Preview the geojson file

Open the learning document

Jupyter Lab supports opening official documents such as pandas, numpy, matplotlib, scipy, python, ipython, scipy, markdown, notebook, etc. Step: help- > Select the appropriate document

Toggle background theme

Jupyter Lab supports two background themes, white and black. Step: settings- > jupyterlab theme

About how to use JupyterLab to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report