我用以下命令行开始我的笔记本:
ipython3 notebook --profile=/ipython3/profiles/qa-ipython3/ipython_config.py \
--ip=0.0.0.0 \
--port=80 \
--no-browser \
--notebook-dir=/ipython3/notebooks \
--ipython-dir=/ipython3/ipython \
--profile-dir=/ipython3/profiles如果删除$HOME/.ipython,将从ipython获得一个异常:
FileNotFoundError: [Errno 2] No such file or directory: '/root/.ipython'要让ipython3 notebook将自身约束为/ipython3/...,我必须做些什么?
发布于 2015-05-26 06:20:20
要让IPython查看它的概要文件的自定义目录,可以使用IPYTHONDIR环境变量。
在Win7上,我使用了一个start stript,它在启动笔记本之前设置变量,以便在不同的配置文件和IPython版本之间快速切换,比如
set IPYTHONDIR=PATH/TO/DIR/.ipython
ipython notebook这同样适用于类似unix的系统。
当然,这并没有指定从哪里为笔记本提供服务,而只是设置概要文件dir。
https://stackoverflow.com/questions/30440740
复制相似问题