Skip to content

ENC: Hide Jupyter cell; retain output #17

Closed

Description

@par2

Is there a way to only output the result of a Jupyter cell, while hiding the code?

The context is, I have plots that I would like to display as a gallery in rtds, but the code cells are distracting. I'm not aware of this option to hide cells in Jupyter... In fact, it looks like hiding input cells is on their todo list for 4.2. In the meantime, in that same post, there is a hack for it.

Your thoughts on adding this feature either now or in the future to nbsphinx...?

Activity

  1. mgeier commented on Jan 31, 2016

    @mgeier
    Member

    This is a duplicate of #15, feel free to add your suggestions/comments there.

    As a work-around for the use case you are describing, did you try to create the plots in a separate notebook (or stand-alone .py file) with savefig() and then use the generated image files in other parts of your docs?

  2. par2 commented on Feb 3, 2016

    @par2
    ContributorAuthor

    Yes I say that is an option. Thanks. I'll close this as it is a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions