Giter VIP home page Giter VIP logo

o2-tools's Introduction

o2-tools

Tools for use with Orchestra 2, an HPC cluster managed by the HMS Resesarch Computing group.

  • jobinfo.sh Get info on SLURM jobs.
  • jupyter_o2 Run jupyter over ssh and connect to it in your browser.

jobinfo.sh

A bash script that provides information on your SLURM jobs.

Usage: jobinfo or jobinfo <job id>
Tab autocompletion of the job id is supported.

Source this script in your ~/.bashrc file.

jupyter_o2

A command line tool to launch and connect to a Jupyter session on O2. (Now available as a package, jupyter-o2)

Usage: jupyter_o2 <USER> <subcommand>

Example: jupyter_o2 js123 notebook

This will follow the procedure described on the O2 wiki. jupyter_o2 will launch an X11-enabled SSH session with port forwarding, start an interactive node running jupyter notebook, SSH into that interactive node to allow requests to be forwarded, and finally open the notebook in your browser.

Configuration, etc.

Installation

Run jupyter_o2 with ./jupyter_o2 or copy the file into a folder within your $PATH.

Edit .jupyter-o2.cfg

  • After running jupyter_o2 once, cancel at the PIN entry step using Ctrl-C. A configuration file should have been created at ~/.jupyter-o2.cfg. Edit this file.
  • Change MODULE_LOAD_CALL and SOURCE_JUPYTER_CALL to commands that activate your jupyter environment (more description in the file itself). If one or both of these are not necessary, deleting everything after the = will set it to an empty string.
  • Choose a DEFAULT_JP_PORT that is open on your machine, if the current default (8887) isn't already open. The port can also be specified using jupyter_o2 -p <port>.

Requirements

Packages
  • Pexpect
Optional
  • dnspython
  • pyobjc-framework-Quartz
  • pinentry (a command line tool)

jupyter_o2 has been tested with Python versions 2.7 and 3.6, and Pexpect version 4.3. However, other versions may work just as well.

Operating system

jupyter_o2 has been tested on MacOS. It may work on Linux and it would likely require both Cygwin and a Cygwin version of Python to work on Windows (for Pexpect and SSH).

o2-tools's People

Contributors

aaronkollasch avatar

Watchers

 avatar  avatar  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.