BUG: tests should use almost_equal for comparing float equal
ENH/CLN: add helpers for ipnb detection
ENH: special case HTML repr behaviour on ipnb GH3573

PTF