Skip to content

Commit e6f0b06

Browse files
authored
Update README
Minor edits
1 parent 1433fd5 commit e6f0b06

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

7878
If 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

9796
Programmatically Generating Rich Content
9897
----------------------------------------

0 commit comments

Comments
 (0)