class_docstr: Class for embedding a local file link in an IPython session, based on path
  
  e.g. to embed a link that was generated in the IPython notebook as my/data.txt
  
  you would do::
  
      local_file = FileLink("my/data.txt")
      display(local_file)
  
  or in the HTML notebook, just::
  
      FileLink("my/data.txt")
class_docstr_tok: ["Class","for","embedding","a","local","file","link","in","an","IPython","session",",","based","on","path","e.g",".","to","embed","a","link","that","was","generated","in","the","IPython","notebook","as","my\/data.txt","you","would","do",":",":","local_file","=","FileLink","(","``","my\/data.txt","''",")","display","(","local_file",")","or","in","the","HTML","notebook",",","just",":",":","FileLink","(","``","my\/data.txt","''",")"]
code: def _format_path(self):
      fp = "".join([self.url_prefix, self.path])
      return "".join(
          [
              self.result_html_prefix,
              self.html_link_str % (fp, self.path),
              self.result_html_suffix,
          ]
      )
  
imports: from os.path import exists, isfile, splitext, abspath, join, isdir
  from os import walk, sep
  from IPython.core.display import DisplayObject
label_desc: Use image node_id 2 for calling the FileLink obj's underlying member method code with example usage: obj._format_path() and returns: str