我想在我的 Mac 启动时打开一个 Jupyter 笔记本页面。具体来说,我使用 launchctl 来启动 Jupyter notebook。
但是,重启后,网页显示密码或令牌进行验证:
这是我在 High Sierra 上使用的 launchctl 脚本。我发现输入令牌很费力。那么是否可以在重新启动时忽略令牌验证,就像您输入时一样jupyter notebook
?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
<key>Label</key>
<string>me.jupyter</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/jupyter</string>
<string>notebook</string>
<string>--no-browser</string>
<string>--port</string>
<string>9090</string>
<string>--notebook-dir</string>
<string>/Users/me/jupyter/</string>
</array>
<key>KeepAlive</key>
<true />
<key>RunAtLoad</key>
<true />
<key>StandardErrorPath</key>
<string>/Users/me/jupyter/jupyter-notebook.stderr</string>
<key>StandardOutPath</key>
<string>/Users/mejupyter/jupyter-notebook.stdout</string>
</dict>
</plist>