Skip to content

Instantly share code, notes, and snippets.

@macedd
Created March 18, 2015 07:01
Show Gist options
  • Save macedd/bd2bd5e6baf1a88cc5e8 to your computer and use it in GitHub Desktop.
Save macedd/bd2bd5e6baf1a88cc5e8 to your computer and use it in GitHub Desktop.
SSH Remote IPython Console Grunt Commands
/**
* IPython Commands
*/
shell: {
ipnb_kernel: {
command: 'ssh me@server "nohup ipython kernel &> kernel.log &"'
},
ipnb_kernel_json: {
command: 'rsync -t me@server:~/.ipython/profile_default/security/kernel* ./kernel/'
},
ipnb_console: {
command: 'nohup ipython qtconsole --ssh=me@server --existing=kernel/$(ls -t ./kernel | head -n1) &> kernel.log &'
},
ipnb_kernel_kill: {
command: 'ssh me@server "killall ipython"'
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment