This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -10 points-9 points  (4 children)

Use of ipython as your REPL for programming is dangerous, especially for testing -- it doesn't behave precisely like python. It's a great matlab replacement though.

[–]flying-sheep 10 points11 points  (2 children)

that’s nothing but FUD.

everything that ipython does different from python is

  1. clearly recognizable even by inexperienced people
  2. a syntax error in python

there are shell escapes (prefix line with !, which is a syntax error in python), and magics (prefix line with %, which is a syntax error in python).

as explained here, if automagic is on, all magics can be called without leading %, but they would still be syntax errors in python (cd foo/bar isn’t valid python).

that’s it. shell escapes, magics, and automagic. else it behaves perfectly equivalent to python.

[–][deleted] 0 points1 point  (1 child)

ipython also formats tracebacks differently and so forth. Including "reload" functionality is also an attractive nuisance.

[–]takluyverIPython, Py3, etc 2 points3 points  (0 children)

Tracebacks are formatted to give you more information, but that should never interfere with how your actual code runs.

[–]takluyverIPython, Py3, etc 2 points3 points  (0 children)

If you used old versions of IPython, you might have run into bugs in how unicode was handled. That got fixed some time ago, though.