文章目录1
Jupyter
notebook
简介2
Jupyter
notebook
服务的启动3 将
jupyter
服务进行HTTPS加密
原文链接 https://blog.jaspirit.cc/posts/69f0ff47/ 作者本人
1
Jupyter
notebook
简介
Jupyter
notebook
是基于网页的
python
交互式开发环境,文件浏览器功能并不是其主要功能,但由于笔者在当时尚不了解其他Web文件管理系统,且有
python
开发的需要,因此选择在服务器上安装
jupyter
notebo
第一次使用
jupyter
创建
python
时错误:Creating
Notebook
Failed An error occurred while creating a new
notebook
.
当我们用命令行在浏览器中启动
jupyter
notebook
后需要点击右上角的New
创建
新
的
python
文件,此时会报错。在Linux下可以用命令行解决这个问题。首先需要找到anaconda2中
jupyter
文件,在anaconda2中的share文件中,对
jupyter
执行如下命令,来修改
jupyter
的权限:
chmod +777
jupyter
之后重启
jupyter
即可运行,py...
使用
jupyter
创建
python
时错误:Creating
Notebook
FailedhuAn error 或者occurred while creating a new
notebook
.
能访问到,但是无法
创建
尝试(都无法解决):
1.授权anacoda下的jupter文件为777权限,工作目录为777权限,不能解决问题
2.重装anacoda,不能解决问题
3.pip卸载重装
jupyter
,不能解决问题
最后解决办法(成功):
(1)打开
jupyter
_
notebook
_config.p
Jupyter
Notebook
可以使用nb_conda插件实现conda虚拟环境的切换,但是,在
新
环境下
新
建
notebook
时,会出现以下报错:
“C:\Users\Ф־ǿ\AppData\Local\Temp\tmpz_9vg8ey.bat”’ is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Ф־ǿ\AppData\Local\Te.
创建
虚拟环境后,用conda install 了ipykenel,这里与我另一个环境中用
python
-m install 的ipykenel做一个对比,用
python
-m 安装的是可以正常运行
jupyter
notebook
的:
1、在
python
3.6.0中用
python
-m 安装的,可以正常运行
jupyter
notebook
在
jupyter
notebook
参数化运行
python
时,怕输出太多文件太大,想及时清除
notebook
的输出。
在别人代码里看到用 easydl 的 clear_output()。调用很简单:
from easydl import clear_output
print('before')
clear_output() # 清除输出
print('after')
查它源码:clear_output
def clear_output():
clear output for both
jupyter
notebook
and the console
记录一下自己在学习过程中所遇到的问题,顺便为后来者避避坑!
刚下载的Netobook打开后发现,默认的文件保存位置在C盘,这就让有强迫症外加贫穷的我很是难受,于是在网上找了许许多多的博文并尝试了N次,终于让我解决了这一难题。
步骤一:
jupyter
_
notebook
_config.py文件修改
1. 先在自己想要保存文件的磁盘内
创建
文件夹作为文件保存位置(注意:文件夹名最好为英文)
2. 找到
jupyter
_
notebook
_config.py 文件
3. 打开文件后,使用 Ctrl+F 搜