Programming with Ai Wenxue "Zero-Basic Getting Started with Python" Jupyter Notebook Installation and Use

Author: Ai Wen, a master's degree in computer science, an in-house training lecturer and a gold medal interviewer, a senior algorithm expert in the company, is now working in a BAT first-tier factory.

Email: [email protected]

Content: Programming with Ai Wenwen " Learn Python from Zero Basics ​​​​​​"

Contents of this section

●  Jupyter extension installation

●  Jupyter uses

Jupyter extension installation

1. The environment for installing the Jupyter extension package

2. Install the Jupyter Notebook extension package

# install jupyter

pip install jupyter 

# Install the jupyter_contrib_nbextensions library

python -m pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user --skip-running-check

#Install the automatic specification code function dependency package

pip install autopep8

The following is an operation for each command, and you can refer to the detailed installation process

$  pip install jupyter 

3e6057c67159b143ca791332157c7380.png

。。。。。。。。。。。。。。

f0351298c757b33d8b528e3b877d6664.png

$  python -m pip install jupyter_contrib_nbextensions

022e670753487fdd015e5d7208b63721.png

................

jupyter contrib nbextension install --user --skip-running-check

..................

$ pip install autopep8

3. Check the corresponding extended function option

If there is no problem with the above installation, enter the following jupyter notebook command on the command line, and a browser window will automatically pop up to open Jupyter Notebook, as shown below.

Then click the Nbextensions option, the following interface will appear, and then remember to cancel the checkmark option above.

Jupyter uses

1. Create a new notebook document

The default URL of the local notebook is: http://localhost:8888

If you want the notebook to open the specified directory, just enter the directory and execute the command

2. Introduction to jupyter notebook interface

More manuals

2c09ecf56da48f6e65a2122b9ae2ac19.png

shortcut key operation

Common shortcut keys for both modes

○  Shift+Enter , execute the code of this unit and jump to the next unit

○  Ctrl+Enter , execute the code of this unit and stay in this unit

markdown demo

Thank you for your attention and let's learn and progress together! ! !

Guess you like

Origin blog.csdn.net/shenfuli/article/details/128027623