【发布时间】:2020-01-30 19:54:03
【问题描述】:
以下示例应该可以工作,但它需要 selenium 包(据我了解,chartify 使用 bokeh 包构建交互式图表并使用 selenium 截屏)
import chartify
chartify.examples.plot_scatter()
上面的代码不起作用,因为我无法为 Selenium 配置驱动程序,这通常与此类似:
from selenium import webdriver
driver = webdriver.Chrome(executable_path=(my_path + '/chromedriver)')
如何将这个driver 对象传递给chartify?
【问题讨论】:
-
github.com/spotify/chartify 向下滚动到“安装”。您不需要传递驱动程序......它会启动它,但将依赖 chromedriver 和 chrome 在路径中。 (老实说,如果可以的话,我会避免使用屏幕截图部分。您应该能够输出 HTML 文件?)
标签: python selenium selenium-webdriver bokeh chartify