Skip to content

Commit

Permalink
fix ipython
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Jul 25, 2020
1 parent a40a7ec commit 21317e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/taichi/lang/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def getsourcelines(self, o):
return lines, lineno

def getsourcefile(self, o):
import IPython
lineno = IPython.core.oinspect.find_source_lines(o)
return f'<IPython:{lineno}>'

Expand Down

0 comments on commit 21317e3

Please sign in to comment.