I have Python 3.4.3 |Anaconda 2.1.0 (64-bit) on linux and bokeh 0.8.2. None of the bokeh-server examples in
我在Linux和bokeh 0.8.2上有Python 3.4.3 | Anaconda 2.1.0(64位)。没有散景服务器示例
https://github.com/bokeh/bokeh/tree/master/examples/glyphs
are rendering the plot. I can see the widgets and interact with them, but no plot is rendered. The Javascript console says:
正在渲染情节。我可以看到小部件并与它们进行交互,但不会呈现任何情节。 Javascript控制台说:
Bokeh: could not set initial ranges
散景:无法设置初始范围
I tried with multiple browsers (Chrome, IE and Firefox) with no success. Anyone has a solution to this?
我尝试使用多种浏览器(Chrome,IE和Firefox)但没有成功。有人有解决方案吗?
2 个解决方案
#1
OK, after 0.8.2 a change was made that simplified "auto ranging" significantly. However, older versions of Bokeh are not forward-compatible with this change. You need to run the version of the example that came out with the release:
好的,在0.8.2之后,进行了一项改进,简化了“自动测距”。但是,旧版本的Bokeh与此更改并不向前兼容。您需要运行该版本随附的示例版本:
https://github.com/bokeh/bokeh/blob/0.8.2/examples/glyphs/data_tables_server.py
Alternatively you can install a current "dev build" with these instructions:
或者,您可以使用以下说明安装当前的“dev build”:
http://bokeh.pydata.org/en/latest/docs/installation.html#developer-builds
Finally, there will be a 0.9 release candidate next week with release planned for 2015/05/14.
最后,下周将有一个0.9发布候选版本,计划于2015/05/14发布。
#2
I had the same problem, and solved by clearing the browser's cache, as per this post on Bokeh's discussion group:
我有同样的问题,并通过清除浏览器的缓存来解决,根据Bokeh讨论组的这篇文章:
https://groups.google.com/a/continuum.io/forum/#!msg/bokeh/4ipIS0lariw/qmWzVSKHCAAJ
#1
OK, after 0.8.2 a change was made that simplified "auto ranging" significantly. However, older versions of Bokeh are not forward-compatible with this change. You need to run the version of the example that came out with the release:
好的,在0.8.2之后,进行了一项改进,简化了“自动测距”。但是,旧版本的Bokeh与此更改并不向前兼容。您需要运行该版本随附的示例版本:
https://github.com/bokeh/bokeh/blob/0.8.2/examples/glyphs/data_tables_server.py
Alternatively you can install a current "dev build" with these instructions:
或者,您可以使用以下说明安装当前的“dev build”:
http://bokeh.pydata.org/en/latest/docs/installation.html#developer-builds
Finally, there will be a 0.9 release candidate next week with release planned for 2015/05/14.
最后,下周将有一个0.9发布候选版本,计划于2015/05/14发布。
#2
I had the same problem, and solved by clearing the browser's cache, as per this post on Bokeh's discussion group:
我有同样的问题,并通过清除浏览器的缓存来解决,根据Bokeh讨论组的这篇文章:
https://groups.google.com/a/continuum.io/forum/#!msg/bokeh/4ipIS0lariw/qmWzVSKHCAAJ