notebook.community
Edit and run
In [2]: from notebook.auth import passwd
from notebook.auth import passwd
In [3]: passwd()
passwd()
Enter password: ········ Verify password: ········ Out[3]: 'sha1:0e0212fe8479:4b8e98ddfb36b1787e94c0158befdaf483da46f8'
Enter password: ········ Verify password: ········
'sha1:0e0212fe8479:4b8e98ddfb36b1787e94c0158befdaf483da46f8'