Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Notebook in Jupyter

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to install Notebook in Jupyter, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

Introduction to Jupyter Notebook

Jupyter Notebook is an open source Web application that allows you to create and share documents that contain real-time code, equations, visualization, and narrative text. Uses include: data cleaning and conversion, numerical simulation, statistical modeling, data visualization, machine learning and so on.

Jupyter Notebook installation

There are two installation methods: the first is to use pip for installation, if it is the python3 version:

Python3-m pip install-upgrade pippython3-m pip install jupyter

If the python2 version executes:

Python-m pip install-upgrade pippython-m pip install jupyter

After the installation is complete, run the Jupyter Notebook command as follows:

Jupyter notebook

We will not introduce the first method too much here, but it is recommended to use the second method for installation:

Using Anaconda,Anaconda is a free and open source distribution tool for Python and R programming languages for scientific computing (data science, machine learning applications, large-scale data processing, predictive analysis, etc.) designed to simplify package management and deployment. The package version is managed by the package management system conda. The Anaconda distribution has been used by more than 15 million users, including more than 1500 popular data science packages for Windows,Linux and MacOS. We visit the Anaconda official website https://www.anaconda.com/distribution/ to download and install, which is skipped here. After the installation is completed, the contents of the folder are as follows (windows):

When we click Jupyter Notebook (Anaconda3) to run, a tab opens in the browser:

This is the main interface of Jupyter Notebook, and Jupyter Notebook has been installed.

Jupyter Notebook usage

Let's create a new folder on the desktop for the project directory used by jupyter-notebook-project, and click to this directory:

Click the New button in the upper right corner and select Python3 to create a document:

An unnamed document is initialized in the new tab of the browser:

Here we rename it to Demo-note by clicking Untitled with the mouse:

Next, let's take a look at the basic shortcut keys. Click Help in the navigation to select Keyboard Shortcuts.

Pop up an introduction to all keyboard shortcuts:

Here are a few commonly used ones:

B: insert the code block below

A: insert a code block on it

Ctrl+Enter: runs the code block of the selected line

D: delete the selected cell

Others can watch the introduction in the picture.

Next, write a code example using notebook:

Finally, you can click File in the navigation and then Download as the files in various formats:

Eventually, a note file in notebook format will be generated in the folder, which you can open next time and continue to use:

On how to install Notebook in Jupyter to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report