{"issue":{"state":"open","created_at":"2011-11-30T15:01:10Z","updated_at":"2011-11-30T21:39:15Z","comments":5,"user":{"gravatar_id":"da3a0a1942fbdc5ee9a9b8115ac5dae7","id":35046,"url":"https://api.github.com/users/pv","avatar_url":"https://secure.gravatar.com/avatar/da3a0a1942fbdc5ee9a9b8115ac5dae7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"pv"},"body":"I've noticed that sometimes, large html notebooks fail to load.\r\n\r\nIt goes like this:\r\n\r\n1. Click on the notebook name when at http://localhost:8888\r\n2. The notebook page starts to open in the browser as usual, but \r\n3. The loading progress gets stuck at a point where there is a MathJax message \"Processing math: 0%\".\r\n4. After that, the web browser (Chrome; same seemed to occur also on Firefox) tab is unresponsive and just consumes 100% CPU, and no progress seems to happen. Chrome offers to kill the tab process after a while (clicking \"Continue\" does not seem to help).\r\n\r\nThis does not happen always, sometimes the page opens after a while, but I had a notebook for which it seemed to occur in majority of the attempts.\r\n\r\nI'm working with the HTML notebook with Google Chrome (15) running on a relatively slow machine (EEE 1000 laptop), and the notebook server + kernels running either on a server through SSH tunnel or on the same machine. When running the browser on a faster machine, this issue does not seem to happen. Ipython is from Git master (b9c427f25585d3). Problems seemed to occur regardless whether MathJax was installed locally or not.\r\n\r\nBecause of the MathJax message, I tried to check out what happens if I remove all calls to MathJax from Ipython. With this change, all notebooks seem to load reliably, and I haven't seen this issue to reappear, at least yet. Maybe there's some MathJax-related timing issue at page load time that can cause a deadlock?\r\n\r\nI'll follow up if I learn something new. Also, suggestions on how to track this further could be useful.\r\n","assignee":null,"id":2402730,"labels":[{"name":"htmlnotebook","color":"381ed1","url":"https://api.github.com/repos/ipython/ipython/labels/htmlnotebook"},{"name":"prio-blocker","color":"f50505","url":"https://api.github.com/repos/ipython/ipython/labels/prio-blocker"},{"name":"type-bug","color":"d9596c","url":"https://api.github.com/repos/ipython/ipython/labels/type-bug"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":1071,"title":"Large html-notebooks hang on load on a slow machine","html_url":"https://github.com/ipython/ipython/issues/1071","closed_at":null,"url":"https://api.github.com/repos/ipython/ipython/issues/1071","milestone":null},"action":"created","comment":{"created_at":"2011-11-30T21:39:15Z","updated_at":"2011-11-30T21:39:15Z","user":{"gravatar_id":"95198572b00e5fbcd97fb5315215bf7a","id":57394,"url":"https://api.github.com/users/fperez","avatar_url":"https://secure.gravatar.com/avatar/95198572b00e5fbcd97fb5315215bf7a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"fperez"},"body":"On Wed, Nov 30, 2011 at 1:37 PM, Min RK\r\n<reply@reply.github.com>\r\nwrote:\r\n> Since mathjax is so huge, it makes sense for it to be optional.  Should this be a server-level config?  Ideally, it would be per-browser (stored in a cookie), since you can connect to a single server from both fast and slow connections, making it server-level is probably a good idea.\r\n>\r\n\r\nAgreed.\r\n\r\n> I think our need to have a little control panel (must be on the front page, because it has to be prior to loading a notebook) and mechanism for storing some config browser-side is getting severe.\r\n\r\nTruer words have rarely been spoken, I'm afraid :)","id":2966820,"url":"https://api.github.com/repos/ipython/ipython/issues/comments/2966820"}}