User Tools

Site Tools


tutorials:python_quick_reference

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:python_quick_reference [2021/05/02 16:01]
marcus.williams [Multiindexing]
tutorials:python_quick_reference [2021/05/13 16:03]
marcus.williams [Python Debugger (PDB)]
Line 433: Line 433:
 <​code>​ <​code>​
 df_shr = df_quantity.div(df_quantity.sum(axis='​index'​),​ axis='​columns'​)) df_shr = df_quantity.div(df_quantity.sum(axis='​index'​),​ axis='​columns'​))
-</​code> ​  ​+</​code> ​  
 + 
 +===== Jupyter Notebook Markdown Tricks =====  
 +Links 
 +<​code>​ 
 +[Github](http://​github.com) 
 +</​code>​ 
 + 
 + 
 +Embed an image 
 +<​code>​ 
 +![title](img/​S_res_1.png) 
 +</​code>​ 
 + 
 +===== Python Debugger (PDB) =====  
 +[[https://​docs.python.org/​3/​library/​pdb.html|ref]] 
 + 
 +<​code>​ 
 +import pdb; pdb.set_trace() 
 +</​code>​ 
 + 
 +''​n''​ for next line; ''​c''​ to continue; ''​s''​ for step; ''​exit''​ for exit
 ===== Other functions ===== ===== Other functions =====
 ==== A ==== ==== A ====
tutorials/python_quick_reference.txt · Last modified: 2021/08/06 22:20 by marcus.williams