Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ my_funct()
%timeit range(1000)
100000 loops, best of 3: 7.76 us per loop

# run statement with python profiler
%prun <statement>
%prun -s <key> <statement> # sort by key, e.g. "cumulative" or "calls"

# run scripts and debug
%run
%run -d # run in debug mode
Expand All @@ -225,6 +229,10 @@ my_funct()

# clean namespace
%reset

# run code from clipboard
%paste

```

### debugger
Expand Down