Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not run this in python3 (or python 2.7.17 either) #8

Open
gthaker opened this issue Jun 30, 2020 · 1 comment
Open

can not run this in python3 (or python 2.7.17 either) #8

gthaker opened this issue Jun 30, 2020 · 1 comment

Comments

@gthaker
Copy link

gthaker commented Jun 30, 2020

Should it be possible to run this code in modern python3 versions? I am running w/ python 3.6.9 and I get the error:

from bokeh.plotting import figure, output_notebook, show, output_file
from bokeh.palettes import Blues, BuGn, viridis, Paired, plasma, PuBuGn
<Tool,CategoricalAxis, LabelSet, Label, ColumnDataSource, widgets,CategoricalColorMapper,LinearInterpolator, LinearColorMapper, LogColorMapper
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'Color'

@gthaker
Copy link
Author

gthaker commented Jun 30, 2020

from bokeh.colors import Color

works, but then


ModuleNotFoundError Traceback (most recent call last)
in
6 from bokeh.layouts import row, column, widgetbox
7 from bokeh.models.glyphs import Patches, Line, Circle
----> 8 from bokeh.charts import Histogram, output_file, show, Bar, color, Scatter
9 from bokeh.resources import CDN
10 import sklearn

ModuleNotFoundError: No module named 'bokeh.charts'

Looks like bohek.charts is moved to bkcharts?

I would be willing to try to port this to Python3, should it be possible? Ton of work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant