[Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Sinardy Xing
Hi, I am a newbie with python and the data visualization. I have completed pandas.DataFrame stuff and also the matplotlib. All of the example that I learned from internet currently are using the Anaconda Jupyter Notebook. I know there are API where we can output the result of the graph to png, wi

Re: [Tutor] Basic Question about Visualization for enduser

2019-06-25 Thread Sinardy Xing
On Tue, Jun 25, 2019 at 10:27 PM Mats Wichmann wrote: > On 6/25/19 6:39 AM, Sinardy Xing wrote: > > Hi, > > > > I am a newbie with python and the data visualization. > > I have completed pandas.DataFrame stuff and also the matplotlib. > > > >

[Tutor] Create Logging module

2019-08-01 Thread Sinardy Xing
Hi, I am learning to create python logging. My goal is to create a logging module where I can use as decorator in my main app following is the logging code start here--- import logging #DEBUG: Detailed information, typically of interest only when diagnosing problems. #INFO : Conf

Re: [Tutor] Create Logging module

2019-08-01 Thread Sinardy Xing
, 2019 at 8:42 PM Steven D'Aprano wrote: > On Thu, Aug 01, 2019 at 05:11:04PM +0800, Sinardy Xing wrote: > > > I have error look like in the wrapper. > > > > Can someone point to me where is the issue > > No, but you can. > > When the error occurs, Python will p

Re: [Tutor] Create Logging module

2019-08-01 Thread Sinardy Xing
Hi I solve my problem, the decorator need to be above the function not when executed. :) Thanks for reading. :) On Thu, Aug 1, 2019 at 8:42 PM Steven D'Aprano wrote: > On Thu, Aug 01, 2019 at 05:11:04PM +0800, Sinardy Xing wrote: > > > I have error look like in the wra

Re: [Tutor] Create Logging module

2019-08-02 Thread Sinardy Xing
On Fri, Aug 2, 2019 at 12:14 AM Alan Gauld via Tutor wrote: > On 01/08/2019 10:11, Sinardy Xing wrote: > > > start here--- > > > > import logging > > > > ..snip... > > > > from functools import wraps > > > > def logme(func_to_lo

Re: [Tutor] Create Logging module

2019-08-02 Thread Sinardy Xing
'Current log level is : {}'.format(logger.level)) return orig_func(*args, **kwargs) return wrapper def timer(orig_func): import time #this wraps is to make sure we are returning orig_func instead of wrapper @wraps(orig_func) def wrapper(*args, **kwargs):