Hi, I'm trying to learn Python. I using Aquamac an emac
implementation with mac os x. I have a program. If I go to the
command prompt and type pythong myprog.py, it works. Can the program
be run from within the editor or is that not how development is done?
I ask because I was using Visual Studio with C# and, if you're
familiar, you just hit run and it works. On Python do I use the
editor for editing only and then run the program from the command
line? Thank you. 14 2649
On 2008-03-20, jmDesktop <ne***********@ gmail.comwrote:
Hi, I'm trying to learn Python. I using Aquamac an emac
implementation with mac os x. I have a program. If I go to the
command prompt and type pythong myprog.py, it works. Can the program
be run from within the editor or is that not how development is done?
I ask because I was using Visual Studio with C# and, if you're
familiar, you just hit run and it works. On Python do I use the
editor for editing only and then run the program from the command
line?
http://www.google.com/search?q=emacs+python
--
Grant
Grant Edwards wrote:
On 2008-03-20, jmDesktop <ne***********@ gmail.comwrote:
>Hi, I'm trying to learn Python. I using Aquamac an emac implementati on with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be run from within the editor or is that not how development is done? I ask because I was using Visual Studio with C# and, if you're familiar, you just hit run and it works. On Python do I use the editor for editing only and then run the program from the command line?
http://www.google.com/search?q=emacs+python
Or achieve a similar (more flexible (IMO), but less smoothly integrated)
effect with Vim and GNU Screen. Until recently, you had to patch Screen
if you wanted vertical splits, but now it's in the main line.
On Mar 20, 11:21*am, Grant Edwards <gra...@visi.co mwrote:
On 2008-03-20, jmDesktop <needin4mat...@ gmail.comwrote:
Hi, I'm trying to learn Python. *I using Aquamac an emac
implementation with mac os x. *I have a program. *If I go to the
command prompt and type pythong myprog.py, it works. *Can the program
be run from within the editor or is that not how development is done?
I ask because I was using Visual Studio with C# and, if you're
familiar, you just hit run and it works. *On Python do I use the
editor for editing only and then run the program from the command
line?
http://www.google.com/search?q=emacs+python
--
Grant
Gee. Thanks.
jmDesktop wrote:
On Mar 20, 11:21 am, Grant Edwards <gra...@visi.co mwrote:
>On 2008-03-20, jmDesktop <needin4mat...@ gmail.comwrote:
>>Hi, I'm trying to learn Python. I using Aquamac an emac implementatio n with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be run from within the editor or is that not how development is done? I ask because I was using Visual Studio with C# and, if you're familiar, you just hit run and it works. On Python do I use the editor for editing only and then run the program from the command line?
Sort of. Modern editors generally have support for building and running
your program directly from a toolbar button or textual command. I
personally use Vim with the toolbar disabled, running in a Terminal, and
run the program by first putting Vim in the background (^z).
People writing code specific to Mac, but not necessarily all in Python,
often use XCode. http://zovirl.com/2006/07/13/xcode-python/
In the Ruby community, Vim is the dominant choice, but a lot of Mac
users swear by TextMate. http://macromates.com/
>http://www.google.com/search?q=emacs+python
Gee. Thanks.
I believe Grant was suggesting that Emacs often serves a similar purpose
on Unix to what Visual Studio does on Windows, which seemed to be what
you were asking. When asking about Mac OS X here, you are likely to get
a lot of generic Unix responses. (Would it have been clearer if he had
just said "emacs?")
Jeff Schwab wrote:
jmDesktop wrote:
>On Mar 20, 11:21 am, Grant Edwards <gra...@visi.co mwrote:
>>On 2008-03-20, jmDesktop <needin4mat...@ gmail.comwrote:
Hi, I'm trying to learn Python. I using Aquamac an emac implementati on with mac os x. I have a program. If I go to the command prompt and type pythong myprog.py, it works. Can the program be run from within the editor or is that not how development is done? I ask because I was using Visual Studio with C# and, if you're familiar, you just hit run and it works. On Python do I use the editor for editing only and then run the program from the command line?
Sort of. Modern editors generally have support for building and running
your program directly from a toolbar button or textual command. I
personally use Vim with the toolbar disabled, running in a Terminal, and
run the program by first putting Vim in the background (^z).
Modern editors like GNU Emacs show you a Python tab when you're editing
a Python file that allows you to do various things with the code, just
like Visual Studio, I don't know about "Aquamacs".
I believe Grant was suggesting that Emacs often serves a similar purpose
on Unix to what Visual Studio does on Windows, which seemed to be what
you were asking. When asking about Mac OS X here, you are likely to get
a lot of generic Unix responses. (Would it have been clearer if he had
just said "emacs?")
There are several flavors, it's best to specify which one you mean.
People who say Emacs often mean GNU Emacs.
Paulo
On Mar 20, 11:44*am, Jeff Schwab <j...@schwabcen ter.comwrote:
jmDesktop wrote:
On Mar 20, 11:21 am, Grant Edwards <gra...@visi.co mwrote:
On 2008-03-20, jmDesktop <needin4mat...@ gmail.comwrote:
>Hi, I'm trying to learn Python. *I using Aquamac an emac implementati on with mac os x. *I have a program. *If I go to the command prompt and type pythong myprog.py, it works. *Can the program be run from within the editor or is that not how development is done? I ask because I was using Visual Studio with C# and, if you're familiar, you just hit run and it works. *On Python do I use the editor for editing only and then run the program from the command line?
Sort of. *Modern editors generally have support for building and running
your program directly from a toolbar button or textual command. *I
personally use Vim with the toolbar disabled, running in a Terminal, and
run the program by first putting Vim in the background (^z).
People writing code specific to Mac, but not necessarily all in Python,
often use XCode.
* * *http://zovirl.com/2006/07/13/xcode-python/
In the Ruby community, Vim is the dominant choice, but a lot of Mac
users swear by TextMate.
* * *http://macromates.com/
>http://www.google.com/search?q=emacs+python
Gee. *Thanks.
I believe Grant was suggesting that Emacs often serves a similar purpose
on Unix to what Visual Studio does on Windows, which seemed to be what
you were asking. *When asking about Mac OS X here, you are likely to get
a lot of generic Unix responses. *(Would it have been clearer if he had
just said "emacs?")
No. Typically when someone posts a one-liner search it means go
figure it out and stop bothering "us." I had already searched. I
could not get it to work, which is why I posted. If I took it wrong I
apologize.
I really had two questions. One is just how to run a program from
within the editor and the other is if my thinking on how development
is done in python wrong to start with. Most of my non-Windows
programs have been on Unix using vi, but it has been a while. I'm
used to writing a program in visual studio and running it. If that's
the wrong expectation for python programming in emacs, then I wanted
to know.
Thanks for your help.
On 2008-03-20, jmDesktop <ne***********@ gmail.comwrote:
On Mar 20, 11:21*am, Grant Edwards <gra...@visi.co mwrote:
>On 2008-03-20, jmDesktop <needin4mat...@ gmail.comwrote:
Hi, I'm trying to learn Python. *I using Aquamac an emac
implementation with mac os x. *I have a program. *If I go to the
command prompt and type pythong myprog.py, it works. *Can the program
be run from within the editor or is that not how development is done?
I ask because I was using Visual Studio with C# and, if you're
familiar, you just hit run and it works. *On Python do I use the
editor for editing only and then run the program from the command
line?
http://www.google.com/search?q=emacs+python
Gee. Thanks.
Golly. You're welcome. Don't the hits on the first page
answer your question? They explain how to do things like run
python programs from within emacs (including how to do
source-level debugging).
This is probably one of the better pages that the google search
above found: http://wiki.python.org/moin/EmacsEditor
--
Grant
On 2008-03-20, Jeff Schwab <je**@schwabcen ter.comwrote:
>>http://www.google.com/search?q=emacs+python
>Gee. Thanks.
I believe Grant was suggesting that Emacs often serves a similar purpose
on Unix to what Visual Studio does on Windows, which seemed to be what
you were asking. When asking about Mac OS X here, you are likely to get
a lot of generic Unix responses. (Would it have been clearer if he had
just said "emacs?")
Don't the normal "run/debug python from inside emacs" methods
work on OS-X?
--
Grant
On 2008-03-20, jmDesktop <ne***********@ gmail.comwrote:
>I believe Grant was suggesting that Emacs often serves a similar purpose on Unix to what Visual Studio does on Windows, which seemed to be what you were asking. *When asking about Mac OS X here, you are likely to get a lot of generic Unix responses. *(Would it have been clearer if he had just said "emacs?")
No. Typically when someone posts a one-liner search it means
go figure it out and stop bothering "us." I had already
searched. I could not get it to work,
Could not get what to work?
which is why I posted. If I took it wrong I apologize.
I honestly thought you were asking how to run/debug python
programs inside emacs. A couple of the hits answered that
question. The others explained how do get python-aware editing
modes configured.
I really had two questions. One is just how to run a program from
within the editor and the other is if my thinking on how development
is done in python wrong to start with. Most of my non-Windows
programs have been on Unix using vi, but it has been a while. I'm
used to writing a program in visual studio and running it.
Perhaps you'd be more comfortable with one of the IDEs? http://wiki.python.org/moin/Integrat...ntEnvironments http://en.wikipedia.org/wiki/Compari...onments#Python
If that's the wrong expectation for python programming in
emacs, then I wanted to know.
Yes, you can run programs (including python debuggers) from
inside emacs. The simplest way is to do "meta-x shell" to get
a shell prompt inside emacs, then just type whatever command
line you want to use to run the program. Or you can map a
command to a keystroke that will run the program.
I generally just have another terminal window open where I run
the program -- but I've never liked IDEs so your tastes may
differ.
--
Grant This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have any preconceived ideas about it. I have
noticed, however, that every programmer I talk to who's aware of Python is
also talking about Ruby. So it seems that Ruby has the potential to compete
with and displace Python. I'm curious on what basis it...
|
by: mike420 |
last post by:
I think everyone who used Python will agree that its syntax is
the best thing going for it. It is very readable and easy
for everyone to learn. But, Python does not a have very good
macro capabilities, unfortunately. I'd like to know if it may
be possible to add a powerful macro system to Python, while
keeping its amazing syntax, and if it could be possible to
add Pythonistic syntax to Lisp or Scheme, while keeping all
of the...
|
by: Wezzy |
last post by:
Hi all, i've just seen the pydebug plugin for jEdit and my question is :
is there something similar for emacs ?
i'm looking for a debugger frontend, a very simple program, just set
breakpoint, execute one line and show variables' values
ty
--
Ciao
Fabio
|
by: Thomas Lindgaard |
last post by:
Hello
I am probably going to start a war now... but so be it :)
I just want to hear what all you guys who eat pythons for breakfast use
for python coding. Currently I use Kate, but I would really like an IDE
with debugger and a source browser (ie. one the I can use to browse
through modules etc. when looking for just the right curses stuff and such
- I am a newcomer to Python).
|
by: julio |
last post by:
Sorry but there is no another way, c# .net and mono are going to rip
python, not because python is a bad lenguage, but because is to darn old
and it refuses to innovate things, to fix wrong things, just because
retarded backwards compatibility and because the python comunity and
developers refuses to consider tools as being almost as important as the
language itself.
What does c# .net has that python doesnt ? (significant features)
--...
| |
by: seberino |
last post by:
I'm interested in knowing which Python web framework is most like Ruby
on Rails.
I've heard of Subway and Django.
Are there other Rails clones in Python land I don't know about?
Which one has largest community/buzz about it?
|
by: bblais |
last post by:
Hello,
Let me start by saying that I am coming from a background using Matlab
(or Octave), and C++. I am going to outline the basic nuts-and-bolts
of how I work in these languages, and ask for some help to find out how
the same thing is done in Python. I am not sure what the standard is.
In C++, I open up an editor in one window, a Unix shell in another. I
write the code in the editor, then switch to the shell window for
compile...
|
by: Ramon Diaz-Uriarte |
last post by:
Dear All,
Has anybody tried to use ID Utils
(http://www.gnu.org/software/idutils/46) with Python? I've googled, searched
the mailing list, and have found nothing.
A silly, simple use of IDUtils with Python code does work, using a language
map that says *.py files are text files. But I am wondering if someone has
done something more sophisticated. (For instance, I get matches to
commented out functions, which I'd rather not, lots of...
|
by: emin.shopper |
last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft
Windows. The following is a simple example with Xemacs:
----------------------------------------------------------
Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |