python jupyter入门教程
作者:神慕蔡蔡 时间:2022-08-19 20:42:04
目录
1.jupyter
2.jupyter基础操作
2.1windows更新pip库
2.2jupyter安装
2.3初次启动jupyter
2.4设置密码进入jupyter
3.创建一个jupyter文本
4.jupyter文本的用法
4.1保存和下载文本
4.2运行和切换代码
4.3多个代码运行
Jupyter Notebook 是一个在浏览器中使用的交互式的笔记本,可以实现将代码、文字完美结合起来,它的受众群体大多数是一些从事数据科学领域相关(机器学习、数据分析等)的人员。
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
标签:python,jupyter,入门
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
oracle中add_months()函数及用法总结
2024-01-13 16:23:59
Python中Dict两种实现的原理详解
2022-11-13 06:20:29
Python读取一个目录下所有目录和文件的方法
2023-05-30 23:04:21
windows环境下tensorflow安装过程详解
2021-12-10 15:59:34
![](https://img.aspxhome.com/file/2023/7/80477_0s.png)
教你利用PyTorch实现sin函数模拟
2021-06-23 18:17:25
C#三种判断数据库中取出的字段值是否为空(NULL) 的方法
2024-01-22 06:57:17
javascript内置对象Math案例总结分析
2024-04-10 13:56:18
![](https://img.aspxhome.com/file/2023/7/136877_0s.png)
NodeJs Express路由使用流程解析
2024-05-11 10:16:56
python 矩阵增加一行或一列的实例
2023-02-16 20:19:29
![](https://img.aspxhome.com/file/2023/3/110043_0s.jpg)
JavaScript实现点击按钮切换网页背景色的方法
2024-04-16 09:02:43
![](https://img.aspxhome.com/file/2023/3/136723_0s.png)
关于select元素的两个小问题
2008-12-25 13:41:00
go使用makefile脚本编译应用的方法小结
2024-04-25 15:17:57
![](https://img.aspxhome.com/file/2023/6/134116_0s.png)
python多线程对多核cpu的利用解析
2023-03-10 02:50:13
![](https://img.aspxhome.com/file/2023/5/67935_0s.jpg)
对PyQt5的输入对话框使用(QInputDialog)详解
2021-12-24 19:52:27
![](https://img.aspxhome.com/file/2023/2/125052_0s.jpg)
pytest之assert断言的具体使用
2021-11-21 18:04:26
python 视频下载神器(you-get)的具体使用
2023-03-18 19:30:58
![](https://img.aspxhome.com/file/2023/8/95418_0s.png)
python linecache 处理固定格式文本数据的方法
2022-10-23 21:06:05
记录模型训练时loss值的变化情况
2022-03-22 23:39:48
![](https://img.aspxhome.com/file/2023/9/105249_0s.jpg)
基于Django用户认证系统详解
2023-04-13 15:35:13
在Python中编写数据库模块的教程
2024-01-22 21:28:40