You are viewing an older version (9.10.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.10.0 / IPython / lib / display / FileLink

class

IPython.lib.display:FileLink

source: /IPython/lib/display.py :372

Signature

class   FileLink ( path url_prefix = '' result_html_prefix = '' result_html_suffix = <br> )

Members

Summary

Class for embedding a local file link in an IPython session, based on path

Extended Summary

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")

Aliases

  • IPython.display.FileLink