original_docstring: Convert from fractional rgb values to HTML-style hex string.
docstring: Convert from fractional rgb values to HTML-style hex string.
docstring_tokens: Convert from fractional rgb values to HTML - style hex string .
code: def rgb_to_hex(self, rgb):
          """Convert from fractional rgb values to HTML-style hex string."""
  
          hex_rgb = (255 * rgb).astype(int)
          return '#{:02x}{:02x}{:02x}'.format(*hex_rgb)
code_tokens: def rgb_to_hex ( self , rgb ) : hex_rgb = ( 255 * rgb ) . astype ( int ) return '#{:02x}{:02x}{:02x}' . format ( * hex_rgb )
short_docstring: Convert from fractional rgb values to HTML-style hex string.
short_docstring_tokens: Convert from fractional rgb values to HTML - style hex string .
comment: """Convert from fractional rgb values to HTML-style hex string."""