verbose output when running python script?
Dear all, Sorry this is not the good place to ask but I think there must be someone who has done this before. Is there any way to see the execution of python script line by line as the verbose model of shell script? this can be done either in ipython or by running the python script in a shell script? thanks to all, cheers, Chao -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************
On Mon, Mar 5, 2012 at 10:27 AM, Chao YUE <chaoyuejoy@gmail.com> wrote:
Dear all,
Sorry this is not the good place to ask but I think there must be someone who has done this before. Is there any way to see the execution of python script line by line as the verbose model of shell script? this can be done either in ipython or by running the python script in a shell script?
I'm using Spyder for this F9: run selection or current block after selecting lines of code in the editor. (just like matlab) Josef
thanks to all,
cheers,
Chao
-- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
thanks. I am using ubuntu (for my local computer) and on our server we have only ipython or shell... but I think I can try your suggestion on my own computer. Chao 2012/3/5 <josef.pktd@gmail.com>
Dear all,
Sorry this is not the good place to ask but I think there must be someone who has done this before. Is there any way to see the execution of python script line by line as
On Mon, Mar 5, 2012 at 10:27 AM, Chao YUE <chaoyuejoy@gmail.com> wrote: the
verbose model of shell script? this can be done either in ipython or by running the python script in a shell script?
I'm using Spyder for this F9: run selection or current block after selecting lines of code in the editor.
(just like matlab)
Josef
thanks to all,
cheers,
Chao
--
***********************************************************************************
Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
-- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************
On 5 March 2012 15:27, Chao YUE <chaoyuejoy@gmail.com> wrote:
Sorry this is not the good place to ask but I think there must be someone who has done this before. Is there any way to see the execution of python script line by line as the verbose model of shell script? this can be done either in ipython or by running the python script in a shell script?
Depending on what you want this for, you might look into IPython's demo mode: http://ipython.org/ipython-doc/stable/interactive/reference.html#interactive... Thomas
Try the trace module in the standard library: http://docs.python.org/library/trace.html http://www.doughellmann.com/PyMOTW/trace/ - Nathaniel On Mar 5, 2012 3:27 PM, "Chao YUE" <chaoyuejoy@gmail.com> wrote:
Dear all,
Sorry this is not the good place to ask but I think there must be someone who has done this before. Is there any way to see the execution of python script line by line as the verbose model of shell script? this can be done either in ipython or by running the python script in a shell script?
thanks to all,
cheers,
Chao
--
*********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
participants (4)
-
Chao YUE -
josef.pktd@gmail.com -
Nathaniel Smith -
Thomas Kluyver