class_docstr: Class for using LIT inside notebooks.
docstr: Render the LIT UI in the output cell.
  
  Args:
    height: Optional height to display the LIT UI in pixels. If not specified,
        then the height specified in the constructor is used.
    open_in_new_tab: Whether to show the UI in a new tab instead of in the
      output cell. Defaults to false.
    ui_params: Optional configuration options for the LIT UI's state.
docstr_tok: ["Render","the","LIT","UI","in","the","output","cell",".","Args",":","height",":","Optional","height","to","display","the","LIT","UI","in","pixels",".","If","not","specified",",","then","the","height","specified","in","the","constructor","is","used",".","open_in_new_tab",":","Whether","to","show","the","UI","in","a","new","tab","instead","of","in","the","output","cell",".","Defaults","to","false",".","ui_params",":","Optional","configuration","options","for","the","LIT","UI","'s","state","."]
code: def render(
      self,
      height=None,
      open_in_new_tab=False,
      ui_params: Optional[RenderConfig] = None,
  ):
      """Render the LIT UI in the output cell.
  
      Args:
        height: Optional height to display the LIT UI in pixels. If not specified,
            then the height specified in the constructor is used.
        open_in_new_tab: Whether to show the UI in a new tab instead of in the
          output cell. Defaults to false.
        ui_params: Optional configuration options for the LIT UI's state.
      """
      if not height:
          height = self._height
      if not ui_params:
          ui_params = RenderConfig()
      if is_colab:
          _display_colab(
              self._server.port, height, open_in_new_tab, ui_params
          )
      else:
          _display_jupyter(
              self._server.port,
              height,
              self._proxy_url,
              open_in_new_tab,
              ui_params,
          )
  
imports: from collections.abc import Sequence
  import html
  import json
  import os
  import pathlib
  import random
  from typing import cast, Optional
  import urllib.parse
  import attr
  from IPython import display
  from lit_nlp import dev_server
  from lit_nlp import server_config
  from lit_nlp.api import layout
  from lit_nlp.lib import wsgi_serving
label_desc: Use image node_id 4 for calling the LitWidget obj's underlying member method code with example usage: obj.render(height, open_in_new_tab, ui_params) without return types