I learnt that Jupyter-notebook can be configured with a password instead of token.
Two steps-
$ jupyter notebook password
Enter password: ****
Verify password: ****
[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
I want to automate this process (in Dockerfile, I won't be able to enter manually when prompted for password), something like this,
echo 'password' | jupyter notebook password
This should auto input my 'password' to the shell when prompted to Enter password and Verify password
Can you give me a shell command which can automate this password setup without user intervention.