Skip to content

Instantly share code, notes, and snippets.

@theronhitchman
Last active June 4, 2018 13:02

Revisions

  1. theronhitchman revised this gist Apr 21, 2013. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions SageCell.html
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,13 @@
    <!-- put this in the header-->
    <script src="http://sagecell.sagemath.org/static/jquery.min.js"></script>
    <script src="http://sagecell.sagemath.org/static/embedded_sagecell.js"></script>

    <link rel="stylesheet" type="text/css" href="http://sagecell.sagemath.org/static/sagecell_embed.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. -->
    <!-- put this in the footer, or at the bottom of the page. -->
    <script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>
  2. theronhitchman revised this gist Apr 21, 2013. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions SageCell.html
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,14 @@
    <!-- put this in the header-->
    <script src="http://sagecell.sagemath.org/static/jquery.min.js"></script>
    <script src="http://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
    <script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>

    <link rel="stylesheet" type="text/css" href="http://sagecell.sagemath.org/static/sagecell_embed.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>
    </script></div>

    <!-- put this in the footer, or at the bottom of the page. -->
  3. theronhitchman revised this gist Apr 21, 2013. 1 changed file with 4 additions and 9 deletions.
    13 changes: 4 additions & 9 deletions SageCell.html
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,8 @@
    <!-- 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'/>
    <script>$(function () { sagecell.makeSagecell({&quot;inputLocation&quot;: &quot;.sage&quot;}) });</script>

    <style>
    .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;}
    </style>

    <script src="http://sagecell.sagemath.org/static/jquery.min.js"></script>
    <script src="http://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
    <script>sagecell.makeSagecell({"inputLocation": ".sage"});</script>
    <link rel="stylesheet" type="text/css" href="http://sagecell.sagemath.org/static/sagecell_embed.css">


    <!-- put this in the body where you want a cell. adjust your inputs, of course. -->
  4. theronhitchman revised this gist Feb 19, 2013. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion SageCell.html
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,14 @@
    <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'/>
    <style> .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;} </style>
    <script>$(function () { sagecell.makeSagecell({&quot;inputLocation&quot;: &quot;.sage&quot;}) });</script>

    <style>
    .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;}
    </style>



    <!-- put this in the body where you want a cell. adjust your inputs, of course. -->
    <div class="sage">
    <script type="text/x-sage">
  5. theronhitchman revised this gist Feb 19, 2013. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions SageCell.html
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,7 @@
    <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'/>
    <style>
    .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;}
    </style>
    <style> .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;} </style>
    <script>$(function () { sagecell.makeSagecell({&quot;inputLocation&quot;: &quot;.sage&quot;}) });</script>

    <!-- put this in the body where you want a cell. adjust your inputs, of course. -->
  6. theronhitchman revised this gist Feb 19, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion SageCell.html
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@

    <!-- 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'/>
    <style>
    .CodeMirror-scroll {height: auto; overflow-y: auto; overflow-x: auto; max-height: 60ex;}
    </style>
    <script>$(function () { sagecell.makeSagecell({&quot;inputLocation&quot;: &quot;.sage&quot;}) });</script>

    <!-- put this in the body where you want a cell. adjust your inputs, of course. -->
  7. theronhitchman created this gist Feb 16, 2013.
    12 changes: 12 additions & 0 deletions SageCell.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@

    <!-- 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'/>
    <script>$(function () { sagecell.makeSagecell({&quot;inputLocation&quot;: &quot;.sage&quot;}) });</script>

    <!-- 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>