0

I want to give a lecture on using a jupyter notebook. I've entered my code as "in:" and tested it generating "out:". I don't want to have the outputs visible until after I hit return on an input when presenting, so the students can see it in action. How do I save the current file so when I open it no outputs are visible? (Note that this is different than hiding the output, such as with a semicolon.)

3
  • "I recently watched a webinar in which @rxin clear the results from the Javascript Console (in Chrome) View -> Developer -> JavaScript Console and then type "notebook.clearResults()" " from: forums.databricks.com/questions/1833/… Commented Feb 26, 2017 at 20:08
  • 1
    Why not simply delete the outputs before the lecture? (Cell -> All Output -> Clear) Commented Feb 27, 2017 at 15:54
  • I didn't know about (Cell -> All Output -> Clear) but now I do! Thanks Gregor. Commented Feb 27, 2017 at 23:53

1 Answer 1

0

As Gregor commented the solution is simple, once you know it: simply delete the outputs (Cell -> All Output -> Clear)

I'm posting this here since it wasn't obvious to me even after a bunch of searching, although I am a newcomer to Jupyter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.