aimacode / aima-python

Python implementation of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
MIT License
8.03k stars 3.8k forks source link

Pyodide: Interesting Approach to Python in the Browser #1072

Open norvig opened 5 years ago

norvig commented 5 years ago

Pyodide: Python + NumPy, Pandas, Scipy, and Matplotlib in the Browser.

Could this be used by aima-python?

https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scientific-python-stack-to-the-browser/

antmarakis commented 5 years ago

I think it could be used in conjunction with what we have now. Linking to the Pyodide notebooks somewhere on the README and maybe intro/index.ipynb could work. In terms of requirements, our notebooks don't use any libraries outside the matplotlib/numpy, so we should be fine.

This is definitely something to keep an eye on, maybe the GSoC student can port some stuff over?

JaakTepandi commented 5 years ago

Depends on the goals. It's interesting how Pyodide might fit into current aima-python framework. Seems aima-python has dealt mainly with AI algorithms; infrastructure / use in production has not been a significant topic. Pyodide might give a usability enhancement - ease notebook usage (although the demo seems slow), sth like "aima-python in browser". This could be also a component of a new "feature" (and a set of directories), sth like "aima-python in web dev" - many people could be interested in this. Or a step towards high volume data processing ("scaling aima-python up ").