I try to set autoreload to my development process, but it seems, that the method I learned from that thread is not working with my versions. I tried
but
%load_ext autoreload
%autoreload 2
returns
ERROR: Magic function `load_ext` not found.
which is kind of obvious, because
In [1]: %lsmagic
Available magic functions:
%Exit %Pprint %Quit %alias %autocall %autoindent %automagic %bg %bookmark %cd %clear %color_info %colors %cpaste %debug %dhist %dirs %doctest_mode %ed %edit %env %exit %hist %history %logoff %logon %logstart %logstate %logstop %lsmagic %macro %magic %p %page %paste %pdb %pdef %pdoc %pfile %pinfo %popd %profile %prun %psearch %psource %pushd %pwd %pycat %quickref %quit %r %rehash %rehashx %rep %reset %run %runlog %save %sc %store %sx %system_verbose %time %timeit %unalias %upgrade %who %who_ls %whos %xmode
this method is not available. How can I install other magic functions?
Current Install
In your current install, can you try:-
import ipy_autoreload
and see what you get?
New Install
Can you attempt to reinstall IPython
with
pip install ipython
(for a local install if you are using virtualenv) or
sudo pip install ipython
if you are install your IPython
system-wide.
And because pip install
doesn't deal with sys path properly if you are on Mac OSX, you might need to do
easy_install -a readline # `sudo easy_install -a readline` for system-wide install of course.
(if you are using Mac OSX)
If you have the latest IPython
, you should see IPython 0.13.1
when you first load up the shell. And you shouldn't have any problems with %load_ext autoreload
then.