Skip to content

Commit

Permalink
Merge pull request #306 from rstudio/usage-hiding-cells
Browse files Browse the repository at this point in the history
Update to Usage: Hide Input
  • Loading branch information
bcwu authored Jul 29, 2021
2 parents dda5920 + bcaa3ca commit 30dc958
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
Binary file added docs/docs/images/add-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/images/rsconnect-jupyter-usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/docs/images/view-celltoolbar-tags.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 23 additions & 1 deletion docs/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<img class="border" src="../images/manage.png" class="block" alt="publish dialog">
<img class="border" src="../images/rsconnect-jupyter-usage.png" class="block" alt="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:

<img class="border" src="../images/view-celltoolbar-tags.png" class="block" alt="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.

<img class="border" src="../images/add-tags.png" class="block" alt="Add the hide_input tag to individual cells">


### Additional Files

Expand Down

0 comments on commit 30dc958

Please sign in to comment.