Gradient Docs
Gradient HomeHelp DeskCommunitySign up free
1.0.0
1.0.0
  • About Paperspace Gradient
  • Get Started
    • Quick Start
    • Core Concepts
    • Install the Gradient CLI
    • Common Errors
  • Tutorials
    • Tutorials List
      • Getting Started with Notebooks
      • Train a Model with the Web UI
      • Train a Model with the CLI
      • Advanced: Distributed training sample project
      • Registering Models in Gradient
      • Using Gradient Deployments
      • Using Custom Containers
  • Notebooks
    • Overview
    • Using Notebooks
      • The Notebook interface
      • Notebook metrics
      • Share a Notebook
      • Fork a Notebook
      • Notebook Directories
      • Notebook Containers
        • Building a Custom Container
      • Notebook Workspace Include Files
      • Community (Public) Notebooks
    • ML Showcase
    • Run on Gradient (GitHub badge)
  • Projects
    • Overview
    • Managing Projects
    • GradientCI
      • GradientCI V1 (Deprecated)
  • Workflows
    • Overview
      • Getting Started with Workflows
      • Workflow Spec
      • Gradient Actions
  • Experiments
    • Overview
    • Using Experiments
      • Containers
      • Single-node & multi-node CLI options
      • Experiment options
      • Gradient Config File
      • Environment variables
      • Experiment datasets
      • Git Commit Tracking
      • Experiment metrics
        • System Metrics
        • Custom Metrics
      • Experiment Logs
      • Experiment Ports
      • GradientCI Experiments
      • Diff Viewer
      • Hyperparameter Tuning
    • Distributed Training
      • Distributed Machine Learning with Tensorflow
      • Distributed Machine Learning with MPI
        • Distributed Training using Horovod
        • Distributed Training Using ChainerMN
  • Jobs
    • Overview
    • Using Jobs
      • Stop a Job
      • Delete a Job
      • List Jobs
      • Job Logs
      • Job Metrics
        • System Metrics
        • Custom Metrics
      • Job Artifacts
      • Public Jobs
      • Building Docker Containers with Jobs
  • Models
    • Overview
    • Managing Models
      • Example: Prepare a TensorFlow Model for Deployments
      • Model Path, Parameters, & Metadata
    • Public Models
  • Deployments
    • Overview
    • Managing Deployments
      • Deployment Containers
        • Custom Deployment Containers
      • Deployment States
      • Deployment Logs
      • Deployment Metrics
      • A Deployed Model's API Endpoint
        • Gradient + TensorFlow Serving
      • Deployment Autoscaling
      • Optimize Models for Inference
  • Data
    • Types of Storage
      • Managing Data in Gradient
        • Managing Persistent Storage with VMs
    • Storage Providers
    • Versioned Datasets
    • Public Datasets Repository
  • TensorBoards
    • Overview
    • Using Tensorboards
      • TensorBoards getting started with Tensorflow
  • Metrics
    • Metrics Overview
    • View and Query Metrics
    • Push Metrics
  • Secrets
    • Overview
    • Using Secrets
  • Gradient SDK
    • Gradient SDK Overview
      • Projects Client
      • Experiments Client
      • Models Client
      • Deployments Client
      • Jobs Client
    • End to end tutorial
    • Full SDK Reference
  • Instances
    • Instance Types
      • Free Instances (Free Tier)
      • Instance Tiers
  • Gradient Cluster
    • Overview
    • Setup
      • Managed Private Clusters
      • Self-Hosted Clusters
        • Pre-installation steps
        • Gradient Installer CLI
        • Terraform
          • Pre-installation steps
          • Install on AWS
          • Install on bare metal / VMs
          • Install on NVIDIA DGX
        • Let's Encrypt DNS Providers
        • Updating your cluster
    • Usage
  • Tags
    • Overview
    • Using Tags
  • Machines (Paperspace CORE)
    • Overview
    • Using Machines
      • Start a Machine
      • Stop a Machine
      • Restart a Machine
      • Update a Machine
      • Destroy a Machine
      • List Machines
      • Show a Machine
      • Wait For a Machine
      • Check a Machine's utilization
      • Check availability
  • Paperspace Account
    • Overview
    • Public Profiles
    • Billing & Subscriptions
    • Hotkeys
    • Teams
      • Creating a Team
      • Upgrading to a Team Plan
  • Release Notes
    • Product release notes
    • CLI/SDK Release notes
Powered by GitBook
On this page
  1. Notebooks

Using Notebooks

PreviousOverviewNextThe Notebook interface

Last updated 4 years ago

Create a Notebook

Choose your Base Container

Notebooks can be created by clicking Create Notebook button on the Notebooks tab. There are three types of base containers:

Recommended Containers (Basic)

All Containers (Basic)

Custom Containers (Advanced)

Choose the instance type

Optional Settings:

Name your Notebook

Provide a friendly name for your Notebook in the text field

Auto-shutdown

Workspace

Additionally, you have the option to select a remote Github repository to serve as the starting point for your Notebook. If the repository is private, you need to provide access credentials (username and a password/apiKey). Also, you can provide an optional Github ref that points to a specific version of the repository.

Click Create

That's it! Your Notebook will start once it has been created 🚀

Once created, your Notebook will automatically start. Just click Open and your Notebook will appear in a new browser tab.

Create a Notebook

Syntax

gradient notebooks create [options...]

Notebook Parameters Basics

  • Machine Type: Such as --P100 or --C7 or --TPU

  • Container: Such as --tensorflow/tensorflow:1.5.1-gpu

Example Use

Usage: gradient notebooks create \
    --name "my job" \
    --container "http://dockerhub.com/mycontainer" \
    --machineType "P5000" \
    --command "/paperspace/run.sh"
    --projectId "someProjectID"

Notebook Parameters Complete List

Argument

Description

name

Notebook name

projectId

Project ID

machineType

An optional machine type to run the job on: either 'GPU+', 'P4000', 'P5000', 'P6000', 'V100', 'K80', 'P100', or 'TPU'. [Required]

container

A reference to a docker image in a public or private docker registry. Docker image repository references must be in lowercase and may include a tag and a hostname prefix followed by a slash; if committed the hostname defaults to that of the public Docker Hub registry. An example docker image reference: docker.io/mynamespace/myimage:mytag. A container name may be mixed case. [Required]

containerUser

Container user

command

Command (executed as /bin/sh -c 'YOUR COMMAND')

clusterId

ID of the cluster to run the notebook.

registryUsername

Registry username

registryPassword

Registry password

shutdownTimeout

Shutdown timeout in hours

isPreemptible

Use a preemptible instance type

tag

One or multiple tags that you want to add to the notebook

workspace

S3 url or git repository. Directory uploads are not yet supportedapiKey

workspacePassword

Workspace password

workspaceRef

Git commit hash, branch name or tag

environment

Environment variables

shutdownTimeout

Shutdown timeout in hours

apiKey

API key to use this time only

Start a Notebook

When you click Start, a window will appear that presents a few options such as the name, the instance type, and the Auto-Shutdown interval.

Start a Notebook

Start a stopped notebook again. The notebook can be started on a different cluster or machine type.

Syntax

gradient notebooks start [options...]

Options:

Option

Description

id

Notebook ID [required]

machineType

Virtual Machine type label e.g. P5000 [required]

clusterId

Cluster ID

name

Notebook name

shutdownTimeout

Shutdown timeout in hours

Stop a Notebook

Click the Stop button to stop your Notebook from running. When your Notebook is stopped, the billing session will end. You'll see how long your Running Time was for the latest session.

Stop a Notebook

Stop a running notebook.

Syntax

gradient notebooks stop [options...]

Options:

Option

Description

id

Notebook ID [required]

apiKey

API key to use this time only

Delete a Notebook

Click Delete to remove your Notebook. Careful - this will permanently delete your Notebook!

You can only delete a notebook once it has stopped running.

Delete a Notebook

Delete an existing notebook.

Syntax

gradient notebooks delete [options...]

Options:

Option

Description

id

Notebook ID [required]

apiKey

API key to use this time only

Rename a Notebook

You can rename any Notebook, whether it is running or stopped, in order to help organize your work. Simply click on the notebook name and it will become an editable text field; press enter to commit the change:

These are the templates that are most popular on Gradient. They include the most common ML frameworks and libraries. to discover which Notebook Base Container will best suit your use case, then choose it from the options below:

These are additional templates that are made available in Gradient as a 1-click option. to discover which Notebook Base Container will best suit your use case, then choose it from the options below:

If you need to import an existing container, visit the Custom Containers section. Learn more .

This is that your notebook will run on. Our hardware is configured to work with the tools and packages in each of the provided containers.

If you have a , you will have the ability to set a custom auto-shutdown interval.

Click here
Click here
here
instance type
Gradient subscription
Recommended containers
All containers
Enter a custom container by enabling Advanced options