TH's Notes
  • Home
  • Categories
  • Tags
  • Archives

Automatically reload modules in IPython

IPython provides an extension autoreload to reload the modules automatically. This is especially useful because we don't want to manually reload modules for testing when developing new functions.

Just execute the following lines within IPython, all modules will be automatically reloaded before executing your code.

%load_ext autoreload
%autoreload 2
Comments
comments powered by Disqus

  • « Visualize data with IPython
  • A quick demo to recognizing hand-written digits with logistic regression »

Published

Aug 23, 2015

Category

Machine learning

Tags

  • python 12
  • Powered by Pelican. Theme: Elegant by Talha Mansoor