Commit 5b0381bd authored by Roman Yurchak's avatar Roman Yurchak

Add src/python_dev.html

parent bd846468
......@@ -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