当前位置:网站首页>Data mining-01
Data mining-01
2022-07-28 03:41:00 【Draw a circle to curse you yebo】
Catalog
One 、JupyterNotebook Introduce
③Jupyter Notebook The main characteristics of
Two 、 install Jupyter Notebook
3、 ... and 、 function Jupyter Notebook
③ Start the server without opening the browser
One 、JupyterNotebook Introduce
① brief introduction
Jupyter Notebook Is a web based application for interactive computing . It can be applied to the whole process of calculation : Development 、 Documentation 、 Run the code and display the results .
In short ,Jupyter Notebook It's in the form of a web page , It can be in the web page Write code directly and Run code , Code Running results It will also display the program directly under the code block . Such as in the process of programming need to write documentation , It can be written directly in the same page , Convenient for timely explanation and explanation .
② Part of the
(1) Web applications
Web application is based on web form 、 Combined with the preparation of documentation 、 The mathematical formula 、 Interactive computing and other rich media tools . in short , Web application is a tool that can realize various functions .
(2) file
namely Jupyter Notebook All interactive computing in 、 Document the instructions 、 The mathematical formula 、 Images and other rich media forms of input and output , It's all in the form of documents .
These documents are saved with the suffix .ipynb Of JSON Format file , Not only is it easy to version control , It's also easy to share .
Besides , Documents can also be exported as :HTML、LaTeX、PDF Equiform .
③Jupyter Notebook The main characteristics of
① Programming with Syntax highlighting 、 Indent 、tab completion The function of .
② You can run the code directly through the browser , At the same time, the running result is displayed under the code block .
③ Display the calculation results in rich media format . Rich media formats include :HTML,LaTeX,PNG,SVG etc. .
④ When writing instruction documents or statements to code , Support Markdown grammar .
⑤ Support use LaTeX Write a mathematical note .
Two 、 install Jupyter Notebook
1. install
① Installation premise
install Jupyter Notebook The premise is to install Python(3.3 Version and above , or 2.7 edition ).
② Use Anaconda install
If you are little white , Then I suggest you install Anaconda To solve Jupyter Notebook Installation problems , because Anaconda Has been automatically installed for you Jupter Notebook And other tools , also python In more than 180 Science packs and their dependencies .
Routinely , Installed Anaconda It has been automatically installed for you when you release Jupyter Notebook Of , But if it's not installed automatically , Then at the terminal (Linux or macOS Of “ terminal ”,Windows Of “Anaconda Prompt”, Hereinafter referred to as “ terminal ”) Enter the following command to install :
conda install jupyter notebook③ Use pip Command to install
1. hold pip Upgrade to the latest version
- Python 3.x
pip3 install --upgrade pip- Python 2.x
pip install --upgrade pip- Be careful : The old version of pip In the installation Jupyter Notebook In the process or facing the problem that dependencies cannot be installed synchronously . therefore Strongly recommended The first pip Upgrade to the latest version .
2. install Jupyter Notebook
- Python 3.x
pip3 install jupyter- Python 2.x
pip install jupyter3、 ... and 、 function Jupyter Notebook
If you have any jupyter notebook Command questions , Consider checking the official help documentation , The order is as follows :
jupyter notebook --helpor
jupyter notebook -h① The default port starts
Enter the following command in the terminal :
jupyter notebookAfter executing the command , A series of messages will be displayed in the terminal notebook Server information , At the same time, the browser will start automatically Jupyter Notebook.
The contents displayed on the terminal during startup are as follows :
$ jupyter notebook
[I 08:58:24.417 NotebookApp] Serving notebooks from local directory: /Users/catherine
[I 08:58:24.417 NotebookApp] 0 active kernels
[I 08:58:24.417 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 08:58:24.417 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).- Be careful : After the Jupyter Notebook All operations , Please keep the terminal Do not shut down. , Because once the terminal is turned off , It will disconnect the link with the local server , You will not be able to Jupyter Notebook Other operations in .
By default, the browser address bar will display :http://localhost:8888. among ,“localhost” It means the machine ,“8888” It's the port number .

URL
If you meanwhile Several Jupyter Notebook, Due to the default port “8888” occupied , Therefore, the number in the address bar will start from “8888” rise , Start one more Jupyter Notebook The number is added 1, Such as “8889”、“8890”……
② Specify the port to start
If you want to customize the port number to start Jupyter Notebook, You can enter the following commands in the terminal :
jupyter notebook --port <port_number> among ,“<port_number>” Is a custom port number , Write it directly in the form of numbers in the command , No angle brackets around numbers “<>”. Such as :jupyter notebook --port 9999, That is, when the port number is “9999” The server starts Jupyter Notebook.
③ Start the server without opening the browser
If you just want to start Jupyter Notebook But I'm not going to go to the main page right away , Then you don't need to start the browser immediately . Input in the terminal :
jupyter notebook --no-browserhere , The started server information will be displayed on the terminal , And after the server starts , Show the link to open the browser page . When you need to launch a browser page , Just copy the link , And paste it in the address bar of the browser , Tap enter to change to your Jupyter Notebook page .

In the example figure, I started multiple at the same time when I finished the above content Jupyter Notebook, So show me “8888” Port number occupied , Finally assigned to me is “8889”.
边栏推荐
- ASEMI整流桥GBPC3510在直流有刷电机中的妙用
- Interface automation test, complete introduction
- CH340 RTS DTR引脚编程驱动OLED
- pip-script.py‘ is not present Verifying transaction: failed
- 高等数学(第七版)同济大学 习题3-4 个人解答(前8题)
- [openvx] VX for basic use of objects_ matrix
- [force deduction] 1337. Row K with the weakest combat effectiveness in the matrix
- 12月份PMP考试首次采用新考纲,该怎么学?
- 2022-07-27:小红拿到了一个长度为N的数组arr,她准备只进行一次修改, 可以将数组中任意一个数arr[i],修改为不大于P的正数(修改后的数必须和原数不同), 并使得所有数之和为X的倍数。
- [wrong question]mocha and railgun
猜你喜欢

ES6 从入门到精通 # 09:Symbol 类型

【论文笔记】基于深度学习的移动机器人自主导航实验平台

695. Maximum area of the island

How to arrange PCB screen printing? Please check this manual!

TypeError: ufunc ‘bitwise_and‘ not supported for the input types, and the inputs could not be safely

8000 word explanation of OBSA principle and application practice

LabVIEW loads and uses custom symbols in tree control projects

什么是Tor?Tor浏览器更新有什么用?

Outlook tutorial, how to use color categories and reminders in outlook?

MySQL stored procedures use cursors to synchronize data between two tables
随机推荐
[错题]Concatenation
整合SSM实现增删改查搜索
Differences among BRD, MRD and PRD
Light year admin background management system template
verticle-align行内元素垂直居中对齐
Unity simply implements the dialog function
[openvx] VX for basic use of objects_ image
LabVIEW loads and uses custom symbols in tree control projects
沃尔沃:深入人心的“安全感” 究竟靠的是什么?
Unity背包系统
D2dengine edible tutorial (4) -- draw text
pip-script.py‘ is not present Verifying transaction: failed
The wonderful use of asemi rectifier bridge GBPC3510 in DC brush motor
Integrate SSM to realize search of addition, deletion, modification and query
LightPicture – 精致图床系统
[openvx] VX for basic use of objects_ matrix
[P4] solve the conflict between local file modification and library file
MySQL Basics (create, manage, add, delete, and modify tables)
高等数学(第七版)同济大学 习题3-6 个人解答
【OPENVX】对象基本使用之vx_distribution