title: Jupyter Notebook: command for save the current notebook?
body: <p>I can automatically save the notebook into HTML after running code. However, sometimes the results are generated too quick, so the output HTML does not have the output in the last cells.</p>
  
  <p>I'm wondering, if it is possible to tell the file to save itself?</p>
  
  <p>Something like </p>
  
  <pre><code># In last cell
  current_filename = 'my_file.ipynb'
  save_current_notebook(current_filename)
  output_HTML(current_filename)
  </code></pre>
  
  <p>Now I can get away with:</p>
  
  <pre><code>display(Javascript("IPython.notebook.save_notebook()"),            
          include=['application/javascript'])
  </code></pre>