2016年6月23日 星期四

[Mac] how to open Jupiter notebook (ipython notebook) by one click

1. Install a simple command tool ‘nbopen'

  GitHub: https://github.com/takluyver/nbopen

# pip install nbopen

 

2.Use Mac Automator  to make a simple Mac Application

a. open Automator to make a application, which will execute a shell script.  It will pass all file parameter as input parameter

b.for loop to execute nbopen   Jupiter notebook

#Please make sure you can find nbopen in your terminate, if you encounter problem, you can try to give a full path of nbopen ().

## Here is the example on my laptop
for f in "$@"
do
/usr/local/bin/nbopen "$f" &
doneNewImage

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote