如何替iPython Notebook設定密碼
解決方法:
先透過Python shell產生密碼hash值
>>> from IPython.lib import passwd
>>> passwd()
Enter password:
Verify password:
'sha1:a30eb31bbaa4:db8e1b42df0789a1973d909ecd39b3426a663e0c'
>>>
編輯ipython configure 設定密碼 將產生的hash值填入ipython_notebook_config.py
$ vim ~/.ipython/profile_pyspark/ipython_notebook_config.py
c.NotebookApp.password = "sha1:a30eb31bbaa4:db8e1b42df0789a1973d909ecd39b3426a663e0c"
再次啟動iPython notebook後會出現輸入密碼之頁面