#NEWLINE# @ option ( '-k' , '--kernel_name' , action = 'store' , default = None , help = 'kernel name given to use for execution' ) #NEWLINE# @ option ( '-e' , '--evaluate' , action = 'store_true' , default = False , help = ( 'evaluate code in the current kernel, too. The current ' + 'kernel should be of the same language as the cluster.' ) ) #NEWLINE# def cell_px( self , kernel_name = None , evaluate = False ) : #NEWLINE# #INDENT# '\n        %%px - send cell to the cluster.\n\n        Example:\n\n            %%px \n            (define x 42)\n\n        Use %parallel to initialize the cluster.\n        ' #NEWLINE# if ( kernel_name is None ) : #NEWLINE# #INDENT# kernel_name = self . kernel_name #NEWLINE# #UNINDENT# self . retval = evaluate . view [ ( 'kernels[\'%s\'].do_execute_direct("%s")' % ( kernel_name , self . _clean_code ( self . code ) ) ) ] #NEWLINE# self . evaluate = evaluate