Skip to content

Latest commit

 

History

History
executable file
·
104 lines (57 loc) · 5.58 KB

File metadata and controls

executable file
·
104 lines (57 loc) · 5.58 KB

Setting Up a Jupyter Notebook in Google Cloud Console

Initial Access

  1. Navigate to Google Cloud Console using this URL: https://console.cloud.google.com/welcome
  2. In the search bar at the top of the console, type "Vertex AI" and select it from the search results

img

Setting Up Vertex AI Workbench

  1. Within Vertex AI, locate and select "Workbench" from the available options

image-20250127200440871

  1. Click "Create New Instance" to begin setting up your Jupyter environment

Configuring Your Instance

  1. Basic Setup:
    • Provide a meaningful name for your instance
    • Click "Advanced Options" to access additional configuration settings

img

  1. Environment Configuration:
    • Navigate to the "Environment" tab
    • Select "JupyterLab 4" as your development environment

img

  • Look for the "Startup Script" option

    img
  • Click "Browse" to locate the script

  • Paste to "gs://nigms-sandbox/nosi-duke/post_start_clean_032225.sh"

img

  1. Machine Configuration:
    • For machine type, the default settings are typically sufficient

      img
    • Important: Ensure "Enable idle shutdown" is checked to avoid unnecessary resource usage

img

  • Click "Create" at the bottom of the page

Launching JupyterLab

  1. Wait approximately 3-5 minutes for the instance to be fully provisioned
  2. Once provisioning is complete, click "Start JupyterLab" to launch the environment

img

Setting Up Your Project Repository

  1. In JupyterLab, locate and click the Git button in the sidebar

img

  1. Select "Clone a Repository"

  2. Enter the following repository URL: https://github.com/mitomac/duke_nigms_sandbox.git

  3. Click "Clone" to download the repository

img

  1. Navigate into the project by double-clicking the "duke_nigms_sandbox" folder to access the modules

img

Working with notebooks

  1. If you're working with R notebooks, you'll be prompted to select a kernel

  2. Choose the R kernel when prompted to ensure proper execution of R code

    img

AI Assistant

  1. Start the AI assistant

    image-20250127202922005
  2. Generate and copy API key by running through Module 0 notebook.

  3. Select a google gemini model and input the API key you just generated.

    image-20250127202818547

Additional Tips:

  • Keep track of your instance's running time to manage resources effectively

  • Save your work regularly

  • Consider bookmarking the Google Cloud Console URL for easier access in the future