Search for notebook scroll in the settings (cmd + ,) and check the box.
cmd + ,
And also do this for pandas
pd.set_option("display.max_rows", None, "display.max_columns", None)