5

I noticed that using cat on a file works in ipython. It doesn't appear to be listed as a magic command... so I am confused how/why it works. What lets cat work in ipython interactive shell?

Trevor Boyd Smith
  • 18,164
  • 32
  • 127
  • 177

2 Answers2

5

IPython automatically defines some shell aliases, including cat, in IPython.core.alias.default_aliases().

Danica
  • 28,423
  • 6
  • 90
  • 122
5

cat is one of the pre-defined system command aliases. Type %alias to see the list of aliases in your current ipython session.

Imran
  • 87,203
  • 23
  • 98
  • 131