我想用散景来绘制像THIS这样的文件。我尝试导入以下软件包,但它不起作用:
在我的py文件中:
import bokeh
from bokeh.plotting import figure, output_notebook, show, legend
output_notebook()
错误:
File "plot.py", line 4
from bokeh.plotting import figure, output_notebook, show, legend, output_notebook()
^
SyntaxError: invalid syntax
ubuntu@ubuntu:~$ sudo python plot.py
Traceback (most recent call last):
File "plot.py", line 4, in <module>
from bokeh.plotting import figure, output_notebook, show, legend
ImportError: cannot import name legend