Set the auto-completion function of the code in jupyter notebook

How to set the auto-completion function of code in jupyter notebook

1. Install the corresponding required modules

Open anaconda's PowerShell (with Prompt)

Insert picture description here

Direct input: pip install jupyter_contrib_nbextensions and press
Enter to start the installation.
Insert picture description here

Successful installation shows:

Insert picture description here
When "successful installed" appears, the installation is successful

2. Enable user configuration

After the installation is successful according to the operation of 1;
enter: jupyter contrib nbextension install --user to configure the user.
Insert picture description hereReopen and open jupyter notebook by step 1 and
Insert picture description here
find that the top menu bar has more nbextensions options

3. Enable the auto-completion function.
Insert picture description here
Unlock the check and check the Highlight selected word

Insert picture description here
You can successfully use the code auto-completion function

Demo:
Insert picture description here
input some letters> press tab key> select target code

Guess you like

Origin blog.csdn.net/qq_45154565/article/details/109113838