Added Ipython notebook detection