set this section using

with pd,option_context

you can then set options to control the formatting for just what u need

and split into separate ipython blocks