Prequisites: If you're on windows, you'll need to view file extensions. Go to the start menu and type Show or hide file extensions. The first search result will be a control panel setting for accomplishing this. There are checkboxes there. Make sure Show hidden files, folders, and drives is checked and Hide extensions for known file types is NOT checked.
Install Beautiful Soup 4. Type the command below in a command prompt (where you run ipython notebook)
conda install -c https://binstar.org/ioos beautifulsoup4
Install Mechanize:
conda install -c https://conda.binstar.org/dhirschfeld mechanize
Install the gif magic code by finding where your ipython settings directory is located. Execute this on the comamnd line:
ipython locate
Go to the folder it said. There should be a folder called profile_default. Go to it. Next go to a folder startup in profile_default. This is where you need to save the gif_magic.py file below. Click the "raw" button below for that file and ctrl-s or cmd-s to save it. Save it in the folder mentioned above. On windows, it will call it gif_magic.py.txt. Rename it to gif_magic.py.
Now restart python and try typing "%gif success". If you see a funny gif: Good job, you're done. If it says %gif is not installed it means your file is called the wrong thing or you downloaded it to the wrong spot. If it does nothing after waiting a few seconds, it means you probably didn't successfully install one of the packages above. Open a new command window, type ipython. Once ipython (not ipython notebook!) starts up, type %gif and see what the error is.
Have fun!