当前位置:网站首页>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查看包信息。


边栏推荐
- 216. 组合总和 III-枚举法
- 2138. splitting a string into groups of length k
- cookie加密 4 rpc方法确定cookie加密
- Opencv maximum filtering (not limited to images)
- The list of open source summer winners has been publicized, and the field of basic software has become a hot application this year
- 4275. Dijkstra序列
- [ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)
- 嵌入式 | 硬件转软件的几条建议
- leetcode——错误的集合
- OpenCV每日函数 结构分析和形状描述符(7) 寻找多边形(轮廓)/旋转矩形交集
猜你喜欢

Remote connection of raspberry pie without display by VNC viewer
![[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

MySQL | store notes of Master Kong MySQL from introduction to advanced

Yolox backbone -- implementation of cspparknet

What is graph neural network? Figure what is the use of neural networks?
![[noi Simulation Competition] geiguo and time chicken (structure)](/img/4c/ed1b5bc2bed653c49b8b7922ce1674.png)
[noi Simulation Competition] geiguo and time chicken (structure)

听说你还在花钱从网上买 PPT 模板?

China chip Unicorn Corporation

opencv最大值滤波(不局限于图像)

Opencv maximum filtering (not limited to images)
随机推荐
Redis实现全局唯一ID
China chip Unicorn Corporation
Mba-day25 best value problem - application problem
双指针模拟
Kaformer personal notes
“不平凡的代理初始值设定不受支持”,出现的原因及解决方法
[noi simulation] pendulum (linear algebra, Du Jiao sieve)
数云发布2022美妆行业全域消费者数字化经营白皮书:全域增长破解营销难题
110. 平衡二叉树-递归法
Sword finger offer 55 - I. depth DFS method of binary tree
1528. 重新排列字符串
cookie加密 4 rpc方法确定cookie加密
Threejs glow channel 01 (unrealbroompass & layers)
Wan Weiwei, a researcher from Osaka University, Japan, introduced the rapid integration method and application of robot based on WRS system
Data middle office: middle office practice and summary
What is graph neural network? Figure what is the use of neural networks?
Idea another line shortcut
数据中台:中台实践与总结
Liunx change the port number of vsftpd
JS to find and update the specified value in the object through the key