nebffa
nebffa

Reputation: 1549

Unable to start ipython with .pythonrc using virtualenv

I want to be able to start an ipython session with it importing some modules. On Windows this would be simple - I had a global installation of ipython and I used .pythonrc I think it was.

However, in Ubuntu 13 I have ipython installed in a virtualenv (but not installed globally).

In my .bashrc is:

alias ipy="python -c 'import IPython; IPython.terminal.ipapp.launch_new_instance()'"

I am wondering if it's possible to run similar startup commands in ipython. Or if that's not possible with my current setup - then what is the best way to achieve what I want in Ubuntu.

Upvotes: 0

Views: 332

Answers (1)

Drew MacInnis
Drew MacInnis

Reputation: 8577

Hopefully some combination of PYTHONSTARTUP or IPYTHONDIR environment variables in your .bashrc can accomplish what you want.

Upvotes: 2

Related Questions