Last active
August 29, 2015 14:15
-
-
Save nujabes/718ef7779f233f7cd770 to your computer and use it in GitHub Desktop.
start iPython easily on osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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