Changeset 2268:23a0d4af6348
- Timestamp:
- 01/03/07 12:16:54 (6 years ago)
- Branch:
- default
- Location:
- sage/server/notebook
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sage/server/notebook/cell.py
r2266 r2268 230 230 231 231 def is_auto_cell(self): 232 return ' %auto' in self.__in.split('\n')[0]232 return '#auto' in self.__in.split('\n')[0] 233 233 234 234 def changed_input_text(self): … … 406 406 407 407 def html(self, wrap=None, div_wrap=True, do_print=False): 408 if self.__in.lstrip()[:8] == '%hideall': 409 return '' 410 408 411 if wrap is None: 409 412 wrap = self.notebook().defaults()['word_wrap_cols'] 410 411 413 if self.worksheet().compute_process_has_been_started(): 412 414 evaluated = (self.worksheet().sage() is self.sage()) and not self.interrupted() -
sage/server/notebook/css.py
r2107 r2268 937 937 } 938 938 939 /* 939 940 textarea.cell_input_hide { 940 941 background-color: white; 941 942 color:#cccccc; 942 943 border: 0px solid white; 943 /* border-top: 1px solid #aaaaff;944 border-bottom: 1px solid #aaaaff;945 */946 944 font-family: courier, monospace; 947 945 font-size:12pt; … … 954 952 margin:0px; 955 953 } 954 */ 955 956 textarea.cell_input_hide { 957 background-color: white; 958 color:#ffffff; 959 border: 0px solid white; 960 font-family: courier, monospace; 961 font-size:12pt; 962 overflow:hidden; 963 padding-left:3px; 964 padding-top:0px; 965 padding-bottom:0px; 966 width: 100%; 967 height:0.5em; 968 margin:0px; 969 } 970 956 971 957 972 textarea.cell_input_active { -
sage/server/notebook/notebook.py
r2265 r2268 1062 1062 ('HTML', 'Begin an input block with %html and it will be output as HTML. Use the <sage>...</sage> tag to do computations in an HTML block and have the typeset output inserted. Use <$>...</$> and <$$>...</$$> to insert typeset math in the HTML block. This does <i>not</i> require latex.'), 1063 1063 ('Shell', 'Begin a block with %sh to have the rest of the block evaluated as a shell script. The current working directory is maintained.'), 1064 ('Autoevaluate Cells on Load', 'Any cells with " %auto" in the first line (e.g., in a comment) areautomatically evaluated when the worksheet is first opened.'),1064 ('Autoevaluate Cells on Load', 'Any cells with "#auto" in the input is automatically evaluated when the worksheet is first opened.'), 1065 1065 ('Create New Worksheet', "Use the menu on the left, or simply put a new worksheet name in the URL, e.g., if your notebook is at http://localhost:8000, then visiting http://localhost:8000/tests will create a new worksheet named tests."), 1066 1066 ('Evaluate Input', 'Press shift-enter. You can start several calculations at once. If you press alt-enter instead, then a new cell is created after the current one.'), … … 1080 1080 ('Source Code', 1081 1081 'Put ?? after the object and press tab.'), 1082 ('Hide Input',1083 'Put %hide at the beginning of the cell. This can be followed by %gap, %latex, %maxima, etc. Note that %hide must be first. Put a blank line at the beginning so the "%hide" does not appear.'),1082 ('Hide Cell Input', 1083 'Put %hide at the beginning of the cell. This can be followed by %gap, %latex, %maxima, etc. Note that %hide must be first. From the edit screen, use %hideall to hide a complete cell.'), 1084 1084 ('Detailed Help', 1085 1085 'Type "help(object)" and press shift-return.'),
Note: See TracChangeset
for help on using the changeset viewer.
