Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding Sage Cell instances into Moodle pages #455

Open
ssemerikov opened this issue May 14, 2015 · 2 comments
Open

Embedding Sage Cell instances into Moodle pages #455

ssemerikov opened this issue May 14, 2015 · 2 comments

Comments

@ssemerikov
Copy link

Before Moodle 2.9 it was possible embed in any Moodle pages Sage Cell instances. After upgrading to Moodle 2.9 I got only cell without output (button "Evaluate" don't work, license agreement is not appeared).
For example, following code work in Moodle 2.8.5 and don't work in 2.9
(http://i72.fastpic.ru/big/2015/0514/72/2cfdd959ebd786251af64fdf037df372.png):

<script src="https://sagecell.sagemath.org/static/jquery.min.js"></script> <script src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script> <script>$(function () { sagecell.makeSagecell( {inputLocation: 'div.compute', autoeval: true } ); }); </script>
<script type="text/x-sage"> show(plot(sin,x,-pi,+pi)) </script>
@novoselt
Copy link
Member

Just to make sure - it does work in 2.8.5 right now and does not work in 2.9, or it used to work in 2.8.5 a week ago and now there are issues that you noticed with 2.9? We are currently experiencing problems with embedded cells for "Europe", which may or may not include Russia.

If the problem is Moodle-specific - I observed in the past that Moodle adds some tags that mess up embedding code. Never figured out why did it happen as I just hosted pages elsewhere.

@ssemerikov
Copy link
Author

According to Eugene Modlo's message at sage-support (https://groups.google.com/forum/#!searchin/sage-support/moodle/sage-support/fwf5h2nrKTU/XkW3SwXxOK8J), I tried:

  1. to create test page at http://demo.moodle.net/ (it's reset every hour, so I cann't give working link to you), hosted by GoDaddy.com;
  2. to create test page at Moodle 2.8.5 site strictly.
    At both variants - not work, so I think that problem isn't in Moodle version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants