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