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 kite engine in jupyter lab

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

Share

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

This article shows you how to use the kite engine in jupyter lab, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1 introduction

Mention kite, I believe many friends will be impressed, it is a very powerful code completion tool, currently available for Python and javascript, for many well-known editors such as Vs Code, Pycharm to provide corresponding plug-ins.

Recently, kite has opened up a code completion plug-in for jupyter lab, which enables us to experience the powerful kite function on the jupyter lab platform with weak code hint completion function. This article will take you to learn how to use the kite engine in jupyter lab.

2 use kite in jupyter lab

Let's explain it step by step:

2.1 install kite software

To use the kite service, we first need to download the kite engine software. You can download the kite installation package from the official website (https://kite.com/):

Figure 2

Considering that the download speed of foreign websites is very slow, we have prepared Baidu Cloud download connection (link: https://pan.baidu.com/s/15GxJXhv0VM1AK341N4t5_A extraction code: yevd). After the download is complete, double-click to open the installation, and choose your desired configuration method according to the prompt. You can skip without registration here:

Figure 3

After the installation is complete, keep the kite software open, and let's configure the part of jupyter lab.

2.2 configuration of jupyter lab

To better demonstrate, let's create a new environment using conda:

Conda create-n kite python=3.7

After activating the new environment, we need to install jupyter lab above version 2.2.0, but currently the latest official version of jupyter lab is 2.1.5, so we need to use pip to install its early release. Here I choose 2.2.0a1:

Pip install-pre jupyterlab==2.2.0a1

After the installation is complete, we also install the nodejs needed for jupyter lab to run the plug-in:

Conda install nodejs

Finally, run the following command line to install the dependencies that kite needs to run in jupyter lab:

Pip install jupyter-kite

Jupyter labextension install @ kiteco/jupyterlab-kite

Everything is ready, let's see how it works.

2.3 use of kite

To verify the effect, we can install the commonly used pandas, numpy, scikit-learn and other libraries, and then run the jupyter lab command to start. After entering the jupyter lab interface to open the ipynb file, the kite icon in the indexing state appears in the lower left corner:

Figure 4

When you start writing code, the kite icon status changes to ready, and as you write code, the code hint function works:

Figure 5, figure 6.

And after you turn on cursor tracking, the documents in the open kite interface will automatically track where you hover your mouse:

Figure 7 above is how to use the kite engine in jupyter lab. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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