diff --git a/docs/docs/images/add-tags.png b/docs/docs/images/add-tags.png new file mode 100644 index 00000000..8a359259 Binary files /dev/null and b/docs/docs/images/add-tags.png differ diff --git a/docs/docs/images/rsconnect-jupyter-usage.png b/docs/docs/images/rsconnect-jupyter-usage.png new file mode 100644 index 00000000..d0d9bb42 Binary files /dev/null and b/docs/docs/images/rsconnect-jupyter-usage.png differ diff --git a/docs/docs/images/view-celltoolbar-tags.png b/docs/docs/images/view-celltoolbar-tags.png new file mode 100644 index 00000000..bcbda7ad Binary files /dev/null and b/docs/docs/images/view-celltoolbar-tags.png differ diff --git a/docs/docs/usage.md b/docs/docs/usage.md index 79cdf83f..ca09d039 100644 --- a/docs/docs/usage.md +++ b/docs/docs/usage.md @@ -48,7 +48,29 @@ Connect to recreate the environment and re-run the notebook at a later time. publish an HTML snapshot of the notebook to RStudio Connect. HTML snapshots are static and cannot be scheduled or re-run on the RStudio Connect server. -publish dialog +publish dialog + +### Hide Input + +There are two options for hiding input code cells in Jupyter Notebooks published +to RStudio Connect: + +- Hide all input code cells +- Hide only selected input code cells + +To hide all input code cells, make that selection in the Publish dialog under the **Hide Input** section. + +To hide only the tagged cells, first enable Tags in the **View** > **Cell Toolbar** menu: + +Enable Tags in the Cell Toolbar menu + +Once enabled, tag each cell where you would like to hide the input code. The tag must be named `hide_input`: + +1. Enter `hide_input` into the text field. +2. Click **Add tag** to apply the tag to a code cell. + +Add the hide_input tag to individual cells + ### Additional Files