fix demo display links

This commit is contained in:
Casper da Costa-Luis 2019-01-19 00:12:19 +00:00
parent ff1476453f
commit 9410761aa4
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 9 additions and 23 deletions

View File

@ -5,7 +5,7 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"<h1 align=\"center\">tqdm</h1>\n", "<h1 align=\"center\">tqdm</h1>\n",
"<img src=\"images/logo.gif\" align=\"left\" />\n", "<img src=\"https://raw.githubusercontent.com/tqdm/tqdm/master/images/logo.gif\" align=\"left\" />\n",
"\n", "\n",
"[![PyPI-Versions](https://img.shields.io/pypi/pyversions/tqdm.svg?logo=python&logoColor=white)](https://pypi.org/project/tqdm)|[![PyPI-Status](https://img.shields.io/pypi/v/tqdm.svg)](https://pypi.org/project/tqdm)|[![Conda-Forge-Status](https://img.shields.io/conda/v/conda-forge/tqdm.svg?label=conda-forge)](https://anaconda.org/conda-forge/tqdm)\n", "[![PyPI-Versions](https://img.shields.io/pypi/pyversions/tqdm.svg?logo=python&logoColor=white)](https://pypi.org/project/tqdm)|[![PyPI-Status](https://img.shields.io/pypi/v/tqdm.svg)](https://pypi.org/project/tqdm)|[![Conda-Forge-Status](https://img.shields.io/conda/v/conda-forge/tqdm.svg?label=conda-forge)](https://anaconda.org/conda-forge/tqdm)\n",
"-|-|-\n", "-|-|-\n",
@ -74,7 +74,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"![Screenshot](images/tqdm.gif)\n", "![Screenshot](https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif)\n",
"\n", "\n",
"It can also be executed as a module with pipes:" "It can also be executed as a module with pipes:"
] ]
@ -444,7 +444,7 @@
"source": [ "source": [
"## Examples and Advance Usage\n", "## Examples and Advance Usage\n",
"\n", "\n",
"- See the [examples](examples)\n", "- See the [examples](https://github.com/tqdm/tqdm/tree/master/examples)\n",
" folder;\n", " folder;\n",
"- import the module and run `help()`;\n", "- import the module and run `help()`;\n",
"- consult the [wiki](https://github.com/tqdm/tqdm/wiki)\n", "- consult the [wiki](https://github.com/tqdm/tqdm/wiki)\n",
@ -598,30 +598,16 @@
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "name": "stderr",
"application/vnd.jupyter.widget-view+json": {
"model_id": "e67bc694ce65433eae70f44e000a4f3d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"SEJveChjaGlsZHJlbj0oSW50UHJvZ3Jlc3ModmFsdWU9MSwgYmFyX3N0eWxlPXUnaW5mbycsIGRlc2NyaXB0aW9uPXUnbWF0cnlvc2hrYS56aXAnLCBtYXg9MSwgc3R5bGU9UHJvZ3Jlc3NTdHnigKY=\n"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"\n" "matryoshka.zip: 262kB [00:00, 2.26MB/s]\n"
] ]
} }
], ],
"source": [ "source": [
"import urllib, os\n", "import urllib, os\n",
"from tqdm.auto import tqdm\n", "from tqdm import tqdm\n",
"\n", "\n",
"class TqdmUpTo(tqdm):\n", "class TqdmUpTo(tqdm):\n",
" \"\"\"Provides `update_to(n)` which uses `tqdm.update(delta_n)`.\"\"\"\n", " \"\"\"Provides `update_to(n)` which uses `tqdm.update(delta_n)`.\"\"\"\n",
@ -651,7 +637,7 @@
"source": [ "source": [
"Inspired by [twine#242](https://github.com/pypa/twine/pull/242).\n", "Inspired by [twine#242](https://github.com/pypa/twine/pull/242).\n",
"Functional alternative in\n", "Functional alternative in\n",
"[examples/tqdm_wget.py](../edit/examples/tqdm_wget.py).\n", "[examples/tqdm_wget.py](https://github.com/tqdm/tqdm/blob/master/examples/tqdm_wget.py).\n",
"\n", "\n",
"It is recommend to use `miniters=1` whenever there is potentially\n", "It is recommend to use `miniters=1` whenever there is potentially\n",
"large differences in iteration speed (e.g. downloading a file over\n", "large differences in iteration speed (e.g. downloading a file over\n",
@ -1360,7 +1346,7 @@
"source": [ "source": [
"In case you're interested in how this works (and how to modify it for your\n", "In case you're interested in how this works (and how to modify it for your\n",
"own callbacks), see the\n", "own callbacks), see the\n",
"[examples](examples)\n", "[examples](https://github.com/tqdm/tqdm/tree/master/examples)\n",
"folder or import the module and run `help()`.\n", "folder or import the module and run `help()`.\n",
"\n", "\n",
"### IPython/Jupyter Integration\n", "### IPython/Jupyter Integration\n",
@ -1391,7 +1377,7 @@
"and colour hints (blue: normal, green: completed, red: error/interrupt,\n", "and colour hints (blue: normal, green: completed, red: error/interrupt,\n",
"light blue: no ETA); as demonstrated below.\n", "light blue: no ETA); as demonstrated below.\n",
"\n", "\n",
"![Screenshot-Jupyter3](images/tqdm-jupyter-3.gif)\n", "![Screenshot-Jupyter3](https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm-jupyter-3.gif)\n",
"\n", "\n",
"It is also possible to let `tqdm` automatically choose between\n", "It is also possible to let `tqdm` automatically choose between\n",
"console or notebook versions by using the `autonotebook` submodule:" "console or notebook versions by using the `autonotebook` submodule:"