MCPcopy Index your code
hub / github.com/plotly/plotly.py / build_filename

Method build_filename

plotly/io/_base_renderers.py:568–576  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

566 return {"text/html": iframe_html}
567
568 def build_filename(self):
569 ip = IPython.get_ipython() if IPython else None
570 try:
571 cell_number = list(ip.history_manager.get_tail(1))[0][1] + 1 if ip else 0
572 except Exception:
573 cell_number = 0
574 return "{dirname}/figure_{cell_number}.html".format(
575 dirname=self.html_directory, cell_number=cell_number
576 )
577
578 def build_url(self, filename):
579 return filename

Callers 1

to_mimebundleMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected