docstr: Converts an object to an HTML File value object.
  
  This way you can upload `Altair`, `Bokeh`, `Plotly`, `Matplotlib`, `Seaborn` interactive charts
  or upload directly `Pandas` `DataFrame` objects to explore them in Neptune UI.
  
  Args:
      chart: An object to be converted.
          Supported are `Altair`, `Bokeh`, `Plotly`, `Matplotlib`, `Seaborn` interactive charts,
          and `Pandas` `DataFrame` objects.
  
  Returns:
      ``File``: value object with converted object.
  
  Examples:
      >>> import neptune
      >>> from neptune.types import File
      >>> run = neptune.init_run()
  
      Convert Pandas DataFrame to File value object and upload it
  
      >>> run["train/results"].upload(File.as_html(df_predictions))
  
      Convert Altair interactive chart to File value object and upload it
  
      >>> altair_file = File.as_html(altair_chart)
      >>> run["dataset/data_sample/img1"].upload(altair_file)
  
      You can upload Altair interactive chart without explicit conversion
  
      >>> run["dataset/data_sample/img2"].upload(altair_chart)
  
  You may also want to check `as_html docs page`_.
  
  .. _as_html docs page:
     https://docs.neptune.ai/api/field_types#as_html
docstr_tok: ["Converts","an","object","to","an","HTML","File","value","object",".","This","way","you","can","upload","`","Altair","`",",","`","Bokeh","`",",","`","Plotly","`",",","`","Matplotlib","`",",","`","Seaborn","`","interactive","charts","or","upload","directly","`","Pandas","`","`","DataFrame","`","objects","to","explore","them","in","Neptune","UI",".","Args",":","chart",":","An","object","to","be","converted",".","Supported","are","`","Altair","`",",","`","Bokeh","`",",","`","Plotly","`",",","`","Matplotlib","`",",","`","Seaborn","`","interactive","charts",",","and","`","Pandas","`","`","DataFrame","`","objects",".","Returns",":","``","File","``",":","value","object","with","converted","object",".","Examples",":",">",">",">","import","neptune",">",">",">","from","neptune.types","import","File",">",">",">","run","=","neptune.init_run","(",")","Convert","Pandas","DataFrame","to","File","value","object","and","upload","it",">",">",">","run","[","``","train\/results","''","]",".upload","(","File.as_html","(","df_predictions",")",")","Convert","Altair","interactive","chart","to","File","value","object","and","upload","it",">",">",">","altair_file","=","File.as_html","(","altair_chart",")",">",">",">","run","[","``","dataset\/data_sample\/img1","''","]",".upload","(","altair_file",")","You","can","upload","Altair","interactive","chart","without","explicit","conversion",">",">",">","run","[","``","dataset\/data_sample\/img2","''","]",".upload","(","altair_chart",")","You","may","also","want","to","check","`","as_html","docs","page","`","_",".","..","_as_html","docs","page",":","https",":","\/\/docs.neptune.ai\/api\/field_types","#","as_html"]
code: def as_html(chart) -> "File":
      """Converts an object to an HTML File value object.
  
      This way you can upload `Altair`, `Bokeh`, `Plotly`, `Matplotlib`, `Seaborn` interactive charts
      or upload directly `Pandas` `DataFrame` objects to explore them in Neptune UI.
  
      Args:
          chart: An object to be converted.
              Supported are `Altair`, `Bokeh`, `Plotly`, `Matplotlib`, `Seaborn` interactive charts,
              and `Pandas` `DataFrame` objects.
  
      Returns:
          ``File``: value object with converted object.
  
      Examples:
          >>> import neptune
          >>> from neptune.types import File
          >>> run = neptune.init_run()
  
          Convert Pandas DataFrame to File value object and upload it
  
          >>> run["train/results"].upload(File.as_html(df_predictions))
  
          Convert Altair interactive chart to File value object and upload it
  
          >>> altair_file = File.as_html(altair_chart)
          >>> run["dataset/data_sample/img1"].upload(altair_file)
  
          You can upload Altair interactive chart without explicit conversion
  
          >>> run["dataset/data_sample/img2"].upload(altair_chart)
  
      You may also want to check `as_html docs page`_.
  
      .. _as_html docs page:
         https://docs.neptune.ai/api/field_types#as_html
      """
      content = get_html_content(chart)
      return File.from_content(
          content if content is not None else "", extension="html"
      )
  
imports: from io import IOBase
  from typing import TYPE_CHECKING, Optional, TypeVar, Union
  from neptune.internal.types.file_types import FileComposite, InMemoryComposite, LocalFileComposite, StreamComposite
  from neptune.internal.utils import verify_type
  from neptune.internal.utils.images import get_html_content, get_image_content, get_pickle_content, is_altair_chart, is_bokeh_figure, is_matplotlib_figure, is_numpy_array, is_pandas_dataframe, is_pil_image, is_plotly_figure, is_seaborn_figure
  from neptune.types.atoms.atom import Atom
label_desc: Use image node_id 13 for calling the File obj's underlying member method code with example usage: obj.as_html(chart) and returns: File