Skip to content

Commit

Permalink
Further explained dashboard.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
jbednar committed Jan 28, 2019
1 parent cd033d5 commit 29da688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/dashboard.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@
"- then create a DynamicMap that applies shading and spreading driven by the streams just created\n",
"- then return the overlay as in each of the simpler versions of `viewable` above\n",
"\n",
"As if that weren't confusing enough, here we had to use three different ways of making a DynamicMap: \n",
"One wrinkle here is that by default the `rasterize` operation automatically attaches the `RangeXY` stream parameters of the plot to the DynamicMap it creates, to make it responsive to changes in the visible viewport caused by zooming and panning. However, here we need to return the result of `rasterize` as the callback in a DynamicMap, which must be a static element, so we pass `rasterize(... dynamic=False)` and then explicitly attach the `RangeXY` stream to the `rasterized` DynamicMap later.\n",
"\n",
"As if all that weren't confusing enough, here we had to use three different ways of making a DynamicMap: \n",
"1. Creating one directly: `hv.DynamicMap(self.callbackmethod)`: makes the result of a callback displayable on updates\n",
"2. Wrapping an existing DynamicMap with an operation (`rasterize`, `shade`, `spread`, etc.): chains an operation on top of the output of something already dynamic, optionally attaching \"streams\" to control the stage-specific parameters dynamically\n",
"3. Using `hv.util.Dynamic`: applies a method to the given object, controlled by supplied streams\n",
Expand Down

0 comments on commit 29da688

Please sign in to comment.