Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPython Notebook crashing Chrome tabs

I'm doing some work in an IPython Notebook session, and I now have a large-ish notebook containing code, some plots, and some embedded videos (of plot stacks; it seemed like the easiest way to be able to scroll through a sequence of plots interactively in the Notebook view). I'm working in Chrome (Mac, 32.0.1700.102) since H.264 encoding worked best (Vp8 compressed out shading detail in the plots that I needed), and Safari and Firefox don't render the videos.

Recently, this notebook has started crashing Chrome tabs every couple minutes (showing the 'Aw Snap' page). It's become basically unusable. I can work, saving very frequently, but saving the notebook causes the Chrome tab to crash about half the time (which makes me wonder if the random crashes that occur when I'm working are caused by the autosaves, but I don't know).

Has anyone else encountered this? Does anyone know how to fix it? Is there some more information I can provide to diagnose the problem? Thanks for any help.

like image 900
Michael Avatar asked Feb 04 '14 17:02

Michael


People also ask

Why do my tabs keep crashing Chrome?

First: Try these common Chrome crash fixesYour computer may have run out of memory, and can't load the site while also running your apps, extensions, and programs. To free up memory: Close every tab except for the one that's showing the error message. Quit other apps or programs that are running.

Is IPython obsolete?

The IPython console is now deprecated and if you want to start it, you'll need to use the Jupyter Console, which is a terminal-based console frontend for Jupyter kernels.

How do I open IPython notebook in Chrome?

For example to open the jupyter notebook in Google Chrome: Open Chrome, go to Settings, select the Default Browser tab, and make Chrome as your default browser. After this, the jupyter notebook will always open in Chrome.

How do I stop my tabs from crashing?

Open Chrome and go straight to Menu > “More Tools” > “Extensions.” Your extensions will all be laid out there, and each will have an option to remove and to disable. Try disabling them all, then open the tabs you had open when your Chrome crashed last and see what happens. If it's all clear, enable them, one by one.


2 Answers

I had the same problem in 32-bit Chrome on my Windows 8.1 Enterprise PC. Chrome often crashed while running a large jupyter notebook (~100 MB on disk). It got a bit better after upgrading my chrome to the 64 bit version. However, jupyter still complained about the size of the notebooks, crashed once in a while, and my notebooks could not be saved. This issue was discussed here:

https://github.com/jupyter/notebook/issues/650

The quick fix proposed here was to increase the value for self.max_buffer_size in env/Lib/site-packages/tornado/iostream.py (line 154, in case of version 4.4.2 of tornado). I changed the value x10, and now a notebook larger than 130 MB runs without any problem.

like image 133
Taro Kiritani Avatar answered Sep 20 '22 21:09

Taro Kiritani


I was experiencing the same issue. Actually I found this is related to chrome extensions installed.

Try disabling all the extensions and re-enabling them one by one. You'll find which is crashing your tab. In my case, crashes were due to the Evernote extension.

Alternatively, you can open up an incognito window, which has all the extensions disabled by default, and try opening your notebook there.

Ciao

like image 35
simonemainardi Avatar answered Sep 21 '22 21:09

simonemainardi