Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ipython with pypy?

How do I use ipython on top of a pypy interpreter rather than a cpython interpreter? ipython website just says it works, but is scant on the details of how to do it.

like image 441
wim Avatar asked May 14 '13 06:05

wim


People also ask

How do I run IPython in Python?

You start IPython by typing “ipython” in your terminal. $ ipython Python 2.7. 2 (default, Jun 20 2012, 16:23:33) Type "copyright", "credits" or "license" for more information. IPython 0.13.

How do I run IPython from command line?

The easiest way is to run easy_install ipython[all] as an administrator (start button, type cmd , shift+right click on “cmd.exe” and select “Run as administrator”). This installs the latest stable version of IPython including the main required and optional dependencies.

Does PyPy support Python 3?

PyPy only supports one version of Python 2 and Python 3, which are PyPy 2.7 and PyPy 3.6. If the code that is executed in PyPy is pure Python, then the speed offered by PyPy is usually noticeable. But if the code contains C extensions, such as NumPy, then PyPy might actually increase the time.


2 Answers

You can create a PyPy virtualenv :

virtualenv -p /path/to/pypy <venv_dir> 

Activate the virtualenv

source <venv_dir>/bin/activate 

and install ipython

pip install ipython 
like image 143
rguillebert Avatar answered Sep 19 '22 16:09

rguillebert


  • install setuptools to pypy
  • install pip with setuptools to pypy

do

pypy\bin\pip install ipython 
like image 36
hugo24 Avatar answered Sep 23 '22 16:09

hugo24