This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / lib / display / FileLink

class

IPython.lib.display:FileLink

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

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