Home > Backend Development > Python Tutorial > How to install jupyter

How to install jupyter

藏色散人
Release: 2023-01-03 09:27:18
Original
34622 people have browsed it

How to install jupyter: First open the command prompt and enter python; then execute the jupyter installation command "pip install jupyter"; finally execute the jupyter startup command "jupyter notebook --ip=0.0.0.0" that is Can.

How to install jupyter

The operating environment of this article: Windows 7 system, python version 3.6.4, DELL G3 computer.

Open the command prompt and enter python to ensure that python can run normally, as shown in the figure below.

How to install jupyter

Then execute the installation command of jupyter:

pip install jupyter
Copy after login

pip will automatically download the corresponding dependencies of jupyter, and then the installation is completed. As shown in the second picture below, there seem to be more packages installed than on the Linux version.

How to install jupyter

After the installation is complete, execute the jupyter startup command:

jupyter notebook --ip=0.0.0.0 --port=8000
Copy after login

[Recommended learning: python video tutorial]

means listening on all network card addresses, and the listening port is 8000.

How to install jupyter

Then jupyter will automatically pop up the browser to open an address such as http://0.0.0.0:8000/?token=.... But the difference between Windows and Linux is that in Windows, the address 0.0.0.0 is an invalid address, so the corresponding web page cannot be opened. As shown in the picture below:

How to install jupyter

Therefore we need to change 0.0.0.0 to the address 127.0.0.1, as shown in the picture below:

How to install jupyter

After the modification is completed, press Enter and you will jump to the home page of jupyter. The default startup path in windows is: C:\users\administrator\

So you can see Go to all subdirectories in this directory, as shown in the picture below:

How to install jupyter

Then click the new button on the right side of the page, select python3, and the new project file will open, as follows As shown in the picture above, in the project file, you can directly enter the python statement to run. As shown in the second picture below, the configuration is complete here.

How to install jupyter

How to install jupyter

The above is the detailed content of How to install jupyter. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template