If I execute any system commend in ipython2/3 on my Ubuntu 16.04 machine, I get permission denied error as follows:
In [1]: ls
--------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
<ipython-input-1-5b21b94dda0e> in <module>()
----> 1 get_ipython().magic('ls ')
I did not need to do anything special in Ubuntu 14.04. I have installed ipython2 and ipython3 with
pip2 install ipython --user
pip3 install ipython --user
I also tried installing it system-wide with sudo
as
sudo pip2 install ipython
sudo pip3 install ipython
But the problem still persists. I do not get this problem in jupyter notebook.
How can I use system commands in IPython?