1
$\begingroup$

i'm working on a presentation using a Mathematica notebook. I'd like to hide the code i wrote.

I found this answer and red this guide.

After 7 years from that first answer that hacky method is still the way to go?

What i am trying to do, to be clear is, given this code:

A = {
   {1, 1, 1, 1, 0, 0, 0},
   {1, 0, 0, 0, 1, 0, 0},
   {0, 0, 1, 0, 0, 1, 0},
   {0, 3, 1, 0, 0, 0, 1}
   };
b = {4, 2, 3, 6};
Print[StringForm["A = ``", MatrixForm[A]]];
Print[StringForm["b = ``", MatrixForm[b]]];
Print[StringForm["``x = ``", MatrixForm[A], MatrixForm[b]]];

Show only the output from the 3 Print.

$\endgroup$
1
  • 2
    $\begingroup$ Would switching between a "Working" and "Presentation" screen environment work for you? You would switch between the two using the Format | Screen Environment menu, and you could also add a hot key to switch. $\endgroup$
    – Carl Woll
    Commented Feb 12, 2021 at 21:40

1 Answer 1

2
$\begingroup$

step 1: You make some code

enter image description here

step 2: you select the sell

enter image description here

step 3: You go to Menu/Cell/CellProperties and uncheck "Open"

enter image description here

Done.

Have fun!

$\endgroup$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.