dgy18787's Blog
关于我玩的,我学的,我想的,我希望的

Anaconda and conda env on Linux 2019年9月24日

#run after installation

conda init

#create env

conda create -n NAME python=PY_VERSION

#install notebook with env selection

conda install nb_conda

# set notebook with external visit

jupyter notebook –generate-config

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.pem

c.NotebookApp.certfile = u’/absolute/path/to/your/certificate/mycert.pem’
c.NotebookApp.keyfile = u’/absolute/path/to/your/certificate/mykey.key’
c.NotebookApp.ip = ‘*’
c.NotebookApp.password = u’sha1:bcd259ccf…<your hashed password here>’
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: ‘sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed’
分类 Compute

发表评论

电子邮件地址不会被公开。 必填项已用*标注