live shell on the website

28 views
Skip to first unread message

Nico

unread,
Aug 24, 2015, 5:00:41 PM8/24/15
to sympy
I've been using Sympy in the past few weeks more than ever before, and I have to say it's been quite a nice experience.

As a an almost-newcomer, the single most annoying thing was that you can't copy-and-paste code from the website. Every time I select code from the documentation on [1], the live shell opens with seemingly unrelated code ("I didn't ask for this!"), and after hiding it, I find myself on another place in the documentation. Yikes!

Other than that great work. I particularly appreciate the helpfulness of this "mailing list".

Cheers,
Nico


Sudhanshu Mishra

unread,
Aug 24, 2015, 6:37:41 PM8/24/15
to sy...@googlegroups.com
Hi

I like the idea. The live shell is useful in general but it would be a nice thing to have an additional button which copies the plain code from a particular box.

 and after hiding it, I find myself on another place in the documentation. Yikes!

This happens because the live shell tries to accommodate itself without covering text.

Sudhanshu Mishra

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/58147b7b-8128-4346-a2cd-5b465777fb42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aaron Meurer

unread,
Aug 25, 2015, 8:52:55 PM8/25/15
to sy...@googlegroups.com
There's probably a way we can make a selection not register as a click. Any Javascript experts here?

Aaron Meurer

Waldir Pimenta

unread,
Aug 26, 2015, 10:55:03 AM8/26/15
to sympy
AFAIK it should be possible, by registering the x and y coordinates of the mousedown event, and comparing with the coordinates of the mouseup event. And maybe the timestamp as well. If both are sufficiently distant from the original ones, then the drag code should be executed, otherwise the click code should.
Reply all
Reply to author
Forward
0 new messages