Jupyter notebook realizes auto-completion code


Enter the command line (if there are other environments, you need to activate other environments first, otherwise it will be installed in the base environment)

Use pip installation instructions

Install nbextensions first

pip install --user jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
jupyter contrib nbextension install --user

Secondly install nbextensions_configurator

pip install --user jupyter_nbextensions_configurator 
jupyter nbextensions_configurator enable --user

Use conda instructions

The premise is that you have downloaded Anaconda or Miniconda and use Anaconda Prompt to activate the command line

conda install -c conda-forge jupyter_contrib_nbextensions
conda install -c conda-forge jupyter_nbextensions_configurator

If there is an error in the installation using the pip command, first use the pip uninstall jupyter_contrib_nbextensions pip uninstall jupyter_nbextensions_configuratorcommand to uninstall the previous package, and then it is recommended to use the conda command to install and download, but it will download a little more unnecessary dependent packages, no more than 50M.

View installation results

The installation is successful, the structure shown in the figure appears.
The installation is successful, then the plug-in as shown in the figure appears
Check the required plug-ins
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44333597/article/details/109187785