Passing dataset with methods you need to display() function worked for me, for example:
display(df.head()) display(df.tail())
display(df.head())
display(df.tail())