log-det ipython notebook json error fixed