passing some tests on py3, all on py2
This commit is contained in:
@@ -246,9 +246,12 @@ def interactive_boxchart(datadf,fieldname,extratitle=''):
|
||||
|
||||
return script,div
|
||||
|
||||
import holoviews as hv
|
||||
hv.extension('bokeh')
|
||||
renderer = hv.renderer('bokeh')
|
||||
try:
|
||||
import holoviews as hv
|
||||
hv.extension('bokeh')
|
||||
renderer = hv.renderer('bokeh')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
def interactive_activitychart(workouts,startdate,enddate,stack='type'):
|
||||
|
||||
@@ -908,7 +911,12 @@ def interactive_histoall(theworkouts):
|
||||
axis_label="Cumulative % of strokes"),'right')
|
||||
|
||||
plot.sizing_mode = 'scale_width'
|
||||
script, div = components(plot)
|
||||
try:
|
||||
script, div = components(plot)
|
||||
except ValueError:
|
||||
script = ''
|
||||
div = ''
|
||||
|
||||
return [script,div]
|
||||
|
||||
def course_map(course):
|
||||
@@ -4249,7 +4257,11 @@ def interactive_otw_advanced_pace_chart(id=0,promember=0):
|
||||
|
||||
hover.mode = 'mouse'
|
||||
|
||||
script, div = components(plot)
|
||||
try:
|
||||
script, div = components(plot)
|
||||
except:
|
||||
script = ''
|
||||
div = ''
|
||||
|
||||
return [script,div]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user