I am trying to run IPython in Emacs, using emacs 24.3.1, Python 2.7.4, IPython 0.13.2 on Ubuntu 13.04
When I start an IPython shell within Emacs, it defaults to $HOME directory. I try to change to my current work directory by 'cd', 'import os, os.chdir()'
, but after running a snippet of code, work directory always goes back to $HOME.
Is there a way to change work directory, or start Ipython shell the same as the directory of the edited python file? Thanks.
I found a similar question Setting the working directory of IPython Shell to that of the python file being executed in Canopy but not sure how to implement in Emacs...