write notebook