【问题标题】:Why do I have to export my browser every time I launch jupyter notebook for it to work?为什么每次启动 jupyter notebook 时都必须导出浏览器才能正常工作?
【发布时间】:2025-12-04 15:35:02
【问题描述】:
如果我只是使用命令
jupyter 笔记本
在终端中,我的 jupyter notebook 不会启动。我必须使用以下命令:
export BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
让它工作。我该如何解决这个问题?
【问题讨论】:
标签:
python
browser
terminal
jupyter-notebook
launch
【解决方案1】:
一种可能的选择是放
export BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
表达到~/.bash_profile文件中。
其他选项是运行带有--no-browser 标志的jupyter 命令,然后自己直接从浏览器转到URI。