Updated the Linked Streams tutorial to use clone
"cell_type": "markdown",
"metadata": {},
"source": [
- "Sometimes we just want to display an object designated as a source without linking it to the stream. If the object is not a ``DynamicMap``, like the ``Image`` we designated as a ``source`` above, we can make a copy of the object using the ``clone`` method. However if it is a ``DynamicMap`` we have to make a copy with the ``Dynamic`` utility and declare ``link_inputs=False``.\n",
+ "Sometimes we just want to display an object designated as a source without linking it to the stream. If the object is not a ``DynamicMap``, like the ``Image`` we designated as a ``source`` above, we can make a copy of the object using the ``clone`` method. We can do the same with ``DynamicMap`` though we just need to supply ``link_inputs=False`` as an extra argument.\n",
"\n",
"Here we will create a ``DynamicMap`` that draws a cross-hair at the cursor position:"
]
},
"outputs": [],
"source": [
- "cross_dmap + hv.util.Dynamic(cross_dmap, link_inputs=False)"
+ "cross_dmap + cross_dmap.clone(link_inputs=False)"
]
},
{
