Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2013 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5440218 to your computer and use it in GitHub Desktop.
Save anonymous/5440218 to your computer and use it in GitHub Desktop.
Start Ipython notebook server Make a script, compile to an app, and drag/drop a folder on the app to start the server in that directory
on open dropped_dir
tell application "Terminal"
set dirname to do shell script "perl -e \"print quotemeta ('" & POSIX path of item 1 of dropped_dir & "');\""
do script "cd " & dirname & "; ipython notebook --pylab; exit"
end tell
end open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment