从终端启动 jupyter notebook 也会启动信号桌面信使
Launching jupyter notebook from terminal starts signal desktop messenger as well
当我从 ubuntu 18.04 的终端启动 jupyter notebook 时,信号桌面信使应用程序也会启动。有没有人遇到过这个问题并且知道如何解决?谢谢
我在这里遇到了同样的问题 (Ubuntu 18.04),我发现 运行 *.html-Files 的默认应用程序也已更改为 Signal Desktop App。将 *.html 的默认应用程序向后更改为 Firefox 后,jupyter notebook 已在浏览器中启动。
我找到了一种(可能)与 Jupyter 更直接相关的方法。您可以创建一个 Jupyter 配置文件并将浏览器首选项更改为您喜欢的任何内容。类型:
jupyter notebook --generate-config
在命令行上。它会告诉您配置文件的创建位置(可能 $HOME/.jupyter/jupyter_notebook_config.py
)。打开配置文件并查找以下行:
#c.NotebookApp.browser = ''
您可以取消注释并更改它以包含您想要的网络浏览器。例如,这就是我将其更改为 firefox 的方式:
c.NotebookApp.browser = '/usr/lib/firefox/firefox'
保存文件,退出并重试。
这在 Ubuntu 16.04.6 (LTS) 上对我有用,我遇到了类似的问题,但 didn't work for me. The situation I found myself in was that jupyter launched Firefox correctly in a normal environment but it launched the wrong application when I was in a directory that used a different python version which was being controlled via pyenv
. I was launching the notebook like this: pipenv run jupyter lab
. For completeness it was launching Signal for me too and - no - I don't really understand why. I found help in the thread connected to this issue 在 jupyter/notebook Github 页面上。
当我从 ubuntu 18.04 的终端启动 jupyter notebook 时,信号桌面信使应用程序也会启动。有没有人遇到过这个问题并且知道如何解决?谢谢
我在这里遇到了同样的问题 (Ubuntu 18.04),我发现 运行 *.html-Files 的默认应用程序也已更改为 Signal Desktop App。将 *.html 的默认应用程序向后更改为 Firefox 后,jupyter notebook 已在浏览器中启动。
我找到了一种(可能)与 Jupyter 更直接相关的方法。您可以创建一个 Jupyter 配置文件并将浏览器首选项更改为您喜欢的任何内容。类型:
jupyter notebook --generate-config
在命令行上。它会告诉您配置文件的创建位置(可能 $HOME/.jupyter/jupyter_notebook_config.py
)。打开配置文件并查找以下行:
#c.NotebookApp.browser = ''
您可以取消注释并更改它以包含您想要的网络浏览器。例如,这就是我将其更改为 firefox 的方式:
c.NotebookApp.browser = '/usr/lib/firefox/firefox'
保存文件,退出并重试。
这在 Ubuntu 16.04.6 (LTS) 上对我有用,我遇到了类似的问题,但 pyenv
. I was launching the notebook like this: pipenv run jupyter lab
. For completeness it was launching Signal for me too and - no - I don't really understand why. I found help in the thread connected to this issue 在 jupyter/notebook Github 页面上。