#10860: R package documentation not accessible from notebook
------------------------------------------------------+---------------------
    Reporter:  aginiewicz                             |         Owner:  jason, 
mpatel, was 
        Type:  defect                                 |        Status:  closed  
           
    Priority:  minor                                  |     Milestone:  
sage-4.7.1         
   Component:  notebook                               |    Resolution:  fixed   
           
    Keywords:  unicode, notebook, docstring, R, sd31  |   Work_issues:          
           
    Upstream:  N/A                                    |      Reviewer:  
Karl-Dieter Crisman
      Author:  Andrzej Giniewicz                      |        Merged:  
sage-4.7.1.alpha4  
Dependencies:                                         |  
------------------------------------------------------+---------------------
Changes (by jdemeyer):

  * status:  positive_review => closed
  * resolution:  => fixed
  * merged:  => sage-4.7.1.alpha4


Old description:

> The documentation of package R is not accessible from notebook, while it
> works from command line.
>
> {{{
> sage: r.lm?
> <html><!--notruncate-->
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "_sage_input_3.py", line 10, in <module>
>    exec compile(u'print _support_.docstring("r.lm", globals(),
> system="sage")' + '\n', '', 'single')
>  File "", line 1, in <module>
>
>  File "/opt/sage/devel/sagenb/sagenb/misc/support.py", line 263, in
> docstring
>    return html_markup(s)
>  File "/opt/sage/devel/sagenb/sagenb/misc/support.py", line 288, in
> html_markup
>    return '<div class="docstring">' + preamble + '<pre>' + s +
> '</pre></div>'
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> 116: ordinal not in range(128)
> </html>
> }}}
>

> ----
> Apply [attachment:10860.patch] and [attachment:trac_10860-review.patch].
> See [http://groups.google.com/group/sage-
> support/browse_thread/thread/8090747ec559f0fc/2f141d9c14377592 this sage-
> support thread].

New description:

 The documentation of package R is not accessible from notebook, while it
 works from command line.

 {{{
 sage: r.lm?
 <html><!--notruncate-->
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_3.py", line 10, in <module>
    exec compile(u'print _support_.docstring("r.lm", globals(),
 system="sage")' + '\n', '', 'single')
  File "", line 1, in <module>

  File "/opt/sage/devel/sagenb/sagenb/misc/support.py", line 263, in
 docstring
    return html_markup(s)
  File "/opt/sage/devel/sagenb/sagenb/misc/support.py", line 288, in
 html_markup
    return '<div class="docstring">' + preamble + '<pre>' + s +
 '</pre></div>'
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
 116: ordinal not in range(128)
 </html>
 }}}

 See [http://groups.google.com/group/sage-
 support/browse_thread/thread/8090747ec559f0fc/2f141d9c14377592 this sage-
 support thread].

 Apply [attachment:10860.patch] and [attachment:trac_10860-review.patch] to
 sagenb.

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10860#comment:9>
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.

Reply via email to