diff --git a/docs/pypi.md b/docs/pypi.md index 73a2ba9c3..b1066efad 100644 --- a/docs/pypi.md +++ b/docs/pypi.md @@ -33,10 +33,43 @@ finished loading: ``` def do_work(*args): - import snowballstemmer - stemmer = snowballstemmer.stemmer('english') - stemmer.stemWords('go goes going gone'.split()) + import snowballstemmer + stemmer = snowballstemmer.stemmer('english') + print(stemmer.stemWords('go goes going gone'.split())) import micropip micropip.install('snowballstemmer').then(do_work) ``` + +## Complete example + +Adapting the setup from the section on ["using pyodide from +javascript"](./using_pyodide_from_javascript.html) a complete example would be, + +```html + + + + + + + + + +```