hcc-python icon indicating copy to clipboard operation
hcc-python copied to clipboard

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

Open gthaker opened this issue 4 years ago • 1 comments

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 avatar Jun 30 '20 02:06 gthaker

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?

gthaker avatar Jun 30 '20 12:06 gthaker