This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.1.0).
Base Tornado handlers for the notebook.
RequestHandler with default variable setting.
A RequestHandler with an authenticated user.
Is a user currently logged in?
May a user proceed to log in?
This returns True if login capability is available, irrespective of whether the user is already logged in or not.
IPython-specific extensions to authenticated handling
Mostly property shortcuts to IPython-specific settings.
Return the body of the request as JSON data.
Return the jinja template object for a given name
use the IPython log by default, falling back on tornado’s logger
Use less instead of css in templates
websocket url matching the current request
By default, this is just ‘’, indicating that it should match the same host, protocol, port, etc.
Bases: IPython.html.base.handlers.IPythonHandler, tornado.web.StaticFileHandler
static files should only be accessible when logged in
Raise 403 if a file is hidden or contained in a hidden directory.
Hidden is determined by either name starting with ‘.’ or the UF_HIDDEN flag as reported by stat
Validate and return the absolute path.
Requires tornado 3.1
Adding to tornado’s own handling, forbids the serving of hidden files.
subclass of StaticFileHandler for serving files from a search path
locate a file to serve on our static file search path
check if the file should be served (raises 404, 403, etc.)
Simple redirect handler that strips trailing slashes
This should be the first, highest priority handler.
Decorate methods with this to return GitHub style JSON errors.
This should be used on any JSON API on any handler method that can raise HTTPErrors.
This will grab the latest HTTPError exception using sys.exc_info and then: