Show More
@@ -2,11 +2,12 b' import IPython.ipapi' | |||
|
2 | 2 | ip = IPython.ipapi.get() |
|
3 | 3 | |
|
4 | 4 | from IPython.external.simplegeneric import generic |
|
5 | import pprint | |
|
5 | 6 | |
|
6 | 7 | @generic |
|
7 | 8 | def format_for_leo(obj): |
|
8 | 9 | """ Convert obj to string representiation (for editing in Leo)""" |
|
9 |
return |
|
|
10 | return pprint.pformat(obj) | |
|
10 | 11 | |
|
11 | 12 | @format_for_leo.when_type(list) |
|
12 | 13 | def format_list(obj): |
General Comments 0
You need to be logged in to leave comments.
Login now