# How can hide %hide?

When I type:

```
%hide
%latex
Hellow $\int f(x)dx$ some text
```

obtain "%hide" in the first line, how can I remove that.

2

Note that you can insert latex commands into text cells in Sage. To get a text cell, hover your mouse just higher on the page than a command cell. A blue line will appear, and then you shift-click. This creates a text box with a formatting palette. You can also enter latex commands in this box. You can't call special latex packages or create macros, but it does produce some very nice looking mathematics.

See http://sage.maa.org/home/pub/110/ for an example.

3

Do `%hideall`

. You'll have to go into the worksheet source to edit the cell then, though.

0

0

You can also hide input cells using CSS styling. If you want to hide input cells in the interactive worksheet, add a cell at the start of the worksheet like this:

%html <style> textarea.cell_input {display : none} </style>

But then you need to edit the worksheet source to change `none`

to `inline`

to see your input again. The other option is to hide all your input just in the print view, e.g. if you're producing a nicely formatted PDF of all your results. To do that:

%html <style> .cell_input_print {display : none} </style>

Asked: **
2012-05-13 03:01:48 -0500
**

Seen: **1,178 times**

Last updated: **Dec 06 '12**

Can I use amsmath in notebook?

UnicodeDecodeError in matplotlib if 'python' set instead of 'sage' in Notebook [closed]

MathJax Font Sizes and Spacing/Positioning in Notebook

Sage Notebook, R, & problem rendering LaTeX

Data files on public servers access

Embedding the results of Sage computations in a LaTeX document

running sage notebook alongside nginx, no available port.

How can I obtain automatically latex output from Sage answers?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.