hanschen / vim-ipython-cell

Seamlessly run Python code in IPython from Vim
GNU General Public License v3.0
335 stars 18 forks source link

Add a note on having autoreload enabled in IPython #20

Closed gerazov closed 3 years ago

gerazov commented 3 years ago

Great plugin! :clap:

This could be used for an IDE like experience for Python using Vim. In order for things to run smoothly maybe add a note on enabling autoreload in IPython. It's not really Vim related but could be useful for users :+1:

To have IPython start with autoreload enabled you need to have a default config file .ipython/profile_default/ipython_config.py with the following content:

c = get_config()
c.InteractiveShellApp.extensions = ['autoreload']
c.InteractiveShellApp.exec_lines = ['%autoreload 2']
hanschen commented 3 years ago

Thanks for the nice comment :smiley: I'm glad that you find the plugin useful.

I've added you tip to the wiki (in a slightly different way). Let me know if you spot any mistakes.