jupyter / jupyter/notebook

Notebook failed to load - InternalError: too much recursion

Open
#5,886 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

Hi there. I just got a very strange error with a notebook. Maybe it does not need to be addressed, but I thought I'd rather at least document the issue...

So I have a notebook (12MB) that I can't load anymore over a distant connection to jupyter notebook 6.0.3:
![image](https://user-images.githubusercontent.com/29915202/100488106-82472000-310c-11eb-88c4-1d637a8c8d06.png)

The message says:
> Notebook failed to load
> The error was
> InternalError: too much recursion
> See the error console for details

What is strange is that
- in the background the notebook is partially loaded (it is truncated, in fact)
- there is no error in the server console
- and I can open the notebook with no error, with the same server, if I use another machine that has a better connection to the server.

Also, the truncation occurs on this cell
```
import plotly.graph_objs as go
import plotly.offline as offline

offline.init_notebook_mode()
```
which has one invisible output: the plotly.js library (>2MB).

And, finally, the problem does not occur at all if I remove the output for that cell. Any idea?

Contributor guide

Open the contributing guide

Research direction

Reproduce the load failure with Jupyter Notebook 6.0.3 over a distant connection using a notebook containing the Plotly output described in the issue. Compare browser error-console details and loading behavior with the large output present versus removed; done means the notebook loads without the recursion error or the failure is clearly characterized.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, plotly
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.