MCPcopy Create free account
hub / github.com/ipython/ipython / _format_path

Method _format_path

IPython/lib/display.py:389–394  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

387 self.result_html_suffix = result_html_suffix
388
389 def _format_path(self):
390 fp = ''.join([self.url_prefix, html_escape(self.path)])
391 return ''.join([self.result_html_prefix,
392 self.html_link_str % \
393 (fp, html_escape(self.path, quote=False)),
394 self.result_html_suffix])
395
396 def _repr_html_(self):
397 """return html link to file

Callers 1

_repr_html_Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected