mirror of https://github.com/pyodide/pyodide.git
Add src/python_dev.html
This commit is contained in:
parent
bd846468bc
commit
5b0381bd4c
5
Makefile
5
Makefile
|
@ -46,6 +46,7 @@ all: build/pyodide.asm.js \
|
||||||
build/pyodide.js \
|
build/pyodide.js \
|
||||||
build/pyodide_dev.js \
|
build/pyodide_dev.js \
|
||||||
build/python.html \
|
build/python.html \
|
||||||
|
build/python_dev.html \
|
||||||
build/matplotlib.html \
|
build/matplotlib.html \
|
||||||
build/matplotlib-sideload.html \
|
build/matplotlib-sideload.html \
|
||||||
build/renderedhtml.css \
|
build/renderedhtml.css \
|
||||||
|
@ -87,6 +88,10 @@ build/python.html: src/python.html
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
|
||||||
|
build/python_dev.html: src/python_dev.html
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
|
||||||
build/matplotlib.html: src/matplotlib.html
|
build/matplotlib.html: src/matplotlib.html
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,68 @@
|
||||||
|
<!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>
|
Loading…
Reference in New Issue