Created
September 17, 2015 21:03
-
-
Save pfig/731610c6948ba0d6fe48 to your computer and use it in GitHub Desktop.
iPython notebooks managed by launchctl
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>be.pfig.notebooks</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>ipython</string> | |
<string>notebook</string> | |
<string>/Users/pfig/Development/notebooks</string> | |
</array> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
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
#!/bin/bash | |
# | |
# If you're not using pyenv, you'll need to run this with sudo | |
# | |
set -ex | |
pip install ipython\[notebook\] | |
pip install ipywidgets |
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
#!/bin/bash | |
set -ex | |
mkdir -p ~/Library/LaunchAgents | |
mkdir -p ~/Development/notebooks | |
mv be.pfig.notebooks.plist ~/Library/LaunchAgents | |
launchctl load -w ~/Library/LaunchAgents/be.pfig.notebooks.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment