#NEWLINE# def load_hdu( self , imname , hdulist , num_hdu ) : #NEWLINE# #INDENT# 'Display an astropy.io.fits HDU in a remote Ginga reference viewer.\n\n        Parameters\n        ----------\n        imname : str\n            A name to use for the image in the reference viewer.\n\n        hdulist : `~astropy.io.fits.HDUList`\n            This should be a valid HDUList loaded via the `astropy.io.fits` module.\n\n        num_hdu : int or 2-tuple\n            Number or key of the HDU to open from the `HDUList`.\n\n        Returns\n        -------\n        0\n\n        Notes\n        -----\n        * The "RC" plugin needs to be started in the viewer for this to work.\n        ' #NEWLINE# buf_io = BytesIO ( ) #NEWLINE# hdulist . writeto ( buf_io ) #NEWLINE# load_fits_buffer = self . _client . lookup_attr ( 'load_fits_buffer' ) #NEWLINE# return load_fits_buffer ( imname , load_fits_buffer . _chname , binascii . b2a_base64 ( buf_io . getvalue ( ) ) , num_hdu , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )