How does `cat` work in the ipython interactive shell?

I noticed that using cat in a file works in ipython. It doesn't seem to be listed as a magic team ... so I'm confused about how / why it works. What allows cat to work in ipython interactive shell?

+4
source share
2 answers

cat is one of the predefined aliases for system commands. Type %alias to see a list of aliases in the current ipython session.

+4
source

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

+4
source

Source: https://habr.com/ru/post/1414454/


All Articles