{ "cells": [ { "cell_type": "markdown", "metadata": { "nbsphinx": "hidden" }, "source": [ "This notebook is part of the `nbsphinx` documentation: http://nbsphinx.readthedocs.org/." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Long-Running Cells\n", "\n", "By default, `nbconvert` will give a cell 30 seconds to execute before it times out.\n", "\n", "If you would like to change the amount of time given for a cell, you have three options:\n", "\n", "1. Manually execute the notebook in question and save the results, see [the pre-executed example notebook](pre-executed.ipynb#Long-Running-Cells).\n", "\n", "2. Change the timeout length for all notebooks by setting this option in [conf.py](conf.py):\n", "```\n", "nbsphinx_timeout = 60 # Time in seconds; use -1 for no timeout\n", "```\n", "\n", "3. Change the timeout length on a per-notebook basis by adding this to the notebook's JSON metadata:\n", "```json\n", "\"nbsphinx\": {\n", " \"timeout\": 60\n", "}\n", "```" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.1+" }, "nbsphinx": { "timeout": 60 } }, "nbformat": 4, "nbformat_minor": 0 }