IPython.utils.warn was deprecated in IPython 4.0, and has now been removed. instead of Ipython.utils.warn inbuilt warning module is used.