Skip to content

Instantly share code, notes, and snippets.

@xiaoouwang
Last active February 3, 2020 15:55
Show Gist options
  • Save xiaoouwang/08053644b6aabc666acb0b5894419cc1 to your computer and use it in GitHub Desktop.
Save xiaoouwang/08053644b6aabc666acb0b5894419cc1 to your computer and use it in GitHub Desktop.
an apple script to open jupyter notebook by double clicking
-- credits to https://stackoverflow.com/questions/30953227/double-click-to-open-an-ipython-notebook
variable="'$1'"
the_script='tell application "terminal" to do script "nbopen '
osascript -e "${the_script}${variable}\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment