bug fix.
Analytic query in ipython notebook