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

What are the advantages of Jupyter Lab 3.0

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces "what are the advantages of Jupyter Lab 3.0". In daily operation, I believe many people have doubts about the advantages of Jupyter Lab 3.0. the editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about" what are the advantages of Jupyter Lab 3.0"! Next, please follow the editor to study!

1 introduction

Jupyter lab recently released its landmark version 3.0. with some important new features, readers must have known a lot about the official introduction articles of the jupyter lab team translated and reprinted by the official accounts.

Figure 1

So is the current jupyter lab easy to use? Is there still a bug? Is it suitable for direct upgrade? Today's article will get to know jupyter lab3.0 through my real experience.

2 jupyter lab 3.0 user experience

In order not to interfere with the existing environment, we create a new environment and install the latest stable version of jupyter lab with the following code:

Conda create-n temp python=3.7-yconda activate temppip install jupyterlab-U

In this way, our jupyter lab is installed with version 3.0.3:

Figure 2

Next, we will experience the official features of the new version one by one to see if they are easy to use and if there are still problems.

2.1 "plug-ins can be installed without nodejs"

As the biggest change after the official version of jupyter lab3.0, it seems that we can install extensions without nodejs, without jupyter labextension install statements, and only relying on pip/conda/mamba. So far, can common jupyter lab extensions be installed in this way?

I tested it, and it is true that there are some mainstream, official or unofficial extensions that can be installed like this, such as:

"jupyter-kite"

As a very practical code intelligent completion plug-in on jupyter lab platform, according to the instructions of the official Github repository, you can successfully install it by using the following statement:

Pip install "jupyterlab-kite > = 2.0.2"

It is also very stable to use:

Figure 3

As an extension needed to turn on interactive matplotlib drawing on jupyter lab, we can now install it directly with the following statement, and the benefit is obvious-we don't need build anymore!

Pip install ipympl

Figure 4

And the jupyter-matplotlib installation process installed the @ jupyter-widgets/jupyterlab-manager extension by the way, which means it doesn't need to rely on nodejs ~ cheer?

Figure 5

However, there are many jupyterlab plug-ins, and the examples given above are only examples of fast transition. There are still a large number of useful jupyterlab plug-ins that are not compatible with jupyter lab3.0, such as the very practical jupyterlab-execute-time introduced in previous articles, which is used to record information such as the execution time of each cell:

Figure 6

And keplergl-jupyter:

Figure 7

So if you have a lot of favorite plug-ins that are still not compatible with the new version, then continuing to use version 2.x to wait and see is a better choice at this stage.

2.2 "official Sinicization"

As one of the important features of official propaganda, jupyter lab3.0 claims to support multilingual interface switching, so let's try downloading the Chinese language package through pip install jupyterlab-language-pack-zh-CN according to the official words:

Figure 8

Hey, I can't find this library. The so-called Chinese translation package hasn't been released in pypi yet (2020-01-09), but that doesn't mean we can't use it. After some communication under the official Github warehouse, I found a whl file that can be installed locally. You can download it at https://jfds-1252952517.cos.ap-chengdu.myqcloud.com/jupyterhub/jupyterlab_language_pack_zh_CN-0.0.1.dev0-py2.py3-none-any.whl, thanks to the akshare author for sharing the resources.

After successfully installing locally through pip install jupyterlab_language_pack_zh_CN-0.0.1.dev0-py2.py3-none-any.whl, go back to jupyterlab to refresh the interface, and you will see the available language setting options:

Figure 9

After clicking the switch, wow, you can really use official Chinese!

Figure 10

It is believed that the official version that can be installed online will be released soon. If anxious friends want to try something new, they can also configure it like me.

2.3 other new features

As for other new features, such as the built-in interactive gui-style debugger:

Conda install xeus-python=0.8.6-c conda-forge-y

Figure 11

Or the directory feature that comes with it is nothing new, but now you don't need to install it to use it, and the newly added features such as simple mode are not particularly attractive:

Figure 12

As a major upgrade, we have seen the new version of jupyter lab dig deep into user needs, make major upgrade efforts, and initially bring very good results. With the progress of the development process, it is believed that the future jupyter lab will be easier to use, and as to whether it is worth upgrading at present, I believe that you who have read this already have the answer in your heart.

At this point, the study of "what are the advantages of Jupyter Lab 3.0" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Development

Wechat

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

12
Report