text: Title: pdf output with code
  Body: ### Description
  
  I am hoping to be able to make pdf output with code, while using `mo.mpl.interactive` to display plots. Currently when I use the menu to do pdf output, it tells me to press `Crtil+.` to switch to app mode before making the pdf output. All my plots output fine, but the code is hidden.
  
  
  
  ### Suggested solution
  
  I can think of 2
  1. allow pdf output from notebook mode (I know there were correctness issues, so those would need to be fixed).
  2. allow app mode to show code, just not editable. (Is this already possible?)
  
  ### Alternative
  
  _No response_
  
  ### Additional context
  
  My use case is that I want a hard copy of "I did this analysis this way and got this result" that is immutable. I prefer pdf to html, as some features don't work in html output. Eg the "dataframe viewer" doesn't seem to work in html output since it no longer has access to the dataframe. I just want a copy of what was on the screen (and would have been if I scrolled) when I said to export a copy, and pdf seems best matched to that. 