-
Notifications
You must be signed in to change notification settings - Fork 48
Update to Bokeh latest (0.12.3) and fix test plot #299
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,7 +222,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"!pip install bokeh==0.11.1" | ||
"!pip install bokeh" | ||
] | ||
}, | ||
{ | ||
|
@@ -251,8 +251,9 @@ | |
"outputs": [], | ||
"source": [ | ||
"import bokeh\n", | ||
"from bokeh.io import output_notebook, push_notebook, show\n", | ||
"from bokeh.models import ColumnDataSource\n", | ||
"from bokeh.plotting import figure, show, output_notebook" | ||
"from bokeh.plotting import figure" | ||
] | ||
}, | ||
{ | ||
|
@@ -324,7 +325,7 @@ | |
"source = ColumnDataSource(data=dict(x=x, y=y))\n", | ||
"\n", | ||
"p = figure(title=\"Bokeh example\", plot_height=300, plot_width=600)\n", | ||
"p.line(x, y, color=\"#2222aa\", line_width=3, source=source, name=\"foo\")" | ||
"p.line('x', 'y', color=\"#2222aa\", line_width=3, source=source, name=\"foo\")" | ||
] | ||
}, | ||
{ | ||
|
@@ -357,7 +358,7 @@ | |
" elif f == \"cos\": func = np.cos\n", | ||
" elif f == \"tan\": func = np.tan\n", | ||
" source.data['y'] = A * func(w * x + phi)\n", | ||
" source.push_notebook()" | ||
" push_notebook(handle=handle)" | ||
] | ||
}, | ||
{ | ||
|
@@ -385,7 +386,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"show(p)" | ||
"handle = show(p, notebook_handle=True)" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I pulled down the code and ran as follows:
Now I'm getting this error in the browser console when running this dashboard:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I only see that error with Bokeh 0.11.1. Did you update to Bokeh 0.12.3 in your environment? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll give this another test on my end today. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not see the error mentioned above with the new notebook. The intiial bokeh plot appears. However, the ipywidgets associated with it have no effect on its output. |
||
] | ||
}, | ||
{ | ||
|
@@ -413,7 +414,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"from IPython.html.widgets import interact\n", | ||
"from ipywidgets import interact\n", | ||
"_ = interact(update, f=[\"sin\", \"cos\", \"tan\"], w=(0,100), A=(1,10), phi=(0, 10, 0.1))" | ||
] | ||
}, | ||
|
@@ -622,7 +623,7 @@ | |
"views": [] | ||
} | ||
}, | ||
"version": "1.1.2" | ||
"version": "1.2.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if we keep this version scoped, to 0.12.x. It's possible that a future update (such as 0.13) could break us again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I pinned to Bokeh 0.12.3.