<jupyter_start><jupyter_text>The ``HTML`` pane allows rendering arbitrary HTML in a panel. It renders strings containing valid HTML as well as objects with a ``_repr_html_`` method and may define custom CSS styles. Parameters:For layout and styling related parameters see the [customization user guide](../../user_guide/Customization.ipynb).* **``disable_math``** (boolean, `default=True`): Whether to disable MathJax math rendering for strings escaped with $$ delimiters.* **``object``** (str or object): The string or object with ``_repr_html_`` method to display* **``style``** (dict): Dictionary specifying CSS styles___ The ``HTML`` pane accepts the entire HTML5 spec including any embedded script tags, which will be executed. It also supports a ``style`` dictionary to apply styles to control the style of the ```` tag the HTML contents will be rendered in.<jupyter_code>html_pane = pn.pane.HTML("""
<h1>This is an HTML pane</h1>

<code>
x = 5;<br>
y = 6;<br>
z = x + y;
</code>

<br>
<br>

<table>
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td> 
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td> 
    <td>94</td>
  </tr>
</table>
""", style={'background-color': '#F6F6F6', 'border': '2px solid black',
            'border-radius': '5px', 'padding': '10px'})

html_pane<jupyter_output><empty_output><jupyter_text>To update the ``object`` or ``style`` we can simply set it:<jupyter_code>html_pane.style = dict(html_pane.style, border='2px solid red')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.160126582278481, 'fraction_numerical': 0.010759493670886076, 'mean_word_length': 4.566901408450704, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '12842', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 556, 'n_tokens_neox': 536, 'n_words': 173, 'path': 'examples/reference/panes/HTML.ipynb', 'repo_name': 'andriyor/panel', 'size': '1580'}