当前位置:网站首页>jupyter入门常见的几个坑:
jupyter入门常见的几个坑:
2022-06-24 07:43:00 【夜夜夜夜夜夜夜夜夜夜夜夜生】
1.浏览器无法自动弹出
解决办法步骤:
①按win+R,再按回车键 ,进入命令行
②在命令行输入jupyter notebook --generate-config
搜索到后建议记住位置,可能还会需要经常对配置文件进行改动。
这个时候会显示出config文件的位置。或者根据提示按[y/N]后,会显示出config文件位置。复制位置后,在配置文件里用ctrl+F搜索“c.NotebookApp.password=”
在该行下面加上:
import webbrowser
webbrowser.register("填你的浏览器名称,如chrome或者msedge",None,webbrowser.GenericBrowser("填你的浏览器路径")) #路径在桌面鼠标右键,点击属性查看
c.NotebookApp.browser="填你的浏览器名称" #注意不是路径
然后保存并退出。
之后再用jupyter notebook时就可以自动用浏览器打开了,记得用浏览器打开后不要关闭命令行。
2.在指定文件夹使用jupyter notebook
①打开刚刚的config.py文件
②ctrl+F,搜索c.NotebookApp.notebook_dir,在' '里面输入以后存放jupyter notbook的文件的路径
注意:写盘符的时候C:\\是两个\,直接复制路径的时候会只有一个\。

保存退出,之后便会在你设置的文件夹里使用notebook了。
3.无法创建新文件,无法保存新文件,无法运行代码
解决方法:
打开命令行,输入pip install pyzmq==19.0.2 安装pyzmq 19.0.2或者更低版本的pyzmq。
参考博文:关于jupyter执行代码报Bad file descriptor错误的解决方案_suoke93的博客-CSDN博客_bad file jupyter关于jupyter无法执行代码,只能新建文件与文件夹,报Bad file descriptor错误的解决方案https://blog.csdn.net/suoke93/article/details/121707760如果不知道自己是否安装成功,可以使用pip list查看包信息。


边栏推荐
- 双指针模拟
- Jincang KFS replicator installation (oracle-kes)
- 【MySQL从入门到精通】【高级篇】(一)字符集的修改与底层原理
- linux(centos7.9)安装部署mysql-cluster 7.6
- 怎么把mdf和ldf文件导入MySQL workbench中
- [redis realize Secondary killing Business ①] Overview of Secondary killing Process | Basic Business Realization
- 【量化投资】离散傅里叶变换求数组周期
- One article explains in detail | those things about growth
- GradScaler MaxClipGradScaler
- Common emoticons
猜你喜欢

MBA-day25 最值问题-应用题

"I can't understand Sudoku, so I choose to play Sudoku."

A tip to read on Medium for free

Target detection series fast r-cnn

How to configure environment variables and distinguish environment packaging for multi terminal project of uniapp development

Ebanb B1 Bracelet brush firmware abnormal interrupt handling
![[MySQL from introduction to mastery] [advanced part] (I) character set modification and underlying principle](/img/db/e581087e550a2e460f12047685c48f.png)
[MySQL from introduction to mastery] [advanced part] (I) character set modification and underlying principle

12、 Demonstration of all function realization effects

eBanb B1手环刷固件异常中断处理

华为路由器:ipsec技术
随机推荐
【PyTorch基础教程30】DSSM双塔模型代码解析
【ES6闯关】Promise堪比原生的自定义封装(万字)
用VNC Viewer的方式远程连接无需显示屏的树莓派
110. balanced binary tree recursive method
【LeetCode】387. First unique character in string
MySQL | view notes on Master Kong MySQL from introduction to advanced
常用表情符号
MySQL - SQL statement
【MySQL从入门到精通】【高级篇】(一)字符集的修改与底层原理
linux(centos7.9)安装部署mysql-cluster 7.6
1528. 重新排列字符串
基于单片机开发的酒精浓度测试仪方案
[use picgo+ Tencent cloud object to store cos as a map bed]
Sword finger offer 55 - I. depth DFS method of binary tree
[e325: attention] VIM editing error
110. 平衡二叉树-递归法
What is graph neural network? Figure what is the use of neural networks?
Qingcloud based "real estate integration" cloud solution
Wan Weiwei, a researcher from Osaka University, Japan, introduced the rapid integration method and application of robot based on WRS system
What is SRE? A detailed explanation of SRE operation and maintenance system