The use of Jupyter NoteBook and Jupyter Lab is exactly the same, and Jupyter NoteBook has more functions. This article uses Jupyter NoteBook as an example to illustrate the relevant usage skills
Autocomplete
%config IPCompleter.greedy=True
Enter the above code in the first line of the code, and when it needs to be completed, Tab
press the button to pop up the completed information
switch virtual environment
Anacoda is required to switch virtual environments
conda create -n env_name python=3.10
new environmentactivate env_name
switch to virtual environmentpip install ipykernel
Installation packagepython -m ipykernel install --user --name 虚拟环境名字 --display-name "虚拟环境名字"
Add virtual environment to configurationjupyter notebook \ jupyter lab
Open jupyter notebook or jupyter lab- Open
kernel->change kernel
select your virtual environment