python cmd shell
This example is from Learning Python exercise, just fixed small issues: – cmd prompt not working properly due to order – add pwd function
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
Following up the installation guideline in link: http://ipython.org/ipython-doc/stable/install/install.html 1) install python 3.3 http://www.python.org/download/ 2) pythreadline https://launchpad.net/pyreadline/+download only pythreadline 2.0 for python 2.6, 2.7, 3.x 3) install ipython-0.13.1 32bit python setup.py install 64 bit not supported in Console2 4) config in Console2 ipython3 or python Scripts\ipython3-script.py