jupyter notebook installation plugin

jupyter notebook installation plugin

Jupyter notebook is widely used, and plug-ins can greatly improve efficiency.

If you want to install the plug-in in the virtual environment, you will encounter various problems. It is recommended to install it outside the virtual environment first, and then enter the virtual environment before using it. The virtual environment may not display nbextensions.

Preparation

1 Download all plug-ins, enter cmd and enter:

pip install jupyter_contrib_nbextensions

2 Add the plug-in toolbar to the jupyter notebook page, which is equivalent to the installation toolbar, and enter in cmd:

jupyter contrib nbextension install

3 At this point, the toolbar has been installed, but the toolbar may not be displayed. Add the following command to display the toolbar:

# 安装Jupyter的配置器
pip install jupyter_nbextensions_configurator

# 启动配置器,让工具栏可视
jupyter nbextensions_configurator enable --user

4 Enter jupyter notebook, enter in cmd:

jupyter notebook

You can see that the Nbextensions toolbar
insert image description here
toolbar has been installed, disable configuration for nbextensions without explicit compatibilityremove the check from a column, and you can select the desired plugin below.
insert image description here

select plugin

1 Hinterland

The automatic filling function is definitely needed when coding. The default state of jupyter notebook is not ideal. This plug-in can increase this function.

2 Code prettify

Format code, equivalent to pycharnCtrl + Alt + L

3 Execute Time

Shows how long a cell took to execute

Guess you like

Origin blog.csdn.net/Zeus_daifu/article/details/123761543