#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ) . __init__ ( * args , ** kwargs ) #NEWLINE# import bokeh #NEWLINE# dev = ( os . environ . get ( 'BOKEH_RESOURCES' , '' ) == 'relative-dev' ) #NEWLINE# modname = ( 'bokeh.' if dev else 'bokeh.min.' ) #NEWLINE# if ( not ( ( modname + 'js' ) in self . session . get_used_asset_names ( ) ) ) : #NEWLINE# #INDENT# res = bokeh . resources . bokehjsdir ( ) #NEWLINE# if dev : #NEWLINE# #INDENT# res = os . path . abspath ( os . path . join ( bokeh . __file__ , '..' , '..' , 'bokehjs' , 'build' ) ) #NEWLINE# #UNINDENT# for x in ( 'css' , 'js' ) : #NEWLINE# #INDENT# filename = os . path . join ( args , x , ( modname + x ) ) #NEWLINE# self . session . add_global_asset ( ( modname + x ) , filename )