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()
|