Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 3
    It gives me "NameError: name 'interact' is not defined" when doing that. Commented Dec 14, 2017 at 4:10
  • 3
    @jason version 3.2 or higher Commented Dec 14, 2017 at 4:13
  • 3
    That explains. I was in python 2.7. Commented Dec 14, 2017 at 6:49
  • Careful this actually threw an error that interact could is not defined and exited the process Commented Jan 27, 2018 at 14:15
  • 5
    I think suggesting to avoid interact is a suggestion too strong. 90% this is all I ever need, and it's a lot easier to type than from IPython import embed; embed() Commented Feb 7, 2020 at 20:18