File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,13 @@ Example:
7070
7171 cat dog.png | display
7272 echo " <b>Dog</b>, not a cat." | displayHTML
73- echo " alert('It is known khaleesi \!');" | displayJS
73+ echo " alert('Hello from bash_kernel \!');" | displayJS
7474
7575 Updating Rich Content Cells
7676---------------------------
7777
7878If one is doing something that requires dynamic updates, one can specify a unique display_id,
79- should be a string name (downstream documentation is not clear on this), and the contents
80- will be replaced by the new value. Example:
79+ which should be a string name. On each update, the contents will be replaced by the new value. Example:
8180
8281.. code :: shell
8382
@@ -89,10 +88,10 @@ will be replaced by the new value. Example:
8988 sleep 1
9089 done
9190
92- The same works for images or even javascript content.
91+ The same works for images and javascript content.
9392
94- **Remember to create always a new id ** (random ids works perfect) each time the cell is executed, otherwise
95- it will try to display on an HTML element that no longer exists (they are erased each time a cell is re-run).
93+ **Remember to create always a new id ** each time the cell is executed, otherwise it will try to display
94+ on an HTML element that no longer exists (they are erased each time a cell is re-run).
9695
9796Programmatically Generating Rich Content
9897----------------------------------------
You can’t perform that action at this time.
0 commit comments