Public
Edited
Nov 30, 2023
Insert cell
Insert cell
Insert cell
html`
<head>
<script src='https://sagecell.sagemath.org/static/embedded_sagecell.js'></script>
</head>
<style>
@import 'https://fonts.googleapis.com/css?family=Akronim';
h2 {color:slategray; font-family:Akronim; font-size:120%; text-shadow:4px 4px 4px #aaa;}
.sagecell .CodeMirror-scroll {min-height:7em; max-height:70em; text-shadow:3px 3px 3px #aaa;}
</style>`
Insert cell
Insert cell
import_js=function(src,module_name) {
/*if (!$('head').find(`script[src='${src}']`)) {
$('head').append(`<script src='${src}'></script>`);
}*/
return new Promise(function(resolve,reject) {
function waiting(){
if (typeof module_name=='undefined') resolve();
if (eval(module_name)) resolve(eval(module_name));
setTimeout(waiting,30);};
require(src).then(function() {waiting();})
.catch(function() {waiting();}); }); }
Insert cell
sagecell=import_js('https://sagecell.sagemath.org/static/embedded_sagecell.js','window.sagecell')
Insert cell
{sagecell.makeSagecell({inputLocation:'div.sage',linked:true,evalButtonText:'run'})}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more