|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "id": "bf9d3dd7-7252-42d7-87df-1fcf430bc1f2", |
| 6 | + "metadata": {}, |
| 7 | + "source": [ |
| 8 | + "---\n", |
| 9 | + "title: Demo CryoCloud\n", |
| 10 | + "date: 2025-09-11\n", |
| 11 | + "github: https://github.com/cryointhecloud/CryocloudWebsite\n", |
| 12 | + "subject: Tutorial\n", |
| 13 | + "authors:\n", |
| 14 | + " - name: Tasha Snow\n", |
| 15 | + " affiliations:\n", |
| 16 | + " - University of Maryland\n", |
| 17 | + " - NASA Goddard Space Flight Center\n", |
| 18 | + " - Colorado School of Mines\n", |
| 19 | + |
| 20 | + " orcid: 0000-0001-5697-5470\n", |
| 21 | + " github: tsnow03\n", |
| 22 | + "license: MIT\n", |
| 23 | + "---" |
| 24 | + ] |
| 25 | + }, |
| 26 | + { |
| 27 | + "cell_type": "markdown", |
| 28 | + "id": "suffering-union", |
| 29 | + "metadata": {}, |
| 30 | + "source": [ |
| 31 | + "::::{admonition} Learning Objectives\n", |
| 32 | + ":class: tip\n", |
| 33 | + "- Learn how to access and use CryoCloud\n", |
| 34 | + "- Open CryoCloud and clone the CryoCloud website\n", |
| 35 | + "::::" |
| 36 | + ] |
| 37 | + }, |
| 38 | + { |
| 39 | + "cell_type": "markdown", |
| 40 | + "id": "3d1f23da-bf31-476f-86b2-780f90d13982", |
| 41 | + "metadata": {}, |
| 42 | + "source": [ |
| 43 | + "## Access the [CryoCloud powerpoint](https://docs.google.com/presentation/d/1sj5oSAnHQ5Le0zMNqy55T-esZqro-WjVOPJdv_BR08M/edit?usp=sharing) whenever you need to reference it\n", |
| 44 | + "Open the powerpoint by directly clicking on the hyperlink above or to open it in the CryoCloud Linux Desktop web browser as follows:\n", |
| 45 | + "- Copy this hyperlink: `https://docs.google.com/presentation/d/1sj5oSAnHQ5Le0zMNqy55T-esZqro-WjVOPJdv_BR08M/edit?usp=sharing`\n", |
| 46 | + "- Click on the plus (`+`) sign in the `File Browser` to the left to open a `Launcher` window \n", |
| 47 | + "- Under Notebooks, click on `Desktop` to access the Linux Desktop. This will open a new tab.\n", |
| 48 | + "- Click on the `Web Browser` tool (globe) at the bottom of the screen\n", |
| 49 | + "- Paste the url into the search bar" |
| 50 | + ] |
| 51 | + }, |
| 52 | + { |
| 53 | + "cell_type": "markdown", |
| 54 | + "id": "2970ead2-4efa-41c8-9920-c14f9eb3365c", |
| 55 | + "metadata": {}, |
| 56 | + "source": [ |
| 57 | + "```{figure} slides.png\n", |
| 58 | + ":width: 80%\n", |
| 59 | + ":align: center" |
| 60 | + ] |
| 61 | + }, |
| 62 | + { |
| 63 | + "cell_type": "markdown", |
| 64 | + "id": "649d863c-5ad1-4b9f-9fa0-416ff04396a4", |
| 65 | + "metadata": {}, |
| 66 | + "source": [ |
| 67 | + "## Open CryoCloud\n", |
| 68 | + "\n", |
| 69 | + "1) Scroll through the languages. Choose the Python programming language.\n", |
| 70 | + "\n", |
| 71 | + "2) Scroll through the server sizes. Choose the 7 Gb server. \n", |
| 72 | + "\n", |
| 73 | + "::::{admonition} Tip\n", |
| 74 | + "**Be realistic about the max memory you will need. The amount you select, you are guaranteed, but if you use more you risk crashing your server and having to rerun your analysis.**\n", |
| 75 | + "\n", |
| 76 | + "**Check your memory usage at the bottom middle of the screen.**\n", |
| 77 | + "::::\n", |
| 78 | + "\n", |
| 79 | + "3) Sit back and learn about each of the tools!\n", |
| 80 | + " - JupyterHub options and viewing setup\n", |
| 81 | + " - Github\n", |
| 82 | + " - Virtual Linux desktop\n", |
| 83 | + " - SyncThing\n", |
| 84 | + " - Viewing and editing of different files" |
| 85 | + ] |
| 86 | + }, |
| 87 | + { |
| 88 | + "cell_type": "markdown", |
| 89 | + "id": "71e8e9bf-a844-4eb7-b8df-3b02f44e9030", |
| 90 | + "metadata": { |
| 91 | + "tags": [], |
| 92 | + "user_expressions": [] |
| 93 | + }, |
| 94 | + "source": [ |
| 95 | + "Now after the demo..." |
| 96 | + ] |
| 97 | + }, |
| 98 | + { |
| 99 | + "cell_type": "markdown", |
| 100 | + "id": "d73344a2-f797-4218-a99f-a9db0338f002", |
| 101 | + "metadata": { |
| 102 | + "tags": [], |
| 103 | + "user_expressions": [] |
| 104 | + }, |
| 105 | + "source": [ |
| 106 | + "## Task: Clone the CryoCloud jupyterbook\n", |
| 107 | + "\n", |
| 108 | + "We will import the [CryoCloud Website Github repository](https://github.com/CryoInTheCloud/CryoCloudWebsite.git).\n", |
| 109 | + "\n", |
| 110 | + "To do this: \n", |
| 111 | + "1. Select the plus (`+`) sign above the `File Browser` to the left, which will bring up a `Launcher` window. \n", |
| 112 | + "\n", |
| 113 | + "2. Click the `terminal` button under Other to open it. This is your command line like you would have on any computer. \n", |
| 114 | + "\n", |
| 115 | + "Before cloning the repo, you have the option to switch to another file folder using the _change directory_ terminal command: `cd folder` if you do not want the Hackweek repo in your current directory (you can check which directory you are currently in using _print working directory_ command: `pwd`).\n", |
| 116 | + "```\n", |
| 117 | + "cd yourfoldername\n", |
| 118 | + "```\n", |
| 119 | + "\n", |
| 120 | + "3. Now clone the hackweek code into your current directory: \n", |
| 121 | + "```\n", |
| 122 | + "https://github.com/CryoInTheCloud/CryoCloudWebsite.git\n", |
| 123 | + "```\n", |
| 124 | + "\n", |
| 125 | + "4. You will see the folder pop into your `File Browser` on the left if you have the current directory open. Click on the folder to navigate through the files. \n", |
| 126 | + "\n", |
| 127 | + "5. To open this tutorial, click on the `book` subdirectory > `tutorials` and double click on `CryoCloud`. This should open up this tutorial in case you want to review it in the future. \n" |
| 128 | + ] |
| 129 | + }, |
| 130 | + { |
| 131 | + "cell_type": "markdown", |
| 132 | + "id": "5b99d916-deb8-4af0-9fce-1e38e5c18d87", |
| 133 | + "metadata": {}, |
| 134 | + "source": [ |
| 135 | + "## Shutting down your JupyterHub\n", |
| 136 | + "\n", |
| 137 | + "```{admonition} TIP\n", |
| 138 | + "**Best Practice: Shut down the CryoCloud server when you are done to save us money.**\n", |
| 139 | + "\n", |
| 140 | + "**If you only close your tab or click log out, your server will continue running for 90 minutes.**\n", |
| 141 | + "```\n", |
| 142 | + "\n", |
| 143 | + "Whenever you are done, it is best to shut down your server when you sign out to save on money for CryoCloud. Time on the JupyterHub costs money and there are systems in place to make sure your server doesn't run indefinitely if you forget about it. After 90 minutes of no use, it will shut down. We prefer you shut down the server when so we save that 90 minutes of computing cost. To do so:\n", |
| 144 | + "\n", |
| 145 | + "- In upper left, click on `File` > `Hub Control Panel`, which will open another tab\n", |
| 146 | + "- Click the `Stop Server` button. Once this button disappears after you clicked it, your server is off. \n", |
| 147 | + "- Click `Log Out` in the top right of your screen and you will be logged out, or you can start a new server\n", |
| 148 | + "- You can now close this tab and the other tab where you were just working" |
| 149 | + ] |
| 150 | + }, |
| 151 | + { |
| 152 | + "cell_type": "markdown", |
| 153 | + "id": "8e200eb4-6534-4bf4-9b13-cd299aeb33a4", |
| 154 | + "metadata": { |
| 155 | + "tags": [] |
| 156 | + }, |
| 157 | + "source": [ |
| 158 | + "```{figure} stop_server.png\n", |
| 159 | + ":width: 80%\n", |
| 160 | + ":align: center" |
| 161 | + ] |
| 162 | + }, |
| 163 | + { |
| 164 | + "cell_type": "markdown", |
| 165 | + "id": "surrounded-amateur", |
| 166 | + "metadata": { |
| 167 | + "user_expressions": [] |
| 168 | + }, |
| 169 | + "source": [ |
| 170 | + "## Summary\n", |
| 171 | + "\n", |
| 172 | + " 🎉 Congratulations! You've completed this tutorial and have seen how we can access and use CryoCloud.\n" |
| 173 | + ] |
| 174 | + }, |
| 175 | + { |
| 176 | + "cell_type": "markdown", |
| 177 | + "id": "749f5c79-19d7-48ac-9421-852c3c83cc5f", |
| 178 | + "metadata": {}, |
| 179 | + "source": [ |
| 180 | + "## References\n", |
| 181 | + "\n", |
| 182 | + "To learn more about CryoCloud, gain code for NASA data access, and find other Cryosphere tutorials check out this other documentation:\n", |
| 183 | + "\n", |
| 184 | + "* [CryoCloud JupyterBook](https://book.cryointhecloud.com)" |
| 185 | + ] |
| 186 | + } |
| 187 | + ], |
| 188 | + "metadata": { |
| 189 | + "kernelspec": { |
| 190 | + "display_name": "Python 3 (ipykernel)", |
| 191 | + "language": "python", |
| 192 | + "name": "python3" |
| 193 | + }, |
| 194 | + "language_info": { |
| 195 | + "codemirror_mode": { |
| 196 | + "name": "ipython", |
| 197 | + "version": 3 |
| 198 | + }, |
| 199 | + "file_extension": ".py", |
| 200 | + "mimetype": "text/x-python", |
| 201 | + "name": "python", |
| 202 | + "nbconvert_exporter": "python", |
| 203 | + "pygments_lexer": "ipython3", |
| 204 | + "version": "3.11.11" |
| 205 | + } |
| 206 | + }, |
| 207 | + "nbformat": 4, |
| 208 | + "nbformat_minor": 5 |
| 209 | +} |
0 commit comments