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": {},
|
"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",
|
||||||
"[](https://pypi.org/project/tqdm)|[](https://pypi.org/project/tqdm)|[](https://anaconda.org/conda-forge/tqdm)\n",
|
"[](https://pypi.org/project/tqdm)|[](https://pypi.org/project/tqdm)|[](https://anaconda.org/conda-forge/tqdm)\n",
|
||||||
"-|-|-\n",
|
"-|-|-\n",
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"\n",
|
"\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",
|
||||||
"\n",
|
"\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:"
|
||||||
|
|
Loading…
Reference in New Issue