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


边栏推荐
- How does the tunnel mobile inspection track robot monitor 24 hours to ensure the safety of tunnel construction?
- 216. 组合总和 III-枚举法
- Fast and slow pointer series
- 解决:jmeter5.5在win11下界面上的字特别小
- How to configure environment variables and distinguish environment packaging for multi terminal project of uniapp development
- 快慢指针系列
- linux(centos7.9)安装部署mysql-cluster 7.6
- 常用表情符号
- Jincang KFS replicator installation (oracle-kes)
- Solving linear equations with MATLAB ax=b
猜你喜欢

【LeetCode】541. Reverse string II

The list of open source summer winners has been publicized, and the field of basic software has become a hot application this year

MySQL data (Linux Environment) scheduled backup

Qingcloud based "real estate integration" cloud solution

Transplantation of xuantie e906 -- fanwai 0: Construction of xuantie c906 simulation environment
![[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)](/img/b3/b156d75c7b4f03580c449f8499cd74.png)
[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)

十二、所有功能实现效果演示

【LeetCode】415. 字符串相加

Spark - LeftOuterJoin 结果条数与左表条数不一致

Digital cloud released the 2022 white paper on digital operation of global consumers in the beauty industry: global growth solves marketing problems
随机推荐
Pytorch读入据集(典型数据集及自定义数据集两种模式)
MySQL | 视图《康师傅MySQL从入门到高级》笔记
[ES6 breakthrough] promise is comparable to native custom encapsulation (10000 words)
Solution: Nan occurs in loss during model training
[use picgo+ Tencent cloud object to store cos as a map bed]
Telnet port login method with user name for liunx server
On the routing tree of gin
[noi simulation] pendulum (linear algebra, Du Jiao sieve)
One article explains in detail | those things about growth
uniapp 开发多端项目如何配置环境变量以及区分环境打包
华为路由器:ipsec技术
【牛客】HJ1 字符串最后一个单词的长度
Change SSH port number
Alibaba Senior Software Testing Engineer recommends testers to learn -- Introduction to security testing
什么是图神经网络?图神经网络有什么用?
110. 平衡二叉树-递归法
Analyze the meaning of Internet advertising terms CPM, CPC, CPA, CPS, CPL and CPR
【ES6闯关】Promise堪比原生的自定义封装(万字)
4274. 后缀表达式
[redis implements seckill business ①] seckill process overview | basic business implementation