\Preamble{xhtml,mathjax}
\Configure{@BODY}{\IgnorePar
\HCode{\detokenize{\(}}
\special{t4ht*<mymacros.tex}
\HCode{\detokenize{\)}}
\par}
\begin{document}
\def\eqref#1{$\mathrm{(\ref{#1})}$}\EndPreamble

 \ScriptEnv{html}
    {\ifvmode\IgnorePar\fi\EndP\NoFonts\hfill\break }
    {\EndNoFonts }

 \begin{html}
 <script src="https://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
<script>
    // Make the div with id 'mycell' a Sage cell
    sagecell.makeSagecell({inputLocation:  '#mycell',
                            template:       sagecell.templates.minimal,
                           evalButtonText: 'Activate'});
    // Make *any* div with class 'compute' a Sage cell
    sagecell.makeSagecell({inputLocation: 'div.compute',
                           evalButtonText: 'Evaluate'});
    </script>
 \end{html}
 

