{ "cells": [ { "cell_type": "markdown", "id": "cell-0", "metadata": {}, "source": [ "# Kernel variables\n", "\n", "Run the cells, then open **Jupyter Variables**." ] }, { "cell_type": "code", "id": "cell-1", "metadata": {}, "source": [ "import json\n", "\n", "tasks = [\"write\", \"review\", \"ship\"]\n", "done = {\"write\": True, \"review\": False}\n", "_scratch = \"hidden: starts with _\"" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "id": "cell-2", "metadata": {}, "source": [ "class Broken:\n", " def __repr__(self):\n", " raise RuntimeError(\"no repr\")\n", "\n", "\n", "broken = Broken()\n", "long_text = \"x\" * 500" ], "execution_count": null, "outputs": [] }, { "cell_type": "code", "id": "cell-3", "metadata": {}, "source": [ "count = len(tasks)\n", "count" ], "execution_count": null, "outputs": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }