You can use this custom function for displaying things for pandas Dataframe
.
def display_all(df): # for any Dataframe df
with pd.option_context('display.max_rows',1000): # change number of rows accordingly
with pd.option_context('display.max_columns',1000): # change number of columns accordingly
display(df)
display_all(df.head()) # pass this function to your dataframe and Voila!
You don't have use pd.set_option
for whole notebook just use for single cell.