Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
String filters.
Contains a collection of useful string manipulation filters for use in Jinja templates.
Intelligently wrap text. Wrap text without breaking words if possible.
Parameters: | text : str
width : int, optional
|
---|
extract inner text from html
Analog of jQuery’s $(element).text()
Add an anchor-link to an html header tag
For use in heading cells
Remove all dollar symbols from text
Parameters: | text : str
|
---|
Fix all fake URLs that start with files/, stripping out the files/ prefix.
Parameters: | text : str
|
---|
Build a Python comment line from input text.
Parameters: | text : str
prefix : str
|
---|
Split the input text into separate lines and then return the lines that the caller is interested in.
Parameters: | text : str
start : int, optional
end : int, optional
|
---|
Transform IPython syntax to pure Python syntax
Parameters: | code : str
|
---|
Turn a path into posix-style path/to/etc
Mainly for use in latex on Windows, where native Windows paths are not allowed.
Turn a file path into a URL