A note on how you can double-click an .ipynb file on your Mac. As shown in the link below, you can create an application that starts jupyterlab with Automator and register it as the default application that opens the ipynb extension. HOW TO OPEN JUPYTER NOTEBOOKS WITH A DOUBLE CLICK (MAC OS) If you want to open it in the virtual environment of anaconda, you can not use it as it is (jupyterlab will open in the base environment), so I made a small change. Since the explanation of the above link is polite, only the changes are briefly described here.
variable="'$1'"
the_script='tell application "terminal" to do script "source activate my_env && jupyter lab '
osascript -e "${the_script}${variable}\""
The change from the link source is that source activate my_env &&
is added in the script.
reference To use Linux commands continuously
Related article: For Windows Open the ipynb file by double-clicking (Windows)
Recommended Posts