title: Where does ipython store the current session history?
body: <p>I use vim with a couple of plugins as a python ide. Along with an open vim session, I run an ipython session in a split console. I've found their combination is a great productivity tool for programming data analysis scripts. </p>
  
  <p>What I'm missing is a way to show all current session history in a side panel, so that I could easily do some copy-pasting from there to the vim session to create a script. Something similar to 'tail -f' would do, if only I knew where ipython stores the current session history.</p>
  
  <p>I already know:</p>
  
  <ul>
  <li>ipython has '%history' and 'hist' commands, BUT I'm looking for a way to display the history in a panel outside of the ipython session.</li>
  <li>history is stored in a sqlite file under .ipython/(profile), BUT I don't know how to access that file.  </li>
  </ul>
  
  <p>I hope I've been clear about my question. 
  Thanks in advance for all your help. </p>