(jupyter) python@ubuntu:~/Desktop/code$ python
Python 3.7.3 (default, May 30 2019, 17:03:20)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from notebook.auth import passwd
>>> passwd()
Enter password:
Verify password:
'sha1:637a40f5b13d:c3c5cc0b65acb26e688fa42eb0ae9c3b6209d10b'
>>>