The new Live sphinx extension seems to confuse URL bookmarks

16 views
Skip to first unread message

Ondřej Čertík

unread,
Aug 30, 2012, 3:15:18 AM8/30/12
to sympy
Hi,

I noticed, that if I click on this link in my Chrome:

http://docs.sympy.org/dev/tutorial.html#algebra

then it brings me to the "Algebra" section momentarily (for about 1/4
s or so), and then moves up.
I think it's because of the new javascript buttons which say "Run code
block in SymPy Live".
They somehow seem to confuse the browser.

Does this happen to you too? Any ideas how to fix this?

Ondrej

Sergiu Ivanov

unread,
Aug 30, 2012, 4:19:12 AM8/30/12
to sy...@googlegroups.com
Hello,
In my Firefox 10.0.6, it stays at the "Algebra" section.

I'm just reporting, no ideas of how to fix it.

Sergiu

Aaron Meurer

unread,
Aug 30, 2012, 1:11:39 PM8/30/12
to sy...@googlegroups.com, David Li
I just tried Firefox too, but I noticed that the Run buttons don't
even show up there (hence no jumps).

Also, the Live box starts out as open, which is a problem. This is
Firefox 15.0, the latest version. So I guess either we are using
non-standard things, or Firefox is a little out of date with respect
to the standards.

I can reproduce Ondrej's problem in Chrome.

I'm CCing David Li, who wrote the extension (I hope this is the correct email).

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
>

Aaron Meurer

unread,
Aug 30, 2012, 7:54:24 PM8/30/12
to sy...@googlegroups.com
Also, the settings appear below the prompt in Chrome and above it in
Firefox. Assumedly you intended for it to be below?

And by the way, clicking on a line to execute doesn't work in Firefox either.

But the biggest issue is the live box starting out open, because
that's really annoying.

Aaron Meurer

On Thu, Aug 30, 2012 at 5:27 PM, David Li <li.da...@gmail.com> wrote:
> Okay, I see the problem with page position. I'll look into it.
>
> In Firefox 14 and 15, there seems to be no position problem, but the run
> button doesn't show up as described - there seems to be a minor difference
> in the DOM. I'll look into this as well.
>
> David Li
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/iMXOzkRGqDMJ.

David Li

unread,
Aug 30, 2012, 8:05:15 PM8/30/12
to sy...@googlegroups.com
Okay, I fixed the Firefox problems. The buttons show up, clicking on a line works, and the settings are below the prompt. I will change the CSS to close the box by default and then work on the scroll problem. I'll set up a pull request when possible.

David

David Li

unread,
Aug 30, 2012, 8:17:22 PM8/30/12
to sy...@googlegroups.com
Okay, pull request at https://github.com/sympy/sympy-live/pull/61

For some reason, I can't reproduce the scroll problem anymore.

David Li

On Thursday, August 30, 2012 12:15:20 AM UTC-7, Ondřej Čertík wrote:
Reply all
Reply to author
Forward
0 new messages