Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notebook -- formatting of cells beginning with "%hide %html" is not saved #4217

Closed
sagetrac-mabshoff mannequin opened this issue Sep 29, 2008 · 13 comments
Closed

notebook -- formatting of cells beginning with "%hide %html" is not saved #4217

sagetrac-mabshoff mannequin opened this issue Sep 29, 2008 · 13 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Sep 29, 2008

In http://groups.google.com/group/sage-support/browse_thread/thread/642313d7270e789f it was reported:

As of version 3.1.2, plots are saved correctly in notebooks. Thanks to 
those that fixed it. However, I noticed that the formatting of cells 
beginning with "%hide %html" is not saved. I need to re-evaluate all 
of those cells to get the formatting back. Is this a bug in SAGE or 
does it have something to do with the web browser (Firefox 3.0.3 on 
Mac OS X 10.4)? 
Thanks again for the great effort! 

Stan

Component: notebook

Author: Tim Dumol

Reviewer: Mitesh Patel

Merged: sagenb-0.7

Issue created by migration from https://trac.sagemath.org/ticket/4217

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-4.3.2 milestone Sep 29, 2008
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Sep 30, 2008

comment:1

Notice that now there is a concrete example in the above thread. It cannot be copy and pasted here since the wiki interprets part of the syntax.

Cheers,

Michael

@mwhansen
Copy link
Contributor

comment:2

I can reproduce this on sagenb.org, but I can't after some of my notebook patches. I think we might be able to resolve this as fixed in 3.3. I'll check in 3.3.alpha1 when I get ahold of it.

@mwhansen mwhansen assigned mwhansen and unassigned boothby Jan 24, 2009
@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

Attachment: trac_4217-html-system-formatting.patch.gz

Removes Cell.__is_html and instead depends on the Cell.system() call for html cell detection

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

Author: Tim Dumol

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

comment:3

The line breaks should not have been visible in the output in the first place as linebreaks are ignored in html. The line breaks were visible because the output was mistakenly surrounded by

 tags, which preformat the whitespace. This is because Cell.__is_html is not properly set on evaluation. This patch removes Cell.__is_html to prevent any future problems, and instead uses the previously included check using Cell.system().

@TimDumol TimDumol mannequin added the s: needs review label Jan 17, 2010
@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

Attachment: trac_4217-html-system-formatting.2.patch.gz

Rebase on new

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Jan 17, 2010

comment:4

That comment was suppoesd to be "Rebase on new patch sent"

trac_7650-sagenb_doctesting_v6.patch
trac_7650-reviewer.patch
trac_7648-missing_indent.patch
trac_7663-rstrip_prompt.patch
trac_7847-empty-trash-no-referer.patch
trac_7786-template-jinja-idiomatic.patch
trac_7863-declare_vars_aux_js_v2.patch
trac_7874-typeset_interact_labels.patch
trac_7858-key_binding_vars_v2.patch
trac_7666-alphanumeric_cell_ids_B5.patch
trac_7666-reviewer.patch
trac_7835-preparsing-unicode_v2.patch
trac_7249_jinja2_v5.patch
trac_2779-sagenb-error-message.patch
2779_2_banner.patch
trac_3154-spurious-u0027-output.patch
trac_7969-escaped-backslash.patch
trac_7937-sass_manifest.patch
trac_4217-html-system-formatting.patch

Sorry for the immense patch queue.

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 18, 2010

comment:5

A related problem: The input cells with the %hide directive are not hidden upon page load. I think we just need to use input_cls in cell.html.

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 19, 2010

Uses input_cell in cell.html. Replaces previous.

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 19, 2010

Reviewer: Mitesh Patel

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 19, 2010

comment:6

Attachment: trac_4217-html-system-formatting.3.patch.gz

I've attached V3, which just uses cell.html's input_cls.

Sometimes, evaluating a cell with %hide at its top doesn't hide it. This is a separate problem, apparently

Positive review on this ticket. Feel free to ignore V3.

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 25, 2010

Merged: sagenb-0.7

@qed777 qed777 mannequin removed the s: positive review label Jan 25, 2010
@qed777 qed777 mannequin closed this as completed Jan 25, 2010
@qed777
Copy link
Mannequin

qed777 mannequin commented Feb 6, 2010

comment:8

Note: The commit strings for all of the patches above are actually for #3154. I merged version 3 into SageNB 0.7 at #8051.

@qed777 qed777 mannequin mentioned this issue Feb 10, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants