Skip to content

Instantly share code, notes, and snippets.

@jakirkham
Forked from mrocklin/progress-example.ipynb
Created May 30, 2017 18:43
Show Gist options
  • Save jakirkham/d279bfcfc75afda9bcecb234606920de to your computer and use it in GitHub Desktop.
Save jakirkham/d279bfcfc75afda9bcecb234606920de to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"<Client: scheduler='tcp://127.0.0.1:38905' processes=4 cores=4>"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from dask.distributed import Client, progress\n",
"import time\n",
"client = Client()\n",
"client"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"futures = client.map(time.sleep, range(20))\n",
"progress(futures)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
},
"widgets": {
"state": {
"85c1eb07749543eca6465c7f7e223245": {
"views": [
{
"cell_index": 1
}
]
}
},
"version": "1.2.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment