Git Product home page Git Product logo

nbsubmit's Introduction

Submit Jupyter Notebooks for remote execution

This Python package provides a simplified interface for running a Jupyter Notebook non-interactively on a remote machine. It currently supports Supercomputers running SLURM, in the future I'd like to add also HTCondor support, possibly interfacing with OpenScienceGrid.

Use case

The idea is that you develop and test on a small dataset your custom analysis Jupyter Notebook locally. Once the Jupyter Notebook is finalized, you would like to run it on a large dataset or on a large amount of medium-sized dataset. You need access to a large amount of memory and disk, therefore you would like to use a Supercomputer you already have access to. For example Comet at the San Diego Supercomputer Center.

How it works

This package takes care of copying the Notebook to the Supercomputer, prepare a SLURM job and submit it to the scheduler. Once the job starts, the Jupyter Notebook is executed non-interactively with jupyter nbconvert inside a Singularity Container. You can monitor its execution without ever leaving the Notebook on your local machine. Once the job completes, nbsubmit allows you to copy back the executed Notebook (with plots included) and any output that was produced in the same folder.

Large data files

If you are processing files larger than ~100GB, it is better to transfer them first to the Supercomputer with Globus Online to your SCRATCH space (e.g. on Comet it is /oasis/scratch/comet/$USER/temp_project/), and then point the Notebook to that folder.

Same for the output files, you can save and automatically retrieve small files located in the same folder as the Notebook. Save instead large files on your SCRATCH space and copy them with Globus Online.

Examples

See the examples/ folder for example Notebooks and more documentation.

nbsubmit's People

Contributors

zonca avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.