[sage-support] Re: Adding text/formatting to worksheets in the notebook
Thanks, Jason These opportunities are being studied. Just want to express an idea that could be useful in Sage. A plug-in for Firefox could make input and operations in Sage very comfortable adding to interface several bars or pallets. Someone familiar with firefox plug-in development might want to reply to write whether this could be implemented. Serge Jason Grout пишет: Serge Salamanka wrote: TinyMCE editor seems to be useful Is that possible to implement interface on the basis of smth like Plone (plone.org) ? Do you have experience doing javascript/AJAX development? Nope. I don't. I think I could be useful in developing some dynamic features of interface because I'm interested in that. But the thing is don't know what to start with. Unfortunately Sage doesn't have capability to edit formulas in human style. That's what might be also of interest to me. Creation of different plates for input of special characters, all those things that please the eye. Here are several things that you could do, depending on how comfortable you are and how much time you have: 1. Going on what you say above, you could take a look at http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html. This is done by the same person that did the jsMath rendering and it is a very nice equation editor purely in javascript (which means we could probably incorporate it into our notebook). Davide (the author) says it isn't done, but it does have some very nice functionality right now. It would be great to find out what he feels isn't done about it, fix it, and incorporate it into Sage. The current code there is under the Apache license, so it's all right for you to download it, modify it, and distribute it. The file listed above in conjunction with the source code: http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/JS/jsMathEdit.js seem to be all that you need. 2. Review the patch and spkgs at http://trac.sagemath.org/sage_trac/ticket/4255, which provides in-place wysiwyg editing of text cells, based on tinyMCE and a jquery plugin. 3. Clean up the js.py and the notebook code in general. Note that other people are working on this as well, so it would be best to post on sage-devel about what you'd like to do or ask what is needed. This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Serge Salamanka wrote: Thanks, Jason These opportunities are being studied. Just want to express an idea that could be useful in Sage. A plug-in for Firefox could make input and operations in Sage very comfortable adding to interface several bars or pallets. Someone familiar with firefox plug-in development might want to reply to write whether this could be implemented. I don't know anything about firefox plugin development, but I think that enough of us use it that developing a firefox-native environment would be very worth-while. I spent quite a bit of time at the end of last week working on the javascript in the notebook (specifically, making spkgs and upgrading the javascript packages, while simplifying js.py to use jquery in a few places), which impacted js.py, notebook.py, twist.py, and interact.py. Is there anyone working on those files currently? Thanks, Jason Serge Jason Grout пишет: Serge Salamanka wrote: TinyMCE editor seems to be useful Is that possible to implement interface on the basis of smth like Plone (plone.org) ? Do you have experience doing javascript/AJAX development? Nope. I don't. I think I could be useful in developing some dynamic features of interface because I'm interested in that. But the thing is don't know what to start with. Unfortunately Sage doesn't have capability to edit formulas in human style. That's what might be also of interest to me. Creation of different plates for input of special characters, all those things that please the eye. Here are several things that you could do, depending on how comfortable you are and how much time you have: 1. Going on what you say above, you could take a look at http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html. This is done by the same person that did the jsMath rendering and it is a very nice equation editor purely in javascript (which means we could probably incorporate it into our notebook). Davide (the author) says it isn't done, but it does have some very nice functionality right now. It would be great to find out what he feels isn't done about it, fix it, and incorporate it into Sage. The current code there is under the Apache license, so it's all right for you to download it, modify it, and distribute it. The file listed above in conjunction with the source code: http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/JS/jsMathEdit.js seem to be all that you need. 2. Review the patch and spkgs at http://trac.sagemath.org/sage_trac/ticket/4255, which provides in-place wysiwyg editing of text cells, based on tinyMCE and a jquery plugin. 3. Clean up the js.py and the notebook code in general. Note that other people are working on this as well, so it would be best to post on sage-devel about what you'd like to do or ask what is needed. This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
... This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason what kind of high-level Python Web framework do you use in development of Sage ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
We don't use a web framework. We use Twisted Web2 to create the server. On Mon, Oct 13, 2008 at 11:30 AM, Serge Salamanka [EMAIL PROTECTED] wrote: ... This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason what kind of high-level Python Web framework do you use in development of Sage ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Timothy Clemans wrote: We don't use a web framework. We use Twisted Web2 to create the server. I apologize for my unclear choice of words. Timothy's right; the notebook is custom code that doesn't use a framework right now. I meant that we use Twisted web2 to do the web server and right now, when doing notebook development, it seems that I need to learn at least a little about how Twisted works to be able to change things. That said, there at least was (is?) some work (by Timothy?) to use a web framework like Django for the notebook, I believe. (Have I put in enough disclaimer words? :) Jason On Mon, Oct 13, 2008 at 11:30 AM, Serge Salamanka [EMAIL PROTECTED] wrote: ... This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason what kind of high-level Python Web framework do you use in development of Sage ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
So that's what Knoboo is about? I'm excited!! Serge, did you know that you can also format whole cells as html by putting %html at the top of them? You then just write html code in the rest of the cell and it will be formatted. Use $...$ to have typeset equations in your html cells. Example: %hide %html h1Example/h1br This is an equation:br $Y_z = 1/sqrt(x_z - z_{xy})$ The above will hide all the input after %hide and only display the typeset output. If you click on the grey %hide text, you can open up the input cell again and edit the input. Stan On Oct 7, 10:10 pm, Jason Grout [EMAIL PROTECTED] wrote: You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Serge Salamanka wrote: thank you. very useful %hide and %hideall behave the same couldn't figure out the difference Try quitting the worksheet and then going back to it. That's when I see the difference. By the way, I worked a bit the other week on getting a wiki-like syntax. That would allow much easier text formatting than the current html. We will also probably have ReST formatting fairly soon (hopefully) now that the ReST toolchain is merged into the next release of Sage. Another option is making a tinymce or FCKEditor spkg which gives a javascript text formatting plugin, so you have a toolbar with bold, italic, headings, etc. Jason Jason Grout пишет: Serge Salamanka wrote: Just found an example html(h1Double Precision Root Finding Using Bisection/h1) here: http://wiki.sagemath.org/interact/calculus Sorry to trouble about it. There is also another question: can I group the cells like in Mathematica ? Hide them, expand them ? You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
This is just amazing !!! One would never thought about having it all. works great. Thanks Stan Schymanski пишет: So that's what Knoboo is about? I'm excited!! Serge, did you know that you can also format whole cells as html by putting %html at the top of them? You then just write html code in the rest of the cell and it will be formatted. Use $...$ to have typeset equations in your html cells. Example: %hide %html h1Example/h1br This is an equation:br $Y_z = 1/sqrt(x_z - z_{xy})$ The above will hide all the input after %hide and only display the typeset output. If you click on the grey %hide text, you can open up the input cell again and edit the input. Stan On Oct 7, 10:10 pm, Jason Grout [EMAIL PROTECTED] wrote: You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
thank you. very useful %hide and %hideall behave the same couldn't figure out the difference Jason Grout пишет: Serge Salamanka wrote: Just found an example html(h1Double Precision Root Finding Using Bisection/h1) here: http://wiki.sagemath.org/interact/calculus Sorry to trouble about it. There is also another question: can I group the cells like in Mathematica ? Hide them, expand them ? You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Jason Grout пишет: Serge Salamanka wrote: thank you. very useful %hide and %hideall behave the same couldn't figure out the difference Try quitting the worksheet and then going back to it. That's when I see the difference. Yes, it works after quitting the notebook and going back. Thanks for the tip. By the way, I worked a bit the other week on getting a wiki-like syntax. That would allow much easier text formatting than the current html. We will also probably have ReST formatting fairly soon (hopefully) now that the ReST toolchain is merged into the next release of Sage. Another option is making a tinymce or FCKEditor spkg which gives a javascript text formatting plugin, so you have a toolbar with bold, italic, headings, etc. Jason What should I learn to help you out with the interface development ? Do you rely on knobo mostly ? Serge Jason Grout пишет: Serge Salamanka wrote: Just found an example html(h1Double Precision Root Finding Using Bisection/h1) here: http://wiki.sagemath.org/interact/calculus Sorry to trouble about it. There is also another question: can I group the cells like in Mathematica ? Hide them, expand them ? You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Serge Salamanka wrote: Jason Grout пишет: Serge Salamanka wrote: thank you. very useful %hide and %hideall behave the same couldn't figure out the difference Try quitting the worksheet and then going back to it. That's when I see the difference. Yes, it works after quitting the notebook and going back. Thanks for the tip. By the way, I worked a bit the other week on getting a wiki-like syntax. That would allow much easier text formatting than the current html. We will also probably have ReST formatting fairly soon (hopefully) now that the ReST toolchain is merged into the next release of Sage. Another option is making a tinymce or FCKEditor spkg which gives a javascript text formatting plugin, so you have a toolbar with bold, italic, headings, etc. Jason What should I learn to help you out with the interface development ? Do you rely on knobo mostly ? I actually just spent the last little bit getting TinyMCE working with html cells. It works pretty nicely: you hit a button, the field turns into a TinyMCE editor, you edit the text, hit the button again, and the html code is put in the cell, which you then evaluate. It'd be really nice if we could just do in-place editing of the html between cells, but that seems way more complicated since those are text cells and there isn't a facility for updating them, I don't think. I'm looking at that quickly, though. I'm not using knoboo because I haven't dealt at all with that codebase. Do you have experience doing javascript/AJAX development? Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
TinyMCE editor seems to be useful Is that possible to implement interface on the basis of smth like Plone (plone.org) ? Do you have experience doing javascript/AJAX development? Nope. I don't. I think I could be useful in developing some dynamic features of interface because I'm interested in that. But the thing is don't know what to start with. Unfortunately Sage doesn't have capability to edit formulas in human style. That's what might be also of interest to me. Creation of different plates for input of special characters, all those things that please the eye. Other direction is dsage with its interface for working on cluster. Lots of wants, I know. But hopefully choose one that suites me well. Serge Jason Grout пишет: Serge Salamanka wrote: Jason Grout пишет: Serge Salamanka wrote: thank you. very useful %hide and %hideall behave the same couldn't figure out the difference Try quitting the worksheet and then going back to it. That's when I see the difference. Yes, it works after quitting the notebook and going back. Thanks for the tip. By the way, I worked a bit the other week on getting a wiki-like syntax. That would allow much easier text formatting than the current html. We will also probably have ReST formatting fairly soon (hopefully) now that the ReST toolchain is merged into the next release of Sage. Another option is making a tinymce or FCKEditor spkg which gives a javascript text formatting plugin, so you have a toolbar with bold, italic, headings, etc. Jason What should I learn to help you out with the interface development ? Do you rely on knobo mostly ? I actually just spent the last little bit getting TinyMCE working with html cells. It works pretty nicely: you hit a button, the field turns into a TinyMCE editor, you edit the text, hit the button again, and the html code is put in the cell, which you then evaluate. It'd be really nice if we could just do in-place editing of the html between cells, but that seems way more complicated since those are text cells and there isn't a facility for updating them, I don't think. I'm looking at that quickly, though. I'm not using knoboo because I haven't dealt at all with that codebase. Do you have experience doing javascript/AJAX development? Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Serge Salamanka wrote: TinyMCE editor seems to be useful Is that possible to implement interface on the basis of smth like Plone (plone.org) ? Do you have experience doing javascript/AJAX development? Nope. I don't. I think I could be useful in developing some dynamic features of interface because I'm interested in that. But the thing is don't know what to start with. Unfortunately Sage doesn't have capability to edit formulas in human style. That's what might be also of interest to me. Creation of different plates for input of special characters, all those things that please the eye. Here are several things that you could do, depending on how comfortable you are and how much time you have: 1. Going on what you say above, you could take a look at http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/editor.html. This is done by the same person that did the jsMath rendering and it is a very nice equation editor purely in javascript (which means we could probably incorporate it into our notebook). Davide (the author) says it isn't done, but it does have some very nice functionality right now. It would be great to find out what he feels isn't done about it, fix it, and incorporate it into Sage. The current code there is under the Apache license, so it's all right for you to download it, modify it, and distribute it. The file listed above in conjunction with the source code: http://www.math.union.edu/~dpvc/talks/2006-12-08.IMA/JS/jsMathEdit.js seem to be all that you need. 2. Review the patch and spkgs at http://trac.sagemath.org/sage_trac/ticket/4255, which provides in-place wysiwyg editing of text cells, based on tinyMCE and a jquery plugin. 3. Clean up the js.py and the notebook code in general. Note that other people are working on this as well, so it would be best to post on sage-devel about what you'd like to do or ask what is needed. This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
William Stein wrote: On Mon, Sep 22, 2008 at 11:05 AM, D. Monarres [EMAIL PROTECTED] wrote: I want to produce a worksheet tutorial for SAGE usage on our campus and was wondering how I could add static text around the notebook cells like is done in the live tutorial . Do I just edit as plain text and add formatting there? Yes, that's what you do right now. Use html markup as for a normal web page. You can also use $$'s for math markup. Couldn't find that information in docs. How do I insert html code into the cell that produces nice html output ? Are there any other ways of text formatting ? Serge William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Just found an example html(h1Double Precision Root Finding Using Bisection/h1) here: http://wiki.sagemath.org/interact/calculus Sorry to trouble about it. There is also another question: can I group the cells like in Mathematica ? Hide them, expand them ? thanks Serge Serge Salamanka пишет: William Stein wrote: On Mon, Sep 22, 2008 at 11:05 AM, D. Monarres [EMAIL PROTECTED] wrote: I want to produce a worksheet tutorial for SAGE usage on our campus and was wondering how I could add static text around the notebook cells like is done in the live tutorial . Do I just edit as plain text and add formatting there? Yes, that's what you do right now. Use html markup as for a normal web page. You can also use $$'s for math markup. Couldn't find that information in docs. How do I insert html code into the cell that produces nice html output ? Are there any other ways of text formatting ? Serge William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
Serge Salamanka wrote: Just found an example html(h1Double Precision Root Finding Using Bisection/h1) here: http://wiki.sagemath.org/interact/calculus Sorry to trouble about it. There is also another question: can I group the cells like in Mathematica ? Hide them, expand them ? You can hide a cell by putting %hide (hide the input, but make it easy to get it back) or %hideall (hide the input for sure). You can't group cells together yet. There is a project, Knoboo, for creating a Mathematica-like notebook interface to a python application and some people have used it with Sage. It doesn't provide for @interact functionality, though. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
On Mon, Sep 22, 2008 at 11:05 AM, D. Monarres [EMAIL PROTECTED] wrote: I want to produce a worksheet tutorial for SAGE usage on our campus and was wondering how I could add static text around the notebook cells like is done in the live tutorial . Do I just edit as plain text and add formatting there? Yes, that's what you do right now. Use html markup as for a normal web page. You can also use $$'s for math markup. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---