Created
February 14, 2018 07:32
-
-
Save awade/25f312cc94a4be2ed27799db22f457c6 to your computer and use it in GitHub Desktop.
.plist file for running jupyter-notebook in background using launchctl on MacOS
This file contains hidden or 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>Disabled</key> | |
<false/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>local.jupyter.notebook</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/YOURUSERNAME/pyenv/bin/jupyter-notebook</string> | |
<string>--notebook-dir</string> | |
<string>/Users/YOURUSERNAME/AND/WORKING/PATH</string> | |
<string>--no-browser</string> | |
</array> | |
<key>StandardErrorPath</key> | |
<string>/Users/YOURUSERNAME/Library/LaunchAgents/jupyter-notebook.stderr</string> | |
<key>StandardOutPath</key> | |
<string>/Users/YOURUSERNAME/Library/LaunchAgents/jupyter-notebook.stdout</string> | |
<key>WorkingDirectory</key> | |
<string>/Users/YOURUSERNAME/AND/WORKING/PATH</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment