Created
          April 30, 2020 10:58 
        
      - 
      
- 
        Save nbroad1881/2272782e936946a4a016880b4d5ed364 to your computer and use it in GitHub Desktop. 
    Python magic snippets
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # help for a function | |
| %timeit? | |
| # run code block multiple times to get average time | |
| %%timeit | |
| L = [n ** 2 for n in range(1000)] | |
| # paste multi-line code to cell | |
| %paste | |
| >>> def donothing(x): | |
| ... return x | |
| # documentation | |
| %magic | |
| # list of functions | |
| %lsmagic | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment