ImportError:无法导入名称PolyDrawTool(无法导入PolyDrawTool)

2024-10-03 02:43:03 发布

您现在位置:Python中文网/ 问答频道 /正文

I am Trying to run this example(无法导入-PolyDrawTool)

Python2.7
bokeh0.12版

获取导入错误:

ImportError                               Traceback (most recent call last)
<ipython-input-1-cc6a3ae44bb8> in <module>()
      1 from bokeh.plotting import figure, output_file, show
----> 2 from bokeh.models import PolyDrawTool
      3 
      4 output_file("tools_poly_draw.html")
      5 

ImportError: cannot import name PolyDrawTool

Tags: tofromimportdocsoutputhtmlbokeham
1条回答
网友
1楼 · 发布于 2024-10-03 02:43:03

PolyDrawTool是一个非常新的特性,比0.12版本更新得多。你需要更新你的Bokeh版本才能使用它。当前的最新版本是0.12.15。在

相关问题 更多 >