Demo JupyterHub
Author: Tasha Snow
Learning Objectives
- Learn how to access and use the Openscapes JupyterHub
- Open the JupyterHub and clone the Openscapes Espacio and Sostenibilidad Colloquium repository
Access the CryoCloud powerpoint whenever you need to reference it
Open the powerpoint by directly clicking on the hyperlink above or to open it in the Openscapes Linux Desktop web browser as follows: - Copy this hyperlink: https://bit.ly/4785hMv
- Click on the plus (+
) sign in the File Browser
to the left to open a Launcher
window - Under Notebooks, click on Desktop
to access the Linux Desktop. This will open a new tab. - Click on the Web Browser
tool (globe) at the bottom of the screen - Paste the url into the search bar
Open CryoCloud
- Scroll through the server sizes. Stick with the 3.7Gb server (the default).
```jtilcxogfpmk Tip 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 for you and anyone else who is sharing with you. If you crash the server, it just requires logging out and reopening it, but it could be annoying for everyone.
Check your memory usage at the bottom in the middle of the screen.
2) Choose the Python programming language.
3) Sit back and learn about each of the tools!
- JupyterHub options and viewing setup
- Github
- Virtual Linux desktop
- SyncThing
- Viewing and editing of different files
Now after the demo...
## Task: Clone the Espacio and Sostenibilidad Colloquium jupyterbook
We will import the [NASA Openscapes Espacio and Sostenibilidad Colloquium Github repository](https://github.com/NASA-Openscapes/2023-ssc.git).
To do this:
1. Select the plus (`+`) sign above the `File Browser` to the left, which will bring up a `Launcher` window.
2. Click the `terminal` button under Other to open it. This is your command line like you would have on any computer.
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`).
cd yourfoldername
3. Now clone the hackweek code into your current directory:
git clone https://github.com/NASA-Openscapes/2023-ssc.git
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.
5. To open this tutorial, click on the `book` subdirectory > `tutorials` > `jupyterhub_demo` > and double click on `jupyterhub_demo`. This should open up this tutorial in case you want to review it in the future.
## Shutting down your JupyterHub
```{admonition} TIP
**Best Practice: Shut down the Openscapes server when you are done to save us money.**
**If you only close your tab or click log out, your server will continue running for 90 minutes.**
Whenever you are done, it is best to shut down your server when you sign out to save money. 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:
- In upper left, click on
File
>Hub Control Panel
, which will open another tab - Click the
Stop Server
button. Once this button disappears after you clicked it, your server is off. - Click
Log Out
in the top right of your screen and you will be logged out, or you can start a new server - You can now close this tab and the other tab where you were just working
Summary
🎉 Congratulations! You’ve completed this tutorial and have seen how we can access and use the Openscapes JupyterHub.
References
To learn more about CryoCloud, gain code for NASA data access, and find other Cryosphere tutorials check out this other documentation: