fix minor bugs in export as (nbconvert) example