Rendering Jupyter notebooks with inline plots freezes the browser
Summary
When viewing Jupyter notebooks with inline plots, the CPU usage goes up causing the browser to freeze.
Steps to reproduce
- Create a Jupyter notebook with an inline plot and commit it to a GitLab repository
- Open this notebook in the GitLab web UI
Example Project
- With inline plot, not working
- Without inline plot, working
What is the current bug behavior?
When viewing Jupyter notebooks with inline plots, the CPU usage goes up causing the browser to freeze. On Chrome, the tab needs to be killed so there's no output. Firefox gives an option to stop "a script that's slowing down the browser". Clicking on stop shows the test notebook fully rendered, plot included.
What is the expected correct behavior?
Jupyter notebook should be rendered normally and should not the browser to freeze up.