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.
Here are the main features of Paperspace CLI Manager:
- Create new notebooks: Create notebooks directly from the terminal without using the web UI.
- Start, stop, and delete notebooks: Fully control your notebooks from the command line.
- Check machine availability: Quickly and in real-time check GPU or other machine availability.
- View notebook details: Get detailed information about the notebooks you're managing.
Beyond the basic functionalities, this repository also includes advanced features not available in the Paperspace Gradient web interface:
- Bypass the 6-hour notebook session limit: Automatically monitor and restart notebooks if they stop due to reaching the 6-hour time limit.
- 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!
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.
-
Ensure Python 3.7 is installed: If not, download and install Python 3.7 from python.org.
-
Create a virtual environment: Create a virtual environment with Python 3.7 to prevent dependency conflicts:
python3.7 -m venv venv
-
Activate the virtual environment:
- On macOS/Linux:
source venv/bin/activate
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
-
Install required packages: After activating the virtual environment, install the necessary packages with:
pip install -r requirements.txt
-
Set up Paperspace Token & Project_ID: After all packages are installed, run
Enter Paperspace Token & Project_ID
with the command:python setup.py
-
Run Paperspace CLI Manager: Run
Paperspace Gradient CLI Manager
with:python main.py
For a simpler setup, you can also run Paperspace CLI Manager using Docker. Here are the steps:
- Ensure Docker is installed on your computer.
- Run setup.py:
python3 setup.py
- Build the Docker image:
Wait for the build process to complete.
docker build -t paperspace-cli-manager .
- 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.
"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."