Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 576302065
  • Loading branch information
blois authored and colaboratory-team committed Oct 24, 2023
1 parent 49f968c commit 8f83582
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions google/colab/_quickchart_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,10 @@ def _repr_html_(self):
self._chart = _quickchart_lib.autoviz.MplChart.from_current_mpl_state()

chart_html = self._chart._repr_mimebundle_()['text/html'] # pylint:disable = protected-access
script_start = chart_html.find('<script')
return f"""\
<div class="colab-quickchart-chart-with-code" id="{self._chart_id}">
{chart_html[:script_start]}
{chart_html}
</div>
{chart_html[script_start:]}
<script type="text/javascript">
(() => {{
const chartElement = document.getElementById("{self._chart_id}");
Expand Down

0 comments on commit 8f83582

Please sign in to comment.