当前位置:网站首页>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 .
边栏推荐
- Which version of MySQL does php7 work best with?
- Soft exam information system project manager_ Project set project portfolio management --- Senior Information System Project Manager of soft exam 025
- STC-B学习板蜂鸣器播放音乐2.0
- Investment should be calm
- Programmers, how to avoid invalid meetings?
- 软件测试面试要问的性能测试术语你知道吗?
- MySQL transactions
- UCORE lab5 user process management experiment report
- Detailed introduction to dynamic programming (with examples)
- Build your own application based on Google's open source tensorflow object detection API video object recognition system (I)
猜你喜欢

Capitalize the title of leetcode simple question
![[200 opencv routines] 98 Statistical sorting filter](/img/ba/9097df20f6d43dfce9fc1e374e6597.jpg)
[200 opencv routines] 98 Statistical sorting filter

MySQL数据库(四)事务和函数
![Cadence physical library lef file syntax learning [continuous update]](/img/0b/75a4ac2649508857468d9b37703a27.jpg)
Cadence physical library lef file syntax learning [continuous update]

C4D quick start tutorial - creating models

Sleep quality today 81 points

The minimum number of operations to convert strings in leetcode simple problem

CSAPP homework answers chapter 789

Servlet

Report on the double computer experiment of scoring system based on 485 bus
随机推荐
Servlet
ucore lab6 调度器 实验报告
Dlib detects blink times based on video stream
Global and Chinese markets of Iam security services 2022-2028: Research Report on technology, participants, trends, market size and share
CSAPP Shell Lab 实验报告
C4D quick start tutorial - Introduction to software interface
Oracle foundation and system table
Global and Chinese market of barrier thin film flexible electronics 2022-2028: Research Report on technology, participants, trends, market size and share
Soft exam information system project manager_ Project set project portfolio management --- Senior Information System Project Manager of soft exam 025
China's county life record: go upstairs to the Internet, go downstairs' code the Great Wall '
Logstack introduction and deployment -- elasticstack (elk) work notes 019
MySQL数据库(四)事务和函数
Threads et pools de threads
Description of Vos storage space, bandwidth occupation and PPS requirements
STC-B学习板蜂鸣器播放音乐2.0
What is "test paper test" in software testing requirements analysis
C language do while loop classic Level 2 questions
How to learn automated testing in 2022? This article tells you
[Ogg III] daily operation and maintenance: clean up archive logs, register Ogg process services, and regularly back up databases
自动化测试中敏捷测试怎么做?