Q1:Jupyter Notebook
- jupyter notebook使用手册:
- https://www.jianshu.com/p/91365f343585
1.1 报错:Terminal unavailable in Jupyter Notebook
- 解决方案1:
https://github.com/jupyter/notebook/issues/172 - 解决方案2:
- https://www.zhihu.com/question/29941327/answer/71945052
- 问题概述:
This is because Windows does not have TTY based terminal support. The terminal is only supported on *nix machines (Linux, OS X, FreeBSD).总之,这种问题不影响使用,但如果想深入研究,可以看看github上的解决方案和描述
1.2 jupyter默认端口的自定义修改
如果你想自定义端口号来启动Jupyter Notebook,可以在终端中输入以下命令:
jupyter notebook --port <port_number>
其中,“<port_number>”是自定义端口号,直接以数字的形式写在命令当中,数字两边不加尖括号“<>”。如:jupyter notebook --port 8889,即在端口号为“8889”的服务器启动Jupyter Notebook。
1.3 jupyter默认路径的修改
在主机c:\users\administrator.jupyter\jupyter_notebook_config.py中找到py文件,修改文件,并取消第二行的注释(重要步骤)
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\Jupyter Notebook'
现在jupyter notebook就变成你自己的文件夹了,此时你会看到一个清爽的界面