python入门jupyter基础操作及文本用法
作者:神慕蔡蔡 时间:2022-02-13 21:56:29
目录
1.jupyter简介
2.jupyter基础操作
2.1windows更新pip库
2.2jupyter安装
2.3初次启动jupyter
2.4设置密码进入jupyter
#再次运行jupyter
3.创建一个jupyter文本
4.jupyter文本的用法
4.1保存和下载文本
4.2运行和切换代码
4.3多个代码运行
1.jupyter简介
Jupyter Notebook是一个开源的Web应用程序,允许用户创建和共享包含代码、方程式、可视化和文本的文档。
它的用途包括:数据清理和转换、数值模拟、统计建模、数据可视化、机器学习等等
2.jupyter基础操作
2.1windows更新pip库
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
C:\Users\篮球>python -m pip install --upgrade pip -i https://pypi.douban.com/simple
Looking in indexes: https://pypi.douban.com/simple
Collecting pip
Downloading https://pypi.doubanio.com/packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 1.1 MB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.1.1
Uninstalling pip-20.1.1:
Successfully uninstalled pip-20.1.1
Successfully installed pip-21.2.4
2.2jupyter安装
#安装jupyter
pip install jupyter
#有错误提升的话,则需要安装依赖包,No module named 'x' x显示什么就安装什么依赖包
pip install maturin
#安装插件,提高效率
pip install jupyter_contrib_nbextensions
#更新jupyter
pip install --upgrade jupyter
2.3初次启动jupyter
#按windows键+r 输入:jupyter-notebook
#google浏览器 输入:127.0.0.1:8888 或者 localhost:8888
看到这个页面则成功!
2.4设置密码进入jupyter
C:\>CD jupyter
C:\jupyter>
#windows命令创建文件
C:\jupyter>jupyter notebook --generate-config #生成文件
C:\jupyter>jupyter notebook password #设置密码
x x x x
#或者查看token输入登录
C:\jupyter>jupyter notebook list
#再次运行jupyter
E:\>jupyter notebook
[W 21:12:13.097 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 21:12:13.099 NotebookApp] Serving notebooks from local directory: E:\
[I 21:12:13.099 NotebookApp] Jupyter Notebook 6.4.3 is running at:
[I 21:12:13.102 NotebookApp] http://localhost:8888/
[I 21:12:13.102 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
看到此页面则成功!!!
3.创建一个jupyter文本
4.jupyter文本的用法
4.1保存和下载文本
4.2运行和切换代码
4.3多个代码运行
来源:https://blog.csdn.net/qq_47945825/article/details/119812277
标签:jupyter,文本


猜你喜欢
聊聊python中的循环遍历
2022-06-17 23:44:43
PHP的PDO错误与错误处理
2023-06-05 20:21:40
Java中正则表达式split()特殊符号使用详解
2022-06-27 15:59:32
SQL Server储过程加密和解密原理深入分析
2024-01-20 01:27:12

Python 爬虫的原理
2023-01-18 21:05:35

PHP获取类中常量,属性,及方法列表的方法
2023-11-19 19:57:58
python编写adb截图工具的实现源码
2021-03-24 08:50:15

使用Python的OpenCV模块识别滑动验证码的缺口(推荐)
2022-12-04 19:22:32

MySql 5.7.17 winx64的安装配置详细教程
2024-01-17 15:00:26

python中itertools模块zip_longest函数详解
2023-01-02 09:09:35
django实现登录时候输入密码错误5次锁定用户十分钟
2023-04-17 14:48:57

Python调用ChatGPT API接口的用法详解
2022-10-11 23:29:25

encode脚本和normal脚本混用的问题与解决方法
2024-04-22 13:02:39
内部系统是否也需要用户体验设计?
2010-11-30 21:47:00

跟老齐学Python之字典,你还记得吗?
2022-09-07 20:22:53
Python深度学习albumentations数据增强库
2023-02-14 20:00:18

微信小程序实现倒计时调用相机自动拍照功能
2024-04-17 10:26:38
Vue组件公用方法提取mixin实现
2024-06-07 16:02:47

Python导入不同文件夹中文件的方法详解
2022-01-22 09:30:08

由浅入深讲解MySQL数据库索引的选择性
2008-12-17 15:06:00