1. Prepare the virtual environment
Open the Anaconda command line tool and enter conda create -n jupyter-notebook Python =3.7 to create a virtual environment named Jupyter-Notebook
Enter conda activate jupyter-Notebook to activate the Jupyter-Notebook virtual environment
The prompt in square brackets before the command line tool will be replaced by the defaultbase
intojupyter-notebook
2. Install the plug-in
Install the JUPyter_contrib_nbextensions plugin on your terminal by entering the following command. The jupyter extension tool is contributed by cow B.
The installation process is lengthy. Please wait patiently
pip install jupyter_contrib_nbextensions
Copy the code
After the installation is complete, you need to configure the plug-in for the user. Run the following command to ensure that the Jupyter Notebook is not running
jupyter contrib nbextension install --user --skip-running-check
Copy the code
3. Start and configure the jupyter-Notebook extension tool
Run at the terminaljupyter notebook
Command to start jupyter-Notebook, which has one more name in the browser interface than beforeNbextensions
All plug-ins are closed by default. Click the button shown in the following picture to open plug-in management.Check the calledHinterland
Can enable automatic code completion, as shown in the figure below. The description of the plug-in roughly reads:The code completion option automatically pops up for each keyboard entry, rather than having to press the Tab key to display the code completion recommendation
.
4. Experience it
When you enter one or more letters, the code completion option is automatically displayed. By default, the first code completion option is selected when you press enter.
More interesting plug-ins waiting for you to study and experience!