Package sage :: Package server :: Package notebook :: Module notebook_object
[hide private]
[frames] | no frames]

Module notebook_object

source code

nodoctest



Classes [hide private]
  NotebookObject
Start the SAGE Notebook server.
Functions [hide private]
 
inotebook(*args, **kwds)
Exactly the same as notebook(...) but with secure=False.
source code
 
test_notebook(admin_passwd, secure=False, directory=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., port=8050, address='localhost', verbose=False)
This function is used to test notebook server functions.
source code
Variables [hide private]
  notebook = <sage.server.notebook.notebook_object.NotebookObjec...
Function Details [hide private]

test_notebook(admin_passwd, secure=False, directory=['4ti2-20061025', 'R-2.6.0', 'atlas-3.7.37', 'atlas-3.8.1', 'a..., port=8050, address='localhost', verbose=False)

source code 

This function is used to test notebook server functions. 

EXAMPLE:
    sage: from sage.server.notebook.notebook_object import test_notebook
    sage: passwd = str(randint(1,1<<128))
    sage: nb = test_notebook(passwd, address='localhost', port=8060)
    sage: import urllib
    sage: h = urllib.urlopen('https://localhost:8060')
    sage: homepage = h.read()
    sage: h.close()
    sage: 'html' in homepage
    True
    sage: nb.dispose()
    


Variables Details [hide private]

notebook

Value:
NotebookObject()