Commit 6b99d673 authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #180 from rth/python_dev.html

Add dev python notebook python_dev.html
parents 127f81fe 5b0381bd
......@@ -46,6 +46,7 @@ all: build/pyodide.asm.js \
build/pyodide.js \
build/pyodide_dev.js \
build/python.html \
build/python_dev.html \
build/matplotlib.html \
build/matplotlib-sideload.html \
build/renderedhtml.css \
......@@ -87,6 +88,10 @@ build/python.html: src/python.html
cp $< $@
build/python_dev.html: src/python_dev.html
cp $< $@
build/matplotlib.html: src/matplotlib.html
cp $< $@
......
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Python - iodide</title>
<link rel="stylesheet" type="text/css" href="https://iodide.io/dist/iodide.pyodide-20180623.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": "./pyodide_dev.js",
"module": "pyodide",
"evaluator": "runPython",
"pluginType": "language"
}
},
"lastExport": "2018-05-04T17:13:00.489Z"
}
%% md
# Pyodide dev notebook 🐍
An iodide notebook used for developpement that loads the locally build packages
%% plugin
{
"languageId": "py",
"displayName": "python",
"codeMirrorMode": "python",
"keybinding": "p",
"url": "./pyodide_dev.js",
"module": "pyodide",
"evaluator": "runPython",
"pluginType": "language"
}
%% js
pyodide.loadPackage('numpy')
%% code {"language":"py"}
import numpy as np
np.arange(2)
%% js
</script>
<div id='page'></div>
<script src='https://iodide.io/dist/iodide.pyodide-20180623.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