<s> class Masterpiece ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , artists = None , model = None , dataset = None ) : <EOL> self . model = model <EOL> self . dataset = dataset <EOL> self . artists = [ a ( model = model , dataset = dataset ) for a in artists ] <EOL> def expose ( self ) : <EOL> """<STR_LIT>""" <EOL> arts = [ a . art ( ) for a in self . artists ] <EOL> return arts <EOL> class IPythonNotebook ( Masterpiece ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> super ( IPythonNotebook , self ) . __init__ ( * args , ** kwargs ) <EOL> def expose ( self ) : <EOL> arts = super ( IPythonNotebook , self ) . expose ( ) <EOL> self . nb = nbf . new_notebook ( ) <EOL> for art , artist in zip ( arts , self . artists ) : <EOL> cells += [ nbf . new_title_cell ( artist . header ) ] <EOL> for viz , text in art : <EOL> cells += nbf . new_code_cell ( viz ) <EOL> cells += nbf . new_text_cell ( '<STR_LIT>' , text ) </s>
