What is the difference between Python and IPython?

前端 未结 7 1661
傲寒
傲寒 2020-12-07 08:18

What exactly is the difference between Python and IPython?

If I write code in Python, will it run in IPython as is or does it need to be modified?

I know IPy

相关标签:
7条回答
  • 2020-12-07 08:48

    From my experience I've found that some commands which run in IPython do not run in base Python. For example, pwd and ls don't work alone in base Python. However they will work if prefaced with a % such as: %pwd and %ls.

    Also, in IPython, you can run the cd command like: cd C:\Users\... This doesn't seem to work in base python, even when prefaced with a % however.

    0 讨论(0)
提交回复
热议问题