Guest User

Untitled

a guest
Aug 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "# Getting all setup\n",
  8. "The following setup will install all necessary libraries and setups for jupyter notebooks and extensions"
  9. ]
  10. },
  11. {
  12. "cell_type": "code",
  13. "execution_count": 20,
  14. "metadata": {},
  15. "outputs": [],
  16. "source": [
  17. "!pip install ipyleaflet\n",
  18. "!pip install ipywidgets\n",
  19. "!pip install ipyvolume\n",
  20. "!pip install altair\n",
  21. "!pip install vega_datasets\n",
  22. "!pip install bqplot\n",
  23. "!pip install nbdime\n",
  24. "!pip install palettable\n",
  25. "!pip install earthengine-api\n",
  26. "!pip install folium"
  27. ]
  28. },
  29. {
  30. "cell_type": "code",
  31. "execution_count": null,
  32. "metadata": {},
  33. "outputs": [],
  34. "source": [
  35. "%%bash\n",
  36. "jupyter labextension install jupyter-leaflet\n",
  37. "jupyter labextension install @jupyter-widgets/jupyterlab-manager\n",
  38. "jupyter nbextension install --py --symlink --sys-prefix ipyleaflet\n",
  39. "jupyter nbextension enable --py --sys-prefix ipyleaflet\n",
  40. "jupyter labextension install js\n",
  41. "jupyter labextension install ipyvolume\n",
  42. "jupyter nbextension enable --py --sys-prefix widgetsnbextension\n",
  43. "jupyter labextension install @jupyter-widgets/jupyterlab-manager\n",
  44. "jupyter nbextension enable --py widgetsnbextension --sys-prefix\n",
  45. "jupyter labextension install bqplot\n",
  46. "jupyter nbextension install bqplot --py --symlink --sys-prefix\n",
  47. "jupyter nbextension enable --py --sys-prefix bqplot"
  48. ]
  49. },
  50. {
  51. "cell_type": "markdown",
  52. "metadata": {},
  53. "source": [
  54. "## Authenticate Earth Engine and Get Setup"
  55. ]
  56. },
  57. {
  58. "cell_type": "code",
  59. "execution_count": null,
  60. "metadata": {},
  61. "outputs": [],
  62. "source": [
  63. "!earthengine authenticate --quiet"
  64. ]
  65. },
  66. {
  67. "cell_type": "code",
  68. "execution_count": null,
  69. "metadata": {},
  70. "outputs": [],
  71. "source": [
  72. "!earthengine authenticate --authorization-code=PLACE_AUTH_CODE_HERE"
  73. ]
  74. }
  75. ],
  76. "metadata": {
  77. "kernelspec": {
  78. "display_name": "Python 3",
  79. "language": "python",
  80. "name": "python3"
  81. },
  82. "language_info": {
  83. "codemirror_mode": {
  84. "name": "ipython",
  85. "version": 3
  86. },
  87. "file_extension": ".py",
  88. "mimetype": "text/x-python",
  89. "name": "python",
  90. "nbconvert_exporter": "python",
  91. "pygments_lexer": "ipython3",
  92. "version": "3.6.6"
  93. }
  94. },
  95. "nbformat": 4,
  96. "nbformat_minor": 4
  97. }
Advertisement
Add Comment
Please, Sign In to add comment