jupyterhub test

Anaconda多环境多版本python配置指导
http://www.jianshu.com/p/d2e15200ee9b

$jupyter notebook --generate-config

In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password: 
Verify password: 
Out[2]: 'sha1:a...............b'

$vim ~/.jupyter/jupyter_notebook_config.py 

c.NotebookApp.ip='111.111.111.111'#你的ip
c.NotebookApp.password = u'sha1:a...............b'上边生成的密文'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #指定一个端口
c.NotebookApp.notebook_dir ='~/work'#可以指定一个开始目录

http://blog.csdn.net/bitboy_star/article/details/51427306

bash脚本,自动输入sudo的密码

echo + | (管道)

echo "admin" | sudo -S service tomcat7 stop

http://blog.csdn.net/wangbole/article/details/17579463

你可能感兴趣的:(python)