[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread William Stein

On Sat, Jan 10, 2009 at 2:26 PM, Justin C. Walker jus...@mac.com wrote:

 Hi, all,

 When using the Notebook interface on Mac OS X, I find that once the
 cells have filled the visible part of a web page, the notebook becomes
 somewhat difficult to deal with.  Specifically, if I have an
 @interact, and modify the slider, the content of the page shifts down,
 obscuring the output of the @interact.  The amount of shifting seems
 to depend on the amount of other cell space below the @interact output.

 This is using Mac OS X, 10.5.6 and the version of Safari that comes
 with it.

 I see the same behavior with FireFox 2.0 (latest version).

 Is there some configuration foo that I'm missing?

I wish.

For fun, you might try putting

return true;

at the top of the function cell_focus in the file
devel/sage/sage/server/notebook/js.py and rebuilding sage and
restarting the notebook (and refreshing your browser window).   All
jumping should then be entirely disabled.

What does it feel like?  Do you like it better?  Should this be a
trivial-to-set option?

I've done the above sometimes when giving talks.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread Jason Grout

Justin C. Walker wrote:
 Hi, all,
 
 When using the Notebook interface on Mac OS X, I find that once the  
 cells have filled the visible part of a web page, the notebook becomes  
 somewhat difficult to deal with.  Specifically, if I have an  
 @interact, and modify the slider, the content of the page shifts down,  
 obscuring the output of the @interact.  The amount of shifting seems  
 to depend on the amount of other cell space below the @interact output.
 
 This is using Mac OS X, 10.5.6 and the version of Safari that comes  
 with it.
 
 I see the same behavior with FireFox 2.0 (latest version).
 
 Is there some configuration foo that I'm missing?


This is a known problem and there is a trac ticket for it.  The problem 
is that the notebook height changes briefly when an interact is updated, 
which means that the browser automatically scrolls up, but then doesn't 
scroll back down.  A work-around is to create enough empty cells below 
the interact.  A better solution, noted on the trac ticket, is to make a 
div that is a screen high at the end of the notebook.  This would also 
allow you to have the last cell at the top of the screen, which would be 
very handy for presentations too.  At least MMA lets you scroll down so 
that the last cell is at the top of the screen.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread Justin C. Walker


On Jan 10, 2009, at 16:26 , Jason Grout wrote:


 Justin C. Walker wrote:
 Hi, all,

 When using the Notebook interface on Mac OS X, I find that once the
 cells have filled the visible part of a web page, the notebook  
 becomes
 somewhat difficult to deal with.  Specifically, if I have an
 @interact, and modify the slider, the content of the page shifts  
 down,
 obscuring the output of the @interact.  The amount of shifting seems
 to depend on the amount of other cell space below the @interact  
 output.

 This is using Mac OS X, 10.5.6 and the version of Safari that comes
 with it.

 I see the same behavior with FireFox 2.0 (latest version).

 Is there some configuration foo that I'm missing?


 This is a known problem and there is a trac ticket for it.  The  
 problem
 is that the notebook height changes briefly when an interact is  
 updated,
 which means that the browser automatically scrolls up, but then  
 doesn't
 scroll back down.  A work-around is to create enough empty cells below
 the interact.  A better solution, noted on the trac ticket, is to  
 make a
 div that is a screen high at the end of the notebook.  This would also
 allow you to have the last cell at the top of the screen, which  
 would be
 very handy for presentations too.  At least MMA lets you scroll down  
 so
 that the last cell is at the top of the screen.

What's the Trac #?  I searched Trac before posting, but I didn't find  
anything that seemed pertinent.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---




--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread William Stein

On Sat, Jan 10, 2009 at 4:26 PM, Jason Grout
jason-s...@creativetrax.com wrote:

 Justin C. Walker wrote:
 Hi, all,

 When using the Notebook interface on Mac OS X, I find that once the
 cells have filled the visible part of a web page, the notebook becomes
 somewhat difficult to deal with.  Specifically, if I have an
 @interact, and modify the slider, the content of the page shifts down,
 obscuring the output of the @interact.  The amount of shifting seems
 to depend on the amount of other cell space below the @interact output.

 This is using Mac OS X, 10.5.6 and the version of Safari that comes
 with it.

 I see the same behavior with FireFox 2.0 (latest version).

 Is there some configuration foo that I'm missing?


 This is a known problem and there is a trac ticket for it.  The problem
 is that the notebook height changes briefly when an interact is updated,
 which means that the browser automatically scrolls up, but then doesn't
 scroll back down.  A work-around is to create enough empty cells below
 the interact.  A better solution, noted on the trac ticket, is to make a
 div that is a screen high at the end of the notebook.  This would also
 allow you to have the last cell at the top of the screen, which would be
 very handy for presentations too.  At least MMA lets you scroll down so
 that the last cell is at the top of the screen.

This sounds much more relevant to the issue at hand than the suggestion
I made.  Thanks Jason.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread Jason Grout

Justin C. Walker wrote:
 
 On Jan 10, 2009, at 16:26 , Jason Grout wrote:
 
 Justin C. Walker wrote:
 Hi, all,

 When using the Notebook interface on Mac OS X, I find that once the
 cells have filled the visible part of a web page, the notebook  
 becomes
 somewhat difficult to deal with.  Specifically, if I have an
 @interact, and modify the slider, the content of the page shifts  
 down,
 obscuring the output of the @interact.  The amount of shifting seems
 to depend on the amount of other cell space below the @interact  
 output.

 This is using Mac OS X, 10.5.6 and the version of Safari that comes
 with it.

 I see the same behavior with FireFox 2.0 (latest version).

 Is there some configuration foo that I'm missing?

 This is a known problem and there is a trac ticket for it.  The  
 problem
 is that the notebook height changes briefly when an interact is  
 updated,
 which means that the browser automatically scrolls up, but then  
 doesn't
 scroll back down.  A work-around is to create enough empty cells below
 the interact.  A better solution, noted on the trac ticket, is to  
 make a
 div that is a screen high at the end of the notebook.  This would also
 allow you to have the last cell at the top of the screen, which  
 would be
 very handy for presentations too.  At least MMA lets you scroll down  
 so
 that the last cell is at the top of the screen.
 
 What's the Trac #?  I searched Trac before posting, but I didn't find  
 anything that seemed pertinent.


I was just searching trac too.  I can't find anything.  The mailing list 
discussion is here, though (I found this by searching sage-devel for 
interact jump):

http://groups.google.com/group/sage-devel/browse_thread/thread/51b538c8212fa2a/b61655921eb0ebab

 From the discussion, it looks like a trac ticket never was created (I 
thought one was).  I just created #4963 for it.  If this doesn't get 
done by SD12, I'll try to do it then.

Thanks,

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jumpy Notebook on Mac OS X

2009-01-10 Thread Jason Grout

William Stein wrote:
 On Sat, Jan 10, 2009 at 4:26 PM, Jason Grout
 jason-s...@creativetrax.com wrote:
 Justin C. Walker wrote:
 Hi, all,

 When using the Notebook interface on Mac OS X, I find that once the
 cells have filled the visible part of a web page, the notebook becomes
 somewhat difficult to deal with.  Specifically, if I have an
 @interact, and modify the slider, the content of the page shifts down,
 obscuring the output of the @interact.  The amount of shifting seems
 to depend on the amount of other cell space below the @interact output.

 This is using Mac OS X, 10.5.6 and the version of Safari that comes
 with it.

 I see the same behavior with FireFox 2.0 (latest version).

 Is there some configuration foo that I'm missing?

 This is a known problem and there is a trac ticket for it.  The problem
 is that the notebook height changes briefly when an interact is updated,
 which means that the browser automatically scrolls up, but then doesn't
 scroll back down.  A work-around is to create enough empty cells below
 the interact.  A better solution, noted on the trac ticket, is to make a
 div that is a screen high at the end of the notebook.  This would also
 allow you to have the last cell at the top of the screen, which would be
 very handy for presentations too.  At least MMA lets you scroll down so
 that the last cell is at the top of the screen.
 
 This sounds much more relevant to the issue at hand than the suggestion
 I made.  Thanks Jason.


No problem.  I spent some time debugging this a few months ago, but 
never did anything about it.  Marshall, if you're reading this, this 
would make a great project for your student if he wants to learn more 
about html and contribute something quickly.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---