Commit d106b87e authored by Michael Droettboom's avatar Michael Droettboom

Move to new tag of Iodide

parent d7ea2c96
......@@ -76,6 +76,7 @@ all: build/pyodide.asm.js \
build/pyodide_dev.js \
build/python.html \
build/matplotlib.html \
build/matplotlib-sideload.html \
build/renderedhtml.css \
build/numpy.data \
build/dateutil.data \
......@@ -116,6 +117,10 @@ build/matplotlib.html: src/matplotlib.html
cp $< $@
build/matplotlib-sideload.html: src/matplotlib-sideload.html
cp $< $@
build/test.html: src/test.html
cp $< $@
......
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Python - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/dist/iodide.pyodide-20180605.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
%% meta
{
"title": "Python",
"languages": {
"js": {
"pluginType": "language",
"languageId": "js",
"displayName": "Javascript",
"codeMirrorMode": "javascript",
"module": "window",
"evaluator": "eval",
"keybinding": "j",
"url": ""
},
"py": {
"languageId": "py",
"displayName": "python",
"codeMirrorMode": "python",
"keybinding": "p",
"url": "https://iodide-project.github.io/pyodide-demo/pyodide.js",
"module": "pyodide",
"evaluator": "runPython",
"pluginType": "language"
}
},
"lastExport": "2018-05-04T17:13:00.489Z"
}
%% md
Press Shift+Enter on the cell below to display the plot.
%% code {"language":"py"}
</script>
<script>
var blackout = document.createElement('div');
blackout.setAttribute('style', 'width: 100%; height: 100%; position: absolute; left: 0; top: 0; background-color: #00000066; z-index: 10');
document.body.appendChild(blackout);
var url_string = window.location;
var url = new URL(url_string);
var content = url.searchParams.get("sideload");
fetch(content).then((response) => response.text())
.then((text) => {
let jsmd = document.getElementById('jsmd');
jsmd.innerHTML = jsmd.innerHTML + text;
let script = document.createElement('script');
script.src = 'https://iodide-project.github.io/dist/iodide.pyodide-20180605.js';
script.onload = () => {
let pyodide = document.createElement('script');
pyodide.src = 'https://iodide-project.github.io/pyodide-demo/pyodide.js';
pyodide.onload = () => {
languagePluginLoader.then(() => {
window.pyodide.loadPackage('matplotlib').then(() => {
window.pyodide.runPython('__name__ = "__main__"');
blackout.parentNode.removeChild(blackout);
});
});
};
document.body.appendChild(pyodide);
}
document.body.appendChild(script);
});
</script>
<div id='page'></div>
</body>
</html>
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Python - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/dist/iodide.pyodide-20190518.css">
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/dist/iodide.pyodide-20180605.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
......@@ -204,6 +204,6 @@ plt.gcf().canvas.mpl_connect('motion_notify_event', motion_notify)
plt.show()
</script>
<div id='page'></div>
<script src='https://iodide-project.github.io/dist/iodide.pyodide-20190518.js'></script>
<script src='https://iodide-project.github.io/dist/iodide.pyodide-20180605.js'></script>
</body>
</html>
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Python - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/dist/iodide.pyodide-20190518.css">
<link rel="stylesheet" type="text/css" href="https://iodide-project.github.io/dist/iodide.pyodide-20180605.css">
</head>
<body>
<script id="jsmd" type="text/jsmd">
......@@ -262,6 +262,6 @@ A couple things that already work that will be coming to this example notebook s
%% js
</script>
<div id='page'></div>
<script src='https://iodide-project.github.io/dist/iodide.pyodide-20190518.js'></script>
<script src='https://iodide-project.github.io/dist/iodide.pyodide-20180605.js'></script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment