当前位置:网站首页>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”.
边栏推荐
- C language to achieve a dynamic version of the address book
- Screenshot of deepstream detection results
- Volvo: what on earth does the deep-rooted "sense of security" rely on?
- Qt:qmessagebox message box, custom signal and slot
- 20220726 at command test of Bluetooth module hc-05 of Huicheng Technology
- leetcode刷题:动态规划09(最后一块石头的重量 II)
- ES6 from getting started to mastering 08: extended object functions
- Asemi rectifier bridge gbpc5010, gbpc5010 parameters, gbpc5010 size
- Push chart written by helm to harbor warehouse
- Redis source code analysis (who says C language can't analyze it?)
猜你喜欢

12月份PMP考试首次采用新考纲,该怎么学?

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

WordPress简约mkBlog博客主题模板v2.1
![2022-07-27:小红拿到了一个长度为N的数组arr,她准备只进行一次修改, 可以将数组中任意一个数arr[i],修改为不大于P的正数(修改后的数必须和原数不同), 并使得所有数之和为X的倍数。](/img/24/fbf63272f83b932e0ee953f8d4db75.png)
2022-07-27:小红拿到了一个长度为N的数组arr,她准备只进行一次修改, 可以将数组中任意一个数arr[i],修改为不大于P的正数(修改后的数必须和原数不同), 并使得所有数之和为X的倍数。

After 95, Alibaba P7 published the payroll: it's really heartbreaking

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

动态规划——62. 不同路径

Unity backpack system

如何让外网访问内网IP(esp8266网页使用)

An article grasps the calculation and processing of date data in PostgreSQL
随机推荐
Malloc, free, calloc, realloc dynamic memory development functions in dynamic memory management
After 95, Alibaba P7 published the payroll: it's really heartbreaking
收藏|0 基础开源数据可视化平台 FlyFish 大屏开发指南
动态规划——62. 不同路径
【OPENVX】对象基本使用之vx_pyramid
C language to achieve a dynamic version of the address book
LabVIEW加载和使用树型控件项目中的定制符号
[wrong question]
[5g NR] RRC reject analysis
C语言力扣第45题之跳跃游戏 II。遍历跳跃
如何让外网访问内网IP(esp8266网页使用)
高等数学(第七版)同济大学 习题3-6 个人解答
An article grasps the calculation and processing of date data in PostgreSQL
AIRIOT答疑第6期|如何使用二次开发引擎?
D2DEngine食用教程(4)———绘制文本
ES6 从入门到精通 # 09:Symbol 类型
一个仿win10蓝屏的404页面源码
Interface automation test, complete introduction
4-day excel practical training camp, 0.01 yuan special offer for only three days, 200 sets of learning kits
Container related concepts