当前位置:网站首页>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) lookupjupyter
Profile 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
python
file
We click on the pagenew
Button , Create a new one py3 file , The following diagram shows :
And you can see , My first input2+3
, PressShift
+Enter
Key operation , The results of5
, Then you can change the above input , Change it to2+5
, Run again , You can also get results , This is alsoJupyter
A 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 .
边栏推荐
- ucore lab6 调度器 实验报告
- Global and Chinese markets for complex programmable logic devices 2022-2028: Research Report on technology, participants, trends, market size and share
- STC-B学习板蜂鸣器播放音乐
- Cc36 different subsequences
- 软件测试面试要问的性能测试术语你知道吗?
- Portapack application development tutorial (XVII) nRF24L01 launch B
- 如何成为一个好的软件测试员?绝大多数人都不知道的秘密
- Pedestrian re identification (Reid) - data set description market-1501
- Database monitoring SQL execution
- Video scrolling subtitle addition, easy to make with this technique
猜你喜欢
Practical cases, hand-in-hand teaching you to build e-commerce user portraits | with code
Portapack application development tutorial (XVII) nRF24L01 launch B
Capitalize the title of leetcode simple question
线程及线程池
UCORE lab1 system software startup process experimental report
Build your own application based on Google's open source tensorflow object detection API video object recognition system (I)
What is "test paper test" in software testing requirements analysis
What to do when programmers don't modify bugs? I teach you
Interface test interview questions and reference answers, easy to grasp the interviewer
Install and run tensorflow object detection API video object recognition system of Google open source
随机推荐
MySQL数据库(一)
How to do agile testing in automated testing?
Knowledge that you need to know when changing to software testing
pytest
UCORE lab5 user process management experiment report
Should wildcard import be avoided- Should wildcard import be avoided?
Global and Chinese market of pinhole glossmeter 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market for antiviral coatings 2022-2028: Research Report on technology, participants, trends, market size and share
Detailed introduction to dynamic programming (with examples)
The latest query tracks the express logistics and analyzes the method of delivery timeliness
MySQL数据库(三)高级数据查询语句
Heap, stack, queue
软件测试方法有哪些?带你看点不一样的东西
What are the business processes and differences of the three basic business modes of Vos: direct dial, callback and semi direct dial?
Soft exam information system project manager_ Project set project portfolio management --- Senior Information System Project Manager of soft exam 025
UCORE LaB6 scheduler experiment report
ucore Lab 1 系统软件启动过程
China's county life record: go upstairs to the Internet, go downstairs' code the Great Wall '
Portapack application development tutorial (XVII) nRF24L01 launch B
Oracle foundation and system table