Skip to content

Instantly share code, notes, and snippets.

@damiendr
Created November 15, 2017 13:40
Show Gist options
  • Save damiendr/4d932dfe60d8de17fbbe9a2d215edcfc to your computer and use it in GitHub Desktop.
Save damiendr/4d932dfe60d8de17fbbe9a2d215edcfc to your computer and use it in GitHub Desktop.
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Julia Version 0.6.0\n",
"Commit 9036443* (2017-06-19 13:05 UTC)\n",
"Platform Info:\n",
" OS: macOS (x86_64-apple-darwin16.7.0)\n",
" CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz\n",
" WORD_SIZE: 64\n",
" BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)\n",
" LAPACK: libopenblas64_\n",
" LIBM: libopenlibm\n",
" LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)\n"
]
}
],
"source": [
"versioninfo()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" - IJulia 1.6.2\n"
]
}
],
"source": [
"Pkg.status(\"IJulia\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" - ProgressMeter 0.5.1\n"
]
}
],
"source": [
"Pkg.status(\"ProgressMeter\")"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"using ProgressMeter"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32mProgress: 1%| | ETA: 0:00:44\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 17%|███████ | ETA: 0:00:04\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 25%|██████████ | ETA: 0:00:03\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 34%|██████████████ | ETA: 0:00:02\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 42%|█████████████████ | ETA: 0:00:02\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 50%|████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 58%|████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 66%|███████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 75%|███████████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 83%|██████████████████████████████████ | ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 91%|█████████████████████████████████████ | ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 99%|█████████████████████████████████████████| ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 100%|█████████████████████████████████████████| Time: 0:00:02\u001b[39m\u001b[34m\n",
" test: 1.0\u001b[39m\n"
]
}
],
"source": [
"N = 100\n",
"p = Progress(100)\n",
"for i in 1:100\n",
" update!(p, i; showvalues = [(:test, 1.0)])\n",
" sleep(0.01)\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32mProgress: 100%|█████████████████████████████████████████| Time: 0:00:01\u001b[39m\n"
]
}
],
"source": [
"p = Progress(100)\n",
"for i in 1:100\n",
" update!(p, i)\n",
" sleep(0.01)\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "Julia 0.6.0",
"language": "julia",
"name": "julia-0.6"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "0.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Julia Version 0.6.0\n",
"Commit 9036443* (2017-06-19 13:05 UTC)\n",
"Platform Info:\n",
" OS: macOS (x86_64-apple-darwin16.7.0)\n",
" CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz\n",
" WORD_SIZE: 64\n",
" BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)\n",
" LAPACK: libopenblas64_\n",
" LIBM: libopenlibm\n",
" LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)\n"
]
}
],
"source": [
"versioninfo()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" - IJulia 1.6.2\n"
]
}
],
"source": [
"Pkg.status(\"IJulia\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" - ProgressMeter 0.5.1\n"
]
}
],
"source": [
"Pkg.status(\"ProgressMeter\")"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"using ProgressMeter"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32mProgress: 1%| | ETA: 0:00:44\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 17%|███████ | ETA: 0:00:04\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 25%|██████████ | ETA: 0:00:03\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 34%|██████████████ | ETA: 0:00:02\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 42%|█████████████████ | ETA: 0:00:02\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 50%|████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 58%|████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 66%|███████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 75%|███████████████████████████████ | ETA: 0:00:01\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 83%|██████████████████████████████████ | ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 91%|█████████████████████████████████████ | ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 99%|█████████████████████████████████████████| ETA: 0:00:00\u001b[39m\u001b[34m\n",
"\u001b[32mProgress: 100%|█████████████████████████████████████████| Time: 0:00:02\u001b[39m\u001b[34m\n",
" test: 1.0\u001b[39m\n"
]
}
],
"source": [
"N = 100\n",
"p = Progress(100)\n",
"for i in 1:100\n",
" update!(p, i; showvalues = [(:test, 1.0)])\n",
" sleep(0.01)\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32mProgress: 100%|█████████████████████████████████████████| Time: 0:00:01\u001b[39m\n"
]
}
],
"source": [
"p = Progress(100)\n",
"for i in 1:100\n",
" update!(p, i)\n",
" sleep(0.01)\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"hide_input": false,
"kernelspec": {
"display_name": "Julia 0.6.0",
"language": "julia",
"name": "julia-0.6"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "0.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment