Changeset 2683:555dfe784a86


Ignore:
Timestamp:
01/27/07 00:03:00 (6 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

Cleaned up the doc browser a little (much simpler to use?); fixed some tiny bugs (made more robust).

Location:
sage
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sage/rings/polynomial_quotient_ring_element.py

    r2658 r2683  
    99    -6*a + 2 
    1010 
    11 Next we make a univeriate polynomial ring over $$\Z[x]/(x^3+3x-1)$. 
     11Next we make a univeriate polynomial ring over $\Z[x]/(x^3+3x-1)$. 
    1212    sage: S.<y> = S[] 
    1313 
  • sage/rings/power_series_ring.py

    r2681 r2683  
    1 """ 
     1r""" 
    22Univariate Power Series Rings 
    33 
  • sage/server/notebook/notebook.py

    r2682 r2683  
    806806        m = max([len(x) for x in names] + [30]) 
    807807        for n in names: 
     808            if n == 'doc_browser': continue 
    808809            W = self.__worksheets[n] 
    809810            if W == current_worksheet: 
     
    982983        body += '    <a class="history_link" onClick="history_window()">History</a>' + vbar  
    983984        #body += '     <a onClick="toggle_left_pane()" class="worksheets_button" id="worksheets_button">Worksheets</a>' + vbar 
    984         body += '    <a class="doc_browser" onClick="show_doc_browser()">Documentation</a>' + vbar 
     985        #body += '    <a class="doc_browser" onClick="show_doc_browser()">Documentation</a>' + vbar 
     986        body += '    <a href="/doc_browser?/?index.html">Documentation</a>' + vbar 
    985987        body += '    <a class="help" onClick="show_help_window()">Help</a>' + vbar 
    986988        body += '    <a class="slide_mode" onClick="slide_mode()">Slideshow</a>'  
     
    12081210                ('Hide Cell Input', 
    12091211                 '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.'), 
    1210                 ('Detailed Help', 
    1211                  'Type "help(object)" and press shift-return.'), 
     1212                ('Documentation', 
     1213                 'Click on <a href="/doc_browser?/?index.html">Documentation</a> in the upper right to browse the SAGE tutorial, reference manual, and other documentation.'), 
    12121214                ('Insert New Cell', 
    12131215                 'Put mouse between an output and input until the horizontal line appears and click.  Also if you press control-enter in a cell, a new cell is inserted after it.'), 
     
    12271229                ('Attaching Scripts', 'Use "attach filename.sage" or "attach filename.py".  Attached files are automatically reloaded when the file changes.  The file $HOME/.sage/init.sage is attached on startup if it exists.'), 
    12281230                ('Downloading and Uploading Worksheets', 
    1229                  'Click <u>Download</u> in the upper right to download a complete worksheet to a local .sws file, and click <u>Upload</u> to upload a saved worksheet to the notebook.  Note that <i>everything</i> that has been submitted is automatically saved to disk when you quit the notebook server (or type "%save_server" into a cell).'), 
     1231                 'Click <u>Download</u> in the upper right to download a complete worksheet to a local .sws file, and click <a href="__upload__.html">Upload</a> to upload a saved worksheet to the notebook.  Note that <i>everything</i> that has been submitted is automatically saved to disk when you quit the notebook server (or type "%save_server" into a cell).'), 
    12301232                ('Restart', 'Type "restart" to restart the SAGE interpreter for a given worksheet.  (You have to interrupt first.)'), 
    12311233                ('Input Rules', "Code is evaluated by exec'ing (after preparsing).  Only the output of the last line of the cell is implicitly printed.  If any line starts with \"sage:\" or \">>>\" the entire block is assumed to contain text and examples, so only lines that begin with a prompt are executed.   Thus you can paste in complete examples from the docs without any editing, and you can write input cells that contains non-evaluated plain text mixed with examples by starting the block with \">>>\" or including an example."), 
     
    12691271        } 
    12701272        </style> 
     1273        <h1 align=center><font color='darkred'>SAGE</font> Notebook Quickstart</h1> 
    12711274        <div class="help_window"> 
    12721275         
     
    13291332        body = self._doc_html_body(worksheet_id) 
    13301333        if worksheet_id is not None: 
    1331             body += '<script language=javascript>worksheet_id="%s"; worksheet_filename="%s"; worksheet_name="%s"; toggle_left_pane(); </script>;'%(worksheet_id, W.filename(), W.name()) 
     1334           body += '<script language=javascript>worksheet_id="%s"; worksheet_filename="%s"; worksheet_name="%s"; toggle_left_pane(); </script>;'%(worksheet_id, W.filename(), W.name()) 
    13321335 
    13331336        return """ 
  • sage/server/notebook/server.py

    r2682 r2683  
    459459    #  Doc-browser functionality 
    460460    ####################################################################### 
     461    # TODO: this will not work right on a multi-user system, since if 
     462    # multiple people viewer the browser at the same time and eval cells, 
     463    # this will conflict.  
    461464 
    462465    def doc_browser(self, path): 
     
    507510        W = worksheet 
    508511        Wid = W.id() 
    509         s = notebook.doc_html(Wid, css_href) 
    510         self.wfile.write(s) 
     512        #s = notebook.doc_html(Wid, css_href) 
     513        #self.wfile.write(s) 
     514        self.show_page(Wid) 
     515        #s = notebook.html(Wid) 
    511516     
    512517    ####################################################################### 
  • sage/version.py

    r2642 r2683  
    11"""nodoctests""" 
    2 version='1.8.2.1'; date='2007-01-24' 
     2version='1.9.alpha1'; date='2007-01-26' 
Note: See TracChangeset for help on using the changeset viewer.