I have always wondered if it were possible to run PyPy in the Jupyter notebook. I recently tried installing PyPy on my local machine, and it ran really well - 100X speedup in an agent-based simulation written in pure Python. However, I miss the interactivity in the Jupyter notebook. Is it possible to make the IPython kernel use PyPy rather than CPython?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You can install Jupyter with pypy:
The are problems on Mac OS X. If the install fails complaining a about
gnureadline
. Try this:Than start with:
My
pypy-ipython
looks like this:In a notebook:
The notebook requires Python 2.7 or 3.3+. PyPy for Python3.3 should be out soon.
My
pypy-pip
this executable file/usr/local/bin//pypy-pip
with this content: