如何在 Tor 浏览器中打开 jupyter 笔记本

时间:2021-04-23 20:57:31

标签: python jupyter-notebook jupyter

我正在尝试创建一个 twitter 插件,但由于我的 ISP 的限制,无法访问社交媒体,让我可以选择使用 Tor 浏览器访问包括 twitter 在内的社交媒体。但是,尽管我可以在 chrome 和 safari 中打开我的笔记本,但它们无法在我的 Tor 浏览器中打开。这是我得到的错误 无法连接

Firefox 无法与位于 localhost:8889 的服务器建立连接。

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Tor Browser is permitted to access the Web.

有没有人遇到过这种情况?任何有关如何克服此问题的提示的人都会有很大帮助。

1 个答案:

答案 0 :(得分:0)

有一个在 xenial 上安装 Firefox 浏览器使用 Jupyter notebook 的解决方案,包括使用 pip2 初始安装 jupyter notebook:

sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook

此解决方案已在以下平台上进行了测试:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:    16.04
Codename:   xenial.

它在 32 位 Chromenotebook 上运行

Jupyter notebook 将自动打开。但是,每次再次登录Jupiter,首先需要激活源:

source jupyter/bin/activate

然后:

jupyter notebook

开始。

Firefox and terminal screens