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?
Asked
Active
Viewed 2,688 times
5

Trevor Boyd Smith
- 18,164
- 32
- 127
- 177
2 Answers
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