Am 20.01.2012 14:49, schrieb Yagnesh Raghava Yakkala:
Hello Andreas and all,
I would like to use python-mode for my work. I have few questions and hope
to get few comments and suggestion and prior apologies for very basic
questions and long mail.
Consider me as a noob at Python and python-mode but not to the Emacs. I
need to write code only in Python3. Right now I have only one line
customization for python-mode in my .emacs i.e,
,----
| (require 'python-mode)
`----
and I have Python 3.2.2, ipython 0.11.2 and Emacs from bzr trunk.
Hi Yagnesh,
in order to use python-mode we are developing here, you must download
http://launchpad.net/python-mode/trunk/6.0.4/+download/python-mode.el-6.0.4.tar.gz
or the current trunk with bazaar
bzr branch lp:python-mode
This python-mode.el owes a lot to python.el coming with Emacs, but has
much more features.
have a look at the commands-list in directory doc
with that intro my questions are,
1) `py-shell-name' to "ipython"
I see ipython is working great with in the Emacs. But even if I set
(setq py-shell-name "ipython") and press a C-c C-c in Python buffer
it still is not taking to *IPython* buffer. how can I use ipython as
my Python shell
that reads you have python-mode.el already, as py-shell-name only exists
here AFAIK
Read the INSTALL file how to set the path in your Emacs init.
In order to get an existing shell just do
M-x MY-SHELL-NAME
2) auto completion:
what exactly I should have in my .emacs to get auto completion in
python-mode. Again auto-completion with TAB working great in *IPython*
buffer but not python-mode.
Presently we have completion, not auto-completion, i.e. completion needs
a key, TAB in shells and M-TAB in common buffers.
Should it not work, please send a bug report.
So far,
good luck,
Andreas
I see the difficulty of getting auto-completion in python-mode
buffer and auto completion helper function should know the type of the
object at point to get the correct list of possible completions. My
instinct was to why not use "ipython" for receiving auto
completions.
3) how to refer python-mode:
Stupid question but I am asking because different modes and names floating
around for Python.
more questions to follow once I figure out these
PS: Many thanks to python-mode developers especially to Andreas for the
hard work you put on this mode.
Thanks
--
Yagnesh
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode