In IPython notebook, the following code displays the SVG below the cell:
from IPython.display import SVG SVG(url=\'http://upload.wikimedia.org/wikipedia/en/a/a4/
Add return to your function :
return
from IPython.display import SVG def show_svg(): return SVG(url='http://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg')
Then call your functions as the last line in cell:
show_svg()