当前位置:网站首页>Jupyter installation and use tutorial
Jupyter installation and use tutorial
2022-07-06 15:19:00 【Jane said Python】
What I want to share with you today is Jupyter Installation and basic use tutorial
At the same time, I encountered some problems in the process of installation , resolvent , Share with you
Welcome to WeChat official account. : Jane said Python
account number :xksnh888
Follow the reply :1024, You can get selected e-books for programming learning .
About jupyter notebook A more detailed 、 The latest installation and use instructions , I updated the new article , I recommend you to read this article directly , Click to go to : One article Python Coding environment
One 、Jupyter Introduce
Jupyter Notebook The essence of Web Applications , Easy to create and share literary program documents , Real time code support , Mathematical equation , Visualization and markdown. Uses include : Data cleaning and conversion , Numerical simulation , Statistical modeling , Machine learning and so on . advantage : To use , useful .
Two 、 install
Be careful : This article is in Windows Under the use of , In addition to installation ,Mac The system operation is inconsistent with this article , especially Mac Start on the system Jupyter Notebook, You can do it at 2 Click to see .
- 1. Installation method ,windows Next ,cmd You can use pip install
pip install jupyter
notes :Jupyter Installation needs Python 3.3 Or later , or Python 2.7.
# upgrade
pip3 install --upgrade pip
The installation process is quite long , Probably need 5min about .
- 2. Run after installation is complete
jupyter notebook
** Be careful :** If you are mac System , Your run command may need to be changed to :
python3 -m IPython notebook
If the installation is normal , It may not go wrong , Remind me when I install here
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Therefore, the operation reports an error :
ModuleNotFoundError: No module named 'markupsafe._compat'
The tip says markupsafe._compat This module can't be found , So I ran to the catalogue Python36\Lib\site-packages\markupsafe Next , Sure enough , No, _compat This file , And then put markupsafe This module is uninstalled , reinstall , Not yet. , Google it ( It seems to be popular now , Ha ha ha ), find _compat The content of this document is :
# -*- coding: utf-8 -*-
""" markupsafe._compat ~~~~~~~~~~~~~~~~~~ Compatibility module for different Python versions. :copyright: (c) 2013 by Armin Ronacher. :license: BSD, see LICENSE for more details. """
import sys
PY2 = sys.version_info[0] == 2
if not PY2:
text_type = str
string_types = (str,)
unichr = chr
int_types = (int,)
iteritems = lambda x: iter(x.items())
else:
text_type = unicode
string_types = (str, unicode)
unichr = unichr
int_types = (int, long)
iteritems = lambda x: x.iteritems()
In the catalog Python36\Lib\site-packages\markupsafe Next, create a new file _compat.py, Write the above contents into , preservation , And then again cmd Run under jupyther, smooth :
C:\Users\82055\Desktop>jupyter notebook
[I 17:34:01.725 NotebookApp] Writing notebook server cookie secret to C:\Users\82055\AppData\Roaming\jupyter\runtime\notebook_cookie_secret
[I 17:34:02.759 NotebookApp] Serving notebooks from local directory: C:\Users\82055\Desktop
[I 17:34:02.760 NotebookApp] 0 active kernels
[I 17:34:02.761 NotebookApp] The Jupyter Notebook is running at:
[I 17:34:02.761 NotebookApp] http://localhost:8888/?token=7d96ee52f2c5c5c451af05e15d6f6cb626b1a6783b590117
[I 17:34:02.762 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:34:02.764 NotebookApp]
By default, it will automatically jump to the page ( Webpage )
3、 ... and 、 Basic use
- 1. Modify default directory
(1) lookupjupyterProfile path
C:\Users\82055\Desktop> jupyter notebook --generate-config
Writing default config to: C:\Users\82055\.jupyter\jupyter_notebook_config.py
(2) Find the configuration file , Change the default directory
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'H:\PyCoding'
Start again jupyter, We found that the main page file is a file in the folder specified by ourselves .( The default is computer desktop file )
2. Create a new one
pythonfile
We click on the pagenewButton , Create a new one py3 file , The following diagram shows :
And you can see , My first input2+3, PressShift+EnterKey operation , The results of5, Then you can change the above input , Change it to2+5, Run again , You can also get results , This is alsoJupyterA feature of : You can modify the previous cell , Recalculate it , So you can update the entire document .3. Some basic operations (gif Dynamic diagram demonstration )

There are many functions for you to develop yourself , Feel free to leave a comment , Say what you still know Jupyter Other functions of .
边栏推荐
- In Oracle, start with connect by prior recursive query is used to query multi-level subordinate employees.
- Cadence physical library lef file syntax learning [continuous update]
- Face and eye recognition based on OpenCV's own model
- Nest and merge new videos, and preset new video titles
- How to rename multiple folders and add unified new content to folder names
- DVWA exercise 05 file upload file upload
- Introduction to variable parameters
- Global and Chinese market of portable and handheld TVs 2022-2028: Research Report on technology, participants, trends, market size and share
- Dlib detects blink times based on video stream
- 几款开源自动化测试框架优缺点对比你知道吗?
猜你喜欢

Install and run tensorflow object detection API video object recognition system of Google open source

STC-B学习板蜂鸣器播放音乐2.0
软件测试方法有哪些?带你看点不一样的东西

MySQL数据库(一)
![[200 opencv routines] 98 Statistical sorting filter](/img/ba/9097df20f6d43dfce9fc1e374e6597.jpg)
[200 opencv routines] 98 Statistical sorting filter

Dlib detects blink times based on video stream
Interview answering skills for software testing

ucore lab6 调度器 实验报告

Opencv recognition of face in image

The minimum number of operations to convert strings in leetcode simple problem
随机推荐
MySQL数据库(三)高级数据查询语句
UCORE lab8 file system experiment report
Global and Chinese markets of electronic grade hexafluorobutadiene (C4F6) 2022-2028: Research Report on technology, participants, trends, market size and share
Database monitoring SQL execution
Mysql database (V) views, stored procedures and triggers
Practical cases, hand-in-hand teaching you to build e-commerce user portraits | with code
What is "test paper test" in software testing requirements analysis
What are the business processes and differences of the three basic business modes of Vos: direct dial, callback and semi direct dial?
Investment operation steps
Investment should be calm
The maximum number of words in the sentence of leetcode simple question
JDBC介绍
Sleep quality today 81 points
What are the commonly used SQL statements in software testing?
Pedestrian re identification (Reid) - data set description market-1501
Thinking about three cups of tea
接口测试面试题及参考答案,轻松拿捏面试官
ucore lab7 同步互斥 实验报告
Global and Chinese markets for GaN on diamond semiconductor substrates 2022-2028: Research Report on technology, participants, trends, market size and share
Cadence physical library lef file syntax learning [continuous update]