Marc Abramowitz
9402c8bd08
Add html5lib
2019-03-20 23:41:47 -07:00
Michael Droettboom
c73c37e6ce
Reset stdout/stderr buffers each time
2019-03-19 16:52:54 -04:00
Michael Droettboom
0ceeff6588
Improve console handling. Remove broken matplotlib-sideload
2019-03-19 15:56:11 -04:00
Michael Droettboom
a6e9017cc8
Merge pull request #348 from msabramo/patch-2
...
Link to @dgym
2019-03-19 13:52:10 -04:00
Marc Abramowitz
990fbaa578
Link to @dgym
2019-03-18 21:33:32 -07:00
Michael Droettboom
c9c47523b9
Merge pull request #339 from msabramo/pygments
...
Add pygments package
2019-03-18 08:45:19 -04:00
Michael Droettboom
8dd5c599f6
Merge pull request #341 from msabramo/beautifulsoup4
...
Add beautifulsoup4 (w/ soupsieve)
2019-03-18 08:44:55 -04:00
Michael Droettboom
29b1420601
Merge pull request #342 from msabramo/docutils
...
Add docutils
2019-03-18 08:44:43 -04:00
Marc Abramowitz
c4e1a4140a
Add beautifulsoup4 (w/ soupsieve)
...
Example:
If you do:
```js
languagePluginLoader.then(() => {
// pyodide is now ready to use...
pyodide.loadPackage('beautifulsoup4').then(() => {
pyodide.runPython(`
text = """
<div>
<!-- These are animals -->
<p class="a">Cat</p>
<p class="b">Dog</p>
<p class="c">Mouse</p>
</div>
"""
from bs4 import BeautifulSoup
import soupsieve
soup = BeautifulSoup(text, 'html.parser')
print(soup.select('p:is(.a, .c)'))
`);
});
});
```
then the output is:
```
[<p class="a">Cat</p>, <p class="c">Mouse</p>]
```
2019-03-15 14:49:58 -07:00
Marc Abramowitz
ea09d5004e
Add pygments package
2019-03-15 10:10:59 -07:00
Michael Droettboom
7441d5250e
Partially address #338 : Provide simple method for interactive testing
...
This adds a basic repl-like console webpage that can be used for
testing of the local pyodide install.
It removes the broken examples based on standalone iodide.
2019-03-15 12:54:08 -04:00
Michael Droettboom
0a92640d8b
Merge pull request #340 from msabramo/bleach
...
Add bleach
2019-03-15 11:37:44 -04:00
Marc Abramowitz
d14eee1161
Add docutils
...
Example: If you do this:
```js
languagePluginLoader.then(() => {
// pyodide is now ready to use...
pyodide.loadPackage('docutils').then(() => {
pyodide.runPython(`
import docutils.core
print(docutils.core.publish_string("\`Python <http://www.python.org/ >\`_ is **cool**!", writer_name='html5', settings_overrides={'embed_stylesheet': False}).decode('utf-8'))
`);
});
});
```
then the output is:
```
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/ " />
<title><string></title>
<link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/minimal.css" type="text/css" />
<link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/plain.css" type="text/css" />
</head>
<body>
<div class="document">
<p><a class="reference external" href="http://www.python.org/ ">Python</a> is <strong>cool</strong>!</p>
</div>
</body>
</html>
```
2019-03-15 08:14:58 -07:00
Michael Droettboom
89eca5f5b7
Bump version: 0.8.2 → 0.9.0
2019-03-15 11:12:17 -04:00
Marc Abramowitz
e92ba1c901
Add bleach
...
for sanitizing HTML. Example:
```js
languagePluginLoader.then(() => {
// pyodide is now ready to use...
pyodide.loadPackage('bleach').then(() => {
pyodide.runPython(`
import bleach
print(bleach.clean('There is good stuff <script>and bad stuff</script> in here.'))
`);
});
});
```
leads to the output:
```
There is good stuff <script>and bad stuff</script> in here.
```
2019-03-15 00:44:51 -07:00
Michael Droettboom
fe8f091d8a
Merge pull request #336 from mdboom/rebuild-package-on-depchange
...
Automatically rebuild packages if any patches or extra files change
2019-03-14 10:23:28 -04:00
Michael Droettboom
650d321bd9
Fix fresh build
2019-03-14 08:52:28 -04:00
Michael Droettboom
bdee21895a
Merge pull request #337 from mdboom/cleanup
...
Clean up the downloaded file if it's corrupted
2019-03-14 07:43:03 -04:00
Michael Droettboom
04b7f73718
Clean up the downloaded file if it's corrupted
2019-03-13 15:01:35 -04:00
Michael Droettboom
8f6e1bab09
Automatically rebuild packages if any patches or extra files change
2019-03-13 14:50:18 -04:00
Michael Droettboom
f5140c8abd
Merge pull request #333 from mdboom/fix-apply-on-pyproxy
...
Fix #332 : Make pyproxy.apply work
2019-03-13 14:44:36 -04:00
Michael Droettboom
1b111df298
Fix destroy
2019-03-13 11:32:46 -04:00
Michael Droettboom
33e51f5904
Fix destroy()
2019-03-12 18:04:47 -04:00
Michael Droettboom
17cd31dce3
Fix #332 : Make pyproxy.apply work
2019-03-12 17:11:40 -04:00
Roman Yurchak
584c61edc9
Merge pull request #331 from mdboom/mkpkg
...
Add a mkpkg tool to make new packages.
2019-03-12 08:58:34 +01:00
Michael Droettboom
de7cb8f4f2
Merge pull request #330 from mdboom/sympy
...
Fix #327 : Add sympy support
2019-03-01 08:27:31 -05:00
Michael Droettboom
1b867058ab
Add a mkpkg tool to make new packages.
2019-02-28 18:43:26 -05:00
Michael Droettboom
4e4162fbf4
Fix #327 : Add sympy support
2019-02-28 18:38:49 -05:00
Michael Droettboom
930b8e2bbe
Merge pull request #326 from mdboom/cdecimal
...
Build the _decimal C module.
2019-02-28 10:30:32 -05:00
Michael Droettboom
8d61da9480
Merge pull request #325 from mdboom/as_nested_list
...
Fix #316 : Add convenience function for converting from nested Arrays
2019-02-28 10:30:20 -05:00
Michael Droettboom
1b031347a3
Build the _decimal C module
2019-02-25 11:29:59 -05:00
Michael Droettboom
d5493955d8
Fix #316 : Add convenience function for converting from nested Arrays
2019-02-25 08:32:03 -05:00
Michael Droettboom
63b6ba23e8
Bump version: 0.8.1 → 0.8.2
2019-02-21 20:42:12 -05:00
Michael Droettboom
f3fcf034ad
Merge pull request #323 from mdboom/fix-matplotlib
...
Fix matplotlib wasm backend after undefined attribute behavior changed
2019-02-21 20:41:49 -05:00
Michael Droettboom
2f3a727eab
Add test for wasm_backend. Fix PDF test.
2019-02-21 18:26:42 -05:00
Michael Droettboom
45d1449209
Include plt.show() in test
2019-02-21 18:17:24 -05:00
Michael Droettboom
68de9439cd
Fix matplotlib wasm backend after undefined attribute behavior changed
2019-02-21 18:09:16 -05:00
Michael Droettboom
8da4b1f5f1
Bump version: 0.8.0 → 0.8.1
2019-02-21 14:59:49 -05:00
Michael Droettboom
1c4362203c
Merge pull request #322 from mdboom/issue319
...
Handle numpy scalars in python2js_buffer
2019-02-21 14:59:13 -05:00
Michael Droettboom
7c097fa4c2
Handle numpy scalars in python2js_buffer
2019-02-21 13:59:45 -05:00
Michael Droettboom
16580a16ca
Bump version: 0.7.2 → 0.8.0
2019-02-20 12:47:28 -05:00
Hamilton Ulmer
b3d69342bd
Merge pull request #320 from mdboom/fix-jsproxy-dict-conversion
...
Fix conversion from jsproxy to dict
2019-02-20 09:33:51 -08:00
Michael Droettboom
758ef4afbb
Fix conversion from jsproxy to dict
2019-02-15 15:00:43 -05:00
Michael Droettboom
18bcd9e61c
Bump version: 0.7.1 → 0.7.2
2019-02-14 16:59:59 -05:00
Michael Droettboom
1ee57cbd16
Fix broken merge
2019-02-14 16:59:54 -05:00
Michael Droettboom
7a496116e8
Bump version: 0.7.0 → 0.7.1
2019-02-14 16:53:36 -05:00
Michael Droettboom
5031e69fc6
Merge pull request #318 from mdboom/update-api
...
Update for new Iodide renderer API
2019-02-14 16:53:17 -05:00
Michael Droettboom
3e0c891184
Update for new Iodide renderer API
2019-02-14 16:52:47 -05:00
Michael Droettboom
7f0c6a9842
Merge pull request #313 from jstafford/webworkers
...
Webworker support. Fixes issue #246
2019-02-12 14:03:16 -05:00
Jason Stafford
7e7af7e919
docs changes as suggested by mdboom
2019-02-07 13:26:02 -08:00