ipython/ipython — pull request #1450 by minrk (2012-02-28 21:57:00+00:00)
Title: load mathjax from CDN via https

Amazon CloudFront (MathJax's CDN) supports HTTPS, but their SSL certificate only applies to `*.cloudfront.net` urls. This retrieves the cloudfront host at runtime, and loads MathJax from there via HTTPS.

The cloudfront url is apparently stable, and *not* dynamic, so I could just use `d3eoax9i5htok0.cloudfront.net` instead of the gethostbyname call, but this approach seemed safer to changes in Amazon's structure, and will even continue to work if MathJax moves to a new CDN that actually supports HTTPS on the MathJax domain.