Skip to content

Instantly share code, notes, and snippets.

@awade
Created February 14, 2018 07:32
Show Gist options
  • Save awade/25f312cc94a4be2ed27799db22f457c6 to your computer and use it in GitHub Desktop.
Save awade/25f312cc94a4be2ed27799db22f457c6 to your computer and use it in GitHub Desktop.
.plist file for running jupyter-notebook in background using launchctl on MacOS
<?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