1

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.

zurg
  • 117
  • 5
  • 2
    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. – Carl Woll Feb 12 '21 at 21:40

1 Answers1

2

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!

Alexei Boulbitch
  • 39,397
  • 2
  • 47
  • 96