Home » , » ipython automatic import at startup

ipython automatic import at startup

In linux based system, you can configure ipython in this fold "~/.config/ipython/profile_default/".

For example, if you want ipython to automatically load frequently used imports and other thing. you can write the corresponding snippets in a py file and put it into the 'startup' directory.

when you open ipython next time, this py file will be executed, the imports and variables in which will be in the same namespace with the ipython interactive environment.

Note: if you want to sysn the configuration across different computer you used. A simple to do this is to put the configure py file into  your dropbox fold, and symbol it to the 'startup' directory.

Popular Posts