Skip to content

Instantly share code, notes, and snippets.

@nujabes
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nujabes/718ef7779f233f7cd770 to your computer and use it in GitHub Desktop.
Save nujabes/718ef7779f233f7cd770 to your computer and use it in GitHub Desktop.
start iPython easily on osx
on run
set startPath to "/Users/Document/iPython" --change to your prefered path.
tell application "Terminal"
activate
do script with command "cd " & startPath & " && ipython notebook"
end tell
end run
on open the_files
repeat with i from 1 to the count of the_files
tell application "Finder"
set p to POSIX path of (item i of the_files)
end tell
tell application "Terminal"
activate
do script with command "ipython notebook " & quoted form of p as Unicode text
end tell
end repeat
end open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment