Skip to content

Paperspace CLI Manager is a simple CLI tool for managing Paperspace Gradient notebooks, offering faster control and automatic session handling without relying on the web UI.

Notifications You must be signed in to change notification settings

jekverse/Paperspace-CLI-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paperspace CLI Manager

Project Screenshot

English | Bahasa Indonesia

Paperspace CLI Manager is the ideal solution for users frustrated with the slow and often buggy Paperspace Gradient UI. This CLI-based manager allows you to manage your Paperspace Gradient notebooks quickly and efficiently through the terminal, eliminating the need to rely on the web UI.

With this repository, you can handle various notebook configurations and management directly from the command line, removing the need to wait for the often sluggish web interface.

Features

Here are the main features of Paperspace CLI Manager:

  1. Create new notebooks: Create notebooks directly from the terminal without using the web UI.
  2. Start, stop, and delete notebooks: Fully control your notebooks from the command line.
  3. Check machine availability: Quickly and in real-time check GPU or other machine availability.
  4. View notebook details: Get detailed information about the notebooks you're managing.

Key Features

Beyond the basic functionalities, this repository also includes advanced features not available in the Paperspace Gradient web interface:

  1. Bypass the 6-hour notebook session limit: Automatically monitor and restart notebooks if they stop due to reaching the 6-hour time limit.
  2. Automatically check GPU availability: If the desired GPU is unavailable, this script will check every 30 seconds until one becomes available, eliminating the need for manual checks.

This repository will continue to be developed with additional features in the future!

Installation

Using a Virtual Environment

To avoid dependency conflicts, it is highly recommended to use a virtual environment (venv) in Python. Make sure you're using Python version 3.7 before proceeding.

  1. Ensure Python 3.7 is installed: If not, download and install Python 3.7 from python.org.

  2. Create a virtual environment: Create a virtual environment with Python 3.7 to prevent dependency conflicts:

    python3.7 -m venv venv
  3. Activate the virtual environment:

    • On macOS/Linux:
      source venv/bin/activate
    • On Windows:
      .\venv\Scripts\activate
  4. Install required packages: After activating the virtual environment, install the necessary packages with:

    pip install -r requirements.txt
  5. Set up Paperspace Token & Project_ID: After all packages are installed, run Enter Paperspace Token & Project_ID with the command:

    python setup.py
  6. Run Paperspace CLI Manager: Run Paperspace Gradient CLI Manager with:

    python main.py

Using Docker

For a simpler setup, you can also run Paperspace CLI Manager using Docker. Here are the steps:

  1. Ensure Docker is installed on your computer.
  2. Run setup.py:
    python3 setup.py
  3. Build the Docker image:
    docker build -t paperspace-cli-manager .
    Wait for the build process to complete.
  4. Run with Docker:
    docker run -it --rm paperspace-cli-manager

After completing the steps above, you're ready to use Paperspace Gradient CLI Manager in your configured environment.

Contributors

"This repository was created with dedication by me and my BestFriend, ChatGPT. We collaborated to provide a fast and efficient solution for Paperspace Gradient users who prefer using the command line. I am also deeply grateful to Nocrypt Sensei for all the help and support he has provided."

About

Paperspace CLI Manager is a simple CLI tool for managing Paperspace Gradient notebooks, offering faster control and automatic session handling without relying on the web UI.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published