User Tools

Site Tools


ipython_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ipython_notes [2022/03/18 22:09] – [command history] rajuipython_notes [2022/03/18 22:36] (current) – [command history] raju
Line 4: Line 4:
 ===== dummy ===== ===== dummy =====
 ==== command history ==== ==== command history ====
 +IPython stores the history in a SQLite database located at ~/.ipython/profile_default/history.sqlite .
 +This can be exported into a file by running
 <code> <code>
 %history -g -f filename %history -g -f filename
Line 18: Line 20:
   * /c/Users/raju/x/ipython_history_asof_20220318_1756.txt   * /c/Users/raju/x/ipython_history_asof_20220318_1756.txt
 </WRAP> </WRAP>
-Ref:- https://stackoverflow.com/questions/30629390/where-is-the-history-file-for-ipython+Ref:- 
 +  * https://stackoverflow.com/questions/30629390/where-is-the-history-file-for-ipython 
 +  * ~/.ipython/profile_default/history.sqlite - 
 ==== how is the default ipython prompt created? ==== ==== how is the default ipython prompt created? ====
 See https://github.com/ipython/ipython/blob/master/IPython/terminal/prompts.py -> Prompts class -> in_prompt_tokens(), continuation_prompt_tokens(), rewrite_prompt_tokens(), out_prompt_tokens() See https://github.com/ipython/ipython/blob/master/IPython/terminal/prompts.py -> Prompts class -> in_prompt_tokens(), continuation_prompt_tokens(), rewrite_prompt_tokens(), out_prompt_tokens()
  
ipython_notes.1647641390.txt.gz · Last modified: 2022/03/18 22:09 by raju