Skip to main content

Submit HPC jobs via ssh from Python

Project description

A Python-based and jupyter notebook-friendly job manegement system for remote job management systems.

pyjobs allows to submit/list/detele/track jobs on Univa Grid Engine (UGE) or Sun Grid Engine (SGE). It enables to remotely execute qsub, qstat, qdel (via ssh) and show the log/error files on local jupyter notebook (or jupyter lab). It can also make it possible to execute jobs on other machines via ssh and nohup (under developments).


  • ssh environment to remote machine. pyjobs is designed to be run on local machine. ssh connection to remote machines (such as ABCI) must be prerequired.


pyjobs is designed to be run on local Jupyter notebook environment.

On jupyter notebooks, run

from pyjobs import *
import subprocess,json

to initialize jobs instance of pyjobs.

jobs instance is used to manage your jobs on a specific remote (or local) machine. jobs.qsub() jobs.kill() jobs.rm() jobs.bye()

  • Run job

  • Show job list,no_update=False)
  • Assign a job to the jobs instance later


– Delete a latest job and its log


  • shell support with ssh
def shellrun(commandline,server,cd,ssh_bash_profile=True,nohup=False)
def run_via_ssh(commandline,server,cd,ssh_bash_profile=True,nohup=False)
  • when nohup=True, commandline shuould be a shell file.

Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sshjob, version 0.0.dev49
Filename, size File type Python version Upload date Hashes
Filename, size sshjob-0.0.dev49.tar.gz (13.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page