{ "metadata": { "name": "", "signature": "sha256:b27252cd7971960ff2eae7ecf0460051d87c002b4370d791970fb47ea62143c3" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Two Examples of Progress Bars" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook demonstrates two ways of creating progress bars using simple animations. A better approach after IPython 2.0 would be to use the `IntProgressWidget` or `FloatProgressWidget` in `IPython.html.widgets`." ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "A Javascript Progress Bar" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here is a simple progress bar using HTML/Javascript:" ] }, { "cell_type": "code", "collapsed": false, "input": [ "import uuid\n", "import time\n", "from IPython.display import HTML, Javascript, display\n", "\n", "divid = str(uuid.uuid4())\n", "\n", "pb = HTML(\n", "\"\"\"\n", "