{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Setting up your account and workspace\n", "\n", "Learn how to sign up for an account and access the MAAP.\n", "\n", ".. warning:: At this time, access to MAAP is limited to members of teams who are already using the system. Your access request will not be processed if you do not have a sponsor who is already using MAAP." ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### Signing up for an Earthdata Login account\n", "\n", "The MAAP offers accounts for NASA users through [Earthdata Login](https://urs.earthdata.nasa.gov/). Before accessing the MAAP as a NASA user, you will need to create an Earthdata Login account. Anyone can register for an Earthdata Login profile here: https://urs.earthdata.nasa.gov/users/new." ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### Signing up for a new MAAP account\n", "\n", "Once registered, you can register for a MAAP account by navigating to the MAAP Hub at https://hub.maap-project.org/. On your first visit, select the \"Login with EarthData Account\" button shown here:\n", "\n", "![Hub Login](_static/hub_login.png) \n", "\n", "Once registered, you will be redirect to this page \n", "![Requested Account](_static/requested_account.png) \n", " \n", "At this point, a MAAP administrator will approve your account, which will grant you access to the MAAP Hub. **Remember, access is only granted to known users in the biomass science community and other projects directly related to MAAP**. To check on the status of your pending account, contact the MAAP team at support@maap-project.org.\n", "\n", ".. note::\n", " Once your MAAP account is approved, you will receive an email notification using the address of your Earthdata Login account to let you know that your access is enabled." ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### Logging in\n", "\n", "1. Navigate to https://hub.maap-project.org/ in Chrome or Firefox. You should be redirected to a page that looks like this:\n", "![Hub Login](_static/hub_login.png)\n", "\n", "2. Click the \"Sign in with EarthData Login” button. If this is your first time logging in, you should be redirected to an EarthData Login page that looks like this:\n", "![Login with EarthData](_static/loggingin2.png)\n", "\n", "\n", "3. Enter your “EarthData Login” account credentials here and click “Log in”. You should see a temporary page that says “Redirecting”, followed by the MAAP Hub launch page:\n", "![MAAP Jupyter logging in](_static/hub_launch_page.png)" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### Creating a workspace\n", "\n", "Workspaces are effectively a JupyterLab \"computer in the cloud\". To get started with Jupyter you need to create a workspace.\n", "\n", "Overview of our images:\n", "- Pangeo image: Built from Pangeo notebook image: https://github.com/pangeo-data/pangeo-docker-images/blob/master/pangeo-notebook/environment.yml \n", "- isce3 image: Built from Pangeo base notebook with these packages installed: https://github.com/MAAP-Project/maap-workspaces/blob/main/base_images/2i2c/isce3/environment.yml \n", "- R image: A couple Python packages: https://github.com/MAAP-Project/maap-workspaces/blob/main/base_images/2i2c/r/environment.yml and these R packages installed with CRAN or R universe: https://github.com/MAAP-Project/maap-workspaces/blob/main/base_images/2i2c/r/scripts/install_cran_packages_r.sh \n", "\n", "1. Select an image to launch. If you are not sure what image you want, we recommend you start with the \"Modified Pangeo Notebook\" image. You can configure your resource allocation here. You need at least 14.8GB RAM to use conda \n", "![Hub Launch Page](_static/hub_launch_page.png)\n", "\n", "\n", "2. After choosing your image, you will see a loading screen – wait for it to finish loading.\n", "\n", "\n", "3. Once the workspace has loaded, you should see a Jupyter interface that looks like this \n", "![New Workspace View](_static/hub_workspace_view.png)\n", "\n", "Access the Hub Control panel from an active workspace by File -> Hub Control Panel. From here you can launch a new workspace \n", "![Hub Control Panel](_static/hub_control_panel.png)\n", "\n", "More information about JupyterHub: https://jupyterhub.readthedocs.io/en/stable/tutorial/index.html#getting-started \n" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### Jupyter Interface overview\n", "When you first log in you may see a notification in the bottom right about a guided tour. Feel free to view the tour, which will give you a quick overview of the Jupyter user interface. You can also find the MAAP Tour in the Help menu at any time.\n", "![MAAP Tour Notification](_static/maap_tour_notification.png)\n", "\n", "\n", "In addition to [typical JupyterLab menu bar and sidebar](https://jupyterlab.readthedocs.io/en/stable/user/interface.html) configuration:\n", "\n", "#### MAAP Jupyter Menus\n", "![Jupyter Menus](_static/interface1.png)\n", "\n", " - Git: Open repo in terminal, init, or clone repo.\n", " - Jobs: Users may submit jobs through the submit tab and view their jobs through the view tab.\n", " - Help: The help menu has several customized extensions and references to the MAAP documentation.\n", "\n", "#### MAAP Jupyter Sidebar\n", "![Jupyter Sidebar](_static/interface2.png)\n", "\n", " - File Browser\n", " - Running Terminals & Kernels\n", " - Git Repo Interface (if this folder is a Git repo)\n", " - Collaborators\n", " - Table of Contents\n", " - Extension Manager\n", "\n", "#### MAAP Blue Sidebar\n", "\n", " - Workspaces: See workspaces, share them, as well as configure settings\n", " - Stacks: See available platforms for workspaces & required memory\n", " - Administration: Control the configuration & policies for your installation.\n", " - Organizations: allow groups of developers to collaborate with private & shared workspaces. Resources & permissions are controlled & allocated within the organization by admin.\n", " - Profile (bottom, labeled with your name): See account info, logout\n" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "### MAAP Storage Options\n", "![Jupyter annotated folders](_static/storageoptions.png)\n", "\n", "#### My root folder (fast cloud storage)\n", " - Your Jupyter home directory (`~`) is mounted to `/home/jovyan`. Files in here persist across sessions and exist across your workspaces.\n", " - Use this for code-related items, smaller data storage (such as Jupyter Notebooks, Python/ R/ Markdown files, etc.)\n", " - Git is more likely to behave predictably here compared to other storage \n", " - This is also the place to make persistent conda environments (covered in another section), but make sure to not make a conda env inside a git-tracked folder, or if you do add it to the .gitignore. If git is tracking an env, it could cause your workspace to crash. \n", " - Uses local (to Jupyter) file system; generally faster and more reliable for “normal” file operations, but expensive\n", "\n", "#### Large file storage: my-private-bucket\n", "`~/my-private-bucket` is an S3 bucket with persistent storage, but accessible only to you and others in a shared workspace.\n", " \n", " - Use for large data storage\n", " - It will be slower than the root folder to copy and move files, which is why it is not ideal for storing smaller files that need to be read or written quickly (e.g. Jupyter Notebooks)\n", "\n", "#### Sharing files: my-public-bucket and shared-buckets\n", "`~/my-public-bucket` is an S3 bucket with persistent storage. It is the same as `~/shared-buckets//` — anything you put in here will be accessible to other users via `~/shared-buckets/` as a read-only file. Likewise, to find shared files from another user, look in `~/shared-buckets/`.\n", "\n", " - Use for large data storage for files that you want to share across workspaces \n", " - Public and shared buckets are not recommended for Jupyter Notebooks\n", "\n", "![Storage options diagram](_static/storage_options_diagram.png)\n", "\n", "#### Mounting your MAAP workspace on your local computer\n", "If you prefer to work on your local computer, or to drag-and-drop copy files from your computer to/from MAAP, you access the workspace via SSH. The [process for doing this](../system_reference_guide/ssh.ipynb#Accessing-MAAP-workspaces-over-SSH) is in the system guide." ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.12.0 64-bit", "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.12.0" }, "metadata": { "interpreter": { "hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6" } }, "vscode": { "interpreter": { "hash": "7500c3e1c7c786e4ba1e4b4eb7588219b4e35d5153674f92eb3a82672b534f6e" } } }, "nbformat": 4, "nbformat_minor": 4 }