Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
9c37f4df
Commit
9c37f4df
authored
Jun 27, 2018
by
Michael Droettboom
Committed by
GitHub
Jun 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #58 from iodide-project/load-package-await
Fix #53: Make "run all" work
parents
55aedee7
70cbaa81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
src/matplotlib-sideload.html
src/matplotlib-sideload.html
+2
-2
src/matplotlib.html
src/matplotlib.html
+2
-2
src/pyodide.js
src/pyodide.js
+4
-0
src/python.html
src/python.html
+2
-2
No files found.
src/matplotlib-sideload.html
View file @
9c37f4df
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Python - iodide
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
05
.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
23
.css"
>
</head>
<body>
<script
id=
"jsmd"
type=
"text/jsmd"
>
...
...
@@ -54,7 +54,7 @@ Press Shift+Enter on the cell below to display the plot.
let
jsmd
=
document
.
getElementById
(
'
jsmd
'
);
jsmd
.
innerHTML
=
jsmd
.
innerHTML
+
text
;
let
script
=
document
.
createElement
(
'
script
'
);
script
.
src
=
'
https://iodide.io/dist/iodide.pyodide-201806
05
.js
'
;
script
.
src
=
'
https://iodide.io/dist/iodide.pyodide-201806
23
.js
'
;
script
.
onload
=
()
=>
{
let
pyodide
=
document
.
createElement
(
'
script
'
);
pyodide
.
src
=
'
https://iodide.io/pyodide-demo/pyodide.js
'
;
...
...
src/matplotlib.html
View file @
9c37f4df
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Python - iodide
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
05
.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
23
.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.io/dist/iodide.pyodide-201806
05
.js'
></script>
<script
src=
'https://iodide.io/dist/iodide.pyodide-201806
23
.js'
></script>
</body>
</html>
src/pyodide.js
View file @
9c37f4df
...
...
@@ -62,6 +62,10 @@ var languagePluginLoader = new Promise((resolve, reject) => {
'
_importlib.invalidate_caches()
\n
'
);
});
if
(
window
.
iodide
!==
undefined
)
{
window
.
iodide
.
evalQueue
.
await
([
promise
]);
}
return
promise
;
};
...
...
src/python.html
View file @
9c37f4df
...
...
@@ -3,7 +3,7 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Python - iodide
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
05
.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://iodide.io/dist/iodide.pyodide-201806
23
.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.io/dist/iodide.pyodide-201806
05
.js'
></script>
<script
src=
'https://iodide.io/dist/iodide.pyodide-201806
23
.js'
></script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment