#13621: slight improvement in notebook documentation
--------------------------------+-------------------------------------------
Reporter: startakovsky | Owner: jason, mpatel, was
Type: enhancement | Status: new
Priority: trivial | Milestone: sage-5.5
Component: notebook | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
--------------------------------+-------------------------------------------
Changes (by kcrisman):
* priority: major => trivial
* type: defect => enhancement
Old description:
> My output is the following based on instructions from the website. I am
> using Sage 5.3.
>
> Thanks.
>
> {{{
> sage: from sagenb.notebook.notebook import load_notebook
> sage: nb = load_notebook(dir)
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call
> last)
>
> /home/steven/<ipython console> in <module>()
>
> /home/steven/sage-5.3/devel/sagenb/sagenb/notebook/notebook.pyc in
> load_notebook(dir, interface, port, secure, user_manager)
> 1779 - a Notebook instance
> 1780 """
> -> 1781 if not dir.endswith('.sagenb'):
> 1782 if not os.path.exists(dir + '.sagenb') and
> os.path.exists(os.path.join(dir, 'nb.sobj')):
> 1783 try:
>
> AttributeError: 'builtin_function_or_method' object has no attribute
> 'endswith'
> sage:
>
> }}}
New description:
The documentation at
[http://www.sagemath.org/doc/reference/sagenb/notebook/notebook_object.html#sagenb.notebook.notebook_object.NotebookObject]
is potentially slightly confusing to a newcomer - see below.
----
Original:
My output is the following based on instructions from the website. I am
using Sage 5.3.
Thanks.
{{{
sage: from sagenb.notebook.notebook import load_notebook
sage: nb = load_notebook(dir)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call
last)
/home/steven/<ipython console> in <module>()
/home/steven/sage-5.3/devel/sagenb/sagenb/notebook/notebook.pyc in
load_notebook(dir, interface, port, secure, user_manager)
1779 - a Notebook instance
1780 """
-> 1781 if not dir.endswith('.sagenb'):
1782 if not os.path.exists(dir + '.sagenb') and
os.path.exists(os.path.join(dir, 'nb.sobj')):
1783 try:
AttributeError: 'builtin_function_or_method' object has no attribute
'endswith'
sage:
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13621#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.