def clean_modules():
 for module in list(sys.modules.keys()):
  if ('seaborn' in module):
   del sys.modules[module]
 plt.rcdefaults()

def clean_modules ( ) : for module in list ( sys . modules . keys ( ) ) : if ( 'seaborn' in module ) : del sys . modules [ module ] plt . rcdefaults ( )
remove "unload" seaborn from the name space after a script is executed it can load a variety of setting that one does not want to influence in other examples in the gallery .