How to add ipython feature to standard python
When you cannot install ipython , there is alternative way to write key ipython as module or package: – TAB completion – basic shell command (pwd,ls,cd,mkdir,cp,mv, you can add more ……)
When you cannot install ipython , there is alternative way to write key ipython as module or package: – TAB completion – basic shell command (pwd,ls,cd,mkdir,cp,mv, you can add more ……)
This example is from Learning Python exercise, just fixed small issues: – cmd prompt not working properly due to order – add pwd function
New ipython provides two ways to start ipython: Scripts\ipython.exe and Scripts\python-script.py. This is shell setting: cmd /k “c:\python27\Scripts\ipython” or cmd.exe /k “C:\Python27\python.exe C:\Python27\Scripts\ipython-script.py” both working for me.
http://portablepython.com/ is best portable python so far, here is discussion how to run them from Console2. 1) install portable python package Portable Python 2.7.5.1 This package contains following applications/libraries: PyScripter v2.5.3 NymPy 1.7.1 SciPy 0.12.0 Matplotlib 1.2.1 PyWin32 218 Django 1.5.1 PIL 1.1.7 Py2Exe 0.6.9 wxPython 2.9.4.0 NetworkX 1.7 Lxml …
1) setup proxy in IE otherwise cannot access to Internet to get package during installation 2) install setuptools 32 bits using .exe installer, used to download, build, install, upgrade, and uninstall Python packages easily https://pypi.python.org/pypi/setuptools/0.6c11#windows 3) download get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py 4) install pip C:> python c:\\get-pip.py Downloading/unpacking pip Downloading pip-1.4.1.tar.gz (445kB): …
TAB complete is default for ipython, you can install for python as well. 1) install pyreadline download from https://pypi.python.org/pypi/pyreadline/2.0 2) write small module to load pyrl.py import rlcompleter, readline readline.parse_and_bind(‘tab: complete’) 3) import pyrl after launch python shell >>> import pyrl >>> import os >>> os.lis