mirror of https://github.com/tqdm/tqdm.git
fix demo display links
This commit is contained in:
parent
ff1476453f
commit
9410761aa4
32
DEMO.ipynb
32
DEMO.ipynb
|
@ -5,7 +5,7 @@
|
|||
"metadata": {},
|
||||
"source": [
|
||||
"<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",
|
||||
"[![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",
|
||||
|
@ -74,7 +74,7 @@
|
|||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"![Screenshot](images/tqdm.gif)\n",
|
||||
"![Screenshot](https://raw.githubusercontent.com/tqdm/tqdm/master/images/tqdm.gif)\n",
|
||||
"\n",
|
||||
"It can also be executed as a module with pipes:"
|
||||
]
|
||||
|
@ -444,7 +444,7 @@
|
|||
"source": [
|
||||
"## Examples and Advance Usage\n",
|
||||
"\n",
|
||||
"- See the [examples](examples)\n",
|
||||
"- See the [examples](https://github.com/tqdm/tqdm/tree/master/examples)\n",
|
||||
" folder;\n",
|
||||
"- import the module and run `help()`;\n",
|
||||
"- consult the [wiki](https://github.com/tqdm/tqdm/wiki)\n",
|
||||
|
@ -598,30 +598,16 @@
|
|||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"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",
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\n"
|
||||
"matryoshka.zip: 262kB [00:00, 2.26MB/s]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import urllib, os\n",
|
||||
"from tqdm.auto import tqdm\n",
|
||||
"from tqdm import tqdm\n",
|
||||
"\n",
|
||||
"class TqdmUpTo(tqdm):\n",
|
||||
" \"\"\"Provides `update_to(n)` which uses `tqdm.update(delta_n)`.\"\"\"\n",
|
||||
|
@ -651,7 +637,7 @@
|
|||
"source": [
|
||||
"Inspired by [twine#242](https://github.com/pypa/twine/pull/242).\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",
|
||||
"It is recommend to use `miniters=1` whenever there is potentially\n",
|
||||
"large differences in iteration speed (e.g. downloading a file over\n",
|
||||
|
@ -1360,7 +1346,7 @@
|
|||
"source": [
|
||||
"In case you're interested in how this works (and how to modify it for your\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",
|
||||
"\n",
|
||||
"### IPython/Jupyter Integration\n",
|
||||
|
@ -1391,7 +1377,7 @@
|
|||
"and colour hints (blue: normal, green: completed, red: error/interrupt,\n",
|
||||
"light blue: no ETA); as demonstrated below.\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",
|
||||
"It is also possible to let `tqdm` automatically choose between\n",
|
||||
"console or notebook versions by using the `autonotebook` submodule:"
|
||||
|
|
Loading…
Reference in New Issue