Giter Club home page Giter Club logo

jump's Introduction

jump

Conda Version Conda Downloads

Running remote jupyter notebooks in a local browser window.

Free software: MIT license

Getting Started

conda install -c conda-forge jump
jump REMOTENAME

For options, type

jump --help

Examples

Starting a new notebook server in remote conda environment myenv on a remote machine mycluster

jump mycluster -e myenv --new

Starting a new jupyter lab server in remote conda environment myenv on a remote machine mycluster

jump mycluster --lab -e myenv --new

Connecting to an existing jupyter server

jump mycluster -e myenv

Starting a new notebook server with remote module cuda/9.2 loaded for GPU support

jump mycluster -e myenv --new -m cuda/9.2

Killing a notebook server

jump mycluster -e myenv --kill

Requirements

On local (UNIX) machine:

  • plumbum and click (are installed by the conda install command)
  • ssh

On remote machine:

  • anaconda or miniconda
  • jupyter notebook (at least installed in one conda environment, jupyter > 5.1 required for the --kill option)
  • jupyter lab (to support the --lab option)
  • recommended: nb_conda

Windows systems are not supported.

Efficient SSH Setup

In order to use this script efficiently, it is desirable to have an efficient setup in your ~/.ssh/config file.

Concretely, you should prevent your ssh connection from prompting for a password everytime you rune a local command, like this:

Host *
    ControlMaster auto
    ControlPath /tmp/ssh_mux_%h_%p_%r
    ControlPersist 60m
    ServerAliveInterval 90

Furthermore, you will want to set up shortcuts for the servers that you use most often:

Host YOUR_SHORTCUT
    HostName FULL_REMOTE_NAME
    DynamicForward 8080
    User YOUR_USER_NAME_ON_THE_REMOTE`

If you have remotes that require tunneling through a login node, you may also want to define those remotes explicitly:

Host NAME_OF_REMOTE
    ProxyCommand ssh FULL_LOGIN_NODE_NAME_OR_SHORTCUT -W %h:%p

jump's People

Contributors

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