Skip to content

Instantly share code, notes, and snippets.

@jasongrout
Forked from theronhitchman/SageCell.html
Last active December 13, 2015 20:28
Show Gist options
  • Save jasongrout/4969903 to your computer and use it in GitHub Desktop.
Save jasongrout/4969903 to your computer and use it in GitHub Desktop.
<!-- put this in the header-->
<script src='http://sagecell.sagemath.org/static/jquery.min.js'/>
<script src='http://sagecell.sagemath.org/static/embedded_sagecell.js'/>
<link href='http://sagecell.sagemath.org/static/sagecell_embed.css' rel='stylesheet' type='text/css'/>
<!-- put this in the body where you want a cell. adjust your inputs, of course. -->
<div class="sage">
<script type="text/x-sage">
1+2
</script></div>
<!-- put this in the footer, or at the bottom of the page -->
<script>sagecell.makeSagecell({inputLocation: ".sage"});</script>
@jasongrout
Copy link
Author

I forked your gist to show how I would do it:

https://gist.github.com/jasongrout/4969903

@jasongrout
Copy link
Author

@ihanson: is that how you would do it?

@theronhitchman
Copy link

Thanks for the tip. I have updated mine to work more like yours. Can you explain why that last script command is placed at the bottom of the page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment