[sage-devel] Re: jsmath in docstrings

2009-04-03 Thread John H Palmieri
On Apr 3, 12:55 am, Pat LeSmithe wrote: > John H Palmieri wrote: > > matrix? SHIFT-RETURN > > still doesn't behave well, while > > It seems that Cell.html_out() wraps this output in > div.cell_output_html_wrap. Referring to css.py, I think this accounts > for the different font. Adding font

[sage-devel] Re: jsmath in docstrings

2009-04-03 Thread Pat LeSmithe
John H Palmieri wrote: > matrix? SHIFT-RETURN > still doesn't behave well, while It seems that Cell.html_out() wraps this output in div.cell_output_html_wrap. Referring to css.py, I think this accounts for the different font. Adding font properties to div.docstring may help. Then, something

[sage-devel] Re: jsmath in docstrings

2009-04-02 Thread John H Palmieri
On Apr 2, 7:26 am, Pat LeSmithe wrote: > It's another mess --- I'm not very familiar with Python's string methods > --- but the code below seems to work.  I've included a few comments. I incorporated the changes (although without the comments) in the patch on the trac ticket. Unfortunately,

[sage-devel] Re: jsmath in docstrings

2009-04-02 Thread Pat LeSmithe
It's another mess --- I'm not very familiar with Python's string methods --- but the code below seems to work. I've included a few comments. def SPHINX_set_introspect_html(self, html, completing=False): if completing: self.__introspect_html = html else: # I thin

[sage-devel] Re: jsmath in docstrings

2009-04-01 Thread John H Palmieri
On Apr 1, 4:06 pm, William Stein wrote: > 2009/4/1 John H Palmieri : > > > Here's a link to a new picture: (how do I add links to posts?) > > > > > >  John > > Can you post your new code so I can try it out? :-) Okay, there is a new

[sage-devel] Re: jsmath in docstrings

2009-04-01 Thread William Stein
2009/4/1 John H Palmieri : > > On Mar 31, 11:10 pm, Pat LeSmithe wrote: >> After some manual inspection of Sphinx's cmdline.py, I think I've made >> some [crude] progress (screenshot attached).  In cell.py, I replaced >> Cell.set_introspect_html() with > > This is cool.  I've modified it a bit: I

[sage-devel] Re: jsmath in docstrings

2009-04-01 Thread John H Palmieri
On Mar 31, 11:10 pm, Pat LeSmithe wrote: > After some manual inspection of Sphinx's cmdline.py, I think I've made > some [crude] progress (screenshot attached).  In cell.py, I replaced > Cell.set_introspect_html() with This is cool. I've modified it a bit: I've deleted some of the html and I've

[sage-devel] Re: jsmath in docstrings

2009-03-31 Thread John H Palmieri
On Mar 29, 4:46 pm, William Stein wrote: > On Sun, Mar 29, 2009 at 4:14 PM, John H Palmieri > wrote: > > > In the notebook, would it be at all feasible to have the math in > > docstrings (that is, text in backquotes like `n \times n`) run through > > jsmath? > > Yes, that's definitely possible.

[sage-devel] Re: jsmath in docstrings

2009-03-30 Thread Jason Grout
William Stein wrote: > On Sun, Mar 29, 2009 at 4:14 PM, John H Palmieri > wrote: >> In the notebook, would it be at all feasible to have the math in >> docstrings (that is, text in backquotes like `n \times n`) run through >> jsmath? > > Yes, that's definitely possible. Also, something like py

[sage-devel] Re: jsmath in docstrings

2009-03-29 Thread William Stein
On Sun, Mar 29, 2009 at 5:07 PM, John H Palmieri wrote: > > On Mar 29, 4:46 pm, William Stein wrote: >> On Sun, Mar 29, 2009 at 4:14 PM, John H Palmieri >> wrote: >> >> >> >> > In the notebook, would it be at all feasible to have the math in >> > docstrings (that is, text in backquotes like `n

[sage-devel] Re: jsmath in docstrings

2009-03-29 Thread John H Palmieri
On Mar 29, 4:46 pm, William Stein wrote: > On Sun, Mar 29, 2009 at 4:14 PM, John H Palmieri > wrote: > > > > > In the notebook, would it be at all feasible to have the math in > > docstrings (that is, text in backquotes like `n \times n`) run through > > jsmath? > > Yes, that's definitely possi

[sage-devel] Re: jsmath in docstrings

2009-03-29 Thread William Stein
On Sun, Mar 29, 2009 at 4:14 PM, John H Palmieri wrote: > > In the notebook, would it be at all feasible to have the math in > docstrings (that is, text in backquotes like `n \times n`) run through > jsmath? Yes, that's definitely possible. Also, something like pygments (?) I guess could make i