当Web浏览器挂起时,Bokeh服务示例未运行(之前)

时间:2017-04-28 16:05:18

标签: python tornado jupyter bokeh

我在Firefox上运行Ubuntu 14.04(Anaconda3 ... 32位版本)和另一台机器16.04 LTS(Anacond3 ... 64位版本)并看到问题here并按照安装说明但这并没有修复任何一台机器(我的Tornado版本是4.4.2)。

我正在尝试使用“与bokeh.client连接”here

在我的16.04机器上,我有从我的jupyter笔记本(在输入终端后输入散景服务)和终端(通过输入)运行的散景服务示例:散景服务 - 显示my_bokeh_example.py < - 来自上面bokeh.client链接下的代码),但更新了numpy和pandas,现在它们不起作用。

...所以我想我会在我的14.04机器上安装Anaconda并且它在jupyter笔记本中工作(在输入终端后输入:散景服务)但是终端无法正常工作命令(散景服务 - 显示my_bokeh_example.py

在我的16.04机器上,我尝试卸载/重新安装散景并重新启动(几次),但这不起作用。当它运行时,我运行了几次,它会显示变化的摇摆正弦图(因为它应该看起来),然后其他时候会显示一个冻结,有一个移动图),现在什么也没做,只是打开一个新的选项卡什么都不做。

在控制台中我看到:

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 ‘\9 ’.  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和/或127.0.0.1,并且有一个非常基本的/ etc / hosts文件)或其他一些网络内容会阻止它吗?

提前致谢!

CD

1 个答案:

答案 0 :(得分:0)

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中创建“真正的Bokeh应用程序”,然后按照说明和示例进行操作。这些是使用bokeh serve myapp.py

运行的应用程序