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","''",")"]
docstr: return absolute path to file
          
docstr_tok: ["return","absolute","path","to","file"]
code: def __repr__(self):
      """return absolute path to file"""
      return abspath(self.path)
  
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 4 for calling the FileLink obj's underlying member method code with example usage: obj.__repr__() and returns: abspath