Skip to content

Embedding Sage Cell instances into Moodle pages #455

@ssemerikov

Description

@ssemerikov

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions