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
Next revisionBoth sides next revision
ipython_notes [2022/03/18 22:00] – [how is the default ipython prompt created?] rajuipython_notes [2022/03/18 22:04] – [command history] raju
Line 7: Line 7:
 %history -g -f filename %history -g -f filename
 </code> </code>
-Examples of valid filenames +When using Windows 10 Enterprise + git bash 2.22.0 + 7.16.1 
-  * ipython_history_asof_20220318_1753.txt +  * Examples of valid filenames 
-  * x/ipython_history_asof_20220318_1755.txt +    * ipython_history_asof_20220318_1753.txt 
-  * c:/Users/raju/x/ipython_history_asof_20220318_1756.txt+    * x/ipython_history_asof_20220318_1755.txt 
 +    * c:/Users/raju/x/ipython_history_asof_20220318_1756.txt
  
-Examples of invalid filenames +  * Examples of invalid filenames 
-  * ~/x/ipython_history_asof_20220318_1755.txt +    * ~/x/ipython_history_asof_20220318_1755.txt 
-  * /c/Users/raju/x/ipython_history_asof_20220318_1756.txt+    * /c/Users/raju/x/ipython_history_asof_20220318_1756.txt
  
 +Ref:- https://stackoverflow.com/questions/30629390/where-is-the-history-file-for-ipython
 ==== 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.txt · Last modified: 2022/03/18 22:36 by raju