Edits to the 'Automatic linking' subsection
"cell_type": "markdown",
"metadata": {},
"source": [
- "A Stream is automatically linked to the first DynamicMap we attach the Stream to, which we can confirm by inspecting the stream's ``source`` attribute:"
+ "A stream instance is automatically linked to the first ``DynamicMap`` we pass it to, which we can confirm by inspecting the stream's ``source`` attribute after supplying it to a ``DynamicMap``:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "The DynamicMap we defined above simply defines returns a Points object containing the current x, y coordinate of our ``PointerXY`` stream and is now linked to any plot this object is displayed in:"
+ "The ``DynamicMap`` we defined above simply defines returns a ``Points`` object composed of a single point that marks the current ``x`` and ``y`` position supplied by our ``PointerXY`` stream. The stream is linked whenever this ``DynamicMap`` object is displayed:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
- "If you hover over the plot canvas above you can see how the point tracks the current mouse position. We can also inspect the last cursor position on the stream:"
+ "If you hover over the plot canvas above you can see that the point tracks the current mouse position. We can also inspect the last cursor position by examining the stream contents:"
]
},
{
"metadata": {},
"outputs": [],
"source": [
- "pointer"
+ "pointer.contents"
]
},
{
