Related posts: Open an ipython notebook via double-click on osx
How can I open Ipython notebook from double click? I always cd to the directory of the notebook, then
open Automator, create new Application
Run Shell Script
Pass input
to as arguments
variable="'$1'"
the_script='tell application "terminal" to do script "nbopen '
osascript -e "${the_script}${variable}\""
Save the new application to Applications
directory as nb_open
nb_open
in the Applications folder. Don't forget to check "Always Open With".command + i
) > Open With (select nb_open if not selected already) > Click Change All...
. Done.You can use a project like nbopen that handle that and will open the browser on the right notebook + start an IPython server if one is not yet running.