Skip to content

Instantly share code, notes, and snippets.

@nthiery
Created October 18, 2017 19:33
Show Gist options
  • Save nthiery/24e2a29185bbe74d52ef62d89b1218db to your computer and use it in GitHub Desktop.
Save nthiery/24e2a29185bbe74d52ef62d89b1218db to your computer and use it in GitHub Desktop.
Jupyter notebook causing browsers freeze
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#include <iostream>\n",
"using namespace std;"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"int i=0;\n",
"while (i<10)\n",
" cout << i << endl;"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"string s = \"\";"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"for (int i=0;i<100;i++)\n",
" s = s + \"X\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"while (true)\n",
" std::cout << s << std::endl;"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "xeus C++11",
"language": "",
"name": "xeus-cling-cpp11"
},
"language_info": {
"codemirror_mode": "text/x-c++src",
"file_extension": ".cpp",
"mimetype": "text/x-c++src",
"name": "c++",
"version": ""
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment