散景服务示例不是 运行(之前),因为网络浏览器挂起

Bokeh serve examples not running (were before) as web browser hangs

我 运行 在 Firefox Ubuntu 14.04(Anaconda3...32 位版本)和另一台机器 16.04 LTS(Anacond3...64 位版本)上看到问题 并按照安装说明进行操作,但这在两台机器上都没有解决(我的 Tornado 版本是 4.4.2)。

我正在尝试 "Connecting with bokeh.client" here

下的示例

在我的 16.04 机器上,我的两个 jupyter notebook 都有 bokeh serve 示例 运行(在终端中输入:bokeh serve) 并在终端中(通过键入:bokeh serve --show my_bokeh_example.py <-- 来自 bokeh.client link 以上),但更新了 numpy 和 pandas,现在它们不起作用。

...所以我想我会在我的 14.04 机器上安装 Anaconda 并且它可以在 jupyter notebook 中运行(在终端中输入:bokeh serve)但是没有'无法通过终端命令工作 (bokeh serve --show my_bokeh_example.py)

在我的 16.04 机器上,我尝试了 uninstalling/re-installing 散景并重新启动(多次),但没有用。当它确实起作用时,正如我 运行 它多次显示的那样,它会显示不断变化的摆动正弦图(看起来应该是这样),然后其他时候它会显示一个冻结的图形,一个移动的图形)现在除了打开一个新标签,什么都不做。

在控制台中我看到:

Expected ‘none’, URL, or filter function but found ‘gray’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh.min.css:1:34728
Expected color but found ‘default’.  Error in parsing value for ‘color’.  Declaration dropped.  bokeh.min.css:1:53023
Selector expected.  Ruleset ignored due to bad selector.  bokeh.min.css:1:53406
Unexpected end of file while searching for closing } of invalid rule set.  bokeh.min.css:2
Expected end of value but found ‘ ’.  Error in parsing value for ‘margin-top’.  Declaration dropped.  bokeh-widgets.min.css:157:458
Expected color but found ‘auto’.  Expected color but found ‘-webkit-focus-ring-color’.  Expected end of value but found ‘-webkit-focus-ring-color’.  Error in parsing value for ‘outline’.  Declaration dropped.  bokeh-widgets.min.css:157:775
Unknown pseudo-class or pseudo-element ‘-ms-input-placeholder’.  Ruleset ignored due to bad selector.  bokeh-widgets.min.css:157:1378
Unknown pseudo-class or pseudo-element ‘-webkit-input-placeholder’.  Ruleset ignored due to bad selector.  bokeh-widgets.min.css:157:1441
Unknown property ‘user-select’.  Declaration dropped.  bokeh-widgets.min.css:157:8610
Expected color but found ‘auto’.  Expected color but found ‘-webkit-focus-ring-color’.  Expected end of value but found ‘-webkit-focus-ring-color’.  Error in parsing value for ‘outline’.  Declaration dropped.  bokeh-widgets.min.css:157:8746
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:9232
Expected ‘none’, URL, or filter function but found ‘progid’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:20423
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:36209
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:47537
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:56285
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:56477
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:56567
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:69501
Expected ‘none’, URL, or filter function but found ‘alpha(’.  Error in parsing value for ‘filter’.  Declaration dropped.  bokeh-widgets.min.css:157:69678
Unknown property ‘-moz-box-shadow’.  Declaration dropped.  bokeh-widgets.min.css:157:75577
Unknown pseudo-class or pseudo-element ‘-ms-input-placeholder’.  Ruleset ignored due to bad selector.  bokeh-widgets.min.css:157:143534
Unknown pseudo-class or pseudo-element ‘-webkit-input-placeholder’.  Ruleset ignored due to bad selector.  bokeh-widgets.min.css:157:143599
Selector expected.  Ruleset ignored due to bad selector.  bokeh-widgets.min.css:157:145013
Unexpected end of file while searching for closing } of invalid rule set.  bokeh-widgets.min.css:158
[bokeh] setting log level to: 'info'  bokeh.min.js:4:23237
[bokeh] Websocket connection 0 is now open  bokeh.min.js:1:7316
Bokeh items were rendered successfull  bokeh.min.js:24:26320

iptables 中有什么东西(我可以使用 localhost and/or 127.0.0.1 并且有一个非常基本的 /etc/hosts 文件)或其他一些网络东西会阻止它吗?

提前致谢!

光盘

bokeh.client 示例具体 而不是 运行 如 bokeh serve --show myapp.py。根据该页面上的说明,它们 运行 分为两个步骤:

bokeh serve # no additional arguments

然后分别

python client_app.py

如果 client_app.py 像文档中的示例那样调用 session.show(...),那么浏览器应该会自动打开到正确的 URL(它更复杂并且会话 ID 为一部分)。

但是,我不推荐使用 bokeh.client 它主要用作测试工具。相反,按照 Building Bokeh Applications 中的说明和示例创建 "real Bokeh apps"。这些是 运行 和 bokeh serve myapp.py

的应用程序